From 270fb18f2e34e1004367f1c8981237f594739a3d Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Sat, 1 Sep 2018 12:53:03 +0100 Subject: [PATCH] Scope styling of kbd/samp/code/pre to content areas Extensions may be using these tags and not want these styles (especially the border). Bug: T203474 Change-Id: I03a22cf6377002f968cabdcce9354e73354fb6b8 --- .../skins.minerva.content.styles/text.less | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/resources/skins.minerva.content.styles/text.less b/resources/skins.minerva.content.styles/text.less index ee3a7fe..13cc94f 100644 --- a/resources/skins.minerva.content.styles/text.less +++ b/resources/skins.minerva.content.styles/text.less @@ -6,6 +6,50 @@ p { margin: 0.5em 0 1em 0; } + + // Code + // + // Use this solely for blocks of computer code. + // + // Markup: + // + // body { + // color:red; + // } + // + // + // Styleguide 1.6. + + // Preformatted text + // + // Use on text where whitespace is significant and the content should not be formatted. + // + // Markup: + //
+	// body {
+	//   color:red;
+	// }
+	// 
+ // + // Note .mw-code is not added here as it is assumed that will be used with a suitable tag + // tt is a non-standard element so is not included in the selector. + // Styleguide 1.7. + kbd, + samp, + code, + pre { + font-family: @fontFamilyMonospace; + border: solid 1px @colorGray12; + white-space: pre-wrap; + } + + code { + padding: 0.2em 0.5em; + } + + pre { + padding: 1em; + } } strong, @@ -18,50 +62,6 @@ i { font-style: italic; } -// Code -// -// Use this solely for blocks of computer code. -// -// Markup: -// -// body { -// color:red; -// } -// -// -// Styleguide 1.6. - -// Preformatted text -// -// Use on text where whitespace is significant and the content should not be formatted. -// -// Markup: -//
-// body {
-//   color:red;
-// }
-// 
-// -// Note .mw-code is not added here as it is assumed that will be used with a suitable tag -// tt is a non-standard element so is not included in the selector. -// Styleguide 1.7. -kbd, -samp, -code, -pre { - font-family: @fontFamilyMonospace; - border: solid 1px @colorGray12; - white-space: pre-wrap; -} - -code { - padding: 0.2em 0.5em; -} - -pre { - padding: 1em; -} - .mw-ref, // For Parsoid content (e.g. mediawiki.skinning.content.parsoid) sup { vertical-align: super;