diff --git a/.gitignore b/.gitignore index ef9dfc44dbe6ceaf13ba981f6b1a816587a04da1..23adaf4effd47ce5aa89c3d2b265beb241db0e14 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ _site .sass-cache .jekyll-metadata +.jekyll-cache public/ Gemfile.lock \ No newline at end of file diff --git a/_includes/header.html b/_includes/header.html index d268115d37de16340f41e29b827c6dad8e5f2cbb..ea44f1c064a46c59a798140eea9dc2dc463e7a6a 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -43,12 +43,19 @@ </header> <script> + var prevBackgroundColor; + var prevBorderColor; + function hamburger_open(x) { x.classList.toggle("change"); y = document.getElementById("hamburger-content"); z = document.getElementById("navbar"); - if (x.classList.contains("change")) { + + if (x.classList.contains("change")) { + prevBackgroundColor = window.getComputedStyle(z, null).getPropertyValue('background-color'); + prevBorderColor = window.getComputedStyle(z, null).getPropertyValue('border-color'); + y.style.height = "100vh"; z.style.background = "none"; z.style.border = "none"; @@ -57,8 +64,9 @@ y.style.height = "0vh"; y.style.overflow = "hidden"; setTimeout(() => { - z.style.background = "$background-color"; - z.style.border = "1px solid $grey-color-light"; + z.style.background = prevBackgroundColor; + z.style.borderBottom = "1px solid"; + z.style.borderColor = prevBorderColor }, 250); } } diff --git a/_plugins/.gitkeep b/_plugins/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391