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