Skip to content

Commit

Permalink
Fix darkmode (qmk#8393)
Browse files Browse the repository at this point in the history
* Rearrange the custom CSS a bit.

* fix css name

* add missing quote

* Fix up dark mode rendering. (qmk#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 <[email protected]>

Co-authored-by: skullY <[email protected]>
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
3 people authored Mar 12, 2020
1 parent 32d03ee commit 1b267d4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/buble.css" title="light">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/dark.css" media="(prefers-color-scheme: dark)">
<link rel="stylesheet" href="//unpkg.com/[email protected]/dist/toc.css">
<link rel="stylesheet" href="sidebar.css" />
<link rel="stylesheet" href="qmk_custom_light.css">
<link rel="stylesheet" href="qmk_custom_dark.css" media="(prefers-color-scheme: dark)">
</head>
<body>
<div id="app"></div>
Expand Down
29 changes: 29 additions & 0 deletions docs/qmk_custom_dark.css
Original file line number Diff line number Diff line change
@@ -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;
}
File renamed without changes.

0 comments on commit 1b267d4

Please sign in to comment.