neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
Focus reader: no dimming backdrop under a shader, so its glass shows the page and pattern
6a20871 · gmorell · 2026-12-03 05:46
Message
{commit_body(@commit)}
Files changed
modified
assets/f/css/style.css
+9
−1
@@ -106,7 +106,15 @@ html[data-shader] #content[data-layout="focus"] > div::before {
| 106 | 106 | backdrop-filter: blur(10px) saturate(1.1); |
| 107 | 107 | } |
| 108 | 108 | /* The Focus reader overlay's own panel gets the same glass; the posts in it |
| 109 | − are base-200 cards and stay opaque. */ | |
| 109 | + are base-200 cards and stay opaque. Its backdrop stops dimming and | |
| 110 | + blurring the page while a shader is on -- under a 70% neutral wash the | |
| 111 | + glass had nothing to show but flat grey. The page behind is already a | |
| 112 | + 72% glass panel, so the reader's own blur is what separates the two. */ | |
| 113 | +html[data-shader] .reader-backdrop { | |
| 114 | + background-color: transparent; | |
| 115 | + -webkit-backdrop-filter: none; | |
| 116 | + backdrop-filter: none; | |
| 117 | +} | |
| 110 | 118 | html[data-shader] .reader-panel { |
| 111 | 119 | background-color: var(--fallback-b1, oklch(var(--b1) / 0.72)); |
| 112 | 120 | -webkit-backdrop-filter: blur(10px) saturate(1.1); |
modified
templates/forum/_reader.html
+1
−1
@@ -6,7 +6,7 @@
| 6 | 6 | {% if reader %} |
| 7 | 7 | <a href="{{ base }}" id="reader-backdrop" tabindex="-1" aria-hidden="true" |
| 8 | 8 | hx-get="{{ base }}" hx-target="#reader" hx-select="#reader" hx-swap="outerHTML" hx-push-url="true" |
| 9 | − class="fixed inset-0 z-40 bg-neutral/70 backdrop-blur-sm"></a> | |
| 9 | + class="reader-backdrop fixed inset-0 z-40 bg-neutral/70 backdrop-blur-sm"></a> | |
| 10 | 10 | <div role="dialog" aria-modal="true" aria-labelledby="reader-title" data-reader="{{ reader.topic.id }}" |
| 11 | 11 | class="reader-panel fixed inset-0 z-50 flex flex-col bg-base-100 shadow-2xl sm:inset-3 sm:rounded-box"> |
| 12 | 12 | <header class="flex items-start gap-2 border-b border-base-300 p-3 sm:p-4"> |
Parents: 3e00922