aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormb21 <[email protected]>2021-03-20 12:24:02 +0100
committermb21 <[email protected]>2021-03-20 13:48:12 +0100
commit8655871a40eeb725dda79d9446585116534c77b8 (patch)
tree31d53e25d246680b19aa7fe14b5995cae5bf4363
parent0e489c511578b9e131f94a3ff268209d4d6646a7 (diff)
wrap in if(document-css)dark-mode
-rw-r--r--data/templates/styles.html2
-rw-r--r--test/s5-basic.html22
-rw-r--r--test/s5-fancy.html22
-rw-r--r--test/s5-inserts.html22
4 files changed, 2 insertions, 66 deletions
diff --git a/data/templates/styles.html b/data/templates/styles.html
index ad8b9aa88..250c7ef9c 100644
--- a/data/templates/styles.html
+++ b/data/templates/styles.html
@@ -177,6 +177,7 @@ div.csl-indent {
margin-left: 2em;
}
$endif$
+$if(document-css)$
@media screen and (prefers-color-scheme: dark) {
html {
color: #d3d3d3;
@@ -202,4 +203,5 @@ $endif$
$highlighting-css-dark$
$endif$
}
+$endif$
diff --git a/test/s5-basic.html b/test/s5-basic.html
index bf678c5c5..7440b575b 100644
--- a/test/s5-basic.html
+++ b/test/s5-basic.html
@@ -18,28 +18,6 @@
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
- @media screen and (prefers-color-scheme: dark) {
- html {
- color: #d3d3d3;
- background-color: #101010;
- }
- a, a:visited {
- color: #d3d3d3;
- }
- blockquote {
- border-color: #707070;
- color: #d3d3d3;
- }
- hr {
- background-color: #d3d3d3;
- }
- tbody, th {
- border-color: #d3d3d3;
- }
- pre, code {
- background-color: #1b1b1b;
- }
- }
</style>
<!-- configuration parameters -->
<meta name="defaultView" content="slideshow" />
diff --git a/test/s5-fancy.html b/test/s5-fancy.html
index 9bfafac4a..f5c41e561 100644
--- a/test/s5-fancy.html
+++ b/test/s5-fancy.html
@@ -17,28 +17,6 @@
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
- @media screen and (prefers-color-scheme: dark) {
- html {
- color: #d3d3d3;
- background-color: #101010;
- }
- a, a:visited {
- color: #d3d3d3;
- }
- blockquote {
- border-color: #707070;
- color: #d3d3d3;
- }
- hr {
- background-color: #d3d3d3;
- }
- tbody, th {
- border-color: #d3d3d3;
- }
- pre, code {
- background-color: #1b1b1b;
- }
- }
</style>
<!-- configuration parameters -->
<meta name="defaultView" content="slideshow" />
diff --git a/test/s5-inserts.html b/test/s5-inserts.html
index ca75dd05d..1df9dd018 100644
--- a/test/s5-inserts.html
+++ b/test/s5-inserts.html
@@ -16,28 +16,6 @@
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
- @media screen and (prefers-color-scheme: dark) {
- html {
- color: #d3d3d3;
- background-color: #101010;
- }
- a, a:visited {
- color: #d3d3d3;
- }
- blockquote {
- border-color: #707070;
- color: #d3d3d3;
- }
- hr {
- background-color: #d3d3d3;
- }
- tbody, th {
- border-color: #d3d3d3;
- }
- pre, code {
- background-color: #1b1b1b;
- }
- }
</style>
<link rel="stylesheet" href="main.css" type="text/css" />
STUFF INSERTED