|
1 | 1 | // Dark mode, as detected by the media query |
2 | 2 |
|
3 | | -:root { |
4 | | - --border-color: rgba(0, 0, 0, 0.1); |
5 | | - --background: #FFFFFF; |
6 | | - --foreground: #101010; |
7 | | - --background-1: #f1f1f6; |
8 | | - --background-2: #e9e9e9; |
9 | | - |
10 | | - --dark-text: #101010; |
11 | | - |
12 | | - --faq-question-color: #c1ebfb; |
| 3 | +.dark-toggle.light { |
| 4 | + display: initial; |
| 5 | +} |
| 6 | +.dark-toggle.dark { |
| 7 | + display: none; |
13 | 8 | } |
14 | 9 |
|
15 | | -@media (prefers-color-scheme: dark) { |
16 | | - :root { |
17 | | - --border-color: rgba(255, 255, 255, 0.2); |
18 | | - --background: #101010; |
19 | | - --background-1: #303030; |
20 | | - --background-2: #505050; |
21 | | - --foreground: #FFFFFF; |
22 | | - --faq-question-color: #07445d; |
23 | | - color-scheme: dark; |
24 | | - color: var(--foreground); |
25 | | - background: var(--background); |
26 | | - } |
| 10 | +html { |
| 11 | + --border-color: rgba(255, 255, 255, 0.2); |
| 12 | + --background: #101010; |
| 13 | + --background-1: #303030; |
| 14 | + --background-2: #505050; |
| 15 | + --foreground: #FFFFFF; |
| 16 | + --faq-question-color: #07445d; |
| 17 | + color-scheme: dark; |
| 18 | + color: var(--foreground); |
| 19 | + background: var(--background); |
| 20 | +} |
27 | 21 |
|
28 | | - .alert-info { |
29 | | - background: adjust-color(blue, $alpha: -0.8); |
30 | | - } |
| 22 | +.alert-info { |
| 23 | + background: adjust-color(blue, $alpha: -0.8); |
| 24 | +} |
31 | 25 |
|
32 | | - .alert-warning { |
33 | | - background: adjust-color(red, $alpha: -0.8); |
34 | | - } |
| 26 | +.alert-warning { |
| 27 | + background: adjust-color(red, $alpha: -0.8); |
| 28 | +} |
35 | 29 |
|
36 | | - .alert-success { |
37 | | - background: adjust-color(green, $alpha: -0.8); |
38 | | - } |
| 30 | +.alert-success { |
| 31 | + background: adjust-color(green, $alpha: -0.8); |
| 32 | +} |
39 | 33 |
|
40 | | - .device-type-cell img { |
41 | | - filter: #{"invert()"}; |
42 | | - } |
| 34 | +.device-type-cell img { |
| 35 | + filter: #{"invert()"}; |
43 | 36 | } |
0 commit comments