feat(core): backport valign styles for images from 1.40+

This commit is contained in:
alistair3149 2024-04-06 14:05:05 -04:00
parent 9c69503afe
commit fdc22e4ce5
No known key found for this signature in database
2 changed files with 37 additions and 0 deletions

View file

@ -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' ],

View file

@ -6,6 +6,7 @@
*
* Date: 2023-07-23
*/
figure[ typeof~='mw:File' ],
figure[ typeof~='mw:File/Frameless' ],
figure[ typeof~='mw:File/Thumb' ],