Skip to content

Commit 3d3e932

Browse files
authored
Merge pull request #10463 from AA-Turner/fix-css-docutils-0-18
Footnote & citation display for Docutils 0.18
2 parents 9298b3e + c6e1964 commit 3d3e932

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

sphinx/themes/basic/static/basic.css_t

+28-4
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,6 @@ table.docutils td, table.docutils th {
428428
border-bottom: 1px solid #aaa;
429429
}
430430

431-
table.footnote td, table.footnote th {
432-
border: 0 !important;
433-
}
434-
435431
th {
436432
text-align: left;
437433
padding-right: 5px;
@@ -615,6 +611,7 @@ ul.simple p {
615611
margin-bottom: 0;
616612
}
617613

614+
/* Docutils 0.17 and older (footnotes & citations) */
618615
dl.footnote > dt,
619616
dl.citation > dt {
620617
float: left;
@@ -632,6 +629,33 @@ dl.citation > dd:after {
632629
clear: both;
633630
}
634631

632+
/* Docutils 0.18+ (footnotes & citations) */
633+
aside.footnote > span,
634+
div.citation > span {
635+
float: left;
636+
}
637+
aside.footnote > span:last-of-type,
638+
div.citation > span:last-of-type {
639+
padding-right: 0.5em;
640+
}
641+
aside.footnote > p {
642+
margin-left: 2em;
643+
}
644+
div.citation > p {
645+
margin-left: 4em;
646+
}
647+
aside.footnote > p:last-of-type,
648+
div.citation > p:last-of-type {
649+
margin-bottom: 0em;
650+
}
651+
aside.footnote > p:last-of-type:after,
652+
div.citation > p:last-of-type:after {
653+
content: "";
654+
clear: both;
655+
}
656+
657+
/* Footnotes & citations ends */
658+
635659
dl.field-list {
636660
display: grid;
637661
grid-template-columns: fit-content(30%) auto;

0 commit comments

Comments
 (0)