mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +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;
|
--content-bg-color: $content-bg-color;
|
||||||
--card-bg-color: $card-bg-color;
|
--card-bg-color: $card-bg-color;
|
||||||
--text-color: $text-color;
|
--text-color: $text-color;
|
||||||
|
--selection-bg: $selection-bg;
|
||||||
|
--selection-color: $selection-color;
|
||||||
--blockquote-color: $blockquote-color;
|
--blockquote-color: $blockquote-color;
|
||||||
--link-color: $link-color;
|
--link-color: $link-color;
|
||||||
--link-hover-color: $link-hover-color;
|
--link-hover-color: $link-hover-color;
|
||||||
@ -35,6 +37,8 @@ if (hexo-config('darkmode')) {
|
|||||||
--content-bg-color: $content-bg-color-dark;
|
--content-bg-color: $content-bg-color-dark;
|
||||||
--card-bg-color: $card-bg-color-dark;
|
--card-bg-color: $card-bg-color-dark;
|
||||||
--text-color: $text-color-dark;
|
--text-color: $text-color-dark;
|
||||||
|
--selection-bg: $selection-bg-dark;
|
||||||
|
--selection-color: $selection-color-dark;
|
||||||
--blockquote-color: $blockquote-color-dark;
|
--blockquote-color: $blockquote-color-dark;
|
||||||
--link-color: $link-color-dark;
|
--link-color: $link-color-dark;
|
||||||
--link-hover-color: $link-hover-color-dark;
|
--link-hover-color: $link-hover-color-dark;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
::selection {
|
::selection {
|
||||||
background: $selection-bg;
|
background: var(--selection-bg);
|
||||||
color: $selection-color;
|
color: var(--selection-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
|
|||||||
@ -59,6 +59,8 @@ $content-bg-color-dark = $black-dim;
|
|||||||
// Selection
|
// Selection
|
||||||
$selection-bg = $blue-deep;
|
$selection-bg = $blue-deep;
|
||||||
$selection-color = $gainsboro;
|
$selection-color = $gainsboro;
|
||||||
|
$selection-bg-dark = $grey;
|
||||||
|
$selection-color-dark = $black-dim;
|
||||||
|
|
||||||
// Dark mode color
|
// Dark mode color
|
||||||
$card-bg-color = $whitesmoke;
|
$card-bg-color = $whitesmoke;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user