mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-14 11:15:33 +00:00
559a71638e
`.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
21 lines
665 B
Plaintext
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;
|
|
}
|