Skip to content

Commit

Permalink
Merge pull request #10463 from AA-Turner/fix-css-docutils-0-18
Browse files Browse the repository at this point in the history
Footnote & citation display for Docutils 0.18
  • Loading branch information
tk0miya committed May 29, 2022
2 parents 9298b3e + c6e1964 commit 3d3e932
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions sphinx/themes/basic/static/basic.css_t
Expand Up @@ -428,10 +428,6 @@ table.docutils td, table.docutils th {
border-bottom: 1px solid #aaa;
}

table.footnote td, table.footnote th {
border: 0 !important;
}

th {
text-align: left;
padding-right: 5px;
Expand Down Expand Up @@ -615,6 +611,7 @@ ul.simple p {
margin-bottom: 0;
}

/* Docutils 0.17 and older (footnotes & citations) */
dl.footnote > dt,
dl.citation > dt {
float: left;
Expand All @@ -632,6 +629,33 @@ dl.citation > dd:after {
clear: both;
}

/* Docutils 0.18+ (footnotes & citations) */
aside.footnote > span,
div.citation > span {
float: left;
}
aside.footnote > span:last-of-type,
div.citation > span:last-of-type {
padding-right: 0.5em;
}
aside.footnote > p {
margin-left: 2em;
}
div.citation > p {
margin-left: 4em;
}
aside.footnote > p:last-of-type,
div.citation > p:last-of-type {
margin-bottom: 0em;
}
aside.footnote > p:last-of-type:after,
div.citation > p:last-of-type:after {
content: "";
clear: both;
}

/* Footnotes & citations ends */

dl.field-list {
display: grid;
grid-template-columns: fit-content(30%) auto;
Expand Down

0 comments on commit 3d3e932

Please sign in to comment.