diff options
| Commit | ea0fba8f58a61bf9c2868ea8b198d56cf393693f (patch) | |
|---|---|---|
| Author | 2024-12-21 15:23:29 +0200 | |
| Committer | 2024-12-21 15:23:29 +0200 | |
| Files | b2b693297f19cc5065d36b6ceb79e252097069a9 | |
| uni-projects-ea0fba8f58a61bf9c2868ea8b198d56cf393693f.tar uni-projects-ea0fba8f58a61bf9c2868ea8b198d56cf393693f.tar.gz uni-projects-ea0fba8f58a61bf9c2868ea8b198d56cf393693f.zip | ||
| Parent | 0d9021ad3e90c88a6248eb9ebfd41a478aeba025 (diff) | |
referat(WT): Implement navbar stickyness
1 files changed, 7 insertions, 2 deletions
| -rw-r--r-- | Year 4/Web technologies/referat/css/style.css | 9 |
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; |
