neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
Focus reader: the same sea-glass panel over the shader background
a712fa6 · gmorell · 2026-12-03 05:42
Files changed
modified
assets/f/css/style.css
+9
−1
@@ -60,7 +60,7 @@
| 60 | 60 | /* Shader background (f/js/shader_background.js). The canvas sits behind |
| 61 | 61 | everything; while it's on, the content column becomes an opaque base-100 |
| 62 | 62 | panel (sea glass on Focus pages, below), so on Classic pages the pattern |
| 63 | − shows only around it and text contrast is exactly the theme's own. The header, menus, cards and the reader overlay have | |
| 63 | + shows only around it and text contrast is exactly the theme's own. The header, menus, cards and (without a shader) the reader overlay have | |
| 64 | 64 | opaque backgrounds already. */ |
| 65 | 65 | #site-shader { |
| 66 | 66 | position: fixed; |
@@ -91,6 +91,14 @@ html[data-shader] #content[data-layout="focus"] > div {
| 91 | 91 | backdrop-filter: blur(10px) saturate(1.1); |
| 92 | 92 | box-shadow: 0 1.5rem 4rem rgba(20, 0, 3, 0.45); |
| 93 | 93 | } |
| 94 | +/* The Focus reader overlay's own panel gets the same glass; the posts in it | |
| 95 | + are base-200 cards and stay opaque. */ | |
| 96 | +html[data-shader] .reader-panel { | |
| 97 | + background-color: var(--fallback-b1, oklch(var(--b1) / 0.72)); | |
| 98 | + -webkit-backdrop-filter: blur(10px) saturate(1.1); | |
| 99 | + backdrop-filter: blur(10px) saturate(1.1); | |
| 100 | + box-shadow: 0 1.5rem 4rem rgba(20, 0, 3, 0.45); | |
| 101 | +} | |
| 94 | 102 | /* /shaders: the card in use. */ |
| 95 | 103 | [data-shader-card][data-active] { |
| 96 | 104 | outline: 4px solid oklch(var(--a)); |
modified
templates/forum/_reader.html
+1
−1
@@ -8,7 +8,7 @@
| 8 | 8 | hx-get="{{ base }}" hx-target="#reader" hx-select="#reader" hx-swap="outerHTML" hx-push-url="true" |
| 9 | 9 | class="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 | − class="fixed inset-0 z-50 flex flex-col bg-base-100 shadow-2xl sm:inset-3 sm:rounded-box"> | |
| 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"> |
| 13 | 13 | <div class="min-w-0 flex-1"> |
| 14 | 14 | <p class="text-xs opacity-60"> |
Parents: 541aa08