navbar fixed

This commit is contained in:
Sam Wing 2019-11-17 18:22:35 -05:00
parent 975543b912
commit 3ff5bc99e8
2 changed files with 3 additions and 2 deletions

View file

@ -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='/')

View file

@ -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