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 b062ed2 commit c9214e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
export let name: Name;
let active: string | undefined;
let WH = 0;
function intersection(section: HTMLElement) {
const observer = new IntersectionObserver(observe, { threshold: 1 });
Expand All @@ -30,7 +29,7 @@
setVH();
window.onresize = setVH;
function setVH() {
const vh = window.innerHeight * 0.01;
const vh = window.outerHeight * 0.01;
document.documentElement.style.setProperty('--vh', `${vh}px`);
}
}
Expand Down
11 changes: 5 additions & 6 deletions src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@ html {
html::before {
content: '';
background: rgba(0, 0, 0, 0.27);
position: absolute;
position: fixed;
z-index: -1;
inset: 0;
overflow: hidden;
}

html::after {
content: attr(title);
position: absolute;
position: fixed;
inset: 0;
bottom: 0;
right: 0;
left: 0;
top: auto;
font-size: 0.8rem;
font-weight: 300;
font-family: inherit;
opacity: 0.69;
text-align: center;
opacity: 0.69;
}

body {
Expand Down

0 comments on commit c9214e9

Please sign in to comment.