From d68e5970f8d40a041aaf57c4af65fa499cee3740 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Sat, 4 Apr 2020 18:45:23 -0400 Subject: [PATCH] Move docs-json dark styles to docs-json-dark.css --- src/docs/modules/index.html | 1 + src/resources/css/docs-json-dark.css | 3 +++ src/resources/css/docs-json.css | 6 ------ 3 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 src/resources/css/docs-json-dark.css diff --git a/src/docs/modules/index.html b/src/docs/modules/index.html index b60d7db..9590a68 100644 --- a/src/docs/modules/index.html +++ b/src/docs/modules/index.html @@ -4,6 +4,7 @@ Modules - Caddy Documentation {{include "/includes/docs-head.html"}} + diff --git a/src/resources/css/docs-json-dark.css b/src/resources/css/docs-json-dark.css new file mode 100644 index 0000000..b6e409e --- /dev/null +++ b/src/resources/css/docs-json-dark.css @@ -0,0 +1,3 @@ +pre > code.json { + background-color: #07212b; +} \ No newline at end of file diff --git a/src/resources/css/docs-json.css b/src/resources/css/docs-json.css index ae0da31..d246efc 100644 --- a/src/resources/css/docs-json.css +++ b/src/resources/css/docs-json.css @@ -24,9 +24,3 @@ article h1 { .collapsed { display: none; } - -@media (prefers-color-scheme: dark) { - pre > code.json { - background-color: #07212b; - } -} \ No newline at end of file