@@ -15,6 +15,12 @@ div.clearer {
1515 clear : both;
1616}
1717
18+ div .section ::after {
19+ display : block;
20+ content : '' ;
21+ clear : left;
22+ }
23+
1824/* -- relbar ---------------------------------------------------------------- */
1925
2026div .related {
@@ -316,21 +322,27 @@ img.align-default, .figure.align-default {
316322div .sidebar {
317323 margin : 0 0 0.5em 1em ;
318324 border : 1px solid # ddb ;
319- padding : 7px 7 px 0 7 px ;
325+ padding : 7px ;
320326 background-color : # ffe ;
321327 width : 40% ;
322328 float : right;
329+ clear : right;
330+ overflow-x : auto;
323331}
324332
325333p .sidebar-title {
326334 font-weight : bold;
327335}
328336
337+ div .admonition , div .topic , blockquote {
338+ clear : left;
339+ }
340+
329341/* -- topics ---------------------------------------------------------------- */
330342
331343div .topic {
332344 border : 1px solid # ccc ;
333- padding : 7px 7 px 0 7 px ;
345+ padding : 7px ;
334346 margin : 10px 0 10px 0 ;
335347}
336348
@@ -352,10 +364,6 @@ div.admonition dt {
352364 font-weight : bold;
353365}
354366
355- div .admonition dl {
356- margin-bottom : 0 ;
357- }
358-
359367p .admonition-title {
360368 margin : 0px 10px 5px 0px ;
361369 font-weight : bold;
@@ -366,9 +374,28 @@ div.body p.centered {
366374 margin-top : 25px ;
367375}
368376
377+ /* -- content of sidebars/topics/admonitions -------------------------------- */
378+
379+ div .sidebar > : last-child ,
380+ div .topic > : last-child ,
381+ div .admonition > : last-child {
382+ margin-bottom : 0 ;
383+ }
384+
385+ div .sidebar ::after ,
386+ div .topic ::after ,
387+ div .admonition ::after ,
388+ blockquote ::after {
389+ display : block;
390+ content : '' ;
391+ clear : both;
392+ }
393+
369394/* -- tables ---------------------------------------------------------------- */
370395
371396table .docutils {
397+ margin-top : 10px ;
398+ margin-bottom : 10px ;
372399 border : 0 ;
373400 border-collapse : collapse;
374401}
@@ -416,13 +443,13 @@ table.citation td {
416443 border-bottom : none;
417444}
418445
419- th > p : first-child ,
420- td > p : first-child {
446+ th > : first-child ,
447+ td > : first-child {
421448 margin-top : 0px ;
422449}
423450
424- th > p : last-child ,
425- td > p : last-child {
451+ th > : last-child ,
452+ td > : last-child {
426453 margin-bottom : 0px ;
427454}
428455
@@ -468,6 +495,10 @@ table.field-list td, table.field-list th {
468495
469496/* -- hlist styles ---------------------------------------------------------- */
470497
498+ table .hlist {
499+ margin : 1em 0 ;
500+ }
501+
471502table .hlist td {
472503 vertical-align : top;
473504}
@@ -495,17 +526,37 @@ ol.upperroman {
495526 list-style : upper-roman;
496527}
497528
498- li > p : first-child {
529+ : not (li ) > ol > li : first-child > : first-child ,
530+ : not (li ) > ul > li : first-child > : first-child {
499531 margin-top : 0px ;
500532}
501533
502- li > p : last-child {
534+ : not (li ) > ol > li : last-child > : last-child ,
535+ : not (li ) > ul > li : last-child > : last-child {
503536 margin-bottom : 0px ;
504537}
505538
539+ ol .simple ol p ,
540+ ol .simple ul p ,
541+ ul .simple ol p ,
542+ ul .simple ul p {
543+ margin-top : 0 ;
544+ }
545+
546+ ol .simple > li : not (: first-child ) > p ,
547+ ul .simple > li : not (: first-child ) > p {
548+ margin-top : 0 ;
549+ }
550+
551+ ol .simple p ,
552+ ul .simple p {
553+ margin-bottom : 0 ;
554+ }
555+
506556dl .footnote > dt ,
507557dl .citation > dt {
508558 float : left;
559+ margin-right : 0.5em ;
509560}
510561
511562dl .footnote > dd ,
546597 margin-bottom : 15px ;
547598}
548599
549- dd > p : first-child {
600+ dd > : first-child {
550601 margin-top : 0px ;
551602}
552603
@@ -560,6 +611,11 @@ dd {
560611 margin-left : 30px ;
561612}
562613
614+ dl > dd : last-child ,
615+ dl > dd : last-child > : last-child {
616+ margin-bottom : 0 ;
617+ }
618+
563619dt : target , span .highlighted {
564620 background-color : # fbe54e ;
565621}
@@ -637,29 +693,68 @@ pre {
637693 overflow-y : hidden; /* fixes display issues on Chrome browsers */
638694}
639695
696+ pre , div [class *= "highlight-" ] {
697+ clear : both;
698+ }
699+
640700span .pre {
641701 -moz-hyphens : none;
642702 -ms-hyphens : none;
643703 -webkit-hyphens : none;
644704 hyphens : none;
645705}
646706
707+ div [class *= "highlight-" ] {
708+ margin : 1em 0 ;
709+ }
710+
647711td .linenos pre {
648- padding : 5px 0px ;
649712 border : 0 ;
650713 background-color : transparent;
651714 color : # aaa ;
652715}
653716
654717table .highlighttable {
655- margin-left : 0.5em ;
718+ display : block;
719+ }
720+
721+ table .highlighttable tbody {
722+ display : block;
723+ }
724+
725+ table .highlighttable tr {
726+ display : flex;
656727}
657728
658729table .highlighttable td {
659- padding : 0 0.5em 0 0.5em ;
730+ margin : 0 ;
731+ padding : 0 ;
732+ }
733+
734+ table .highlighttable td .linenos {
735+ padding-right : 0.5em ;
736+ }
737+
738+ table .highlighttable td .code {
739+ flex : 1 ;
740+ overflow : hidden;
741+ }
742+
743+ .highlight .hll {
744+ display : block;
745+ }
746+
747+ div .highlight pre ,
748+ table .highlighttable pre {
749+ margin : 0 ;
750+ }
751+
752+ div .code-block-caption + div {
753+ margin-top : 0 ;
660754}
661755
662756div .code-block-caption {
757+ margin-top : 1em ;
663758 padding : 2px 5px ;
664759 font-size : small;
665760}
@@ -668,10 +763,7 @@ div.code-block-caption code {
668763 background-color : transparent;
669764}
670765
671- div .code-block-caption + div > div .highlight > pre {
672- margin-top : 0 ;
673- }
674-
766+ table .highlighttable td .linenos ,
675767div .doctest > div .highlight span .gp { /* gp: Generic.Prompt */
676768 user-select : none;
677769}
@@ -685,11 +777,7 @@ div.code-block-caption span.caption-text {
685777}
686778
687779div .literal-block-wrapper {
688- padding : 1em 1em 0 ;
689- }
690-
691- div .literal-block-wrapper div .highlight {
692- margin : 0 ;
780+ margin : 1em 0 ;
693781}
694782
695783code .descname {
@@ -740,8 +828,7 @@ span.eqno {
740828}
741829
742830span .eqno a .headerlink {
743- position : relative;
744- left : 0px ;
831+ position : absolute;
745832 z-index : 1 ;
746833}
747834
0 commit comments