blog/sass/parts/_navbar.scss

88 lines
No EOL
1.6 KiB
SCSS

@mixin header_link($color, $hover-color) {
a {
color: $color;
text-decoration: none;
&:visited {
color: $color;
}
&:hover {
color: $hover-color;
}
}
}
header {
background-color: var(--crust);
margin-bottom: 3rem;
}
nav {
max-width: var(--main-width);
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
ul {
list-style: none;
padding: 0;
}
.home-title {
flex: 3 auto;
text-transform: uppercase;
font-size: 2.5rem;
font-weight: 100;
text-transform: uppercase;
@include header_link(var(--text), var(--text));
}
.nav-bar {
flex: 1 auto;
@include header_link(var(--subtext1), var(--subtext0));
font-size: 1.2rem;
text-transform: lowercase;
}
.nav-links {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-top: 0;
margin-bottom: 0;
li {
flex: 2 auto;
text-align: center;
}
}
li.menu-icons-container {
flex: 1 auto;
}
.menu-icons-group {
display: flex;
justify-content: space-between;
}
}
@media only screen and (max-width: 600px) {
nav {
max-width: 100%;
flex-direction: column;
align-items: normal;
margin: 0;
.nav-bar {
background-color: var(--mantle);
}
.home-title {
text-align: center;
}
}
}