From 02a5a30ec60d079f9b7347766f45ccbd2bcc7ec5 Mon Sep 17 00:00:00 2001 From: Darshan Baral Date: Mon, 11 May 2020 19:21:33 -0700 Subject: hides header on scroll down --- layouts/partials/head.html | 44 +++++++++++++++++++++++++++++++++++--------- static/css/main.css | 3 ++- 2 files changed, 37 insertions(+), 10 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a179cac..997cbc8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,20 +8,17 @@ - + - - + + {{ with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} @@ -35,4 +32,33 @@ font-size: {{ .Site.Params.theme.fontSize | safeCSS }}; } + + diff --git a/static/css/main.css b/static/css/main.css index 778e2d9..af288f1 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -37,6 +37,7 @@ header { position: fixed; top: 0; z-index: 30; + transition: all 0.3s; } header, footer { @@ -297,4 +298,4 @@ li.page-item:nth-child(6) { max-width: 95%; display: block; margin: 1em auto; -} +} \ No newline at end of file -- cgit v1.2.3