|
4 | 4 | <meta charset="UTF-8"> |
5 | 5 | <title>Lavalink Config Server</title> |
6 | 6 | <link rel="icon" href="lavalink.svg" type="image/png"> |
| 7 | + <meta name="darkreader-lock"> |
7 | 8 | <style> |
| 9 | + :root { |
| 10 | + --font-family: Arial; |
| 11 | + --button-border-radius: 20px; |
| 12 | + --transition-duration: 0.3s; |
| 13 | + } |
| 14 | + |
| 15 | + @media (prefers-color-scheme: dark) { |
| 16 | + :root { |
| 17 | + --background-color: #1e1e1e; |
| 18 | + --text-color: #ffffff; |
| 19 | + --button-bg: #ff624a; |
| 20 | + --button-hover-bg: #e65c00; |
| 21 | + } |
| 22 | + } |
| 23 | + |
| 24 | + @media (prefers-color-scheme: light) { |
| 25 | + :root { |
| 26 | + --background-color: #ffffff; |
| 27 | + --text-color: #000000; |
| 28 | + --button-bg: #ff624a; |
| 29 | + --button-hover-bg: #e65c00; |
| 30 | + } |
| 31 | + } |
| 32 | + |
8 | 33 | body { |
9 | | - background-color: #ff624a; |
10 | | - color: #ffffff; |
11 | | - font-family: Arial, sans-serif; |
| 34 | + background-color: var(--background-color); |
| 35 | + color: var(--text-color); |
| 36 | + font-family: var(--font-family), sans-serif; |
12 | 37 | text-align: center; |
13 | 38 | padding-top: 100px; |
14 | | - transition: background-color 0.3s ease, color 0.3s ease; |
| 39 | + transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease; |
15 | 40 | } |
| 41 | + |
16 | 42 | img { |
17 | 43 | width: 150px; |
18 | 44 | margin-bottom: 30px; |
19 | 45 | } |
| 46 | + |
20 | 47 | h1 { |
21 | 48 | font-size: 36px; |
22 | 49 | margin-bottom: 20px; |
23 | 50 | } |
| 51 | + |
24 | 52 | a.button { |
25 | 53 | display: inline-block; |
26 | 54 | padding: 12px 24px; |
27 | | - background-color: #ff624a; |
| 55 | + background-color: var(--button-bg); |
28 | 56 | color: #ffffff; |
29 | 57 | text-decoration: none; |
30 | | - border-radius: 20px; |
| 58 | + border-radius: var(--button-border-radius); |
31 | 59 | font-size: 18px; |
32 | | - transition: background-color 0.3s ease, color 0.3s ease; |
| 60 | + transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease; |
33 | 61 | } |
34 | | - a.button:hover { |
35 | | - background-color: #e65c00; |
36 | | - } |
37 | | - @media (prefers-color-scheme: dark) { |
38 | | - body { |
39 | | - background-color: #1e1e1e; |
40 | | - color: #ffffff; |
41 | | - } |
42 | | - |
43 | | - a.button { |
44 | | - background-color: #ff624a; |
45 | | - color: #ffffff; |
46 | | - } |
47 | | - |
48 | | - a.button:hover { |
49 | | - background-color: #e65c00; |
50 | | - } |
51 | | - } |
52 | | - @media (prefers-color-scheme: light) { |
53 | | - body { |
54 | | - background-color: #ffffff; |
55 | | - color: #000000; |
56 | | - } |
57 | 62 |
|
58 | | - a.button { |
59 | | - background-color: #ff624a; |
60 | | - color: #ffffff; |
61 | | - } |
62 | | - |
63 | | - a.button:hover { |
64 | | - background-color: #e65c00; |
65 | | - } |
| 63 | + a.button:hover { |
| 64 | + background-color: var(--button-hover-bg); |
66 | 65 | } |
67 | 66 | </style> |
68 | 67 | </head> |
|
0 commit comments