diff options
fix: hovering on next section's title should kill previous
Diffstat (limited to 'src/app.css')
| -rw-r--r-- | src/app.css | 10 |
1 files changed, 5 insertions, 5 deletions
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; } } |