From 60769db4eebc122a4bbea1df4300c74ce28333df Mon Sep 17 00:00:00 2001 From: hakimel Date: Tue, 17 Jan 2023 09:52:01 +0100 Subject: [PATCH] better selection color contrast for black theme --- css/theme/source/black.scss | 2 +- dist/theme/black.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/css/theme/source/black.scss b/css/theme/source/black.scss index 358dc1df..7c655c4f 100644 --- a/css/theme/source/black.scss +++ b/css/theme/source/black.scss @@ -30,7 +30,7 @@ $headingTextTransform: uppercase; $headingFontWeight: 600; $linkColor: #42affa; $linkColorHover: lighten( $linkColor, 15% ); -$selectionBackgroundColor: lighten( $linkColor, 25% ); +$selectionBackgroundColor: rgba( $linkColor, 0.75 ); $heading1Size: 2.5em; $heading2Size: 1.6em; diff --git a/dist/theme/black.css b/dist/theme/black.css index 4aa8ba43..51177272 100644 --- a/dist/theme/black.css +++ b/dist/theme/black.css @@ -34,7 +34,7 @@ section.has-light-background, section.has-light-background h1, section.has-light --r-link-color: #42affa; --r-link-color-dark: #068de9; --r-link-color-hover: #8dcffc; - --r-selection-background-color: #bee4fd; + --r-selection-background-color: rgba(66, 175, 250, 0.75); --r-selection-color: #fff; }