Fix the extra 2px space at the bottom of <figure> elements

It was because they were display: inline-block
This commit is contained in:
Eryn Wells 2023-04-08 13:37:01 -07:00
parent 5fd6f473dd
commit cb025398b3

View file

@ -171,9 +171,12 @@ figcaption {
text-align: center;
}
details {
width: 100%;
}
figure {
border-radius: 6px;
display: inline-block;
line-height: 1;
margin: 0;
margin-inline: 0;
@ -193,6 +196,7 @@ figure a:hover {
}
figure img {
display: block;
border-radius: 6px;
height: auto;
max-width: var(--content-width);