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
97h2,
98p {
99 margin-block-start: 0;
100 margin-block-end: 1rem;
101}
102
103.two_column {
104 display: flex;
105 gap: 20px;
106 flex-direction: row;
107}
108
109.two_column > * > * {
110 margin: 20px 0;
111}
112
113.projects, .release_notes {
114 flex: 1 1 50%;
115}
116
117.release_note.card:not(:target) { display: none; }
118.release_note.card:target { display: block; }
119
120.return_to_project {
121 display: none;
122}
123
124.card {
125 position: relative;
126 border: 2px solid var(--card-border);
127 background: var(--card-background);
128 border-radius: 5px;
129 margin: 20px 0;
130 padding: 20px 20px 0 20px;
131 box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
132}
133
134.card > h3 {
135 margin-top: 0;
136}
137
138.card > p:first-of-type {
139 margin-bottom: 16px;
140}
141
142.card > p:last-of-type {
143 margin-bottom: 16px;
144}
145
146.delete {
147 float: right;
148 font-size: 12px;
149}
150
151.close {
152 position: absolute;
153 top: 2px;
154 right: 3px;
155}
156
157.close > a {
158 font-size: 1em;
159 text-decoration: none;
160 color: var(--card-border);
161}
162
163@media (prefers-color-scheme: dark) {
164 .close > a {
165 color: var(--text);
166 }
167}
168
169.card > pre, .card > div > pre { overflow: scroll; }
170
171header .wrapper {
172 display: flex;
173 flex-wrap: wrap;
174 justify-content: space-between;
175 align-content: center;
176}
177
178header h1 {
179 margin-block: 1.2rem;
180}
181
182header nav {
183 display: flex;
184 justify-content: flex-end;
185 align-content: baseline;
186 flex: 1 1 auto;
187 margin-block: 1.2rem;
188}
189
190header nav a,
191header nav a:visited {
192 display: block;
193 text-decoration: underline;
194 color: var(--text);
195 font-size: 1.2rem;
196 font-weight: bold;
197 line-height: 1;
198 border-radius: 0.5rem;
199 padding: 0.6rem 0.5rem 0.4rem;
200}
201
202header nav a + a {
203 margin-inline-start: 1rem;
204}
205
206header nav a:last-of-type {
207 padding-inline-end: 0;
208}
209
210header nav a[href="/new"],
211header nav a[href="/new"]:visited {
212 text-decoration: none;
213 color: var(--action);
214 border-color: var(--action);
215 background-color: transparent;
216 border: 1px solid var(--action);
217}
218
219
220footer .wrapper {
221 display: flex;
222 flex-wrap: wrap;
223 justify-content: space-between;
224 align-content: center;
225}
226
227@media only screen and (max-width: 1000px) {
228 div[id] {
229 display: block;
230 }
231
232 .two_column {
233 flex-direction: column;
234 }
235
236 .projects, .release_notes {
237 overflow: visible;
238 flex: 1 1 100%;
239 }
240
241 .return_to_project {
242 display: block;
243 }
244
245 .close {
246 display: none;
247 }
248}
249
250
251/* Forms */
252form {
253 width: 100%;
254 max-width: 50ch;
255 margin: 0 auto;
256 display: flex;
257 flex-direction: column;
258}
259
260form label {
261 font-weight: bold;
262}
263
264.input {
265 display: flex;
266 flex-direction: column;
267 margin-block-end: 1rem;
268}
269
270.select-release .input {
271 display: block;
272}
273
274input.button {
275 line-height: 1;
276 border-radius: 0.5rem;
277 padding: 0.6rem 0.5rem 0.4rem;
278 font-weight: bold;
279}
280
281/* End Forms */
282
283@media (prefers-reduced-motion) {
284 *, *::before, *::after {
285 animation-duration: 0s !important;
286 transition: none !important;
287 scroll-behavior: auto !important;
288 }
289}