From c4255c8490f14eecd50e6a0659c0765144ba1ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 7 Jun 2026 19:13:37 +0200 Subject: [PATCH] fix: restrict hover styles to pointer devices via @custom-variant Prevents hover state from sticking on touch screens by scoping hover to actual hover-capable devices. Co-Authored-By: Claude Sonnet 4.6 --- assets/css/main.css | 2 ++ hugo_stats.json | 1 + 2 files changed, 3 insertions(+) diff --git a/assets/css/main.css b/assets/css/main.css index 202cec3..d30b280 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -4,6 +4,8 @@ @source "../../content/**/*.md"; @source "../../assets/js/**/*.js"; +@custom-variant hover (&:hover); + /* ── Design tokens ─────────────────────────────────────────────────────────── */ @theme { /* Core palette — exact match to design */ diff --git a/hugo_stats.json b/hugo_stats.json index 914f1ab..25a6ecb 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -379,6 +379,7 @@ "text-lg", "text-right", "text-sm", + "text-warm/20", "text-xl", "top-0", "top-24",