File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed
sphinx/themes/basic/static Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -513,28 +513,31 @@ ol.upperroman {
513
513
list-style: upper-roman;
514
514
}
515
515
516
- ol > li:first-child > :first-child,
517
- ul > li:first-child > :first-child {
516
+ :not(li) > ol > li:first-child > :first-child,
517
+ :not(li) > ul > li:first-child > :first-child {
518
518
margin-top: 0px;
519
519
}
520
520
521
- ol ol > li:first-child > :first-child,
522
- ol ul > li:first-child > :first-child,
523
- ul ol > li:first-child > :first-child,
524
- ul ul > li:first-child > :first-child {
525
- margin-top: revert;
521
+ :not(li) > ol > li:last-child > :last-child,
522
+ :not(li) > ul > li:last-child > :last-child {
523
+ margin-bottom: 0px;
526
524
}
527
525
528
- ol > li:last-child > :last-child,
529
- ul > li:last-child > :last-child {
530
- margin-bottom: 0px;
526
+ ol.simple ol p,
527
+ ol.simple ul p,
528
+ ul.simple ol p,
529
+ ul.simple ul p {
530
+ margin-top: 0;
531
531
}
532
532
533
- ol ol > li:last-child > :last-child,
534
- ol ul > li:last-child > :last-child,
535
- ul ol > li:last-child > :last-child,
536
- ul ul > li:last-child > :last-child {
537
- margin-bottom: revert;
533
+ ol.simple > li:not(:first-child) > p,
534
+ ul.simple > li:not(:first-child) > p {
535
+ margin-top: 0;
536
+ }
537
+
538
+ ol.simple p,
539
+ ul.simple p {
540
+ margin-bottom: 0;
538
541
}
539
542
540
543
dl.footnote > dt,
You can’t perform that action at this time.
0 commit comments