deploy: dadd318b85
This commit is contained in:
parent
e2c9005ce6
commit
90dab587d5
4 changed files with 12 additions and 9 deletions
|
@ -346,7 +346,7 @@ function playground_text(playground, hidden = true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
themeColorMetaTag.content = getComputedStyle(document.body).backgroundColor;
|
themeColorMetaTag.content = getComputedStyle(document.documentElement).backgroundColor;
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|
||||||
if (window.ace && window.editors) {
|
if (window.ace && window.editors) {
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
:root {
|
:root {
|
||||||
/* Browser default font-size is 16px, this way 1 rem = 10px */
|
/* Browser default font-size is 16px, this way 1 rem = 10px */
|
||||||
font-size: 62.5%;
|
font-size: 62.5%;
|
||||||
|
color-scheme: var(--color-scheme);
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
|
|
@ -22,14 +22,6 @@
|
||||||
overflow-y: initial;
|
overflow-y: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
|
||||||
background-color: #666666;
|
|
||||||
border-radius: 5px;
|
|
||||||
|
|
||||||
/* Force background to be printed in Chrome */
|
|
||||||
-webkit-print-color-adjust: exact;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre > .buttons {
|
pre > .buttons {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
--searchresults-border-color: #888;
|
--searchresults-border-color: #888;
|
||||||
--searchresults-li-bg: #252932;
|
--searchresults-li-bg: #252932;
|
||||||
--search-mark-bg: #e3b171;
|
--search-mark-bg: #e3b171;
|
||||||
|
|
||||||
|
--color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
.coal {
|
.coal {
|
||||||
|
@ -90,6 +92,8 @@
|
||||||
--searchresults-border-color: #98a3ad;
|
--searchresults-border-color: #98a3ad;
|
||||||
--searchresults-li-bg: #2b2b2f;
|
--searchresults-li-bg: #2b2b2f;
|
||||||
--search-mark-bg: #355c7d;
|
--search-mark-bg: #355c7d;
|
||||||
|
|
||||||
|
--color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
.light {
|
.light {
|
||||||
|
@ -130,6 +134,8 @@
|
||||||
--searchresults-border-color: #888;
|
--searchresults-border-color: #888;
|
||||||
--searchresults-li-bg: #e4f2fe;
|
--searchresults-li-bg: #e4f2fe;
|
||||||
--search-mark-bg: #a2cff5;
|
--search-mark-bg: #a2cff5;
|
||||||
|
|
||||||
|
--color-scheme: light;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navy {
|
.navy {
|
||||||
|
@ -170,6 +176,8 @@
|
||||||
--searchresults-border-color: #5c5c68;
|
--searchresults-border-color: #5c5c68;
|
||||||
--searchresults-li-bg: #242430;
|
--searchresults-li-bg: #242430;
|
||||||
--search-mark-bg: #a2cff5;
|
--search-mark-bg: #a2cff5;
|
||||||
|
|
||||||
|
--color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rust {
|
.rust {
|
||||||
|
@ -210,6 +218,8 @@
|
||||||
--searchresults-border-color: #888;
|
--searchresults-border-color: #888;
|
||||||
--searchresults-li-bg: #dec2a2;
|
--searchresults-li-bg: #dec2a2;
|
||||||
--search-mark-bg: #e69f67;
|
--search-mark-bg: #e69f67;
|
||||||
|
|
||||||
|
--color-scheme: light;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue