Mobile navbar
This commit is contained in:
parent
649e172362
commit
32a2f35333
2 changed files with 27 additions and 0 deletions
|
@ -4,4 +4,9 @@
|
|||
<a href="/posts">Posts</a>
|
||||
<a href="/contact">Contact</a>
|
||||
</div>
|
||||
<div class="sidenav_mobile">
|
||||
<a href="/">Home</a>
|
||||
<a href="/posts">Posts</a>
|
||||
<a href="/contact">Contact</a>
|
||||
</div>
|
||||
</header>
|
|
@ -24,6 +24,28 @@ h1, h2, h3, h4, h5, h6 {
|
|||
padding: 0px 10px;
|
||||
}
|
||||
|
||||
/* For mobile */
|
||||
@media screen and (max-width: 768px) {
|
||||
.sidenav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidenav_mobile {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-left: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
/* For normal screens */
|
||||
@media screen and (min-width: 769px) {
|
||||
.sidenav_mobile {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.sidenav {
|
||||
height: 75%;
|
||||
width: 160px;
|
||||
|
|
Loading…
Add table
Reference in a new issue