From bef4972c916367cb341b7eaf91f0eb3e1b96d381 Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Mon, 10 Jul 2023 10:47:44 -0700 Subject: [PATCH] Use default selection color for code --- src/css/Components/_code.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/css/Components/_code.scss b/src/css/Components/_code.scss index 1bd0c9c..5c10228 100644 --- a/src/css/Components/_code.scss +++ b/src/css/Components/_code.scss @@ -35,3 +35,13 @@ pre { .token.keyword { font-style: normal; } + +code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection { + background: Highlight; + color: HighlightText; +} + +code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection { + background: Highlight; + color: HighlightText; +}