Skip to content

Commit

Permalink
CSS: support for aside.sidebar
Browse files Browse the repository at this point in the history
... which is produced by docutils 0.17+
  • Loading branch information
mgeier committed Apr 21, 2021
1 parent d26aef0 commit 5038b3f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/insipid_sphinx_theme/insipid/static/insipid.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ strong:target {
div.body dl > dt:target,
div.body div.admonition dl > dt:target,
div.body div.topic dl > dt:target,
div.body div.sidebar dl > dt:target,
div.body div.sidebar .sidebar-title a:target,
div.body .sidebar dl > dt:target,
div.body .sidebar .sidebar-title a:target,
div.body a:target,
strong:target {
background-color: #fbe54e;
Expand Down Expand Up @@ -268,7 +268,7 @@ code.xref,
a code,
div.body div.admonition dl > dt code,
div.body div.topic dl > dt code,
div.body div.sidebar dl > dt code,
div.body .sidebar dl > dt code,
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code,
div.code-block-caption code {
background-color: rgba(27,31,35,.05);
Expand Down Expand Up @@ -324,13 +324,13 @@ kbd.docutils:not(.compound) {

/* -- admonitions ----------------------------------------------------------- */

div.topic, div.sidebar {
div.topic, div.sidebar, aside.sidebar {
border: none;
}

div.admonition > p.admonition-title,
div.topic > p.topic-title,
div.sidebar > p.sidebar-title {
.sidebar > p.sidebar-title {
margin: -7px -7px 7px -7px;
padding: 4px 7px;
font-weight: normal;
Expand All @@ -347,7 +347,7 @@ div.sidebar > p.sidebar-title {

div.admonition > p.admonition-title + *,
div.topic > p.topic-title + *,
div.sidebar > p.sidebar-title + * {
.sidebar > p.sidebar-title + * {
margin-top: 0;
}

Expand Down Expand Up @@ -388,11 +388,12 @@ div.topic > p.topic-title {
}

div.sidebar,
aside.sidebar,
div.admonition.seealso {
background-color: #f4f4f4;
}

div.sidebar > p.sidebar-title,
.sidebar > p.sidebar-title,
div.admonition.seealso > p.admonition-title {
background-color: #e4e4e4;
}
Expand All @@ -408,14 +409,14 @@ p.sidebar-subtitle {
/* More specific selectors to override previous defintions */
div.body div.admonition dl > dt,
div.body div.topic dl > dt,
div.body div.sidebar dl > dt {
div.body .sidebar dl > dt {
padding: unset;
background-color: unset;
}

div.body div.admonition dl:not(.glossary) > dt,
div.body div.topic dl:not(.glossary) > dt,
div.body div.sidebar dl:not(.glossary) > dt {
div.body .sidebar dl:not(.glossary) > dt {
font-weight: unset;
}

Expand Down Expand Up @@ -486,7 +487,7 @@ div.body dl > dt:first-child {
div.body dl > dt.label:target,
div.body div.admonition dl > dt:target,
div.body div.topic dl > dt:target,
div.body div.sidebar dl > dt:target {
div.body .sidebar dl > dt:target {
padding: 3px 7px;
margin-top: -3px;
margin-bottom: -3px;
Expand Down

0 comments on commit 5038b3f

Please sign in to comment.