mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-23 15:07:41 +01:00
72 lines
1023 B
SCSS
72 lines
1023 B
SCSS
.table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
width: 100%;
|
|
display: table;
|
|
table-layout: fixed;
|
|
|
|
.tbody {
|
|
display: table-row-group;
|
|
}
|
|
|
|
.tr {
|
|
display: table-row;
|
|
}
|
|
|
|
// Scollable tables
|
|
&.table-scroll {
|
|
display: block;
|
|
overflow-x: auto;
|
|
padding-bottom: 0.75rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.thead {
|
|
display: table-header-group;
|
|
}
|
|
|
|
.td,
|
|
.th {
|
|
border-bottom: $border-width solid $border-color;
|
|
padding: $unit-3 $unit-2;
|
|
display: table-cell;
|
|
}
|
|
|
|
.th {
|
|
border-bottom-width: $border-width-lg;
|
|
}
|
|
|
|
&,
|
|
&.table-striped {
|
|
.tbody {
|
|
.tr {
|
|
&.selected {
|
|
background: #333 !important;
|
|
}
|
|
|
|
&.active {
|
|
background: $bg-color-dark;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.table-hover {
|
|
.tbody {
|
|
.tr {
|
|
&:hover {
|
|
background: $bg-color-dark;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.table-striped {
|
|
.tbody {
|
|
.tr:nth-of-type(odd) {
|
|
background: $bg-color;
|
|
}
|
|
}
|
|
}
|
|
}
|