From 66622c60a55bd060d5fc58f1ee76fc2fbaf0d41c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taavi=20V=C3=A4=C3=A4n=C3=A4nen?= Date: Sun, 29 Sep 2024 14:25:48 +0300 Subject: [PATCH] Make line numbering appear dark in dark mode This includes some changes to the colors in light mode to make them match Codex tokens. Bug: T365926 Change-Id: Ifa5d762bffa3c4ebdcfa451cc4a9965cd7b1b064 --- modules/pygments.wrapper.less | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/pygments.wrapper.less b/modules/pygments.wrapper.less index 6253dd88..cf2b0aa3 100644 --- a/modules/pygments.wrapper.less +++ b/modules/pygments.wrapper.less @@ -1,3 +1,5 @@ +@import 'mediawiki.skin.variables.less'; + .mw-highlight { unicode-bidi: embed; @@ -52,7 +54,7 @@ /* @noflip */ padding-left: 3.5em; /* @noflip */ - box-shadow: inset 2.75em 0 0 #f0f0f0; + box-shadow: inset 2.75em 0 0 @background-color-neutral; .hll { /* @noflip */ @@ -67,7 +69,7 @@ /* @noflip */ padding-right: 3.5em; /* @noflip */ - box-shadow: inset -2.75em 0 0 #f0f0f0; + box-shadow: inset -2.75em 0 0 @background-color-neutral; /* stylelint-disable-next-line no-descending-specificity */ .hll { @@ -84,7 +86,7 @@ box-sizing: border-box; width: 2.75em; background: none; - color: #72777d; + color: @color-placeholder; white-space: pre; .mw-content-ltr& { @@ -112,6 +114,6 @@ a:hover .linenos, .hll a .linenos { - color: #333; + color: @color-base--hover; } }