Style header and footer, define main margins

This commit is contained in:
Lucie Anglade 2023-08-05 12:21:37 +02:00
parent 5cbeabc378
commit d0711fef81
1 changed files with 74 additions and 3 deletions

View File

@ -12,6 +12,7 @@
--blue: #327bd6;
--dark-green: #32ada9;
--green: #ebff32;
--grey: #c9c9c9;
--orange: #ff6f32;
--purple: #84326b;
--white: #ffffff;
@ -23,23 +24,93 @@
html {
background: var(--white);
color: var(--black);
font-family: sans-serif;
font-family: Atkinson;
font-size: 14pt;
line-height: 1.5;
overflow-x: hidden;
}
body {
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 0;
min-height: 100vh;
}
a:hover {
background: var(--green);
}
/* Header */
li {
list-style: none;
}
img {
display: block;
max-width: 100%;
}
/* Header and Footer */
header {
background: var(--white);
border-bottom: var(--grey) 1px solid;
display: flex;
height: 4em;
left: 0;
position: fixed;
top: 0;
width: 100vw;
}
header img {
margin: 0.5em 1em 0.5em 5em;
}
header h1 {
margin: auto 0;
}
header a,
footer a {
color: inherit;
text-decoration: inherit;
}
header nav {
margin: 0 4.5em 0 auto;
}
header nav ul,
footer ul {
display: flex;
flex-wrap: wrap;
height: 100%;
margin: 0;
}
header nav li,
footer li {
margin: auto 0.5em;
}
footer {
border: var(--grey) 1px solid;
height: 4em;
width: 100vw;
}
footer ul {
justify-content: center;
}
/* Main */
main {
margin: 4em auto 4em auto;
}
main > section {
padding: 2rem 20rem;
}