blog/sass/parts/_navbar.scss

93 lines
1.8 KiB
SCSS
Raw Normal View History

2025-12-23 22:27:52 +01:00
header {
background-color: var(--crust);
margin-bottom: 3rem;
;
}
nav {
max-width: var(--main-width);
margin-left: auto;
margin-right: auto;
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;
&>div {
vertical-align: middle;
a {
text-decoration: none;
}
ul {
list-style-type: none;
padding: 0;
margin-top: 0;
margin-bottom: 0;
2025-12-23 22:27:52 +01:00
display: flex;
align-items: center;
justify-content: space-around;
2025-12-23 22:27:52 +01:00
}
&.nav-title {
2025-12-23 22:27:52 +01:00
flex: 2 auto;
2025-12-23 22:27:52 +01:00
font-size: 2rem;
font-weight: 100;
text-transform: uppercase;
a {
color: var(--text);
&:visited {
color: var(--text);
}
&:hover {
color: var(--text);
}
}
}
&.nav-menus {
2025-12-23 22:27:52 +01:00
flex: 4 auto;
2025-12-23 22:27:52 +01:00
a {
color: var(--text);
&:visited {
color: var(--text);
}
&:hover {
color: var(--subtext0);
}
}
2025-12-23 22:27:52 +01:00
&>ul {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-around;
2025-12-23 22:27:52 +01:00
2025-12-23 22:27:52 +01:00
&>li {
flex: 1 auto;
padding: 0;
}
2025-12-23 22:27:52 +01:00
}
2025-12-23 22:27:52 +01:00
2025-12-23 22:27:52 +01:00
}
&.nav-widgets {
2025-12-23 22:27:52 +01:00
flex: 1 auto;
2025-12-23 22:27:52 +01:00
color: var(--text);
font-size: 1.5rem;
li {
margin-left: .5rem;
margin-right: .5rem;
}
}
}
}