Apply typography rules to .mw-body-content elements outside .vector-body

Bug: T287733
Change-Id: Ib737f215104b2aa234bf694e734de12fccff2fc3
This commit is contained in:
jdlrobson 2021-11-04 11:04:17 -07:00 committed by VolkerE
parent 43f6b74b6b
commit da832cc53d

View file

@ -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 { .vector-body {
font-size: @font-size-base; font-size: @font-size-base;
// Support IE 9-11, Trident cuts values 2 digits after decimal point. // Support IE 9-11, Trident cuts values 2 digits after decimal point.