zola/docs/sass/_layout.scss
FireIsGood 606c2be425
Improve docs header style (#2516)
* refactor: pattern to separate file

causes a lot of lag and also probably isn't the best to inline since we
have scss preprocessing

* fix: escape quotes properly

* feat: improve header styles
2024-06-12 00:02:22 +02:00

45 lines
694 B
SCSS

header {
padding: 2rem 3rem;
display: flex;
flex-wrap: wrap;
align-items: baseline;
column-gap: 2rem;
// Container is reused elsewhere, so this must be declared here
nav {
display: flex;
flex-grow: 1;
flex-wrap: wrap;
align-items: baseline;
justify-content: center;
gap: 1rem 2rem;
margin: 0;
}
}
.container {
max-width: 1000px;
margin: 0 auto;
}
@media only screen and (max-width: 1000px) {
header {
max-width: 90%;
margin-inline: auto;
justify-content: center;
}
}
.content {
flex-grow: 1;
&--reversed {
background: $foreground;
color: $background;
}
}
footer {
text-align: center;
padding: 2rem 3rem;
}