mediawiki-skins-Vector/skinStyles/mediawiki.action.edit.less
Ed Sanders b33a895bc1 Use base font size for wikitext editors
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
2024-09-11 17:39:26 +01:00

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;
}