diff options
author | PortableProgrammer <[email protected]> | 2025-01-11 21:40:24 +0000 |
---|---|---|
committer | PortableProgrammer <[email protected]> | 2025-01-11 21:40:24 +0000 |
commit | 7bc78e3a51e862a86ba79465caada9093154fec8 (patch) | |
tree | c816f8fd2a74a2622496047806e89d23a5847dda | |
parent | 1c02073d7be1d04d83825193d6c9c8458e70b8a3 (diff) |
Tweak CSS for `spoiler` / `nsfw` in card view and `max-height` in `card` view.
-rw-r--r-- | src/public/styles.css | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/public/styles.css b/src/public/styles.css index 22ee99f..71ad878 100644 --- a/src/public/styles.css +++ b/src/public/styles.css | |||
@@ -199,8 +199,12 @@ nav { | |||
199 | 199 | ||
200 | .image-viewer { | 200 | .image-viewer { |
201 | position: relative; | 201 | position: relative; |
202 | padding: 0.3rem; | 202 | margin: 0.9rem; |
203 | padding-bottom: 0.3rem; | 203 | margin-bottom: 0.3rem; |
204 | } | ||
205 | |||
206 | .image-viewer:not(:has(details)) { | ||
207 | margin: unset; | ||
204 | } | 208 | } |
205 | 209 | ||
206 | .image-viewer > img { | 210 | .image-viewer > img { |
@@ -281,15 +285,11 @@ summary::before { | |||
281 | border-radius: var(--border-radius-preview); | 285 | border-radius: var(--border-radius-preview); |
282 | } | 286 | } |
283 | 287 | ||
284 | .image-viewer { | ||
285 | padding: unset; | ||
286 | } | ||
287 | |||
288 | .image-viewer img, | 288 | .image-viewer img, |
289 | .image-viewer video { | 289 | .image-viewer video { |
290 | border-radius: var(--border-radius-media); | 290 | border-radius: var(--border-radius-media); |
291 | 291 | ||
292 | max-height: 40vh; | 292 | max-height: 50vh; |
293 | max-width: 95%; | 293 | max-width: 95%; |
294 | 294 | ||
295 | display: block; | 295 | display: block; |
@@ -380,7 +380,7 @@ form { | |||
380 | .image-viewer img, | 380 | .image-viewer img, |
381 | .image-viewer video | 381 | .image-viewer video |
382 | { | 382 | { |
383 | max-height: 50vh; | 383 | max-height: 45vh; |
384 | } | 384 | } |
385 | .image-viewer a { | 385 | .image-viewer a { |
386 | font-size: 1rem; | 386 | font-size: 1rem; |
@@ -426,7 +426,7 @@ form { | |||
426 | .image-viewer img, | 426 | .image-viewer img, |
427 | .image-viewer video | 427 | .image-viewer video |
428 | { | 428 | { |
429 | max-height: 30vh; | 429 | max-height: 35vh; |
430 | } | 430 | } |
431 | .media-preview a { | 431 | .media-preview a { |
432 | font-size: 2rem; | 432 | font-size: 2rem; |
@@ -470,7 +470,7 @@ form { | |||
470 | .image-viewer img, | 470 | .image-viewer img, |
471 | .image-viewer video | 471 | .image-viewer video |
472 | { | 472 | { |
473 | max-height: 20vh; | 473 | max-height: 30vh; |
474 | } | 474 | } |
475 | .sort-opts, | 475 | .sort-opts, |
476 | .view-opts { | 476 | .view-opts { |
@@ -667,11 +667,6 @@ a { | |||
667 | text-align: center; | 667 | text-align: center; |
668 | } | 668 | } |
669 | 669 | ||
670 | .gallery img { | ||
671 | width: auto; | ||
672 | max-height: 500px; | ||
673 | } | ||
674 | |||
675 | .post-title { | 670 | .post-title { |
676 | margin-top: 5px; | 671 | margin-top: 5px; |
677 | } | 672 | } |