{post.title}
- Published {new Date(post.date).toLocaleDateString("en-GB", { - year: "numeric", - month: "long", - day: "numeric", - hour: "numeric", - minute: "numeric", - })} + {when(post.date)}
diff --git a/src/global.sass b/src/global.sass index b5897b5..b0cedf3 100644 --- a/src/global.sass +++ b/src/global.sass @@ -48,21 +48,31 @@ hr ::-webkit-scrollbar position: fixed - width: 0.5rem + width: 1rem height: 0.5rem &-track, &-corner - background: none - &-thumb - border-radius: 0.2rem - background: #282625 - &:hover - background: #464443 - @media (prefers-color-scheme: light) background: white + + &-thumb + background: #181615 + border: 0.2rem solid #282625 + border-radius: 1rem + width: 0.5rem + + &:hover + background: #464443 + &:active + background: #3f3d3c + + @media (prefers-color-scheme: light) + background: #d6d4d3 + border: 0.2rem solid white &:hover background: #a6a4a3 + &:active + background: #bfbdbc // Utility classes diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 7bf9ce2..52977a6 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -1,6 +1,6 @@
- Published {new Date(post.date).toLocaleDateString("en-GB", { - year: "numeric", - month: "long", - day: "numeric", - hour: "numeric", - minute: "numeric", - })} + {when(post.date)}