|
1 | 1 | /* |
2 | | - BASE ET LAYOUT |
| 2 | + BASE |
3 | 3 | */ |
4 | 4 |
|
| 5 | +/* VARIABLES CSS */ |
| 6 | + |
5 | 7 | :root { |
6 | 8 | --font: Inter, Avenir, Helvetica, Arial, sans-serif; |
7 | 9 | --body-bg: #fff; |
|
26 | 28 | --color-link: darkblue; |
27 | 29 | } |
28 | 30 |
|
29 | | -@media (prefers-color-scheme: dark) { |
30 | | - :root { |
31 | | - --body-bg: #171919; |
32 | | - --h1-bg: #171919; |
33 | | - --main-bg: linear-gradient( |
34 | | - 90deg, |
35 | | - #1e2021, |
36 | | - #202223, |
37 | | - #222425, |
38 | | - #242627, |
39 | | - #272929 |
40 | | - ); |
41 | | - --main-border-color: transparent; |
42 | | - --controls-bg: #171919; |
43 | | - --color-text: #e0ddd7; |
44 | | - --color-bg: #171919; |
45 | | - --color-light: #888; |
46 | | - --color-lighter: rgb(255 255 255 / 20%); |
47 | | - --color-ultra-light: rgb(0 0 0 / 10%); |
48 | | - --color-link: #6eb4ff; |
49 | | - } |
50 | | - .messageOptions a { |
51 | | - --color-light: #444 !important; |
52 | | - } |
53 | | - .admonition { |
54 | | - --info-color-title: white !important; |
55 | | - --success-color-title: white !important; |
56 | | - --warning-color-title: white !important; |
57 | | - } |
58 | | - input, |
59 | | - button { |
60 | | - background-color: #3b3b3b; |
61 | | - color: white; |
62 | | - border: 1px solid rgba(255, 255, 255, 0.3); |
63 | | - } |
| 31 | +/* DARKMODE */ |
| 32 | + |
| 33 | +:root.darkmode { |
| 34 | + --body-bg: #171919; |
| 35 | + --h1-bg: #171919; |
| 36 | + --main-bg: linear-gradient( |
| 37 | + 90deg, |
| 38 | + #1e2021, |
| 39 | + #202223, |
| 40 | + #222425, |
| 41 | + #242627, |
| 42 | + #272929 |
| 43 | + ); |
| 44 | + --main-border-color: transparent; |
| 45 | + --controls-bg: #171919; |
| 46 | + --color-text: #e0ddd7; |
| 47 | + --color-bg: #171919; |
| 48 | + --color-light: #888; |
| 49 | + --color-lighter: rgb(255 255 255 / 20%); |
| 50 | + --color-ultra-light: rgb(0 0 0 / 10%); |
| 51 | + --color-link: #6eb4ff; |
| 52 | +} |
| 53 | +.darkmode .messageOptions a { |
| 54 | + --color-light: #444 !important; |
| 55 | +} |
| 56 | +.darkmode .admonition { |
| 57 | + --info-color-title: white !important; |
| 58 | + --success-color-title: white !important; |
| 59 | + --warning-color-title: white !important; |
| 60 | +} |
| 61 | +.darkmode input, |
| 62 | +.darkmode button, |
| 63 | +.darkmode select { |
| 64 | + color: white; |
| 65 | + border: 1px solid rgba(255, 255, 255, 0.3); |
64 | 66 | } |
65 | 67 |
|
| 68 | +.darkmode input, |
| 69 | +.darkmode button { |
| 70 | + background-color: #3b3b3b; |
| 71 | +} |
| 72 | + |
| 73 | +.darkmode select { |
| 74 | + background-color: rgba(0, 0, 0, 0.1); |
| 75 | +} |
| 76 | + |
| 77 | +.darkmode select:focus-visible { |
| 78 | + border-color: rgba(47, 50, 51, 0.3); |
| 79 | +} |
| 80 | + |
| 81 | +.darkmode option { |
| 82 | + background: rgb(23, 25, 25); |
| 83 | +} |
| 84 | + |
| 85 | +/* |
| 86 | + LAYOUT |
| 87 | + */ |
| 88 | + |
| 89 | +/* LAYOUT PRICIPAL */ |
| 90 | + |
66 | 91 | body { |
67 | 92 | margin: 0; |
68 | 93 | display: flex; |
@@ -240,7 +265,7 @@ footer a:hover { |
240 | 265 | } |
241 | 266 | } |
242 | 267 |
|
243 | | -/* Éléments de base HTML */ |
| 268 | +/* ÉLÉMENTS DE BASE HTML */ |
244 | 269 |
|
245 | 270 | a, |
246 | 271 | a:visited { |
|
0 commit comments