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