1/*
2 * SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
3 *
4 * SPDX-License-Identifier: CC0-1.0
5 */
6
7@font-face {
8 font-family: 'Atkinson Hyperlegible';
9 font-weight: normal;
10 font-style: normal;
11 font-display: swap;
12 src: url("/static/fonts/regular-102a.woff2") format("woff2");
13}
14
15@font-face {
16 font-family: 'Atkinson Hyperlegible';
17 font-weight: normal;
18 font-style: italic;
19 font-display: swap;
20 src: url("/static/fonts/regular-102a.woff2") format("woff2");
21}
22
23@font-face {
24 font-family: 'Atkinson Hyperlegible';
25 font-weight: bold;
26 font-style: normal;
27 font-display: swap;
28 src: url("/static/fonts/bold-102a.woff2") format("woff2");
29}
30
31@font-face {
32 font-family: 'Atkinson Hyperlegible';
33 font-weight: bold;
34 font-style: italic;
35 font-display: swap;
36 src: url("/static/fonts/bolditalic-102a.woff2") format("woff2");
37}
38
39html {
40 margin: auto auto;
41 color: var(--text);
42 background: var(--page-background);
43 font-family: 'Atkinson Hyperlegible', sans-serif;
44 scroll-behavior: smooth;
45}
46
47a {
48 color: var(--link);
49}
50
51a:visited {
52 color: var(--link);
53}
54
55/* Grid layout */
56body {
57 width: auto;
58 min-height: 100vh;
59}
60
61@supports (display: grid) {
62 body {
63 display: grid;
64 grid-template-rows: [header] auto [main] 1fr [footer] auto;
65 }
66
67 body > header,
68 body > main,
69 body > footer {
70 display: grid;
71 grid-template-columns:
72 [page-start] minmax(1em, 1fr) [content] minmax(240px, 100ch) [page-end] minmax(1em, 1fr);
73 }
74
75 body > main {
76 grid-template-rows: [top-gutter] 1em [content] 1fr [bottom-gutter] 1em;
77 }
78
79 body > footer {
80 grid-template-rows: [top-gutter] 2em [content] 1fr [bottom-gutter] 0.5em;
81 }
82
83 body > header {
84 grid-template-rows: [top-gutter] 0.5em [content] 1fr [bottom-gutter] 0.5em;
85 }
86
87 header .wrapper,
88 main .wrapper,
89 footer .wrapper {
90 grid-row: content;
91 grid-column: content;
92 }
93}
94
95/* End grid layout */
96
97h3 {
98 margin-block: 1rem 0.5rem;
99}
100
101h2,
102p {
103 margin-block-start: 0;
104 margin-block-end: 1rem;
105}
106
107.two_column {
108 display: flex;
109 gap: 20px;
110 flex-direction: row;
111}
112
113.two_column > * > * {
114 margin: 20px 0;
115}
116
117.projects, .release_notes {
118 flex: 1 1 50%;
119}
120
121.release_note.card:not(:target) { display: none; }
122.release_note.card:target { display: block; }
123
124.return_to_project {
125 display: none;
126}
127
128.card {
129 position: relative;
130 border: 2px solid var(--card-border);
131 background: var(--card-background);
132 border-radius: 5px;
133 margin: 20px 0;
134 padding: 20px 20px 0 20px;
135 box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
136}
137
138.card > h3 {
139 margin-top: 0;
140}
141
142.card > p:first-of-type {
143 margin-bottom: 16px;
144}
145
146.card > p:last-of-type {
147 margin-bottom: 16px;
148}
149
150.delete {
151 float: right;
152 font-size: 12px;
153}
154
155.close {
156 position: absolute;
157 top: 2px;
158 right: 3px;
159}
160
161.close > a {
162 font-size: 1em;
163 text-decoration: none;
164 color: var(--card-border);
165}
166
167@media (prefers-color-scheme: dark) {
168 .close > a {
169 color: var(--text);
170 }
171}
172
173.card > pre, .card > div > pre { overflow: scroll; }
174
175header .wrapper {
176 display: flex;
177 flex-wrap: wrap;
178 justify-content: space-between;
179 align-content: center;
180}
181
182header h1 {
183 margin-block: 1.2rem;
184 color: var(--link);
185}
186
187header h1 a {
188 text-decoration: none;
189}
190
191header h1 a:hover {
192 border-bottom: 4px solid var(--link);
193}
194
195header nav {
196 display: flex;
197 justify-content: flex-end;
198 align-content: baseline;
199 flex: 1 1 auto;
200 margin-block: 1.2rem;
201}
202
203header nav a,
204header nav a:visited {
205 display: block;
206 text-decoration: underline;
207 color: var(--text);
208 font-size: 1.2rem;
209 font-weight: bold;
210 line-height: 1;
211 border-radius: 0.5rem;
212 padding: 0.6rem 0.5rem 0.4rem;
213}
214
215header nav a + a {
216 margin-inline-start: 1rem;
217}
218
219header nav a:last-of-type {
220 padding-inline-end: 0;
221}
222
223header nav a[href="/new"],
224header nav a[href="/new"]:visited {
225 text-decoration: none;
226 color: var(--action);
227 border-color: var(--action);
228 background-color: transparent;
229 border: 1px solid var(--action);
230}
231
232
233footer .wrapper {
234 display: flex;
235 flex-wrap: wrap;
236 justify-content: space-between;
237 align-content: center;
238}
239
240@media only screen and (max-width: 1000px) {
241 div[id] {
242 display: block;
243 }
244
245 .two_column {
246 flex-direction: column;
247 }
248
249 .projects, .release_notes {
250 overflow: visible;
251 flex: 1 1 100%;
252 }
253
254 .return_to_project {
255 display: block;
256 }
257
258 .close {
259 display: none;
260 }
261}
262
263
264/* Forms */
265form {
266 width: 100%;
267 max-width: 50ch;
268 margin: 0 auto;
269 display: flex;
270 flex-direction: column;
271}
272
273form label {
274 font-weight: bold;
275 padding-block-end: 0.2rem;
276}
277
278fieldset {
279 position: relative;
280 border: 0 none;
281 background-color: var(--card-background);
282 margin-inline: -1px; /* Line up with input boxes */
283 margin-block-start: 1rem;
284 padding-inline: 1rem;
285}
286
287fieldset legend {
288 position: absolute;
289 top: -1.5rem;
290 left: 0;
291 margin-inline: 1px;
292 padding: 0;
293 font-weight: bold;
294}
295
296fieldset h4 {
297 margin-inline-start: 0.25rem;
298 margin-block: 0.5rem;
299}
300
301.input {
302 display: flex;
303 flex-direction: column;
304 margin-block-end: 1rem;
305}
306
307.input-wrapper label {
308 padding-inline-start: 0.5rem;
309}
310
311.select-release .input {
312 display: block;
313}
314
315.button {
316 line-height: 1;
317 padding: 0.6rem 0.5rem 0.4rem;
318 font-weight: bold;
319 font-size: 1.2rem;
320 color: var(--action);
321 background-color: var(--page-background);
322 border: 1px solid var(--action);
323 border-radius: 0.5rem;
324 cursor: pointer;
325}
326
327form.login .button {
328 margin-block-start: 0.75rem;
329}
330
331/* End Forms */
332
333@media (prefers-reduced-motion) {
334 *, *::before, *::after {
335 animation-duration: 0s !important;
336 transition: none !important;
337 scroll-behavior: auto !important;
338 }
339}