antares/src/renderer/scss/_fake-tables.scss

70 lines
1021 B
SCSS
Raw Normal View History

2020-06-10 19:29:10 +02:00
.table {
2020-07-24 13:26:56 +02:00
border-collapse: collapse;
border-spacing: 0;
width: 100%;
display: table;
table-layout: fixed;
2020-06-10 19:29:10 +02:00
2020-07-24 13:26:56 +02:00
&.table-striped {
.tbody {
.tr:nth-of-type(odd) {
background: $bg-color;
}
}
}
&,
&.table-striped {
.tbody {
.tr {
&.selected {
background: #333 !important;
}
&.active {
background: $bg-color-dark;
}
}
}
}
&.table-hover {
.tbody {
.tr {
&:hover {
background: $bg-color-dark;
}
}
}
}
// Scollable tables
&.table-scroll {
display: block;
overflow-x: auto;
padding-bottom: 0.75rem;
white-space: nowrap;
}
.thead {
2020-06-10 19:29:10 +02:00
display: table-header-group;
2020-07-24 13:26:56 +02:00
}
.tbody {
2020-06-10 19:29:10 +02:00
display: table-row-group;
2020-07-24 13:26:56 +02:00
}
2020-06-10 19:29:10 +02:00
2020-07-24 13:26:56 +02:00
.tr {
2020-06-10 19:29:10 +02:00
display: table-row;
2020-07-24 13:26:56 +02:00
}
2020-06-10 19:29:10 +02:00
2020-07-24 13:26:56 +02:00
.td,
.th {
border-bottom: $border-width solid $border-color;
padding: $unit-3 $unit-2;
display: table-cell;
}
.th {
border-bottom-width: $border-width-lg;
}
}