Skip to content

Commit

Permalink
Maintain the contrast styling of sphinx gallery code out. (#170)
Browse files Browse the repository at this point in the history
* Add new contrast color for the code out dark

* Web accessibility styling

* Modify the codeout color

Co-authored-by: Roberto Pastor Muela <[email protected]>
  • Loading branch information
Revathyvenugopal162 and RobPasMue committed Jan 23, 2023
1 parent 809f3fd commit 4191135
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ html[data-theme="light"] {
--pst-color-inline-code: #000;
--pst-color-target: rgb(255, 255, 255);
/* color for sphinx-gallery-code output*/
--pst-color-codeout: #fafae2;
--pst-color-codecell: #fafae2;
--pst-color-codeout:var(--pst-color-inline-code);
--pst-color-sig:#0965C8;
}

Expand Down Expand Up @@ -129,7 +130,8 @@ html[data-theme="dark"] {
--pst-color-inline-code: #fff;
--pst-color-target: rgb(71, 39, 0);
/* color for sphinx-gallery-code output*/
--pst-color-codeout: #929FAA;
--pst-color-codecell: #495057;
--pst-color-codeout: #f2f4f6;
--pst-color-sig:#d6ab1e;
}

Expand Down Expand Up @@ -552,7 +554,8 @@ a > code.download
########################
*/
.sphx-glr-script-out .highlight pre{
background-color: var(--pst-color-codeout) !important;
background-color: var(--pst-color-codecell) !important;
color: var(--pst-color-codeout);
}

.prev-next-area a p.prev-next-title {
Expand Down

0 comments on commit 4191135

Please sign in to comment.