From 3ff5bc99e875a87eab3948d0c293739109fca372 Mon Sep 17 00:00:00 2001 From: Sam Wing Date: Sun, 17 Nov 2019 18:22:35 -0500 Subject: [PATCH] navbar fixed --- views/includes/navbar.pug | 2 +- views/layout.pug | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/views/includes/navbar.pug b/views/includes/navbar.pug index 7743162..39a9091 100644 --- a/views/includes/navbar.pug +++ b/views/includes/navbar.pug @@ -3,7 +3,7 @@ mixin navBarLink(href, title) a.is-active.navbar-item(href=href)= title else a.navbar-item(href=href)= title -nav.navbar(role='navigation', aria-label='main navigation') +nav.navbar.is-fixed-top(role='navigation', aria-label='main navigation',style='box-shadow: 0px 0px 7px rgb(14, 15, 17);') .navbar-brand if '/' === req.path a.is-active.navbar-item(href='/') diff --git a/views/layout.pug b/views/layout.pug index 656de71..f7a99a0 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -25,7 +25,8 @@ html(lang='en') link(rel='stylesheet', href='/css/main.css') body include includes/navbar.pug - div.content#pageContent + div.content.has-navbar-fixed-top#pageContent + div(style='margin-top: 1.5em;') section.section div.container.is-marginless.fullwidth if title