mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Add dark color scheme for text selection (#829)
This commit is contained in:
parent
1b8522031c
commit
a9c940e7f3
@ -3,6 +3,8 @@
|
||||
--content-bg-color: $content-bg-color;
|
||||
--card-bg-color: $card-bg-color;
|
||||
--text-color: $text-color;
|
||||
--selection-bg: $selection-bg;
|
||||
--selection-color: $selection-color;
|
||||
--blockquote-color: $blockquote-color;
|
||||
--link-color: $link-color;
|
||||
--link-hover-color: $link-hover-color;
|
||||
@ -35,6 +37,8 @@ if (hexo-config('darkmode')) {
|
||||
--content-bg-color: $content-bg-color-dark;
|
||||
--card-bg-color: $card-bg-color-dark;
|
||||
--text-color: $text-color-dark;
|
||||
--selection-bg: $selection-bg-dark;
|
||||
--selection-color: $selection-color-dark;
|
||||
--blockquote-color: $blockquote-color-dark;
|
||||
--link-color: $link-color-dark;
|
||||
--link-hover-color: $link-hover-color-dark;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
::selection {
|
||||
background: $selection-bg;
|
||||
color: $selection-color;
|
||||
background: var(--selection-bg);
|
||||
color: var(--selection-color);
|
||||
}
|
||||
|
||||
html, body {
|
||||
|
||||
@ -59,6 +59,8 @@ $content-bg-color-dark = $black-dim;
|
||||
// Selection
|
||||
$selection-bg = $blue-deep;
|
||||
$selection-color = $gainsboro;
|
||||
$selection-bg-dark = $grey;
|
||||
$selection-color-dark = $black-dim;
|
||||
|
||||
// Dark mode color
|
||||
$card-bg-color = $whitesmoke;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user