2018-09-17 20:56:57 +00:00
|
|
|
/**
|
|
|
|
* Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser.
|
|
|
|
*/
|
|
|
|
|
2018-09-25 19:26:59 +00:00
|
|
|
@import '../../minerva.less/minerva.variables';
|
|
|
|
|
2018-09-17 20:56:57 +00:00
|
|
|
/*
|
|
|
|
* 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%;
|
2018-09-25 19:26:59 +00:00
|
|
|
// Centered on non-tablet
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2018-09-17 20:56:57 +00:00
|
|
|
|
2019-03-18 18:23:40 +00:00
|
|
|
/* T198534 */
|
|
|
|
.mw-image-border {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2018-09-25 19:26:59 +00:00
|
|
|
@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.
|
2018-09-17 20:56:57 +00:00
|
|
|
margin: 0.6em 0 0.6em 1.4em;
|
|
|
|
|
2018-09-25 19:26:59 +00:00
|
|
|
&.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;
|
|
|
|
}
|
2018-09-17 20:56:57 +00:00
|
|
|
}
|
|
|
|
}
|