adjust nav bar based on screen size
This commit is contained in:
parent
58629fdc9d
commit
b82aead24d
|
@ -18,6 +18,17 @@ import { SITE_TITLE } from '../consts';
|
|||
background: white;
|
||||
box-shadow: 0 2px 8px rgba(var(--black), 50%);
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
header{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
@media (min-width: 720px) {
|
||||
nav{
|
||||
height: 100vh;
|
||||
}
|
||||
}
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-size: 1em;
|
||||
|
@ -31,7 +42,6 @@ import { SITE_TITLE } from '../consts';
|
|||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-flow: column wrap;
|
||||
height: 100vh;
|
||||
width: 200px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
|
|
@ -130,6 +130,7 @@ hr {
|
|||
@media (max-width: 720px) {
|
||||
body {
|
||||
font-size: 18px;
|
||||
flex-direction: column;
|
||||
}
|
||||
main {
|
||||
padding: 1em;
|
||||
|
|
Loading…
Reference in a new issue