feat(shortcode): figure and figures flex box

This commit is contained in:
Matthieu Bessat 2024-05-07 18:17:24 +02:00
parent eefff4e50b
commit e326cdfc95
14 changed files with 158 additions and 58 deletions

29
assets/sass/figures.scss Normal file
View file

@ -0,0 +1,29 @@
.fig-img {
display: inline-block;
figcaption {
font-size: .9rem;
color: $hidden;
text-align: center;
p {
margin: 0;
}
}
img {
max-height: 30rem;
}
margin: 0;
margin-bottom: 1rem;
}
.figures-grid {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 2rem;
margin-bottom: 1rem;
figure {
max-width: 27rem;
margin: 0;
}
}