aboutsummaryrefslogtreecommitdiff
path: root/src/public
diff options
context:
space:
mode:
Diffstat (limited to 'src/public')
-rw-r--r--src/public/styles.css179
1 files changed, 179 insertions, 0 deletions
diff --git a/src/public/styles.css b/src/public/styles.css
index 3db6790..edf0042 100644
--- a/src/public/styles.css
+++ b/src/public/styles.css
@@ -43,6 +43,10 @@ body {
43 color: var(--text-color); 43 color: var(--text-color);
44} 44}
45 45
46body:has(details.card[open]) {
47 overflow: hidden;
48}
49
46main { 50main {
47 display: flex; 51 display: flex;
48 flex-direction: column; 52 flex-direction: column;
@@ -127,6 +131,120 @@ nav {
127 font-size: 0.9rem; 131 font-size: 0.9rem;
128} 132}
129 133
134.post-container.card {
135 border: 1px solid var(--bg-color-muted);
136 border-radius: 16px;
137 display: block;
138}
139
140.post-text.card {
141 padding: 0.9rem;
142 padding-top: 0.3rem;
143}
144
145.self-text-overflow.card {
146 /* For spoiler positioning */
147 position: relative;
148 padding-top: 0.3rem;
149 max-height: 10vh;
150 overflow: hidden;
151 overflow-wrap: break-word;
152 display: block;
153}
154
155.self-text.card {
156 overflow: hidden;
157 display: -webkit-box;
158 /* Safari on iOS <= 17 */
159 -webkit-box-orient: vertical;
160 -webkit-line-clamp: 3;
161 line-clamp: 3;
162 text-overflow: ellipsis;
163}
164
165.media-preview.card {
166 position: relative;
167 padding: 0.3rem;
168 padding-bottom: 0.3rem;
169}
170
171.media-preview.card > img {
172 cursor: pointer;
173}
174
175.image-viewer.card {
176 /* Safari on iOS <= 17 */
177 -webkit-backdrop-filter: blur(2rem);
178 backdrop-filter: blur(2rem);
179 position: fixed;
180 inset: 0;
181 box-sizing: border-box;
182 display: flex;
183 height: 100%;
184 width: 100%;
185 justify-content: center;
186 align-items: center;
187 z-index: 100;
188}
189
190.image-viewer.card > button {
191 position: absolute;
192 top: 0;
193 right: 0;
194 margin: 1rem;
195 padding: initial;
196 height: 3rem;
197 width: 3rem;
198 font-size: 2rem;
199 border-radius: 100%;
200 cursor: pointer;
201}
202
203.image-viewer.card > a > img {
204 max-width: 100vw;
205 max-height: 100vh;
206 width: auto;
207 height: auto;
208}
209
210.gallery.card {
211 align-items: center;
212}
213
214.gallery-item.card > a > img {
215 max-width: 95vw;
216 max-height: 95vh;
217 width: auto;
218 height: auto;
219}
220
221.spoiler {
222 background-color: rbga(var(--bg-color-muted), 0.2);
223 /* Safari on iOS <= 17 */
224 -webkit-backdrop-filter: blur(3rem);
225 backdrop-filter: blur(3rem);
226 border-radius: 4px;
227
228 position: absolute;
229 top: 0;
230 left: 0;
231
232 box-sizing: border-box;
233 display: flex;
234 height: 100%;
235 width: 100%;
236
237 justify-content: center;
238 align-items: center;
239
240 cursor: pointer;
241}
242
243.gallery-item-idx.card,
244.spoiler > h2 {
245 text-shadow: 0.1rem 0.1rem 1rem var(--bg-color-muted);
246}
247
130.comments-container { 248.comments-container {
131 font-size: 0.9rem; 249 font-size: 0.9rem;
132} 250}
@@ -171,6 +289,29 @@ summary::before {
171 height: 4rem; 289 height: 4rem;
172} 290}
173 291
292.media-preview.card img,
293.media-preview.card video {
294 border-radius: 16px;
295
296 max-height: 40vh;
297 max-width: 100%;
298
299 display: block;
300 width: initial;
301 height: initial;
302 margin-left: auto;
303 margin-right: auto;
304 margin-bottom: 1rem;
305
306 object-fit: fill;
307}
308
309.media-preview.card a {
310 font-size: 1.5rem;
311 margin: 1rem;
312 padding: initial;
313}
314
174.media-preview a { 315.media-preview a {
175 font-size: 2rem; 316 font-size: 2rem;
176 text-decoration: none; 317 text-decoration: none;
@@ -225,6 +366,20 @@ form {
225 width: 5rem; 366 width: 5rem;
226 height: 5rem; 367 height: 5rem;
227 } 368 }
369 .media-preview.card img,
370 .media-preview.card video
371 {
372 max-height: 50vh;
373 }
374 .media-preview.card a {
375 font-size: 1rem;
376 margin: 0.7rem;
377 padding: initial;
378 }
379 .self-text.card {
380 -webkit-line-clamp: 4;
381 line-clamp: 4;
382 }
228 .post-author { 383 .post-author {
229 display: inline 384 display: inline
230 } 385 }
@@ -252,10 +407,24 @@ form {
252 width: 5rem; 407 width: 5rem;
253 height: 5rem; 408 height: 5rem;
254 } 409 }
410 .media-preview.card img,
411 .media-preview.card video
412 {
413 max-height: 30vh;
414 }
255 .media-preview a { 415 .media-preview a {
256 font-size: 2rem; 416 font-size: 2rem;
257 padding: 2rem; 417 padding: 2rem;
258 } 418 }
419 .media-preview.card a {
420 font-size: 1rem;
421 margin: 0.5rem;
422 padding: initial;
423 }
424 .self-text.card {
425 -webkit-line-clamp: 6;
426 line-clamp: 6;
427 }
259 .post-author { 428 .post-author {
260 display: inline 429 display: inline
261 } 430 }
@@ -277,6 +446,11 @@ form {
277 flex: 1 1 40%; 446 flex: 1 1 40%;
278 width: 40%; 447 width: 40%;
279 } 448 }
449 .media-preview.card img,
450 .media-preview.card video
451 {
452 max-height: 20vh;
453 }
280 .sort-opts { 454 .sort-opts {
281 grid-template-columns: repeat(9, 1fr); 455 grid-template-columns: repeat(9, 1fr);
282 grid-template-rows: repeat(1, 1fr); 456 grid-template-rows: repeat(1, 1fr);
@@ -345,6 +519,11 @@ form {
345 text-decoration: none; 519 text-decoration: none;
346} 520}
347 521
522.title-container.card > a {
523 font-size: 1.125rem;
524 font-weight: bold;
525}
526
348.title-container > a:hover { 527.title-container > a:hover {
349 text-decoration: underline; 528 text-decoration: underline;
350} 529}