livre-de-cuisine/assets/style.css
2024-05-24 13:13:05 +02:00

222 lines
3.3 KiB
CSS

:root {
font-family: sans-serif;
}
body > * {
width: 100%;
padding: 10px;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
box-sizing: border-box;
}
p {
line-height: 1.25;
}
header {
max-width: 100%;
}
header a {
color: inherit;
text-decoration: none;
}
header a[href^=".."]::before {
content: "ᐊ";
display: inline-block;
margin-right: 1ex;
}
img {
max-width: 100%;
}
li {
margin-bottom: 1ex;
}
small {
display: block;
}
.ingredients h2 small {
text-transform: uppercase;
font-size: 0.6em;
}
.recette > h1:first-of-type {
text-align: center;
max-width: 600px;
margin-left: auto;
margin-right: auto;
margin-bottom: 50px;
margin-top: 50px;
}
.recette > h1:first-of-type + p {
text-align: center;
font-style: italic;
line-height: 1.5;
}
.recette > h1:first-of-type ~ section:first-of-type {
margin-top: 100px;
}
.recette .ingredients {
margin-bottom: 100px;
}
.recette > section {
margin-top: 50px;
}
.guide {
counter-reset: step;
}
.guide > article,
.guide > p:not(.note) {
counter-increment: step;
}
.guide > article > p:first-of-type::before,
.guide > p::before {
display: inline-block;
content: counter(step) ".";
margin-right: 1ex;
}
.guide > p:first-of-type:last-child::before {
content: "➔";
}
.guide > p.note::before {
content: unset;
}
a[href*="glossaire.html#"] {
color: inherit;
text-decoration: underline dotted 2px;
}
pre {
padding-left: 10px;
margin-left: 10px;
border-left: solid 1px black;
}
.index h1 {
text-align: center;
}
.index h1 + ul {
margin-top: 100px;
}
.index hr {
border: none;
width: 100%;
border-top: solid 1px black;
margin: 25px 0;
}
.index ul {
padding: 0;
list-style-type: none;
}
.ressource qr-code {
display: none;
}
aside {
padding: 5px;
border: solid 1px black;
margin-left: 2rem;
margin-right: 2rem;
margin-top: 35px;
margin-bottom: 35px;
}
aside > :first-child {
margin-top: 0;
}
aside > :last-child {
margin-bottom: 0;
}
.guide aside::before {
content: "➔";
float: left;
margin-right: 1ex;
margin-left: 5px;
}
@media print {
header a {
display: none;
}
a {
color: inherit;
}
.ressource :not(h2) {
font-size: 10pt;
}
.ressource ul {
list-style-type: none;
display: flex;
flex-direction: row;
justify-content: start;
align-items: start;
flex-wrap: wrap;
width: 100%;
margin-bottom: 50px;
}
.ressource ul > * {
width: 200px;
}
.ressource li {
display: flex;
flex-direction: column;
justify-content: start;
align-items: center;
text-align: center;
margin-bottom: 25px;
}
.ressource li a {
display: contents;
}
.ressource qr-code {
display: block;
width: 100px;
}
.ressource qr-code::part(img) {
width: 100%;
}
.ressource a::after {
content: attr(href);
display: block;
text-decoration: none;
font-size: 0.9em;
margin-top: 1em;
order: 0;
word-wrap: break-word;
opacity: 0.5;
width: 100%;
}
}