Skip to content

Commit

Permalink
Merge pull request #309 from oasisprotocol/matevz/docs/dark-theme-add…
Browse files Browse the repository at this point in the history
…-image-background

CSS: Add bright background to images when using dark theme
  • Loading branch information
matevz authored Nov 18, 2022
2 parents 92e1023 + f788023 commit 60b1d91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,8 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
.theme-doc-sidebar-menu {
font-size: 14px;
}

/* Hack to make .svg and .png diagrams readable in dark theme */
html[data-theme='dark'] main img {
background-color: #fff;
}

0 comments on commit 60b1d91

Please sign in to comment.