From 6e993da510d5963f12def4a9f699f4af14faaafb Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 7 Oct 2020 11:08:36 +1100 Subject: [PATCH] fix highlight of text selected for light mode --- stylesheets/_session.scss | 4 +++- stylesheets/themes.scss | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stylesheets/_session.scss b/stylesheets/_session.scss index 10cfb00ba..aa5082d35 100644 --- a/stylesheets/_session.scss +++ b/stylesheets/_session.scss @@ -38,7 +38,9 @@ textarea { user-select: text; &::selection { - background: rgba($session-color-green, 0.6); + @include themify($themes) { + background: themed('textHighlight'); + } } } } diff --git a/stylesheets/themes.scss b/stylesheets/themes.scss index 0c9835a55..372bfbce6 100644 --- a/stylesheets/themes.scss +++ b/stylesheets/themes.scss @@ -25,6 +25,7 @@ $themes: ( textColor: $black, textColorSubtle: #a0a0a0, textColorOpposite: $white, + textHighlight: rgba($black, 0.2), // inbox inboxBackground: $white, // buttons @@ -74,6 +75,7 @@ $themes: ( textColor: $white, textColorSubtle: #a0a0a0, textColorOpposite: $black, + textHighlight: rgba($accentDarkTheme, 0.6), // inbox inboxBackground: linear-gradient(180deg, #171717 0%, #121212 100%), // buttons