refonte/themes/afpy/static/css/website.css
2023-08-05 12:41:48 +02:00

118 lines
1.4 KiB
CSS

/* Fonts */
@font-face{
font-family: Atkinson;
src: url(../webfonts/Atkinson-Hyperlegible-Regular-102.ttf);
}
/* Variables */
:root {
--black: #0e0e0e;
--blue: #327bd6;
--dark-green: #32ada9;
--green: #ebff32;
--grey: #c9c9c9;
--orange: #ff6f32;
--purple: #84326b;
--white: #ffffff;
}
/* Common */
html {
background: var(--white);
color: var(--black);
font-family: Atkinson;
font-size: 14pt;
line-height: 1.5;
overflow-x: hidden;
}
body {
display: flex;
flex-direction: column;
margin: 0;
min-height: 100vh;
}
a:hover {
background: var(--green);
}
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 {
background: var(--white);
border-top: var(--grey) 1px solid;
height: 4em;
width: 100vw;
}
footer ul {
justify-content: center;
}
/* Main */
main {
flex-grow: 1;
margin: 4em auto 4em auto;
}
main > section {
padding: 2rem 20rem;
}