mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-16 18:58:45 +00:00
1d123e02d1
The rules in mediawiki.skinning.content.parsoid were made redundant by
25890e3ece
. There are some more rules
there that should be audited to see if they're still necessary or can be
moved to a more general location now that wgParserEnableLegacyMediaDOM
is being disabled and they apply more broadly than just when Parsoid
styles are requested.
Missing rules for mw-halign-center and mw-halign-none are added.
Bug: T318300
Change-Id: I34fb1ce76de24eec3b136dc6dc9ab4e07e36b809
44 lines
1 KiB
Plaintext
44 lines
1 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.media-common.less)
|
|
*/
|
|
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' ] {
|
|
max-width: 100%;
|
|
// Centered on non-tablet
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* T198534 */
|
|
.mw-image-border {
|
|
display: inline-block;
|
|
}
|