From dcd01fc1e24fed99eb88c95f4211d6a4a722a1e9 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Tue, 11 Apr 2017 14:25:51 -0400 Subject: [PATCH] Separate some shared layout with Parsoid * This is in service of T116508. See Id41c1d2840f441eddb14ca66ba545ee7b160088e where .mw-body is being removed from Parsoid content. * This is only possible since T155863 Change-Id: I60e3cb3e838fa19d321c4eac0a6828bcfddb6f3e --- components/common.less | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/components/common.less b/components/common.less index c79788f..0c00963 100644 --- a/components/common.less +++ b/components/common.less @@ -27,17 +27,21 @@ body { } /* Content */ +.mw-body, +.parsoid-body { + padding: @content-padding; + background-color: @body-background-color; + color: @content-font-color; + direction: ltr; +} + .mw-body { margin-left: 10em; - padding: @content-padding; /* Border on top, left, and bottom side */ border: 1px solid @content-border-color; border-right-width: 0; /* Merge the border with tabs' one (in their background image) */ margin-top: -1px; - background-color: @body-background-color; - color: @content-font-color; - direction: ltr; // h1's can exist outside of mw-body-content so some heading styles // need to be defined in mw-body as well