styles.css

  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}
185
186header nav {
187	display: flex;
188	justify-content: flex-end;
189	align-content: baseline;
190	flex: 1 1 auto;
191	margin-block: 1.2rem;
192}
193
194header nav a,
195header nav a:visited {
196	display: block;
197	text-decoration: underline;
198	color: var(--text);
199	font-size: 1.2rem;
200	font-weight: bold;
201	line-height: 1;
202	border-radius: 0.5rem;
203	padding: 0.6rem 0.5rem 0.4rem;
204}
205
206header nav a + a {
207	margin-inline-start: 1rem;
208}
209
210header nav a:last-of-type {
211	padding-inline-end: 0;
212}
213
214header nav a[href="/new"],
215header nav a[href="/new"]:visited {
216	text-decoration: none;
217	color: var(--action);
218	border-color: var(--action);
219	background-color: transparent;
220	border: 1px solid var(--action);
221}
222
223
224footer .wrapper {
225	display: flex;
226	flex-wrap: wrap;
227	justify-content: space-between;
228	align-content: center;
229}
230
231@media only screen and (max-width: 1000px) {
232	div[id] {
233		display: block;
234	}
235
236	.two_column {
237		flex-direction: column;
238	}
239
240	.projects, .release_notes {
241		overflow: visible;
242		flex: 1 1 100%;
243	}
244
245	.return_to_project {
246		display: block;
247	}
248
249	.close {
250		display: none;
251	}
252}
253
254
255/* Forms */
256form {
257	width: 100%;
258	max-width: 50ch;
259	margin: 0 auto;
260	display: flex;
261	flex-direction: column;
262}
263
264form label {
265	font-weight: bold;
266	padding-block-end: 0.2rem;
267}
268
269fieldset {
270	border: 0 none;
271	background-color: var(--card-background);
272	margin-inline: -0.9rem;
273}
274
275fieldset + fieldset {
276	margin-block-start: 0.5rem;
277}
278
279fieldset legend {
280	margin-inline: 0;
281	margin-block: 1rem 0.2rem;
282}
283
284.input {
285	display: flex;
286	flex-direction: column;
287	margin-block-end: 1rem;
288}
289
290.input-wrapper label {
291	padding-inline-start: 0.5rem;
292}
293
294.select-release .input {
295  display: block;
296}
297
298input.button {
299	line-height: 1;
300	padding: 0.6rem 0.5rem 0.4rem;
301	font-weight: bold;
302	font-size: 1.2rem;
303	color: var(--page-background);
304	background-color: var(--action);
305	border: 1px solid var(--card-border);
306	border-radius: 0.5rem;
307	cursor: pointer;
308}
309
310@media (prefers-color-scheme: dark) {
311	input.button {
312		color: var(--action);
313		background-color: var(--page-background);
314		border: 1px solid var(--action);
315	}
316}
317
318form.login .button {
319	margin-block-start: 1.1rem;
320}
321
322/* End Forms */
323
324@media (prefers-reduced-motion) {
325  *, *::before, *::after {
326    animation-duration: 0s !important;
327    transition: none !important;
328    scroll-behavior: auto !important;
329  }
330}