WebsiteArchive/static/css/_nav.scss
2022-12-28 18:45:26 +00:00

67 lines
No EOL
1 KiB
SCSS

.nav {
margin: 0;
padding: 0;
background-color: $black;
color: $white;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
position: relative;
z-index: 69;
p {
margin: 0 1rem;
padding: 0;
font-size: 1rem;
}
}
.nav-toggle {
margin: 0;
padding: 0.5rem 1rem;
display: none;
background-color: transparent;
color: $white;
border: none;
i {
font-size: 1.5rem;
display: inline-block;
// display the hamburger icon vertically centered
line-height: 1.5rem;
}
}
@media screen and (max-width: $phone-width) {
.nav {
margin: 0;
padding: 0;
width: 100vw;
height: 3rem;
position: fixed;
top: 0;
left: 0;
justify-content: space-between;
background-color: $black;
color: $white;
}
.nav-toggle {
display: flex;
justify-content: center;
align-items: center;
}
}