mediawiki-skins-Vector/skinStyles/mediawiki.action.edit.less
TheresNoTime 559a71638e
skinStyles: Move mw-parser-output out of more specific selector
`.mw-parser-output` needs to be can be present for both the normal
preview and the realtime preview. It appears only the normal preview
adds the "limited-width" classes.

Moving `.mw-parser-output` out of that selector seems to work.

Bug: T322337
Change-Id: I575cd50615b6bf0d1cfa73c827169f8bf17fa2d3
2022-11-04 09:43:45 +00:00

21 lines
665 B
Plaintext

@import '../resources/common/variables.less';
// Reset the font-size for the whole body, but then re-override this below
// to ensure the preview width (which is based on font-size) is correct.
.vector-body {
font-size: @font-size-reset;
}
// Even if the editing form is max-width, the preview should be constrained.
// FIXME: Remove `.skin-vector-disable-max-width` when caching no longer an issue.
.vector-feature-limited-width-disabled #wikiPreview,
.skin-vector-disable-max-width #wikiPreview {
max-width: @max-width-content-container;
margin: auto;
}
// Change font-size for the actual preview content.
.mw-parser-output {
font-size: @font-size-base;
}