mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-09-23 18:29:49 +00:00
Merge "Set width of preview to match reading"
This commit is contained in:
commit
fd259ed3c2
|
@ -492,7 +492,7 @@
|
|||
"exclude": {
|
||||
"mainpage": false,
|
||||
"querystring": {
|
||||
"action": "(history|edit)",
|
||||
"action": "(history|edit|submit)",
|
||||
"diff": ".+"
|
||||
},
|
||||
"namespaces": [
|
||||
|
|
|
@ -1,7 +1,18 @@
|
|||
@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.
|
||||
.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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue