Skip to content

Commit

Permalink
docs(style): custom code block colors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsanima committed Apr 26, 2022
1 parent 4666e88 commit cbc2c73
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/_static/mdsanima.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,21 @@ p code.literal {
.related-pages code.literal {
padding: 0%;
}

/* custom code block colors */
body:not([data-theme="light"]) .highlight :is(.kn, .kc) {
color: var(--color-mdsanima-lime-600);
}
body:not([data-theme="light"]) .highlight :is(.nn, .nf, .mi, .mf) {
color: var(--color-mdsanima-sky-500);
text-decoration: none;
}
body:not([data-theme="light"]) .highlight .s2 {
color: var(--color-mdsanima-orange-500);
}
body:not([data-theme="light"]) .highlight .nb {
color: var(--color-mdsanima-teal-500);
}
body:not([data-theme="light"]) .highlight .m {
color: #d0d0d0;
}

0 comments on commit cbc2c73

Please sign in to comment.