summaryrefslogtreecommitdiff
path: root/options/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'options/style.css')
-rw-r--r--options/style.css231
1 files changed, 231 insertions, 0 deletions
diff --git a/options/style.css b/options/style.css
new file mode 100644
index 0000000..90ad300
--- /dev/null
+++ b/options/style.css
@@ -0,0 +1,231 @@
1:root {
2 color-scheme: dark light;
3
4 --primary-hue: 192;
5 --secondary-hue: 41;
6 --saturation: 100%;
7 --lightness: 25%;
8
9 --primary: hsl(var(--primary-hue), var(--saturation), var(--lightness));
10 --secondary: hsl(var(--secondary-hue), var(--saturation), var(--lightness));
11}
12
13@font-face {
14 font-family: "M PLUS 2";
15 font-display: swap;
16 src: url("MPLUS2.ttf"), local("M PLUS 2");
17}
18
19@font-face {
20 font-family: "M PLUS 1 Code";
21 font-display: swap;
22 src: url("MPLUS1Code.ttf"), local("M PLUS 1 Code");
23}
24
25html {
26 height: 100%;
27 width: 100%;
28 font-family: "M PLUS 2", sans-serif;
29 line-height: 120%;
30 text-rendering: optimizeLegibility;
31}
32
33h1 {
34 font-size: 150%;
35 line-height: 110%;
36}
37
38h2 {
39 font-size: 115%;
40}
41
42h3 {
43 font-size: 100%;
44}
45
46b {
47 color: hsl(var(--secondary-hue), var(--saturation), 30%);
48}
49
50u {
51 text-decoration-color: var(--secondary);
52}
53
54pre, code {
55 font-family: "M PLUS 1 Code", monospace;
56 color: var(--secondary);
57 background-color: #eee;
58 border-radius: 4px;
59}
60
61body {
62 background: hsl(var(--primary-hue), 10%, 99%);
63 display: grid;
64 grid-template-rows: auto 1fr auto;
65 height: 100%;
66 width: 100%;
67}
68
69header {
70 display: flex;
71 flex-direction: row;
72 align-items: center; /* Vertical align */
73 background: hsl(var(--secondary-hue), 10%, 74%);
74 margin-bottom: 1rem;
75 border-bottom: 1px solid black;
76 padding: 0.5rem 0;
77
78 font-size: 125%;
79 line-height: 150%;
80
81 white-space: nowrap;
82 overflow: hidden;
83 text-overflow: ellipsis;
84}
85
86header * {
87 margin: 0.1rem 0.25rem auto;
88}
89
90header > * {
91 display: flex;
92 align-items: center;
93}
94
95header > .left {
96 justify-content: left;
97}
98
99header > .fill {
100 flex: 1;
101}
102
103header > .right {
104 justify-content: right;
105}
106
107header p {
108 margin: 0;
109}
110
111body > header svg,
112body > header img {
113 margin: 0.1rem;
114 height: 2.5rem;
115 width: 2.5rem;
116}
117
118footer {
119 display: flex;
120 background: hsl(var(--primary-hue), 10%, 94%);
121 flex-direction: column;
122 justify-content: center;
123 text-align: center;
124 font-height: 80%;
125 padding: 0.5rem;
126 border-top: 1px solid black;
127}
128
129#banners img {
130 height: 1.5rem;
131}
132
133a {
134 color: var(--secondary);
135 text-decoration: none;
136}
137
138a:hover {
139 color: var(--primary);
140 background-color: #eee;
141 border-radius: 4px;
142}
143
144a:visited {
145 color: var(--primary);
146}
147
148#banners a,
149header a,
150header a:visited {
151 color: currentcolor;
152}
153
154#banners a:hover,
155header a:hover {
156 background-color: transparent;
157 border-radius: 0;
158}
159
160fieldset {
161 background: hsl(var(--primary-hue), 10%, 90%);
162 display: flex;
163 flex-direction: row;
164 flex-wrap: wrap;
165}
166
167fieldset > * {
168 padding-right: 0.5rem;
169 border-right: 1px solid gray;
170 margin-right: 0.5rem;
171}
172
173fieldset > :last-child {
174 padding-right: initial;
175 border-right: initial;
176 margin-right: initial;
177}
178
179.field-row {
180 display: flex;
181 flex-direction: row;
182}
183
184.field-row label {
185 margin-right: 1rem;
186}
187
188@media (min-width: 1140px) {
189 body > main {
190 margin-left: 14rem;
191 margin-right: 4rem;
192 max-width: 52rem;
193 }
194}
195
196@media (min-width: 800px) and (max-width: 1140px) {
197 body > main {
198 margin-left: 6rem;
199 margin-right: 4rem;
200 max-width: 52rem;
201 }
202}
203
204@media (max-width: 800px) {
205 body > main {
206 margin-left: 1rem;
207 margin-right: 1rem;
208 }
209}
210
211@media (prefers-color-scheme: dark) {
212 body {
213 background: hsl(var(--primary-hue), 10%, 17%);
214 }
215
216 fieldset {
217 background: hsl(var(--primary-hue), 10%, 17%);
218 }
219
220 header {
221 background: hsl(var(--secondary-hue), 10%, 12%);
222 }
223
224 footer {
225 background: hsl(var(--primary-hue), 10%, 15%);
226 }
227
228 b {
229 color: hsl(var(--secondary-hue), var(--saturation), 75%);
230 }
231}