mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 06:24:22 +00:00
feat(core): ✨ backport valign styles for images from 1.40+
This commit is contained in:
parent
9c69503afe
commit
fdc22e4ce5
|
@ -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' ],
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
*
|
||||
* Date: 2023-07-23
|
||||
*/
|
||||
|
||||
figure[ typeof~='mw:File' ],
|
||||
figure[ typeof~='mw:File/Frameless' ],
|
||||
figure[ typeof~='mw:File/Thumb' ],
|
||||
|
|
Loading…
Reference in a new issue