From 1b267d48405b6e24fbb197cf27f9e42264c66598 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Thu, 12 Mar 2020 18:17:47 +1100 Subject: [PATCH] Fix darkmode (#8393) * Rearrange the custom CSS a bit. * fix css name * add missing quote * Fix up dark mode rendering. (#8392) * Fix up dark mode rendering. * Update index.html * Fix up code blocks * Fix code in page toc * Update docs/qmk_custom_dark.css Co-Authored-By: Ryan Co-authored-by: skullY Co-authored-by: Ryan --- docs/index.html | 3 ++- docs/qmk_custom_dark.css | 29 ++++++++++++++++++++++ docs/{sidebar.css => qmk_custom_light.css} | 0 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 docs/qmk_custom_dark.css rename docs/{sidebar.css => qmk_custom_light.css} (100%) diff --git a/docs/index.html b/docs/index.html index 4351ce1dd..ec92de495 100644 --- a/docs/index.html +++ b/docs/index.html @@ -16,7 +16,8 @@ - + +
diff --git a/docs/qmk_custom_dark.css b/docs/qmk_custom_dark.css new file mode 100644 index 000000000..a7feb159c --- /dev/null +++ b/docs/qmk_custom_dark.css @@ -0,0 +1,29 @@ +.sidebar li.active { + background-color: #555; +} + +.markdown-section p.tip, +.markdown-section tr:nth-child(2n) { + background-color:#444; +} + +.markdown-section tr { + border-top: 1px solid #555; +} + +.markdown-section td, .markdown-section th { + border: 1px solid #555; +} + +.markdown-section p.tip code { + background-color: #555; + color: #fff; +} + +.page_toc code { + background-color: #555; +} + +.markdown-section hr, .search { + border-bottom: 1px solid #777 !important; +} diff --git a/docs/sidebar.css b/docs/qmk_custom_light.css similarity index 100% rename from docs/sidebar.css rename to docs/qmk_custom_light.css