From d86ee9e111ca818959df584eedff5a4ac7043677 Mon Sep 17 00:00:00 2001 From: Guillermo Chavez Date: Wed, 15 Sep 2021 13:13:57 -0600 Subject: [PATCH] Change text selection color for code blocks. --- .vuepress/styles/index.styl | 5 +++++ .vuepress/styles/palette.styl | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.vuepress/styles/index.styl b/.vuepress/styles/index.styl index 15b8acd8..52754ba7 100755 --- a/.vuepress/styles/index.styl +++ b/.vuepress/styles/index.styl @@ -45,3 +45,8 @@ tr background-color var(--sideBgColor)!important box-shadow 0px 0px 2px var(--bodyBgColor) right -12%!important + +[data-theme="light"] + div[class*="language-"] + pre *::selection + background-color $textCodeSelectionColor \ No newline at end of file diff --git a/.vuepress/styles/palette.styl b/.vuepress/styles/palette.styl index 999b1ed0..3809e731 100755 --- a/.vuepress/styles/palette.styl +++ b/.vuepress/styles/palette.styl @@ -14,6 +14,8 @@ $textColor = #2c3e50 $bodyBgColor = #fff $sideBgColor = #fff $badgeTipColor = #caf2ff +$textCodeSelectionColor = #2c3e50 + // Dark Theme $accentColorDark = #30BCD5