1
Fork 0

Show / hide navbar things

This commit is contained in:
Jake Howard 2017-07-12 21:49:23 +01:00
parent d908426344
commit 6a57037293
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 22 additions and 0 deletions

View file

@ -35,6 +35,7 @@
<li class="top-level"><a href="{{ .Permalink }}">{{ title .LinkTitle }}</a></li>
{{ end }}
{{ end }}
<li class="top-level"><a class="show-mobile" href="/">Home</a></li>
</ul>
</nav>
</header>

View file

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