fixed some lighthouse report

This commit is contained in:
2026-10-07 20:38:19 -07:00
parent c685438597
commit 0ffe463478
4 changed files with 14 additions and 7 deletions

View File

@@ -1036,10 +1036,14 @@ document.addEventListener("DOMContentLoaded", function () {
var header = document.getElementById("header-container");
if (header) {
document.documentElement.style.setProperty("--header-height", header.offsetHeight + "px");
window.addEventListener("resize", function () {
requestAnimationFrame(function () {
document.documentElement.style.setProperty("--header-height", header.offsetHeight + "px");
});
window.addEventListener("resize", function () {
requestAnimationFrame(function () {
document.documentElement.style.setProperty("--header-height", header.offsetHeight + "px");
});
});
}
applyTheme();

View File

@@ -1,3 +0,0 @@
@import "roots.css";
@import "base.css";
@import "highlight.css";