From ea0fba8f58a61bf9c2868ea8b198d56cf393693f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 21 Dec 2024 15:23:29 +0200 Subject: referat(WT): Implement navbar stickyness --- Year 4/Web technologies/referat/css/style.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Year 4/Web technologies/referat/css/style.css b/Year 4/Web technologies/referat/css/style.css index 4f71017..ef32a0d 100644 --- a/Year 4/Web technologies/referat/css/style.css +++ b/Year 4/Web technologies/referat/css/style.css @@ -35,13 +35,18 @@ body { border-radius: 0.5em 0.5em 0 0; margin-bottom: 1em; position: sticky; + top: 0; + z-index: 50; } #contents > a { - text-decoration: none; color: var(--level1); } +#contents > a:hover { + text-decoration: underline; +} + #contents > a:not(:last-child) { border-right: 5px double var(--level3); padding-right: 0.5em; @@ -106,7 +111,7 @@ ol.sources > li::before, sup a, sup a:visited { position: absolute; right: 0.5em; top: 0.25em; - z-index: 50; + z-index: 20; background-color: white; border-radius: 0.25em; cursor: pointer; -- cgit v1.3.1-26-gb76a