Skip to content

Commit

Permalink
Merge pull request #212 from praw-dev/dark_mode_fixes
Browse files Browse the repository at this point in the history
Dark mode CSS improvements
  • Loading branch information
LilSpazJoekp committed Nov 28, 2022
2 parents cee6e94 + b1d1b53 commit 653d67a
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions docs/_static/theme_override.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ table.center-table-items, table.center-table-items th {
text-align: center;
}

html[data-theme='dark'] .btn-neutral {
color: #c1c1c1 !important;
html[data-theme='dark'] a.btn-neutral,
html[data-theme='dark'] a.btn-neutral:visited {
background-color: #363636ff !important;
color: var(--dark-text-color) !important;
}

html[data-theme='dark'].writer-html4 .rst-content dl:not(.docutils) .descclassname,
html[data-theme='dark'].writer-html4 .rst-content dl:not(.docutils) .descname,
html[data-theme='dark'].writer-html4 .rst-content dl:not(.docutils) .sig-name,
html[data-theme='dark'].writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .descclassname,
html[data-theme='dark'].writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .descname,
html[data-theme='dark'].writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .sig-name {
color: var(--dark-text-color);
}

html[data-theme='dark'] a:visited {
color: #9b59b6 !important;
}

html[data-theme="dark"] a.btn-neutral:hover {
background-color: #1f1f1f !important;
}

0 comments on commit 653d67a

Please sign in to comment.