mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 22:25:27 +00:00
7280d255c0
* Remove ambiguity in imports - say the file extension 'less' for all instances of variables and mixins. * Separate toast styles from drawer styles so they can be imported separately * associate header-action selector with its parent (.overlay-header) not parent's parent (.overlay) so it can be imported and rendered without the Overlay. Change-Id: Ib7e19a440ba095d6424d35305fb41d643ca9764c
69 lines
1.3 KiB
Plaintext
69 lines
1.3 KiB
Plaintext
/**
|
|
* Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser.
|
|
*/
|
|
|
|
@import '../../minerva.less/minerva.variables.less';
|
|
|
|
/*
|
|
* Auto-numbered external links
|
|
* (copied from MediaWiki's content.parsoid.less)
|
|
*/
|
|
.mw-parser-output {
|
|
counter-reset: mw-numbered-ext-link;
|
|
|
|
a[ rel~='mw:ExtLink' ]:empty:after {
|
|
content: '[' counter( mw-numbered-ext-link ) ']';
|
|
counter-increment: mw-numbered-ext-link;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Block media items
|
|
* (mostly derived from MediaWiki's content.parsoid.less)
|
|
*/
|
|
figure[ typeof*='mw:Image' ],
|
|
figure[ typeof*='mw:Video' ],
|
|
figure[ typeof*='mw:Audio' ] {
|
|
max-width: 100%;
|
|
// Centered on non-tablet
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* T198534 */
|
|
.mw-image-border {
|
|
display: inline-block;
|
|
}
|
|
|
|
@media screen and ( min-width: @width-breakpoint-tablet ) {
|
|
figure[ typeof*='mw:Image' ],
|
|
figure[ typeof*='mw:Video' ],
|
|
figure[ typeof*='mw:Audio' ] {
|
|
// 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;
|
|
}
|
|
}
|
|
}
|