From d013bf5cfc516fbdd93652d370aa8592011621a7 Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Thu, 5 Oct 2017 12:13:04 +0300 Subject: [PATCH] Custom styling for
 and  elements

Copypasted from core /resources/src/mediawiki.skinning/elements.css with
colors adjusted for Timeless.

Bug: T177142
Change-Id: Ic6d18911df4f1ea504ed547292676eac1ff54995
---
 resources/screen-common.less | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/resources/screen-common.less b/resources/screen-common.less
index 7d90c76..62030a7 100644
--- a/resources/screen-common.less
+++ b/resources/screen-common.less
@@ -300,6 +300,29 @@ a.new,
 		display: block;
 	}
 }
+
+/* pre and code styles copypasted from core
+ * /resources/src/mediawiki.skinning/elements.css and modified a bit
+ * @see https://phabricator.wikimedia.org/T177142
+ */
+code {
+	color: #000;
+	background-color: @grey-bright;
+	border: 1px solid @grey-dark;
+	border-radius: 2px;
+	padding: 1px 4px;
+}
+
+pre,
+.mw-code {
+	color: #000;
+	background-color: @grey-bright;
+	border: 1px solid @grey-dark;
+	padding: 1em;
+	/* Wrap lines in overflow. T2260, T103780 */
+	white-space: pre-wrap;
+}
+
 #mw-content {
 	h1,
 	h2,