Skip to content

Commit

Permalink
avoid jumps
Browse files Browse the repository at this point in the history
  • Loading branch information
nrchtct committed Dec 11, 2023
1 parent 7e37452 commit 17072bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function drawLinks(items) {

let ctx = canvas.getContext('2d');

let w = document.documentElement.clientWidth;
let h = document.documentElement.clientHeight;
let w = canvas.clientWidth;
let h = canvas.clientHeight;
let vw = w/100;
let vh = h/100;

Expand Down
5 changes: 3 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ body{
*::selection {
color: var(--background-menu);
background-color: var(--font);
opacity: 1;
}

p,li {
Expand Down Expand Up @@ -76,7 +77,7 @@ ul li::before {
content: '·';
color: var(--font);
margin-right: .5em;
margin-left: -.8em;
margin-left: -.9em;
}
blockquote {
font-style: italic;
Expand Down Expand Up @@ -118,7 +119,7 @@ p {
bottom: 0;
left: 0;
width: 100%;
height: 100%;
height: 110%;
position: fixed;
padding: 0;
margin: 0;
Expand Down

0 comments on commit 17072bd

Please sign in to comment.