aboutsummaryrefslogtreecommitdiff
path: root/src/styles
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-05-15 11:59:35 +0000
committerFuwn <[email protected]>2026-05-15 11:59:35 +0000
commit45c66eaa88aefba86bf2a75d17c0f2fcdebaae1b (patch)
tree8f8e87423fb30e8a05348d02ce14f0d090033836 /src/styles
parentfix(a11y): drop redundant alts and the landing em dash (diff)
downloaddue.moe-45c66eaa88aefba86bf2a75d17c0f2fcdebaae1b.tar.xz
due.moe-45c66eaa88aefba86bf2a75d17c0f2fcdebaae1b.zip
style(card): move backdrop blur to an opt-in .card-glass modifier
Strip backdrop-filter: blur(4px) from the base .card so the ~50 in-flow surfaces (landing panels, schedule rows, tool cards, user profile cards, badge wall, etc.) stop paying for a blur they don't need. Introduce .card-glass for the surfaces that actually float over other content: the sticky page header, header nav dropdowns, command palette, title-attribute tooltips, LinkedTooltip, and HoverCover. Popup, MediaRoulette, and Notification keep their existing parent-overlay or solid-background treatments.
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/card.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/styles/card.css b/src/styles/card.css
index 6aabf5fb..07a62fcd 100644
--- a/src/styles/card.css
+++ b/src/styles/card.css
@@ -30,6 +30,9 @@ details,
background-color: var(--base0011);
padding: 1rem;
border-radius: 8px;
+}
+
+.card-glass {
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}