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