diff --git a/src/lib/components/Sidebar.svelte b/src/lib/components/Sidebar.svelte
deleted file mode 100644
index c2c11c7..0000000
--- a/src/lib/components/Sidebar.svelte
+++ /dev/null
@@ -1,179 +0,0 @@
-
-
-
-
-
diff --git a/src/lib/components/ui/DarkModeToggle.svelte b/src/lib/components/ui/DarkModeToggle.svelte
index e58c30b..4d0a0c1 100644
--- a/src/lib/components/ui/DarkModeToggle.svelte
+++ b/src/lib/components/ui/DarkModeToggle.svelte
@@ -70,4 +70,9 @@
.checkbox:checked + .checkbox-label .ball {
transform: translateX(24px);
}
+
+ .checkbox:focus + .checkbox-label {
+ box-shadow: 0px 0px 2px var(--highlight);
+ outline: 1px solid var(--highlight);
+ }
diff --git a/src/lib/components/ui/Main.svelte b/src/lib/components/ui/Main.svelte
index 12e5812..6a512b3 100644
--- a/src/lib/components/ui/Main.svelte
+++ b/src/lib/components/ui/Main.svelte
@@ -12,7 +12,6 @@
main {
z-index: 2;
max-width: 100%;
- margin-top: var(--spacing-2);
}
.wrapper {
border-radius: 6px 0 0 6px;
diff --git a/src/lib/components/ui/Navigation.svelte b/src/lib/components/ui/Navigation.svelte
new file mode 100644
index 0000000..eb61e8b
--- /dev/null
+++ b/src/lib/components/ui/Navigation.svelte
@@ -0,0 +1,219 @@
+
+
+
+
+
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index f337e88..e1e0328 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -4,7 +4,7 @@
import type { FormatMethodsKeys } from '$lib/format-methods';
import { page, navigating } from '$app/stores';
- import Sidebar from '$lib/components/Sidebar.svelte';
+ import Navigation from '$lib/components/ui/Navigation.svelte';
import Main from '$lib/components/ui/Main.svelte';
import SkipLink from '$lib/components/ui/SkipLink.svelte';
import ProgressBar from '$lib/components/ui/ProgressBar.svelte';
@@ -14,6 +14,10 @@
let routeId: FormatMethodsKeys | 'Playground';
const getRouteId = (page: Page>): void => {
routeId = page.route.id?.replace('/', '') as FormatMethodsKeys;
+ if(browser) {
+ document.querySelector("h1")?.setAttribute("tabIndex", "-1");
+ document.querySelector("h1")?.focus();
+ }
};
$: getRouteId($page);
onMount(() => {
@@ -36,7 +40,7 @@
-
+
{#if $navigating}
@@ -141,12 +145,6 @@
line-height: 1.5;
width: 100%;
}
- @media (min-width: 900px) {
- body {
- display: grid;
- grid-template-columns: 12rem 1fr;
- }
- }
pre,
ul,
body,