mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Add color-scheme CSS property (#388)
This commit is contained in:
parent
f8c0f46bd4
commit
0fc5f849b6
@ -24,6 +24,8 @@
|
|||||||
--highlight-foreground: $highlight-foreground;
|
--highlight-foreground: $highlight-foreground;
|
||||||
--highlight-gutter-background: $highlight-gutter-background;
|
--highlight-gutter-background: $highlight-gutter-background;
|
||||||
--highlight-gutter-foreground: $highlight-gutter-foreground;
|
--highlight-gutter-foreground: $highlight-gutter-foreground;
|
||||||
|
|
||||||
|
color-scheme: light;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hexo-config('darkmode')) {
|
if (hexo-config('darkmode')) {
|
||||||
@ -54,6 +56,8 @@ if (hexo-config('darkmode')) {
|
|||||||
--highlight-foreground: $highlight-foreground-dark;
|
--highlight-foreground: $highlight-foreground-dark;
|
||||||
--highlight-gutter-background: $highlight-gutter-background-dark;
|
--highlight-gutter-background: $highlight-gutter-background-dark;
|
||||||
--highlight-gutter-foreground: $highlight-gutter-foreground-dark;
|
--highlight-gutter-foreground: $highlight-gutter-foreground-dark;
|
||||||
|
|
||||||
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@ -63,5 +67,9 @@ if (hexo-config('darkmode')) {
|
|||||||
opacity: .9;
|
opacity: .9;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
color-scheme: light;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user