Skip to content

Commit

Permalink
Tweaked custom style sheet regarding highlighting and indexes. (#1567)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Habel <19556655+StefanHabel@users.noreply.github.com>
  • Loading branch information
StefanHabel committed Oct 21, 2023
1 parent f064a22 commit d30276b
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions documents/sphinx-custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ html {
--fragment-linenumber-color: #cccccc;
--fragment-linenumber-background: #35393c;
--fragment-linenumber-border: #1f1f1f;

/* Additional custom color variables */
--highlight-color: #fbe54e;
--target-color: #204D79;
}

/*
Expand Down Expand Up @@ -149,7 +153,11 @@ div.body li {
margin-bottom: 3px;
}
dt:target {
background: #204D79;
background: var(--target-color);
}
span.highlighted {
background-color: var(--highlight-color);
color: black;
}
dt.sig {
background-color: var(--code-background);
Expand All @@ -159,8 +167,7 @@ dt.sig {
margin-bottom: 8px;
}
dt.sig:target {
background-color: var(--code-background-brighter);
border: 2px solid #204D79;
border: 2px solid var(--target-color);
padding: 9px;
}
div.admonition {
Expand Down Expand Up @@ -215,6 +222,19 @@ a:hover code {
color: var(--page-foreground-color);
}

/* Indexes */
div.modindex-jumpbox {
border-top: 1px solid var(--separator-color);
border-bottom: 1px solid var(--separator-color);
color: var(--separator-color);
}

div.genindex-jumpbox {
border-top: 1px solid var(--separator-color);
border-bottom: 1px solid var(--separator-color);
color: var(--separator-color);
}

/* Tables */
table,
table.docutils {
Expand Down

0 comments on commit d30276b

Please sign in to comment.