From c1ed7fe998c9770065bf9e846d77202202faf0c9 Mon Sep 17 00:00:00 2001 From: marco Date: Fri, 24 Apr 2026 00:54:17 +0200 Subject: [PATCH] reworked sidebar, navbar and language chooser --- public/styles.css | 38 +++++++++++++++++++++++++++++++++----- template-index.html | 16 ++++++++++------ 2 files changed, 43 insertions(+), 11 deletions(-) diff --git a/public/styles.css b/public/styles.css index 19688c9..1de0df1 100644 --- a/public/styles.css +++ b/public/styles.css @@ -3,7 +3,12 @@ body { background-color: #222222; } -h1, h2, h3, h4, h5, p { +h1, +h2, +h3, +h4, +h5, +p { color: #DDDDEE } @@ -13,6 +18,28 @@ a { } #navbar { + position: sticky; + top: 0; + overflow: hidden; + display: block; +} + +#navbar a { + padding: 5px; + display: inline-block; + font-size: larger; +} + +#language { + position: fixed; + bottom: 0; + right: 0; + float: right; + padding: 15px; + font-size: larger; +} + +#sidebar { position: fixed; top: 0; right: 0; @@ -20,17 +47,18 @@ a { flex-direction: column; display: flex; float: right; + padding: 15px; } -#navbar a { +#sidebar a { float: right; display: block; text-align: end; padding: 5px; text-decoration: none; + font-size: larger; } -#navbar a:hover { +a:hover { color: #D0A7DF -} - +} \ No newline at end of file diff --git a/template-index.html b/template-index.html index 490e96c..f677c53 100644 --- a/template-index.html +++ b/template-index.html @@ -8,13 +8,17 @@ - - + + +

{{introduction-heading}}

{{introduction-subheading}}