doc: move color overrides into light color scheme block

Otherwise when a user is visiting with dark color scheme
preference, the code fragments would appear with far too
bright colors.
This commit is contained in:
Barnabás Pőcze 2021-06-15 17:39:34 +02:00 committed by Wim Taymans
parent 18ef422f3f
commit a168e4261f

View file

@ -5,10 +5,15 @@
--header-background: #729fcf;
--header-foreground: rgba(255, 255, 255, 0.7);
--font-family: 'Source Sans Pro', 'Source Sans', sans-serif;
--code-background: #f5f5f5;
--code-foreground: #333333;
--fragment-background: #f5f5f5;
--fragment-foreground: #333333;
--fragment-keyword: #c7254e;
--fragment-link: #729fcf;
}
@media (prefers-color-scheme: light) {
:root {
--code-background: #f5f5f5;
--code-foreground: #333333;
--fragment-background: #f5f5f5;
--fragment-foreground: #333333;
--fragment-keyword: #c7254e;
--fragment-link: #729fcf;
}
}