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: #2f2f2f;
 42    background: white;
 43    font-family: 'Atkinson Hyperlegible', sans-serif;
 44    scroll-behavior: smooth;
 45}
 46
 47a {
 48    color: #0640e0;
 49}
 50
 51a:visited {
 52    color: #0640e0;
 53}
 54
 55.two_column {
 56    display: flex;
 57/*    gap: 30px;*/
 58    flex-direction: row;
 59    margin: auto auto;
 60    max-width: 1040px;
 61    height: 92vh;
 62}
 63
 64.two_column > * > * {
 65    margin: 20px;
 66}
 67
 68.projects, .release_notes {
 69    overflow: scroll;
 70    flex: 0 0 540px;
 71}
 72
 73.release_note.card:not(:target) { display: none;  }
 74.release_note.card:target       { display: block; }
 75
 76.return_to_project {
 77    display: none;
 78}
 79
 80.card {
 81    border: 2px solid #2f2f2f;
 82    background: #f8f8f8;
 83    border-radius: 5px;
 84    margin: 20px;
 85    padding: 20px 20px 0 20px;
 86    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
 87}
 88
 89.card > h3 {
 90    margin-top: 0;
 91}
 92
 93.card > p:first-of-type {
 94    margin-bottom: 16px;
 95}
 96
 97.card > p:last-of-type {
 98    margin-bottom: 16px;
 99}
100
101.close, .delete { float: right; }
102.delete { font-size: 12px; }
103.close > a {
104    text-decoration: none;
105    color: #2f2f2f;
106}
107
108.card > pre, .card > div > pre { overflow: scroll; }
109
110.wrapper {
111    max-width: 500px;
112    margin: auto auto;
113}
114
115header {
116    width: 100%;
117    max-width: 1040px;
118    margin: 0 auto;
119    display: flex;
120    flex-wrap: wrap;
121    justify-content: space-between;
122    align-content: center;
123}
124
125header h1 {
126    margin-block: 1.2rem;
127}
128
129header nav {
130    display: flex;
131    justify-content: flex-end;
132    align-content: baseline;
133    flex: 1 1 auto;
134    margin-block: 1.2rem;
135}
136
137header nav a,
138header nav a:visited {
139    display: block;
140    text-decoration: none;
141    font-size: 1.2rem;
142    line-height: 1;
143    color: hsl(100, 95%, 30%);
144    border: 1px solid hsl(100, 95%, 30%);
145    background-color: transparent;
146    border-radius: 0.5rem;
147    padding: 0.6rem 0.5rem 0.4rem;
148}
149
150header nav a + a {
151    margin-inline-start: 0.5rem;
152}
153
154header nav a:last-of-type,
155header nav a:last-of-type:visited {
156    color: hsl(350, 100%, 65%);
157    border-color: hsl(350, 100%, 65%);
158    background-color: transparent;
159}
160
161@media (prefers-color-scheme: dark) {
162    html {
163        background: #171717;
164        color: #ccc;
165    }
166
167    a {
168        color: #5582ff;
169    }
170
171    a:visited {
172        color: #5582ff;
173    }
174
175    .card {
176        border: 2px solid #424242;
177        background: #1c1c1c;
178    }
179
180    .close > a {
181        color: #ccc;
182    }
183}
184
185@media only screen and (max-width: 1000px) {
186    div[id] {
187        display: block;
188    }
189
190    .two_column {
191        flex-direction: column;
192    }
193
194    .projects, .release_notes {
195        overflow: visible;
196        flex: 0 0 100%;
197    }
198
199    .return_to_project {
200        display: block;
201    }
202
203    .close {
204        display: none;
205    }
206}
207