blog/sass/parts/_navbar.scss

75 lines
1.5 KiB
SCSS
Raw Normal View History

2025-12-23 22:27:52 +01:00
@mixin header_link($color, $hover-color) {
a {
color: $color;
text-decoration: none;
&:visited {
color: $color;
}
&:hover {
color: $hover-color;
}
}
}
2025-12-23 22:27:52 +01:00
header {
background-color: var(--crust);
margin-bottom: 3rem;
}
nav {
2025-12-23 22:27:52 +01:00
display: flex;
2025-12-23 22:27:52 +01:00
align-items: center;
justify-content: space-between;
2025-12-23 22:27:52 +01:00
flex-wrap: wrap;
flex-direction: row;
max-width: var(--main-width);
margin: 0 auto;
.home-title {
flex: 3 auto;
font-size: 2.5rem;
font-weight: 100;
text-transform: uppercase;
@include header_link(var(--text), var(--text));
}
2025-12-23 22:27:52 +01:00
2025-12-23 22:27:52 +01:00
.nav-bar {
flex: 1 auto;
@include header_link(var(--text), var(--subtext0));
2025-12-23 22:27:52 +01:00
ul {
padding: 0;
2025-12-23 22:27:52 +01:00
display: flex;
align-items: center;
2025-12-23 22:27:52 +01:00
list-style: none;
2025-12-23 22:27:52 +01:00
}
2025-12-23 22:27:52 +01:00
.nav-links {
margin-top: 0;
margin-bottom: 0;
font-size: 1.2rem;
text-transform: lowercase;
2025-12-23 22:27:52 +01:00
2025-12-23 22:27:52 +01:00
flex-wrap: wrap;
flex-direction: row;
justify-content: space-between;
2025-12-23 22:27:52 +01:00
2025-12-23 22:27:52 +01:00
li {
flex: 2 auto;
text-align: center;
2025-12-23 22:27:52 +01:00
}
2025-12-23 22:27:52 +01:00
.menu-icons-container {
flex: 1 auto;
2025-12-23 22:27:52 +01:00
}
2025-12-23 22:27:52 +01:00
.menu-icons-group {
color: var(--text);
2025-12-23 22:27:52 +01:00
justify-content: space-around;
2025-12-23 22:27:52 +01:00
}
}
}
}