mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-15 02:13:49 +00:00
Merge "Remove redundant styling rules and fix center/none halign for figures"
This commit is contained in:
commit
5e945307b6
|
@ -80,6 +80,20 @@ A file for css that optimises the Minerva skin on larger devices.
|
|||
/* @noflip */
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&.mw-halign-none {
|
||||
float: none;
|
||||
clear: none;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&.mw-halign-center {
|
||||
float: none;
|
||||
clear: none;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
|
|
|
@ -41,44 +41,3 @@ figure[ typeof~='mw:Audio/Frame' ] {
|
|||
.mw-image-border {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@media screen and ( min-width: @width-breakpoint-tablet ) {
|
||||
figure[ typeof~='mw:File/Thumb' ],
|
||||
figure[ typeof~='mw:File/Frame' ],
|
||||
/* TODO: Remove "Image|Video|Audio" when version 2.4.0 of the content is no
|
||||
* longer supported
|
||||
*/
|
||||
figure[ typeof~='mw:Image/Thumb' ],
|
||||
figure[ typeof~='mw:Video/Thumb' ],
|
||||
figure[ typeof~='mw:Audio/Thumb' ],
|
||||
figure[ typeof~='mw:Image/Frame' ],
|
||||
figure[ typeof~='mw:Video/Frame' ],
|
||||
figure[ typeof~='mw:Audio/Frame' ] {
|
||||
// Defaults to right alignment when not explicitly set. Should be flippable.
|
||||
margin: 0.6em 0 0.6em 1.4em;
|
||||
|
||||
&.mw-halign-left {
|
||||
/* @noflip */
|
||||
margin: 0.6em 1.4em 0.6em 0;
|
||||
/* @noflip */
|
||||
clear: left;
|
||||
/* @noflip */
|
||||
float: left;
|
||||
}
|
||||
|
||||
&.mw-halign-right {
|
||||
/* @noflip */
|
||||
margin: 0.6em 0 0.6em 1.4em;
|
||||
/* @noflip */
|
||||
clear: right;
|
||||
/* @noflip */
|
||||
float: right;
|
||||
}
|
||||
|
||||
&.mw-halign-center {
|
||||
margin: 0.6em auto 0.6em auto;
|
||||
clear: none;
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue