2019-07-18 16:22:11 +02:00
|
|
|
//
|
|
|
|
// Component: Table
|
|
|
|
//
|
2015-10-31 22:00:16 +01:00
|
|
|
|
2019-05-18 10:35:36 +02:00
|
|
|
.table {
|
2019-06-27 10:43:40 +02:00
|
|
|
&:not(.table-dark) {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
// fixed table head
|
|
|
|
&.table-head-fixed {
|
|
|
|
thead tr:nth-child(1) th {
|
|
|
|
background-color: $white;
|
2019-07-17 23:01:00 +02:00
|
|
|
border-bottom: 0;
|
2020-05-30 15:06:11 +02:00
|
|
|
box-shadow: inset 0 1px 0 $table-border-color, inset 0 -1px 0 $table-border-color;
|
2019-06-27 10:43:40 +02:00
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: 10;
|
|
|
|
}
|
2019-05-18 10:35:36 +02:00
|
|
|
|
2019-06-27 10:43:40 +02:00
|
|
|
&.table-dark {
|
|
|
|
thead tr {
|
|
|
|
&:nth-child(1) th {
|
|
|
|
background-color: $table-dark-bg;
|
2020-05-30 15:06:11 +02:00
|
|
|
box-shadow: inset 0 1px 0 $table-dark-border-color, inset 0 -1px 0 $table-dark-border-color;
|
2019-06-27 10:43:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
2019-06-27 10:43:40 +02:00
|
|
|
// no border
|
|
|
|
&.no-border {
|
|
|
|
&,
|
|
|
|
td,
|
|
|
|
th {
|
|
|
|
border: 0;
|
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
2019-06-27 10:43:40 +02:00
|
|
|
// .text-center in tables
|
|
|
|
&.text-center {
|
|
|
|
&,
|
|
|
|
td,
|
|
|
|
th {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
2018-03-17 18:07:55 +01:00
|
|
|
|
2019-09-07 07:18:40 +02:00
|
|
|
&.table-valign-middle {
|
2019-06-27 10:43:40 +02:00
|
|
|
thead > tr > th,
|
|
|
|
thead > tr > td,
|
|
|
|
tbody > tr > th,
|
|
|
|
tbody > tr > td {
|
|
|
|
vertical-align: middle;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
2019-06-27 10:43:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.card-body.p-0 & {
|
|
|
|
thead > tr > th,
|
|
|
|
thead > tr > td,
|
|
|
|
tbody > tr > th,
|
|
|
|
tbody > tr > td {
|
|
|
|
&:first-of-type {
|
2019-10-29 09:22:51 +01:00
|
|
|
padding-left: map-get($spacers, 4);
|
2019-06-27 10:43:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-of-type {
|
2019-10-29 09:22:51 +01:00
|
|
|
padding-right: map-get($spacers, 4);
|
2019-06-27 10:43:40 +02:00
|
|
|
}
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
}
|
2020-06-05 00:35:50 +02:00
|
|
|
|
|
|
|
// Expandable Table
|
2020-06-27 18:58:40 +02:00
|
|
|
|
|
|
|
.table-hover tbody tr.expandable-body:hover {
|
|
|
|
background-color: inherit !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-widget="expandable-table"] {
|
|
|
|
cursor: pointer;
|
2020-07-22 16:03:54 +02:00
|
|
|
|
|
|
|
i {
|
|
|
|
transition: transform $transition-speed linear;
|
|
|
|
}
|
|
|
|
&[aria-expanded="true"] {
|
|
|
|
td > i {
|
|
|
|
// stylelint-disable selector-max-attribute
|
|
|
|
&[class*="right"] {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
&[class*="left"] {
|
|
|
|
transform: rotate(-90deg);
|
|
|
|
}
|
|
|
|
// stylelint-enable selector-max-attribute
|
|
|
|
}
|
|
|
|
}
|
2020-06-27 18:58:40 +02:00
|
|
|
}
|
|
|
|
|
2020-06-05 00:35:50 +02:00
|
|
|
.expandable-body {
|
2020-07-22 16:03:54 +02:00
|
|
|
> td {
|
|
|
|
padding: 0 !important;
|
2020-06-05 00:35:50 +02:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
> div,
|
|
|
|
> p {
|
|
|
|
padding: $table-cell-padding;
|
|
|
|
}
|
|
|
|
}
|
2020-07-22 16:03:54 +02:00
|
|
|
|
|
|
|
.table {
|
|
|
|
width: calc(100% - #{$table-cell-padding});
|
|
|
|
margin: 0 0 0 $table-cell-padding;
|
|
|
|
|
|
|
|
tr:first-child {
|
|
|
|
td,
|
|
|
|
th {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-05 00:35:50 +02:00
|
|
|
}
|