|
33 | 33 | /* CHAIN BACKGROUND ICON (root layout) |
34 | 34 | * |
35 | 35 | * The chain logo (FLR/SGB/AVAX) renders in a child .background-image |
36 | | - * element rather than on .background itself, so we can apply a filter |
37 | | - * that desaturates and darkens just the image without affecting content. |
38 | | - * isolation: isolate keeps the negative z-index contained within the |
39 | | - * .background stacking context — without it, z-index: -1 would push the |
| 36 | + * element rather than on .background itself, so .background can own the |
| 37 | + * stacking context. isolation: isolate keeps the negative z-index |
| 38 | + * contained within .background — without it, z-index: -1 would push the |
40 | 39 | * image behind <body> and disappear. |
41 | 40 | */ |
42 | 41 |
|
|
47 | 46 |
|
48 | 47 | .background-image { |
49 | 48 | position: fixed; |
50 | | - inset: 0; |
| 49 | + top: 0; |
| 50 | + left: 0; |
| 51 | + right: 0; |
| 52 | + /* Pin to the largest viewport height (URL-bar-hidden state) so the |
| 53 | + centered SVG doesn't shift as mobile browsers show/hide their |
| 54 | + chrome during scroll. lvh > 100% on iOS/Android while the bar is |
| 55 | + visible — the element overflows slightly off-screen at the bottom, |
| 56 | + which is fine since z-index: -1 + pointer-events: none. */ |
| 57 | + height: 100lvh; |
51 | 58 | background-size: auto 400px; |
52 | 59 | background-position: center; |
53 | 60 | background-repeat: no-repeat; |
54 | | - filter: grayscale(1) brightness(0.35); |
55 | | - opacity: 0.5; |
| 61 | + opacity: 0.30; |
56 | 62 | z-index: -1; |
57 | 63 | pointer-events: none; |
58 | 64 | } |
59 | 65 |
|
| 66 | +/* Per-chain size overrides — each symbol has different padding inside |
| 67 | + its viewBox, so we tune render size per protocol so the three read at |
| 68 | + a similar visual weight. */ |
| 69 | +.background-image.bg-songbird { |
| 70 | + background-size: auto 600px; |
| 71 | +} |
| 72 | + |
| 73 | +.background-image.bg-avalanche { |
| 74 | + background-size: auto 520px; |
| 75 | +} |
| 76 | + |
60 | 77 | /* NOTIFICATION BLOCK */ |
61 | 78 |
|
62 | 79 | .notification-block { |
|
0 commit comments