From da832cc53d2cb009a618182c6c7a85aea3e7fb6b Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Thu, 4 Nov 2021 11:04:17 -0700 Subject: [PATCH] Apply typography rules to `.mw-body-content` elements outside `.vector-body` Bug: T287733 Change-Id: Ib737f215104b2aa234bf694e734de12fccff2fc3 --- resources/common/typography.less | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/common/typography.less b/resources/common/typography.less index e03fa6f5d..ad9db2f62 100644 --- a/resources/common/typography.less +++ b/resources/common/typography.less @@ -70,6 +70,13 @@ pre, } } +// FIXME: +// Ideally these rules should apply only to .mw-body-content +// However this requires a #user-notice and community consultation +// to prepare gadget developers for this potential disruptive change. +// The `:not` pseudo class is used for now, to handle cases +// where multiple mw-body-content elements appear in the page. +.mw-body-content:not( .vector-body .mw-body-content ), .vector-body { font-size: @font-size-base; // Support IE 9-11, Trident cuts values 2 digits after decimal point.