Fix font size in editor preview

Depends-On: I7eaef3ef89a23932edd5abdd74703eb3297ee061
Bug: T287733
Change-Id: I42c6a8da06d1ab9c4d546b940bc4d627b118e2a6
This commit is contained in:
jdlrobson 2021-11-12 09:18:46 -08:00 committed by Jdlrobson
parent b196d68326
commit 058551e9b9
1 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,12 @@ pre,
}
}
// FIXME: All styles here should apply to .mw-body-content eventually.
// The problem is lots of user, gadgets, styles and scripts
// make assumptions about the font-size being set on the parent .vector-body element.
// This however breaks integrations with extensions that replicate mw-body-content element
// See [[phab:T287733]].
.mw-body-content:not( #mw-content-text ),
.vector-body {
font-size: @font-size-base;
// Support IE 9-11, Trident cuts values 2 digits after decimal point.