From 17072bdd76c87923dab9a87684bf1cfc4d2855a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marian=20D=C3=B6rk?= Date: Tue, 12 Dec 2023 00:49:54 +0100 Subject: [PATCH] avoid jumps --- js/links.js | 4 ++-- style.css | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/js/links.js b/js/links.js index 0961866..559bbb4 100644 --- a/js/links.js +++ b/js/links.js @@ -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; diff --git a/style.css b/style.css index b1d4a66..7161a1b 100644 --- a/style.css +++ b/style.css @@ -41,6 +41,7 @@ body{ *::selection { color: var(--background-menu); background-color: var(--font); + opacity: 1; } p,li { @@ -76,7 +77,7 @@ ul li::before { content: 'ยท'; color: var(--font); margin-right: .5em; - margin-left: -.8em; + margin-left: -.9em; } blockquote { font-style: italic; @@ -118,7 +119,7 @@ p { bottom: 0; left: 0; width: 100%; - height: 100%; + height: 110%; position: fixed; padding: 0; margin: 0;