1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +00:00

Add some margins to image figures

This commit is contained in:
Rohan Kumar 2023-11-10 10:43:28 -08:00
parent 522e322cf5
commit aa9576e91d
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -501,13 +501,19 @@ ins,
* figure captions shouldn't look like regular paragraphs; there should
* be some extra space.
* This does not hold true for figures in somewhat distinct sections; the
* section should instead get the spacing. A section that constitutes a
* separate schema.org object would qualify. */
* parent section should instead get the spacing. A section that
* constitutes a separate schema.org object would qualify. */
figure,
section[itemprop="mentions"] {
margin: 1.5em 0;
}
/* image captions, on the other hand, should look more separate from
* surrounding paragraphs. */
figure[itemtype="https://schema.org/ImageObject"] {
margin: 1.5em;
}
section[itemprop="mentions"] > figure {
margin: 0;
}