🐛 Move to top gap between content and icon

This commit is contained in:
Nuno Coração committed 2023-05-08 22:11:38 +01:00
1 parent a246ba2451
commit 16600ee159
4 files changed
+13 -5

No files matched your search

+2 -2
View File
@@ -1403,8 +1403,8 @@ select {
top: 5rem;
}
.top-\[100vh\] {
top: 100vh;
.top-\[110vh\] {
top: 110vh;
}
.top-\[11px\] {
+9 -1
View File
@@ -64,4 +64,12 @@ var updateMeta = () => {
elem = document.querySelector('body');
style = getComputedStyle(elem);
document.querySelector('meta[name="theme-color"]').setAttribute('content', style.backgroundColor);
}
}
window.addEventListener("DOMContentLoaded", (event) => {
const scroller = document.getElementById("top-scroller");
const footer = document.getElementById("site-footer");
if(scroller.getBoundingClientRect().top > footer.getBoundingClientRect().top) {
scroller.hidden = true;
}
});