|
1 | 1 | @use "theme/globals" as *; |
2 | 2 |
|
3 | 3 | :host { |
4 | | - --header-background: var(--white); |
5 | | - --odd-cell-background: var(--light); |
6 | | - --odd-cell-hover: var(--gray-200); |
7 | | - --even-cell-background: var(--white); |
8 | | - --even-cell-hover: var(--light); |
9 | 4 | --icon-color: var(--gray-500); |
10 | | - --border-color: var(--stroke); |
11 | | - |
12 | | - .odd { |
13 | | - --cell-background: var(--odd-cell-background); |
14 | | - --cell-hover: var(--odd-cell-hover); |
15 | | - } |
16 | | - |
17 | | - .even { |
18 | | - --cell-background: var(--even-cell-background); |
19 | | - --cell-hover: var(--even-cell-hover); |
20 | | - } |
21 | | - |
| 5 | + --core-table-border-color: var(--stroke); |
22 | 6 | } |
23 | 7 |
|
24 | 8 | :host-context(html.dark) { |
25 | | - --header-background: var(--gray-900); |
26 | | - --odd-cell-background: var(--gray-800); |
27 | | - --odd-cell-hover: var(--gray-600); |
28 | | - --even-cell-background: var(--gray-900); |
29 | | - --even-cell-hover: var(--gray-700); |
30 | 9 | --icon-color: var(--gray-200); |
31 | 10 | } |
32 | 11 |
|
33 | | -.core-grades-table { |
34 | | - border-collapse: collapse; |
35 | | - line-height: 20px; |
| 12 | +table.core-table.core-grades-table { |
36 | 13 | width: 100%; |
37 | | - font-size: 16px; |
38 | | - color: var(--ion-text-color); |
39 | | - |
40 | | - tr { |
41 | | - border-bottom: 1px solid var(--border-color); |
42 | | - } |
43 | | - |
44 | | - th, td { |
45 | | - @include padding(8px, 8px, 8px, null); |
46 | | - vertical-align: top; |
47 | | - white-space: normal; |
48 | | - text-align: start; |
49 | | - } |
50 | | - |
51 | | - thead th { |
52 | | - vertical-align: bottom; |
53 | | - font-weight: bold; |
54 | | - background-color: var(--header-background); |
55 | | - } |
| 14 | + margin: 0px; |
56 | 15 |
|
57 | 16 | thead #gradeitem { |
58 | 17 | @include padding(null, null, null, 24px); |
59 | 18 | } |
60 | 19 |
|
61 | | - tbody th { |
62 | | - font-weight: normal; |
63 | | - } |
64 | | - |
65 | 20 | tbody tr.core-bold th { |
66 | 21 | font-weight: inherit; |
67 | 22 | } |
|
70 | 25 | @include padding(null, null, null, 4px); |
71 | 26 | } |
72 | 27 |
|
| 28 | + th, td { |
| 29 | + @include padding(8px, 8px, 8px, 0px); |
| 30 | + vertical-align: top; |
| 31 | + } |
| 32 | + |
73 | 33 | .core-grades-table-gradeitem { |
74 | 34 | @include padding(null, null, null, 4px); |
75 | | - font-weight: bold; |
76 | 35 |
|
77 | 36 | &.column-itemname { |
78 | 37 | @include padding(null, null, null, 0); |
|
90 | 49 | --filter: var(--module-icon-filter); |
91 | 50 | } |
92 | 51 |
|
93 | | - |
94 | 52 | ion-icon { |
95 | 53 | color: var(--icon-color); |
96 | 54 | } |
|
130 | 88 | width: 0; |
131 | 89 | } |
132 | 90 |
|
133 | | - .ion-no-border { |
134 | | - border: 0 !important; |
135 | | - } |
136 | | - |
137 | | - .dimmed_text, |
138 | | - .hidden { |
139 | | - opacity: .7; |
140 | | - } |
141 | | - |
142 | | - .odd, .even { |
143 | | - td, th, th[aria-current="page"] { |
144 | | - background-color: var(--cell-background); |
145 | | - } |
146 | | - } |
147 | | - |
148 | 91 | .core-grades-grade-clickable { |
149 | 92 | cursor: pointer; |
150 | 93 | &:hover { |
|
0 commit comments