neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
Focus glass on a ::before layer: backdrop-filter on the panel pinned the reader inside it
3e00922 · gmorell · 2026-12-03 05:44
Message
{commit_body(@commit)}
Files changed
modified
assets/f/css/style.css
+16
−2
@@ -84,12 +84,26 @@ html[data-shader] #content > div {
| 84 | 84 | .neiam-glass (the me.neiam.org cards, matrix.neiam.org, Argo CD's login |
| 85 | 85 | box): the theme's base-100 at 72% over a 10px blur, so the pattern reads |
| 86 | 86 | as soft colour behind the page rather than detail under the text. The |
| 87 | − tiles, rails and reader inside keep their own opaque surfaces. */ | |
| 87 | + tiles, rails and reader inside keep their own opaque surfaces. | |
| 88 | + The glass is on a ::before layer, not the panel: a backdrop-filter makes | |
| 89 | + its element the containing block for position:fixed descendants, which | |
| 90 | + pinned the reader overlay inside the panel (a card stacked in a card). */ | |
| 88 | 91 | html[data-shader] #content[data-layout="focus"] > div { |
| 92 | + position: relative; | |
| 93 | + isolation: isolate; | |
| 94 | + background-color: transparent; | |
| 95 | + box-shadow: 0 1.5rem 4rem rgba(20, 0, 3, 0.45); | |
| 96 | +} | |
| 97 | +html[data-shader] #content[data-layout="focus"] > div::before { | |
| 98 | + content: ""; | |
| 99 | + position: absolute; | |
| 100 | + inset: 0; | |
| 101 | + z-index: -1; | |
| 102 | + border-radius: inherit; | |
| 103 | + pointer-events: none; | |
| 89 | 104 | background-color: var(--fallback-b1, oklch(var(--b1) / 0.72)); |
| 90 | 105 | -webkit-backdrop-filter: blur(10px) saturate(1.1); |
| 91 | 106 | backdrop-filter: blur(10px) saturate(1.1); |
| 92 | − box-shadow: 0 1.5rem 4rem rgba(20, 0, 3, 0.45); | |
| 93 | 107 | } |
| 94 | 108 | /* The Focus reader overlay's own panel gets the same glass; the posts in it |
| 95 | 109 | are base-200 cards and stay opaque. */ |
Parents: a712fa6