From b87a5b66d28db8b192c1e0bc549367af35bf7006 Mon Sep 17 00:00:00 2001 From: Volker E Date: Mon, 6 Jul 2020 21:58:15 -0700 Subject: [PATCH] Use 'normalize' module from core's 'mediawiki.skinning' Also removing covered styles from 'screen-common.less'. Bug: T256520 Change-Id: I054c77bb5410e0c08bbdcf3b51f2d6fcc8a103f0 --- resources/screen-common.less | 2 -- skin.json | 19 +++++++++++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/resources/screen-common.less b/resources/screen-common.less index 5b4bc6f..cdc281b 100644 --- a/resources/screen-common.less +++ b/resources/screen-common.less @@ -59,8 +59,6 @@ body { @background url( images/headbg-gradient.svg ) 0 0 repeat-x; // stylelint-enable value-list-comma-newline-after color: @text-color; - margin: 0; - padding: 0; direction: ltr; /* Needed for RTL flipping */ unicode-bidi: embed; } diff --git a/skin.json b/skin.json index 5281ebc..f4379b0 100644 --- a/skin.json +++ b/skin.json @@ -34,7 +34,14 @@ "ResourceModules": { "skins.monobook.styles": { "class": "ResourceLoaderSkinModule", - "features": [ "elements", "content", "interface", "logo", "legacy" ], + "features": [ + "normalize", + "elements", + "content", + "interface", + "logo", + "legacy" + ], "styles": { "resources/screen-common.less": { "media": "screen" @@ -47,6 +54,7 @@ "skins.monobook.responsive": { "class": "ResourceLoaderSkinModule", "features": [ + "normalize", "elements", "content", "interface", @@ -71,7 +79,14 @@ }, "skins.monobook.mobile": { "class": "ResourceLoaderSkinModule", - "features": [ "elements", "content", "interface", "logo", "legacy" ], + "features": [ + "normalize", + "elements", + "content", + "interface", + "logo", + "legacy" + ], "targets": [ "desktop", "mobile" ], "scripts": [ "resources/mobile.js"