From ec7fcb5c4a087a7338fec72c4ef00b95fc62ce75 Mon Sep 17 00:00:00 2001 From: Lewin Kelly Date: Sun, 9 Jul 2023 10:20:32 +0100 Subject: [PATCH] Add new sidebar navbar and some styling fixes --- src/global.sass | 6 ++++ src/lib/components/Navbar.svelte | 53 +++++++++++++++++++++++--------- src/routes/+layout.svelte | 22 ++++++++----- 3 files changed, 59 insertions(+), 22 deletions(-) diff --git a/src/global.sass b/src/global.sass index 7beae04..b5897b5 100644 --- a/src/global.sass +++ b/src/global.sass @@ -29,10 +29,16 @@ a @apply text-orange-300 @media (prefers-color-scheme: light) @apply text-orange-700 + &:active + @apply text-orange-600 + @media (prefers-color-scheme: light) + @apply text-orange-400 .txt @apply text-white &:hover @apply text-#aaa + &:active + @apply text-#888 hr border: none diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index fe21f25..491a5f3 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -1,28 +1,51 @@ -
- - + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index e8f6113..ca142df 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -3,14 +3,22 @@ import "uno.css" -
+
-
- -
+
+
+ +
-
+
+
+ +