weekly release 4.0dev
[moodle.git] / theme / boost / scss / moodle / tables.scss
CommitLineData
536f0460 1.generaltable {
40ea6753
BB
2 width: 100%;
3 margin-bottom: $spacer;
4 color: $table-color;
5 background-color: $table-bg; // Reset for nesting within parents with `background-color`.
6
7 th,
8 td {
9 padding: $table-cell-padding;
10 vertical-align: top;
11 border-top: $table-border-width solid $table-border-color;
12 }
13
14 thead th {
15 vertical-align: bottom;
16 border-bottom: (2 * $table-border-width) solid $table-border-color;
17 }
18
19 tbody + tbody {
20 border-top: (2 * $table-border-width) solid $table-border-color;
21 }
22
23 tbody tr:nth-of-type(#{$table-striped-order}) {
24 background-color: $table-accent-bg;
25 }
26 &.table-sm {
27 th,
28 td {
29 padding: $table-cell-padding-sm;
30 }
31 }
32 tbody tr {
33 @include hover {
34 color: $table-hover-color;
35 background-color: $table-hover-bg;
3294431f
PH
36 &.dimmed_text {
37 a:not(.menu-action) {
38 color: $table-hover-color;
39 }
40 }
40ea6753
BB
41 }
42 }
43}
44
45table {
46 caption {
47 font-size: 24px;
48 font-weight: bold;
49 line-height: 42px;
50 text-align: left;
51 caption-side: top;
52 }
536f0460 53}
d717918c
SL
54
55.table-dynamic .loading-icon {
56 position: absolute;
57 left: calc(50% - 1.5rem);
58 top: 200px;
59 .icon {
60 height: 3rem;
61 width: 3rem;
62 font-size: 3rem;
63 }
64}