From 29680aceb7564ee12ada9ea6c796337b2c02e041 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Sun, 13 Aug 2017 11:13:36 -0400 Subject: [PATCH] Add padding support for other skins Change-Id: Ia7494545f2dda36bc2798c23ff8a2855212b77aa --- .../modules/ve-cm/ve.ui.CodeMirror.init.less | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/resources/modules/ve-cm/ve.ui.CodeMirror.init.less b/resources/modules/ve-cm/ve.ui.CodeMirror.init.less index 721326de..0d2cdcef 100644 --- a/resources/modules/ve-cm/ve.ui.CodeMirror.init.less +++ b/resources/modules/ve-cm/ve.ui.CodeMirror.init.less @@ -13,9 +13,24 @@ box-sizing: border-box; pointer-events: none; - padding: 0 1.14286em; /* 1/0.875 */ - @media screen and ( min-width: 982px ) { - padding: 0 1.71429em; /* surface-margin-left (1.5em) / (mw-body-content font-size) 0.875em */ + // Core VE default padding + padding: 0.5em 1.5em; + + // Skin specific paddings + .skin-vector & { + padding: 0 1.14286em; /* 1/0.875 */ + @media screen and ( min-width: 982px ) { + padding: 0 1.71429em; /* surface-margin-left (1.5em) / (mw-body-content font-size) 0.875em */ + } + } + + .skin-monobook & { + padding: 0; + } + + .skin-timeless & { + padding-left: 2em; + padding-right: 2em; } }