blog/sass/parts/_navbar.scss

82 lines
1.5 KiB
SCSS
Raw Normal View History

2025-05-17 00:37:16 +02:00
@use '../constants' as *;
@use '../mixins' as *;
2025-05-16 16:15:31 +02:00
2025-05-15 02:51:00 +02:00
header {
background-color: var(--crust);
margin-bottom: 3rem;
}
nav {
max-width: var(--main-width);
margin: 0 auto;
2025-05-16 00:37:59 +02:00
display: flex;
2025-05-15 02:51:00 +02:00
align-items: center;
justify-content: space-between;
ul {
list-style: none;
padding: 0;
}
2025-05-16 16:15:31 +02:00
.home-title {
flex: 3 auto;
text-transform: uppercase;
2025-05-16 16:15:31 +02:00
font-size: 2.5rem;
font-weight: 100;
text-transform: uppercase;
2025-05-17 00:37:16 +02:00
@include link(var(--text), var(--text));
2025-05-16 16:15:31 +02:00
}
2025-05-15 02:51:00 +02:00
2025-05-16 16:15:31 +02:00
.nav-bar {
flex: 1 auto;
2025-05-17 00:37:16 +02:00
@include link(var(--subtext1), var(--subtext0));
font-size: 1.2rem;
text-transform: lowercase;
}
2025-05-15 02:51:00 +02:00
.nav-links {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-top: 0;
margin-bottom: 0;
2025-05-15 02:51:00 +02:00
li {
flex: 2 auto;
text-align: center;
}
}
2025-05-15 02:51:00 +02:00
li.menu-icons-container {
flex: 1 auto;
}
2025-05-15 02:51:00 +02:00
.menu-icons-group {
display: flex;
justify-content: space-between;
}
}
2025-05-15 02:51:00 +02:00
2025-05-17 00:37:16 +02:00
@media only screen and (max-width: $smartphone) {
header {
margin-bottom: 1.5rem;
}
nav {
max-width: 100%;
flex-direction: column;
align-items: normal;
margin: 0;
2025-05-15 02:51:00 +02:00
.nav-bar {
background-color: var(--mantle);
2025-05-15 02:51:00 +02:00
}
.home-title {
text-align: center;
2025-05-17 00:37:16 +02:00
font-size: 1.8rem;
}
2025-05-15 02:51:00 +02:00
}
}