Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leonardofaria/bento.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Faria <leonardofaria@gmail.com>2020-11-12 07:53:41 +0300
committerLeonardo Faria <leonardofaria@gmail.com>2020-11-12 07:53:41 +0300
commit097cafa123bfab95e208e9b87322cbc4e92c37b8 (patch)
tree9aa25c8edfa3a77cef9409b3fae16ee2815be22c
parent3c8fbfc53759c506839fffe76cb427dee6a155fe (diff)
Remove padding animation in header
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/header.html2
2 files changed, 1 insertions, 3 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 2628bce..8a25130 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -49,12 +49,10 @@
var addClassOnScroll = () => {
header.classList.add("shadow");
header.classList.add("bg-white-90");
- header.classList.remove("py-4");
}
var removeClassOnScroll = () => {
header.classList.remove("shadow");
header.classList.remove("bg-white-90");
- header.classList.add("py-4");
}
window.onscroll = function () {
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 83a3e50..1c978d5 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -34,7 +34,7 @@
</div>
</header>
{{else}}
- <header id="header" class="w-full m-0 fixed z-10 transition-all duration-300 ease-in-out border-t-4 border-gray-300 py-4 backdrop-filter-blur">
+ <header id="header" class="w-full m-0 fixed z-10 transition-all duration-300 ease-in-out border-t-4 border-gray-300 backdrop-filter-blur">
<div id="header-container" class="max-w-7xl mx-auto p-6 flex items-center flex-wrap lg:flex-no-wrap relative justify-between">
<a href="{{ .Site.Home.Permalink }}" class="tracking-tighter leading-10 text-3xl font-semibold text-gray-600 flex flex-shrink-0">
{{ .Site.Title }}