2017-06-06 08:58:29 -04:00
|
|
|
@mixin flex-max-width($max) {
|
|
|
|
flex: 0 0 #{$max + '%'};
|
|
|
|
max-width: #{$max + '%'};
|
|
|
|
}
|
|
|
|
|
2017-11-02 02:54:08 -04:00
|
|
|
.gl-responsive-table-row-layout {
|
|
|
|
width: 100%;
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(md) {
|
2017-11-02 02:54:08 -04:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
& > &:not(:first-child) {
|
|
|
|
margin-top: $gl-padding;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-06 08:58:29 -04:00
|
|
|
.gl-responsive-table-row {
|
2017-11-02 02:54:08 -04:00
|
|
|
@extend .gl-responsive-table-row-layout;
|
2017-06-06 08:58:29 -04:00
|
|
|
margin-top: 10px;
|
|
|
|
border: 1px solid $border-color;
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(md) {
|
2017-06-06 08:58:29 -04:00
|
|
|
margin: 0;
|
2017-11-02 02:54:08 -04:00
|
|
|
padding: $gl-padding 0;
|
2017-11-02 19:59:51 -04:00
|
|
|
border: 0;
|
2017-11-03 09:53:14 -04:00
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
border-bottom: 1px solid $white-normal;
|
|
|
|
}
|
2017-06-06 08:58:29 -04:00
|
|
|
}
|
2017-11-02 02:54:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.gl-responsive-table-row-col-span {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
2017-06-06 08:58:29 -04:00
|
|
|
|
2017-11-02 02:54:08 -04:00
|
|
|
.table-section {
|
|
|
|
white-space: nowrap;
|
2017-06-06 08:58:29 -04:00
|
|
|
|
2018-04-08 06:20:05 -04:00
|
|
|
$section-widths: 10 15 20 25 30 40 50 100;
|
2017-11-02 02:54:08 -04:00
|
|
|
@each $width in $section-widths {
|
|
|
|
&.section-#{$width} {
|
|
|
|
flex: 0 0 #{$width + '%'};
|
2017-06-06 08:58:29 -04:00
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(md) {
|
2017-11-02 02:54:08 -04:00
|
|
|
max-width: #{$width + '%'};
|
2017-06-06 08:58:29 -04:00
|
|
|
}
|
|
|
|
}
|
2017-11-02 02:54:08 -04:00
|
|
|
}
|
2017-06-06 08:58:29 -04:00
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(sm) {
|
2017-11-02 02:54:08 -04:00
|
|
|
display: flex;
|
|
|
|
align-self: stretch;
|
|
|
|
padding: 10px;
|
|
|
|
align-items: center;
|
|
|
|
min-height: 62px;
|
2017-06-06 08:58:29 -04:00
|
|
|
|
2017-11-02 02:54:08 -04:00
|
|
|
&:not(:first-child) {
|
|
|
|
border-top: 1px solid $white-normal;
|
2017-06-06 08:58:29 -04:00
|
|
|
}
|
2017-11-02 02:54:08 -04:00
|
|
|
}
|
2017-06-16 08:00:28 -04:00
|
|
|
|
2017-11-02 02:54:08 -04:00
|
|
|
&.section-wrap {
|
|
|
|
white-space: normal;
|
2017-06-16 08:00:28 -04:00
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(sm) {
|
2017-11-02 02:54:08 -04:00
|
|
|
flex-wrap: wrap;
|
2017-06-16 08:00:28 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-02 02:54:08 -04:00
|
|
|
&.section-align-top {
|
|
|
|
align-self: flex-start;
|
|
|
|
}
|
|
|
|
}
|
2017-06-16 08:00:28 -04:00
|
|
|
|
|
|
|
.table-button-footer {
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(md) {
|
2017-06-16 08:00:28 -04:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(sm) {
|
2017-11-02 02:54:08 -04:00
|
|
|
display: block;
|
2017-06-16 08:00:28 -04:00
|
|
|
align-self: stretch;
|
2017-11-02 02:54:08 -04:00
|
|
|
min-height: 0;
|
|
|
|
background-color: $gray-normal;
|
2017-06-16 08:00:28 -04:00
|
|
|
border-top: 1px solid $border-color;
|
|
|
|
|
|
|
|
.table-action-buttons {
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .btn-group,
|
|
|
|
> .external-url,
|
|
|
|
> .btn {
|
|
|
|
flex: 1 1 28px;
|
2017-11-02 02:54:08 -04:00
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2017-06-16 08:00:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-new {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
min-width: initial;
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 08:58:29 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.table-row-header {
|
|
|
|
font-size: 13px;
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(sm) {
|
2017-06-06 08:58:29 -04:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.table-mobile-header {
|
2017-07-12 00:59:39 -04:00
|
|
|
@include flex-max-width(40);
|
2017-06-06 08:58:29 -04:00
|
|
|
color: $gl-text-color-secondary;
|
2017-06-16 08:00:28 -04:00
|
|
|
text-align: left;
|
2017-06-06 08:58:29 -04:00
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(md) {
|
2017-06-06 08:58:29 -04:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.table-mobile-content {
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(sm) {
|
2017-06-06 08:58:29 -04:00
|
|
|
@include flex-max-width(60);
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex-truncate-parent {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex-truncate-child {
|
|
|
|
flex: 1;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(md) {
|
2017-06-06 08:58:29 -04:00
|
|
|
flex: 0 0 90%;
|
|
|
|
}
|
2017-06-07 21:15:40 -04:00
|
|
|
|
|
|
|
.avatar {
|
|
|
|
float: none;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
2017-06-06 08:58:29 -04:00
|
|
|
}
|