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

github.com/pfadfinder-konstanz/hugo-dpsg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax.mehl <max.mehl@fsfe.org>2020-10-09 10:37:54 +0300
committerMax Mehl <mail@mehl.mx>2020-10-29 19:56:20 +0300
commit8a6bd39d1802e6a5fec7543b004c9d18b20824f2 (patch)
tree41f0b4f6900b0b31f31b3765e071bf269734fc4f
parente0403d75466f3adba5109d044852d6ed15781ea9 (diff)
make navbar sticky
-rw-r--r--assets/css/style.css7
-rw-r--r--layouts/partials/header.html4
2 files changed, 9 insertions, 2 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index ea4c1d5..3a95c0e 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -25,6 +25,13 @@ section {
display: block;
}
+nav {
+ position: sticky;
+ position: -webkit-sticky;
+ top: 0;
+ z-index: 1;
+}
+
:focus::-webkit-input-placeholder {
color: transparent;
}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 81b7e14..8a2d494 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,6 +1,6 @@
<header class="header">
<div class="container header__container">
{{ partial "logo.html" . }}
- {{ partial "menu.html" . }}
</div>
-</header> \ No newline at end of file
+</header>
+{{ partial "menu.html" . }}