mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 12:07:51 +00:00
[Docs] Improve scrollbars (#24971)
Follow dark/light modes.
(cherry picked from commit 9d0c0b89f2)
This commit is contained in:
committed by
narimiran
parent
c55ee7a191
commit
1b49765122
@@ -11,6 +11,7 @@ Modified by Boyd Greenfield and narimiran
|
||||
*/
|
||||
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--primary-background: #fff;
|
||||
--secondary-background: ghostwhite;
|
||||
--third-background: #e8e8e8;
|
||||
@@ -45,6 +46,7 @@ Modified by Boyd Greenfield and narimiran
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
--primary-background: #171921;
|
||||
--secondary-background: #1e202a;
|
||||
--third-background: #2b2e3b;
|
||||
@@ -80,6 +82,7 @@ Modified by Boyd Greenfield and narimiran
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-theme="auto"] {
|
||||
color-scheme: dark;
|
||||
--primary-background: #171921;
|
||||
--secondary-background: #1e202a;
|
||||
--third-background: #2b2e3b;
|
||||
|
||||
@@ -11,6 +11,7 @@ Modified by Boyd Greenfield and narimiran
|
||||
*/
|
||||
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--primary-background: #fff;
|
||||
--secondary-background: ghostwhite;
|
||||
--third-background: #e8e8e8;
|
||||
@@ -45,6 +46,7 @@ Modified by Boyd Greenfield and narimiran
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
--primary-background: #171921;
|
||||
--secondary-background: #1e202a;
|
||||
--third-background: #2b2e3b;
|
||||
@@ -80,6 +82,7 @@ Modified by Boyd Greenfield and narimiran
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-theme="auto"] {
|
||||
color-scheme: dark;
|
||||
--primary-background: #171921;
|
||||
--secondary-background: #1e202a;
|
||||
--third-background: #2b2e3b;
|
||||
|
||||
Reference in New Issue
Block a user