From ae70aa3c63bb8e6dce36f9e15116b1a77c0dac69 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 27 Mar 2021 19:37:40 +0100 Subject: [PATCH] doc: add distinctive color for code elements inside links PR-URL: https://github.com/nodejs/node/pull/37950 Reviewed-By: Pooja D P Reviewed-By: Harshitha K P Reviewed-By: Rich Trott --- doc/api_assets/style.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 3176b7db252049..ef8fec8d92912f 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -13,7 +13,7 @@ --red3: #ca5010; --green1: #43853d; --green2: #5a8147; - --green3: #454545; + --green3: #64de64; --green4: #99cc7d; --green5: #84ba64; --gray1: #707070; @@ -50,6 +50,9 @@ color: var(--grey-smoke); background-color: var(--highlight-background-color); } +.dark-mode a code { + color: var(--green3); +} /*--------------------- Layout and Typography ----------------------------*/ html { @@ -605,7 +608,8 @@ a code { margin-bottom: 0; } -#column2 ul li a { +#column2 ul li a, +#column2 ul li a code { color: var(--color-text-nav); border-radius: 0; }