From 6a57037293dbadcf07d95a460d7ce5afe2e27833 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 12 Jul 2017 21:49:23 +0100 Subject: [PATCH] Show / hide navbar things --- layouts/partials/navbar.html | 1 + static/src/scss/style.scss | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 92f7d6f..135d41c 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -35,6 +35,7 @@
  • {{ title .LinkTitle }}
  • {{ end }} {{ end }} +
  • Home
  • diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 10955d5..99ab6f9 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -81,6 +81,27 @@ blockquote p { } } + +nav { + a { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + @media screen and (max-width: 840px) { + &.link.depth-2 { + display: none !important; + } + } + + @media screen and (min-width: 840px) { + &.show-mobile { + display: none !important; + } + } + } +} + + .dropotron.level-0 { margin-top: 0.4em; }