From 3d7311dbbe5041425050819a7b590e317d53b134 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Sun, 7 Jul 2024 02:45:50 -0400 Subject: [PATCH] =?UTF-8?q?fix(skinning):=20=F0=9F=90=9B=20only=20apply=20?= =?UTF-8?q?top=20margin=20to=20figcaption=20when=20it=20is=20not=20empty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../skins.citizen.styles/skinning/content.media-common.less | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/skins.citizen.styles/skinning/content.media-common.less b/resources/skins.citizen.styles/skinning/content.media-common.less index f20380ff..5449f715 100644 --- a/resources/skins.citizen.styles/skinning/content.media-common.less +++ b/resources/skins.citizen.styles/skinning/content.media-common.less @@ -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 ); + } } }