/
_tables.scss
40 lines (34 loc) · 942 Bytes
/
_tables.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.table {
border-collapse: separate;
td {
touch-action: manipulation;
vertical-align: middle;
}
thead th {
border-bottom: 0;
background: $th-background;
}
}
.table-striped {
tbody tr:nth-of-type(odd) {
background-color: $bg-one;
}
tbody tr:nth-of-type(even) {
background-color: $bg-two;
}
}
.table-light {
--#{$variable-prefix}table-bg: #{$table-bg};
--#{$variable-prefix}table-accent-bg: #{$table-accent-bg};
--#{$variable-prefix}table-striped-color: #{$table-striped-color};
--#{$variable-prefix}table-striped-bg: #{$table-striped-bg};
--#{$variable-prefix}table-active-color: #{$table-active-color};
--#{$variable-prefix}table-active-bg: #{$table-active-bg};
--#{$variable-prefix}table-hover-color: #{$table-hover-color};
--#{$variable-prefix}table-hover-bg: #{$table-hover-bg};
}
@media only screen and (min-width: 768px) {
.table th.position-sticky {
top: 49px;
}
}