fix(skinning): 🐛 only apply top margin to figcaption when it is not empty

This commit is contained in:
alistair3149 2024-07-07 02:45:50 -04:00
parent 232fd0cc4b
commit 3d7311dbbe
No known key found for this signature in database

View file

@ -60,10 +60,13 @@ figure[ typeof~='mw:File/Frame' ] {
padding-right: var( --border-radius-base );
// Sync with rounded corner
padding-left: var( --border-radius-base );
margin-top: var( --space-xs );
color: var( --color-subtle );
letter-spacing: 0.025em;
caption-side: bottom;
&:not( :empty ) {
margin-top: var( --space-xs );
}
}
}