Add sticky footer
This commit is contained in:
parent
e5ca253838
commit
35ac0d3bd8
4 changed files with 24 additions and 14 deletions
|
|
@ -101,8 +101,15 @@ html:has(option[value="aristocratic"]:checked) {
|
|||
/* structural */
|
||||
body {
|
||||
background: var(--color-background);
|
||||
|
||||
margin: 0 auto;
|
||||
max-width: max(768px, 80ch);
|
||||
|
||||
.drop-shadow {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
}
|
||||
|
||||
html {
|
||||
|
|
@ -116,7 +123,7 @@ html {
|
|||
Helvetica,
|
||||
Arial,
|
||||
sans-serif;
|
||||
/* respect user font choices */
|
||||
/* respect user font size */
|
||||
font-size: 100%;
|
||||
font-weight: 400;
|
||||
color: var(--color-text);
|
||||
|
|
@ -133,13 +140,15 @@ header {
|
|||
}
|
||||
|
||||
label {
|
||||
font-size: 0.8rem;
|
||||
display: block;
|
||||
margin: 0.5rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
background: var(--color-header-footer);
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.9rem;
|
||||
|
||||
p {
|
||||
margin: 0.5rem;
|
||||
|
|
@ -148,7 +157,10 @@ footer {
|
|||
|
||||
main {
|
||||
background: var(--color-main);
|
||||
|
||||
padding: 1rem;
|
||||
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
nav {
|
||||
|
|
@ -176,10 +188,6 @@ p {
|
|||
/* hypertextual */
|
||||
/* listing */
|
||||
/* forms */
|
||||
label {
|
||||
margin: 0.5rem;
|
||||
}
|
||||
|
||||
/* basic table */
|
||||
/* image */
|
||||
/* presentation */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue