diff --git a/resources/skins.citizen.styles/skinning/content.media-common.less b/resources/skins.citizen.styles/skinning/content.media-common.less index 8a82868a..8fd947b6 100644 --- a/resources/skins.citizen.styles/skinning/content.media-common.less +++ b/resources/skins.citizen.styles/skinning/content.media-common.less @@ -66,6 +66,42 @@ figure[ typeof~='mw:File/Frame' ] { } } +/** + * Inline media items + * img is needed for 1.39 compat, change to .mw-file-element later + */ +.mw-valign-middle img { + vertical-align: middle; +} + +.mw-valign-baseline img { + vertical-align: baseline; +} + +.mw-valign-sub img { + vertical-align: sub; +} + +.mw-valign-super img { + vertical-align: super; +} + +.mw-valign-top img { + vertical-align: top; +} + +.mw-valign-text-top img { + vertical-align: text-top; +} + +.mw-valign-bottom img { + vertical-align: bottom; +} + +.mw-valign-text-bottom img { + vertical-align: text-bottom; +} + // Do not float content in mobile view @media ( min-width: @min-width-breakpoint-tablet ) { figure[ typeof~='mw:File/Thumb' ], diff --git a/resources/skins.citizen.styles/skinning/content.media-screen.less b/resources/skins.citizen.styles/skinning/content.media-screen.less index 1999bd53..f7bba919 100644 --- a/resources/skins.citizen.styles/skinning/content.media-screen.less +++ b/resources/skins.citizen.styles/skinning/content.media-screen.less @@ -6,6 +6,7 @@ * * Date: 2023-07-23 */ + figure[ typeof~='mw:File' ], figure[ typeof~='mw:File/Frameless' ], figure[ typeof~='mw:File/Thumb' ],