From a30a7df85a3f96857ff54434fe751636bbe2832a Mon Sep 17 00:00:00 2001 From: memdmp Date: Wed, 14 Jan 2026 15:16:21 +0100 Subject: fix: hovering on next section's title should kill previous --- src/app.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/app.css b/src/app.css index 0aee744..35ddf86 100644 --- a/src/app.css +++ b/src/app.css @@ -117,27 +117,27 @@ } } h1 { - &:not(:hover):has(~*:hover):not(:has(~h1~*:hover)) { + &:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h1:hover)) { @apply internal-header-active; } } h2 { - &:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover)) { + &:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h1:hover,~h2:hover)) { @apply internal-header-active; } } h3 { - &:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h3~*:hover)) { + &:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h3~*:hover,~h1:hover,~h2:hover,~h3:hover)) { @apply internal-header-active; } } h4 { - &:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h3~*:hover,~h4~*:hover)) { + &:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h3~*:hover,~h4~*:hover,~h1:hover,~h2:hover,~h3:hover,~h4:hover)) { @apply internal-header-active; } } h5,h6,p { - &:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h3~*:hover,~h4~*:hover,~h5~*:hover)) { + &:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h3~*:hover,~h4~*:hover,~h5~*:hover,~h1:hover,~h2:hover,~h3:hover,~h4:hover,~h5:hover)) { @apply internal-header-active; } } -- cgit v1.2.3