|
3 | 3 | @import 'tailwindcss/utilities'; |
4 | 4 |
|
5 | 5 | html { |
6 | | - padding: env(safe-area-inset); |
| 6 | + padding-left: env(safe-area-inset-left); |
| 7 | + padding-right: env(safe-area-inset-right); |
7 | 8 | } |
8 | 9 |
|
9 | 10 | html, |
@@ -76,13 +77,30 @@ code { |
76 | 77 | height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)); |
77 | 78 | overflow: hidden; |
78 | 79 | max-height: -webkit-fill-available; |
79 | | - /* background: radial-gradient(ellipse at bottom, #28355E 0%, #06070d 100%); */ |
80 | 80 | background: radial-gradient(ellipse at bottom, var(--er-ranked-bg-end) 0%, var(--er-nav-gradient-start) 100%); |
81 | 81 | background-size: 100% 100%; |
82 | 82 | background-repeat: no-repeat; |
83 | 83 | animation: bg-pulse 10s infinite ease-in-out; |
84 | 84 | } |
85 | 85 |
|
| 86 | +/* Ranked list / view mode: extend the container through the full |
| 87 | +*/ |
| 88 | +.normal-bg.view-mode { |
| 89 | + padding-bottom: 0; |
| 90 | + height: 100lvh; |
| 91 | + max-height: none; |
| 92 | + min-height: 100lvh; |
| 93 | + overflow: hidden; |
| 94 | +} |
| 95 | + |
| 96 | +/* Override the --vh-based height cap in view mode so the container |
| 97 | + can extend behind the iOS Safari toolbar */ |
| 98 | +.site-content.view-mode { |
| 99 | + max-height: none; |
| 100 | + min-height: 100lvh; |
| 101 | + height: 100lvh; |
| 102 | +} |
| 103 | + |
86 | 104 | /* GRADIENT BACKGROUNDS - THEMED */ |
87 | 105 | .choice-background { |
88 | 106 | background: linear-gradient(155deg, var(--er-choice-bg-1), var(--er-choice-bg-2), var(--er-choice-bg-3)), url(/noise.svg); |
@@ -432,6 +450,12 @@ code { |
432 | 450 | background: linear-gradient(to bottom, var(--er-ranked-bg-start), var(--er-ranked-bg-end)); |
433 | 451 | } |
434 | 452 |
|
| 453 | +/* In view mode, add bottom padding inside the scrollable list so |
| 454 | + the last card isn't stuck behind the iOS Safari toolbar */ |
| 455 | +.view-mode .ranked-items-background { |
| 456 | + padding-bottom: calc(env(safe-area-inset-bottom) + 1rem); |
| 457 | +} |
| 458 | + |
435 | 459 | .ranked-bar-background { |
436 | 460 | /* Empty - can add themed gradient if needed */ |
437 | 461 | } |
|
0 commit comments