From c60c00b323d990ce47b94fb1f9ad189fc0fe5791 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 17 Aug 2025 16:27:32 +0200 Subject: Minor CSS tweaks --- src/style.css | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/src/style.css b/src/style.css index 1f9c785..6ce0d86 100644 --- a/src/style.css +++ b/src/style.css @@ -10,26 +10,10 @@ --faint: color-mix(in hwb, var(--fg) 75%, var(--bg)); } -@keyframes move-out { - from { transform: translateY(0%); } - to { transform: translateY(-100%); } -} - -@keyframes move-in { - from { transform: translateY(100%); } - to { transform: translateY(0%); } -} - -@view-transition { - navigation: auto; -} - -::view-transition-old(root) { - animation: 0.4s ease-in both move-out; -} - -::view-transition-new(root) { - animation: 0.4s ease-in both move-in; +@media not (prefers-reduced-motion: reduce) { + @view-transition { + navigation: auto; + } } @media (max-width: 750px) { @@ -63,10 +47,6 @@ } } -h1, h2 { - text-wrap: balance; -} - body { text-align: justify; width: min(800px, 90%); -- cgit v1.2.3