From 1b267d48405b6e24fbb197cf27f9e42264c66598 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Thu, 12 Mar 2020 18:17:47 +1100 Subject: 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/qmk_custom_light.css | 30 ++++++++++++++++++++++++++++++ docs/sidebar.css | 30 ------------------------------ 4 files changed, 61 insertions(+), 31 deletions(-) create mode 100644 docs/qmk_custom_dark.css create mode 100644 docs/qmk_custom_light.css delete mode 100644 docs/sidebar.css (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index 4351ce1dd4..ec92de4950 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 0000000000..a7feb159c8 --- /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/qmk_custom_light.css b/docs/qmk_custom_light.css new file mode 100644 index 0000000000..07b26ecec9 --- /dev/null +++ b/docs/qmk_custom_light.css @@ -0,0 +1,30 @@ +.sidebar-toggle { + position: absolute; + top: 0; + bottom: auto; + left: 0; +} + +.search { + margin-top: 40px; +} + +.markdown-section h2 { + padding-top: 0.25rem; +} + +.markdown-section h3 { + margin-top: 0.25rem; +} + +.sidebar, .sidebar-nav { + line-height: 1.5em !important; +} + +.markdown-section ul ul { + margin: 0; +} + +.markdown-section pre { + padding: 0; +} diff --git a/docs/sidebar.css b/docs/sidebar.css deleted file mode 100644 index 07b26ecec9..0000000000 --- a/docs/sidebar.css +++ /dev/null @@ -1,30 +0,0 @@ -.sidebar-toggle { - position: absolute; - top: 0; - bottom: auto; - left: 0; -} - -.search { - margin-top: 40px; -} - -.markdown-section h2 { - padding-top: 0.25rem; -} - -.markdown-section h3 { - margin-top: 0.25rem; -} - -.sidebar, .sidebar-nav { - line-height: 1.5em !important; -} - -.markdown-section ul ul { - margin: 0; -} - -.markdown-section pre { - padding: 0; -} -- cgit v1.2.3