mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-30 18:35:44 +00:00
b33a895bc1
We don't want to filter out action=edit/submit as the page also can contain a content preview, which should respect the appearance preference. Instead reset the UI size for mw-editform. Note that the font size of the edit are is already fixed at 13px, so this just fixes the size of UI components, which shouldn't be scaled by the appearance setting. Bug: T373875 Change-Id: Iaabdb67da23b5722056046c1ed88e366471d7b2c
14 lines
541 B
Plaintext
14 lines
541 B
Plaintext
@import '../resources/skins.vector.styles/variables.less';
|
|
|
|
.vector-feature-limited-width-clientpref-1 #wikiPreview {
|
|
// @max-width-content-container is defined in ems, so the final width depends on font-size,
|
|
// but this element is nested in an element with a different font-size. Divide by the
|
|
// current font-size to get the intended result (as if font-size wasn't changed).
|
|
max-width: ( @max-width-content-container / @font-size-base );
|
|
}
|
|
|
|
.mw-editform {
|
|
font-size: unit( @font-size-base, rem );
|
|
line-height: @line-height-small;
|
|
}
|