Skip to content

Commit

Permalink
Restore styling of pro/con tables (#552)
Browse files Browse the repository at this point in the history
Sphinx now renders these as definition lists
  • Loading branch information
stefanv committed Dec 1, 2022
1 parent 050ae13 commit 089c9b7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions themes/scipy_lectures/static/nature.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,33 @@ table.field-list {
width: 100%;
}

/* Replicate coloring for definition lists */
/* Sphinx now uses these instead of tables for field lists */
/* https://www.sphinx-doc.org/en/master/usage/restructuredtext/field-lists.html */
dl.field-list {
border-top: solid 1px #AAAAAA;
}
dt.field-odd {
border-bottom: solid 1px #AAAAAA;
padding: 0.3em;
}
dt.field-even {
border-bottom: solid 1px #AAAAAA;
padding: 0.3em;
}
dd.field-odd {
background-color: #FFFFEE;
border-bottom: solid 1px #AAAAAA;
padding-right: 0.75em;
padding-bottom: 0.3em;
}
dd.field-even {
background-color: #F3F3FF;
border-bottom: solid 1px #AAAAAA;
padding-right: 0.75em;
padding-bottom: 0.3em;
}

/* Boxes */
aside.topic, div.admonition {
border-radius: 4px 4px 4px 4px;
Expand Down

0 comments on commit 089c9b7

Please sign in to comment.