diff --git a/assets/css/layout.css b/assets/css/layout.css index d0863ed..bdc5cb1 100644 --- a/assets/css/layout.css +++ b/assets/css/layout.css @@ -7,9 +7,6 @@ } .site-header { - position: sticky; - top: 16px; - z-index: 20; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; @@ -101,7 +98,6 @@ } .site-header { - top: 10px; border-radius: 18px; } diff --git a/assets/js/main.js b/assets/js/main.js index df4dbf6..a1cb675 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,15 +1,5 @@ const year = document.querySelector("#year"); -const header = document.querySelector("[data-header]"); if (year) { year.textContent = new Date().getFullYear(); } - -if (header) { - const updateHeader = () => { - header.classList.toggle("is-scrolled", window.scrollY > 8); - }; - - updateHeader(); - window.addEventListener("scroll", updateHeader, { passive: true }); -} diff --git a/index.html b/index.html index 7699b85..8a0ca0f 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@
-