From c6010933dc481e95e3ab1768613f767eda3ba1e3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 23 May 2026 11:02:41 -0300 Subject: css, client: adapt to support hoverable/tooltip This is the first commit where we're using :has() and nested rules. Both of those are considered baseline December 2023, and we figure that will be at least *about* three years ago once this update is released. --- src/static/css/miscellany.css | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'src/static/css/miscellany.css') diff --git a/src/static/css/miscellany.css b/src/static/css/miscellany.css index 37fefb40..0f4cf1a9 100644 --- a/src/static/css/miscellany.css +++ b/src/static/css/miscellany.css @@ -487,26 +487,18 @@ } @layer interaction { - summary > span:hover { + summary > span:hover:not(:has(.has-visible-tooltip, .hoverable:hover)) { cursor: pointer; text-decoration: underline; text-decoration-color: var(--primary-color); - } - - summary > span:hover a { - text-decoration: none !important; - } - summary > span:hover:has(a:hover), - summary > span:hover:has(a.nested-hover), - summary.has-nested-hover > span { - text-decoration: none !important; - } + a:not(:hover) { + text-decoration: none !important; + } - summary > span:hover:has(a:hover) a:hover, - summary > span:hover:has(a.nested-hover) a:hover, - summary.has-nested-hover > span a:hover { - text-decoration: underline !important; + &:has(a:hover) { + text-decoration: none !important; + } } summary.underline-white > span:hover { -- cgit 1.3.0-6-gf8a5