clean css
This commit is contained in:
parent
341b64d33f
commit
952c6d041d
17 changed files with 391 additions and 1246 deletions
33
assets/css/figures.css
Normal file
33
assets/css/figures.css
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue