clean css

This commit is contained in:
sarahgarcin1 2026-04-01 15:22:18 +02:00
parent 341b64d33f
commit 952c6d041d
17 changed files with 391 additions and 1246 deletions

33
assets/css/figures.css Normal file
View file

@ -0,0 +1,33 @@
/* GESTION DES FIGURES */
figure{
margin-bottom: 1em;
}
figcaption{
font-size: 0.8em;
margin-top: 0.5em;
}
figcaption p{
margin: 0;
}
figure[data-ratio] {
position: relative;
width: 100%;
aspect-ratio: var(--ratio);
}
figure[data-crop="true"] img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
figure[data-crop="false"] img {
width: 100%;
height: auto;
object-fit: contain;
}