mirrored from git://git.moodle.org/moodle.git
/
tables.scss
83 lines (77 loc) · 1.86 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.generaltable {
width: 100%;
margin-bottom: $spacer;
color: $table-color;
background-color: $table-bg; // Reset for nesting within parents with `background-color`.
th,
td {
padding: $table-cell-padding;
vertical-align: top;
border-top: $table-border-width solid $table-border-color;
.form-check {
padding: 0;
}
}
thead th,
thead td {
vertical-align: bottom;
border-bottom: (2 * $table-border-width) solid $table-border-color;
}
tbody + tbody {
border-top: (2 * $table-border-width) solid $table-border-color;
}
tbody tr:nth-of-type(#{$table-striped-order}) {
background-color: $table-accent-bg;
}
thead .sticky-column,
tbody tr:nth-of-type(even) {
background-color: $white;
}
tbody tr:nth-of-type(#{$table-striped-order}) .sticky-column {
background-color: $table-accent-bg;
}
&.table-sm {
th,
td {
padding: $table-cell-padding-sm;
}
}
tbody tr {
@include hover {
color: $table-hover-color;
background-color: $table-hover-bg;
&.dimmed_text {
a:not(.menu-action) {
color: $table-hover-color;
}
}
td.sticky-column {
background-color: $table-hover-bg;
}
}
}
}
table {
caption {
font-size: 24px;
font-weight: bold;
line-height: 42px;
text-align: left;
caption-side: top;
}
.sticky-column {
position: sticky;
left: 0;
background-color: inherit;
}
}
.table-dynamic .loading-icon {
position: absolute;
left: calc(50% - 1.5rem);
top: 200px;
.icon {
height: 3rem;
width: 3rem;
font-size: 3rem;
}
}