text/css
•
1.06 KB
•
61 lines
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Header sticks to the top naturally */
header {
display: flex;
justify-content: space-between;
/* left on one side, right on the other */
align-items: center;
padding: var(--space-m) var(--space-xl);
background: var(--background-color-bright);
}
/* The growy middle */
main {
flex: 1;
padding: var(--space-l);
}
main>section {
margin: 0 auto var(--space-xl);
width: 100%;
max-width: var(--max-content-width);
}
/* Footer stays at bottom because body is a column flexbox */
footer {
padding: var(--space-m);
background: var(--background-color-bright);
}
/* Centered footer nav */
.footer-nav {
display: flex;
justify-content: center;
gap: var(--space-l);
}
.header-left,
.header-right {
display: flex;
align-items: center;
gap: var(--space-l);
}
.logo {
font-size: 1.5rem;
text-decoration: none;
line-height: 1em;
color: var(--secondary-color);
}