Skip to content

Commit

Permalink
Change background to make code listing more legible in dark mode.
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Welsch <[email protected]>
  • Loading branch information
dwelsch-esi committed Jan 22, 2025
1 parent 6f4f408 commit 2beceee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Docs/_static/aimet-furo.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--aimet-menu-hover: #e3efff;
--aimet-menu-font-active: #0058ff;
--aimet-code-grey: #fafafa;
--aimet-code-grey-dark: #535353;
--aimet-light-blue: #e7f2fa;
}

Expand Down Expand Up @@ -50,10 +51,17 @@ li.toctree-l2 [for^="toctree-checkbox-"] {
max-height: 25em;
}

*.highlight pre, pre.literal-block {
/* Change the code backgorund in light and default mode */
:not(body[data-theme="dark"]) *.highlight pre, :not(body[data-theme="dark"]) pre.literal-block {
background-color: var(--aimet-code-grey);
}

/* Change the code backgorund in dark mode */
body[data-theme="dark"] *.highlight pre, body[data-theme="dark"] pre.literal-block {
background-color: var(--aimet-code-grey-dark);
}


/*
* Glossary formatting
*/
Expand Down

0 comments on commit 2beceee

Please sign in to comment.