From 55ccb41bd48c4c2df0adf80364bfd820d394a5c5 Mon Sep 17 00:00:00 2001 From: NightlyMania Date: Tue, 24 May 2022 15:15:49 +0200 Subject: [PATCH] Steal a sidebar thingy from W3 and off to gaming --- index.html | 13 ++++++++++++- static/nightlycss.css | 25 +++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index f4946a5..9599d8a 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,17 @@ -

Hello world!

+ +
+

Hello world!

+ +
\ No newline at end of file diff --git a/static/nightlycss.css b/static/nightlycss.css index bcebd62..64483e6 100644 --- a/static/nightlycss.css +++ b/static/nightlycss.css @@ -1,6 +1,31 @@ :root { --bgcolour: #290B57; + --sdbarcolour: #481496; } body { background-color: var(--bgcolour); + margin:0; +} + +#sidebar ul { + margin: 0; + padding: 0; + width:85px; + background-color: var(--sdbarcolour); + overflow: auto; + display: block; + height:100%; + position: fixed; +} + +#sidebar li a { + display: block; + color: #000; + padding: 8px 16px; + text-decoration: none; +} + +#content { + margin-left:138px; + padding: 1px 16px; } \ No newline at end of file