diff --git a/README.md b/README.md index 960a021..5dd3efd 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,12 @@ Accord's Library v3.0 (shorten to AL3.0) follows the Metamodernist Web model des - Keyboard navigation - Hotkeys when applicable +- Respect user preferences + + - Support for prefers-reduced-transparency, prefers-contrast, and prefers-reduced-motion + - Theme switch: light, dark, auto + - Language and currency selection + - Multilingual - Contents can be available in any number of languages diff --git a/TODO.md b/TODO.md index 1a5b4d6..a2f51b8 100644 --- a/TODO.md +++ b/TODO.md @@ -2,6 +2,7 @@ ## Ongoing +- [Bugs] Keziah reported some lag spikes when scrolling on the home page (Firefox on Windows) - [Feat] [Analytics] Add analytics - [Bugs] [Tooltips] Tooltip in under next element (example in timeline) - [Bugs] [Language override] Maso actor is not focusable with keyboard nav @@ -28,6 +29,7 @@ ## Long term +- [Feat] Add reduce motion to element that zoom when hovering - [Bugs] [iOS] Video doesn't seem to start - [Feat] [Folders] Provide a list view, and a list/grid toggle - [Feat] [Payload] Endpoints should provide a simple text-based version of the content (for OG purposes) diff --git a/src/components/AppLayout/AsideLayout.astro b/src/components/AppLayout/AsideLayout.astro index 10e2e58..f10f8d7 100644 --- a/src/components/AppLayout/AsideLayout.astro +++ b/src/components/AppLayout/AsideLayout.astro @@ -100,6 +100,16 @@ const { reducedAsideWidth = false } = Astro.props; background-color: color-mix(in srgb, var(--color-elevation-0) 65%, transparent) !important; backdrop-filter: blur(15px); + + @media (prefers-reduced-transparency) or (prefers-contrast: more) { + background-color: var(--color-elevation-0) !important; + backdrop-filter: unset; + } + + @media print { + background-color: var(--color-base-0) !important; + } + padding: 2em; } diff --git a/src/components/AppLayout/components/AppLayoutBackgroundImg.astro b/src/components/AppLayout/components/AppLayoutBackgroundImg.astro index fa908e8..dba7278 100644 --- a/src/components/AppLayout/components/AppLayoutBackgroundImg.astro +++ b/src/components/AppLayout/components/AppLayoutBackgroundImg.astro @@ -20,7 +20,7 @@ const uniqueId = getRandomId(); {/* ------------------------------------------- HTML ------------------------------------------- */} -