aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-25 16:55:56 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-25 16:55:56 +0200
commit8b4a0ef3cce460030dbb4bbcaabce82be41efe52 (patch)
treef6634d31e7a425b1157b49d2c304da8dbbf56b6c
parent0b886788a7bea360f8aba0c23cb3d22358d27981 (diff)
downloadhugo-minimalist-theme-8b4a0ef3cce460030dbb4bbcaabce82be41efe52.tar.gz
hugo-minimalist-theme-8b4a0ef3cce460030dbb4bbcaabce82be41efe52.tar.bz2
hugo-minimalist-theme-8b4a0ef3cce460030dbb4bbcaabce82be41efe52.zip
use tachyons for navbars
-rw-r--r--layouts/partials/head.html6
-rw-r--r--layouts/partials/header.html4
2 files changed, 2 insertions, 8 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index f13312f..636ca06 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -24,12 +24,6 @@
<!-- CSS -->
<style>
- #sidebar {
- position:fixed;
- z-index: 1;
- display: none;
- overflow:auto;
- }
a {
text-decoration: none;
color: #357edd;
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index a6a8d7b..41bfd71 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,7 +4,7 @@
{{ .Scratch.Set "authorPicture" (absURL .Site.Author.picture) }}
{{ end }}
-<nav id="sidebar" class="w5-ns w-100 bg-gray vh-100" style="background-image:url('{{ .Site.Params.coverImage | absURL }}');">
+<nav id="sidebar" class="w5-ns w-100 bg-gray vh-100 fixed z-2 overflow-auto dn" style="background-image:url('{{ .Site.Params.coverImage | absURL }}');">
<a class="bg-black white link dim db pa3 tc pointer" onclick="w3_close()">
Close &times;
</a>
@@ -47,7 +47,7 @@
</nav>
-<nav class="dt w-100 border-box pa2 bg-white-40">
+<nav class="fixed z-1 dt w-100 border-box pa2 bb b--black-30 bg-near-white">
<a class="dtc dib v-mid dim " onclick="w3_open()">
<i class="fa fa-lg fa-bars black"></i>