Skip to content

Commit

Permalink
web update
Browse files Browse the repository at this point in the history
  • Loading branch information
mskocik committed Dec 14, 2024
1 parent 04de1f0 commit 45b8f63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
import './../style/doc.css';
import './../style/style.css';
import { onDestroy, onMount, setContext } from 'svelte';
import { onDestroy, onMount } from 'svelte';
import { page } from '$app/stores';
import { stopPropagation } from 'svelte/legacy';
import { afterNavigate } from '$app/navigation';
/** @type {{children?: import('svelte').Snippet}} */
Expand All @@ -29,7 +28,6 @@
function onNavToggle() {
navToggle = !navToggle;
// document[navToggle ? 'addEventListener' : 'removeEventListener']('click', outsideNavClick)
}
const navigation = {
Expand All @@ -46,8 +44,6 @@
'/migration-guide': 'Migration guide'
}
setContext('navigation', navigation);
let page_nav = $state([]);
function buildPageNav() {
Expand All @@ -70,6 +66,7 @@
const newmode = mode === 'dark' ? 'light' : 'dark';
document.documentElement.classList.remove('light', 'dark');
document.documentElement.classList.add(newmode);
localStorage.setItem('theme', newmode);
mode = newmode;
}
Expand Down
1 change: 1 addition & 0 deletions src/style/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@
.vp-block {
position: relative;
margin: 16px -24px;
max-width: 100vw;
background-color: var(--vp-code-block-bg);
overflow-x: auto;
transition: background-color 0.5s;
Expand Down

0 comments on commit 45b8f63

Please sign in to comment.