Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed May 20, 2024
1 parent eba8610 commit 739c9f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,12 @@
active = intersecting?.target.id;
}
}
function resize(window: Window) {
setVH();
window.onresize = setVH;
function setVH() {
const vh = window.innerHeight * 0.01;
document.documentElement.style.setProperty('--vh', `${vh}px`);
}
}
</script>

<svelte:head>
<title>{name}</title>
</svelte:head>

<svelte:window use:resize />

{#await Promise.all([images.load(), quotes.load()]) then}
<main>
{#each $counters as counter, id}
Expand Down
2 changes: 0 additions & 2 deletions src/css/base.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
html {
height: 100vh;
/* Fallback for browsers that do not support Custom Properties */
height: calc(var(--vh, 1vh) * 100);
font-family: system-ui;
}

Expand Down

0 comments on commit 739c9f0

Please sign in to comment.