Jack Phoenix has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/382400 )

Change subject: Custom styling for <pre> and <code> elements
......................................................................

Custom styling for <pre> and <code> elements

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

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


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Timeless 
refs/changes/00/382400/1

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 @@
                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,

-- 
To view, visit https://gerrit.wikimedia.org/r/382400
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic6d18911df4f1ea504ed547292676eac1ff54995
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/Timeless
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to