44 *
55 * Sphinx stylesheet -- basic theme.
66 *
7- * :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
7+ * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
88 * :license: BSD, see LICENSE for details.
99 *
1010 */
@@ -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 {
@@ -231,6 +237,16 @@ a.headerlink {
231237 visibility : hidden;
232238}
233239
240+ a .brackets : before ,
241+ span .brackets > a : before {
242+ content : "[" ;
243+ }
244+
245+ a .brackets : after ,
246+ span .brackets > a : after {
247+ content : "]" ;
248+ }
249+
234250h1 : hover > a .headerlink ,
235251h2 : hover > a .headerlink ,
236252h3 : hover > a .headerlink ,
@@ -279,6 +295,12 @@ img.align-center, .figure.align-center, object.align-center {
279295 margin-right : auto;
280296}
281297
298+ img .align-default , .figure .align-default {
299+ display : block;
300+ margin-left : auto;
301+ margin-right : auto;
302+ }
303+
282304.align-left {
283305 text-align : left;
284306}
@@ -287,6 +309,10 @@ img.align-center, .figure.align-center, object.align-center {
287309 text-align : center;
288310}
289311
312+ .align-default {
313+ text-align : center;
314+ }
315+
290316.align-right {
291317 text-align : right;
292318}
@@ -296,21 +322,27 @@ img.align-center, .figure.align-center, object.align-center {
296322div .sidebar {
297323 margin : 0 0 0.5em 1em ;
298324 border : 1px solid # ddb ;
299- padding : 7px 7 px 0 7 px ;
325+ padding : 7px ;
300326 background-color : # ffe ;
301327 width : 40% ;
302328 float : right;
329+ clear : right;
330+ overflow-x : auto;
303331}
304332
305333p .sidebar-title {
306334 font-weight : bold;
307335}
308336
337+ div .admonition , div .topic , blockquote {
338+ clear : left;
339+ }
340+
309341/* -- topics ---------------------------------------------------------------- */
310342
311343div .topic {
312344 border : 1px solid # ccc ;
313- padding : 7px 7 px 0 7 px ;
345+ padding : 7px ;
314346 margin : 10px 0 10px 0 ;
315347}
316348
@@ -332,10 +364,6 @@ div.admonition dt {
332364 font-weight : bold;
333365}
334366
335- div .admonition dl {
336- margin-bottom : 0 ;
337- }
338-
339367p .admonition-title {
340368 margin : 0px 10px 5px 0px ;
341369 font-weight : bold;
@@ -346,9 +374,28 @@ div.body p.centered {
346374 margin-top : 25px ;
347375}
348376
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+
349394/* -- tables ---------------------------------------------------------------- */
350395
351396table .docutils {
397+ margin-top : 10px ;
398+ margin-bottom : 10px ;
352399 border : 0 ;
353400 border-collapse : collapse;
354401}
@@ -358,6 +405,11 @@ table.align-center {
358405 margin-right : auto;
359406}
360407
408+ table .align-default {
409+ margin-left : auto;
410+ margin-right : auto;
411+ }
412+
361413table caption span .caption-number {
362414 font-style : italic;
363415}
@@ -391,6 +443,16 @@ table.citation td {
391443 border-bottom : none;
392444}
393445
446+ th > : first-child ,
447+ td > : first-child {
448+ margin-top : 0px ;
449+ }
450+
451+ th > : last-child ,
452+ td > : last-child {
453+ margin-bottom : 0px ;
454+ }
455+
394456/* -- figures --------------------------------------------------------------- */
395457
396458div .figure {
@@ -433,6 +495,10 @@ table.field-list td, table.field-list th {
433495
434496/* -- hlist styles ---------------------------------------------------------- */
435497
498+ table .hlist {
499+ margin : 1em 0 ;
500+ }
501+
436502table .hlist td {
437503 vertical-align : top;
438504}
@@ -460,11 +526,78 @@ ol.upperroman {
460526 list-style : upper-roman;
461527}
462528
529+ : not (li ) > ol > li : first-child > : first-child ,
530+ : not (li ) > ul > li : first-child > : first-child {
531+ margin-top : 0px ;
532+ }
533+
534+ : not (li ) > ol > li : last-child > : last-child ,
535+ : not (li ) > ul > li : last-child > : last-child {
536+ margin-bottom : 0px ;
537+ }
538+
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+
556+ dl .footnote > dt ,
557+ dl .citation > dt {
558+ float : left;
559+ margin-right : 0.5em ;
560+ }
561+
562+ dl .footnote > dd ,
563+ dl .citation > dd {
564+ margin-bottom : 0em ;
565+ }
566+
567+ dl .footnote > dd : after ,
568+ dl .citation > dd : after {
569+ content : "" ;
570+ clear : both;
571+ }
572+
573+ dl .field-list {
574+ display : grid;
575+ grid-template-columns : fit-content (30% ) auto;
576+ }
577+
578+ dl .field-list > dt {
579+ font-weight : bold;
580+ word-break : break-word;
581+ padding-left : 0.5em ;
582+ padding-right : 5px ;
583+ }
584+
585+ dl .field-list > dt : after {
586+ content : ":" ;
587+ }
588+
589+ dl .field-list > dd {
590+ padding-left : 0.5em ;
591+ margin-top : 0em ;
592+ margin-left : 0em ;
593+ margin-bottom : 0em ;
594+ }
595+
463596dl {
464597 margin-bottom : 15px ;
465598}
466599
467- dd p {
600+ dd > : first-child {
468601 margin-top : 0px ;
469602}
470603
@@ -478,6 +611,11 @@ dd {
478611 margin-left : 30px ;
479612}
480613
614+ dl > dd : last-child ,
615+ dl > dd : last-child > : last-child {
616+ margin-bottom : 0 ;
617+ }
618+
481619dt : target , span .highlighted {
482620 background-color : # fbe54e ;
483621}
@@ -537,6 +675,12 @@ dl.glossary dt {
537675 font-style : oblique;
538676}
539677
678+ .classifier : before {
679+ font-style : normal;
680+ margin : 0.5em ;
681+ content : ":" ;
682+ }
683+
540684abbr , acronym {
541685 border-bottom : dotted 1px ;
542686 cursor : help;
@@ -549,29 +693,68 @@ pre {
549693 overflow-y : hidden; /* fixes display issues on Chrome browsers */
550694}
551695
696+ pre , div [class *= "highlight-" ] {
697+ clear : both;
698+ }
699+
552700span .pre {
553701 -moz-hyphens : none;
554702 -ms-hyphens : none;
555703 -webkit-hyphens : none;
556704 hyphens : none;
557705}
558706
707+ div [class *= "highlight-" ] {
708+ margin : 1em 0 ;
709+ }
710+
559711td .linenos pre {
560- padding : 5px 0px ;
561712 border : 0 ;
562713 background-color : transparent;
563714 color : # aaa ;
564715}
565716
566717table .highlighttable {
567- 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;
568727}
569728
570729table .highlighttable td {
571- 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 ;
572754}
573755
574756div .code-block-caption {
757+ margin-top : 1em ;
575758 padding : 2px 5px ;
576759 font-size : small;
577760}
@@ -580,8 +763,10 @@ div.code-block-caption code {
580763 background-color : transparent;
581764}
582765
583- div .code-block-caption + div > div .highlight > pre {
584- margin-top : 0 ;
766+ table .highlighttable td .linenos ,
767+ span .linenos ,
768+ div .doctest > div .highlight span .gp { /* gp: Generic.Prompt */
769+ user-select : none;
585770}
586771
587772div .code-block-caption span .caption-number {
@@ -593,11 +778,7 @@ div.code-block-caption span.caption-text {
593778}
594779
595780div .literal-block-wrapper {
596- padding : 1em 1em 0 ;
597- }
598-
599- div .literal-block-wrapper div .highlight {
600- margin : 0 ;
781+ margin : 1em 0 ;
601782}
602783
603784code .descname {
@@ -648,8 +829,7 @@ span.eqno {
648829}
649830
650831span .eqno a .headerlink {
651- position : relative;
652- left : 0px ;
832+ position : absolute;
653833 z-index : 1 ;
654834}
655835
0 commit comments