44 *
55 * Sphinx stylesheet -- basic theme.
66 *
7- * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
7+ * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
88 * :license: BSD, see LICENSE for details.
99 *
1010 */
@@ -130,7 +130,7 @@ ul.search li a {
130130 font-weight : bold;
131131}
132132
133- ul .search li div .context {
133+ ul .search li p .context {
134134 color : # 888 ;
135135 margin : 2px 0 0 30px ;
136136 text-align : left;
@@ -222,7 +222,7 @@ table.modindextable td {
222222/* -- general body styles --------------------------------------------------- */
223223
224224div .body {
225- min-width : 450 px ;
225+ min-width : 360 px ;
226226 max-width : 800px ;
227227}
228228
@@ -237,16 +237,6 @@ a.headerlink {
237237 visibility : hidden;
238238}
239239
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-
250240h1 : hover > a .headerlink ,
251241h2 : hover > a .headerlink ,
252242h3 : hover > a .headerlink ,
@@ -277,25 +267,25 @@ p.rubric {
277267 font-weight : bold;
278268}
279269
280- img .align-left , .figure .align-left , object .align-left {
270+ img .align-left , figure . align-left , .figure .align-left , object .align-left {
281271 clear : left;
282272 float : left;
283273 margin-right : 1em ;
284274}
285275
286- img .align-right , .figure .align-right , object .align-right {
276+ img .align-right , figure . align-right , .figure .align-right , object .align-right {
287277 clear : right;
288278 float : right;
289279 margin-left : 1em ;
290280}
291281
292- img .align-center , .figure .align-center , object .align-center {
282+ img .align-center , figure . align-center , .figure .align-center , object .align-center {
293283 display : block;
294284 margin-left : auto;
295285 margin-right : auto;
296286}
297287
298- img .align-default , .figure .align-default {
288+ img .align-default , figure . align-default , .figure .align-default {
299289 display : block;
300290 margin-left : auto;
301291 margin-right : auto;
@@ -319,7 +309,8 @@ img.align-default, .figure.align-default {
319309
320310/* -- sidebars -------------------------------------------------------------- */
321311
322- div .sidebar {
312+ div .sidebar ,
313+ aside .sidebar {
323314 margin : 0 0 0.5em 1em ;
324315 border : 1px solid # ddb ;
325316 padding : 7px ;
@@ -334,12 +325,16 @@ p.sidebar-title {
334325 font-weight : bold;
335326}
336327
328+ nav .contents ,
329+ aside .topic ,
337330div .admonition , div .topic , blockquote {
338331 clear : left;
339332}
340333
341334/* -- topics ---------------------------------------------------------------- */
342335
336+ nav .contents ,
337+ aside .topic ,
343338div .topic {
344339 border : 1px solid # ccc ;
345340 padding : 7px ;
@@ -377,12 +372,18 @@ div.body p.centered {
377372/* -- content of sidebars/topics/admonitions -------------------------------- */
378373
379374div .sidebar > : last-child ,
375+ aside .sidebar > : last-child ,
376+ nav .contents > : last-child ,
377+ aside .topic > : last-child ,
380378div .topic > : last-child ,
381379div .admonition > : last-child {
382380 margin-bottom : 0 ;
383381}
384382
385383div .sidebar ::after ,
384+ aside .sidebar ::after ,
385+ nav .contents ::after ,
386+ aside .topic ::after ,
386387div .topic ::after ,
387388div .admonition ::after ,
388389blockquote ::after {
@@ -425,10 +426,6 @@ table.docutils td, table.docutils th {
425426 border-bottom : 1px solid # aaa ;
426427}
427428
428- table .footnote td , table .footnote th {
429- border : 0 !important ;
430- }
431-
432429th {
433430 text-align : left;
434431 padding-right : 5px ;
@@ -455,20 +452,22 @@ td > :last-child {
455452
456453/* -- figures --------------------------------------------------------------- */
457454
458- div .figure {
455+ div .figure , figure {
459456 margin : 0.5em ;
460457 padding : 0.5em ;
461458}
462459
463- div .figure p .caption {
460+ div .figure p .caption , figcaption {
464461 padding : 0.3em ;
465462}
466463
467- div .figure p .caption span .caption-number {
464+ div .figure p .caption span .caption-number ,
465+ figcaption span .caption-number {
468466 font-style : italic;
469467}
470468
471- div .figure p .caption span .caption-text {
469+ div .figure p .caption span .caption-text ,
470+ figcaption span .caption-text {
472471}
473472
474473/* -- field list styles ----------------------------------------------------- */
@@ -503,6 +502,63 @@ table.hlist td {
503502 vertical-align : top;
504503}
505504
505+ /* -- object description styles --------------------------------------------- */
506+
507+ .sig {
508+ font-family : 'Consolas' , 'Menlo' , 'DejaVu Sans Mono' , 'Bitstream Vera Sans Mono' , monospace;
509+ }
510+
511+ .sig-name , code .descname {
512+ background-color : transparent;
513+ font-weight : bold;
514+ }
515+
516+ .sig-name {
517+ font-size : 1.1em ;
518+ }
519+
520+ code .descname {
521+ font-size : 1.2em ;
522+ }
523+
524+ .sig-prename , code .descclassname {
525+ background-color : transparent;
526+ }
527+
528+ .optional {
529+ font-size : 1.3em ;
530+ }
531+
532+ .sig-paren {
533+ font-size : larger;
534+ }
535+
536+ .sig-param .n {
537+ font-style : italic;
538+ }
539+
540+ /* C++ specific styling */
541+
542+ .sig-inline .c-texpr ,
543+ .sig-inline .cpp-texpr {
544+ font-family : unset;
545+ }
546+
547+ .sig .c .k , .sig .c .kt ,
548+ .sig .cpp .k , .sig .cpp .kt {
549+ color : # 0033B3 ;
550+ }
551+
552+ .sig .c .m ,
553+ .sig .cpp .m {
554+ color : # 1750EB ;
555+ }
556+
557+ .sig .c .s , .sig .c .sc ,
558+ .sig .cpp .s , .sig .cpp .sc {
559+ color : # 067D17 ;
560+ }
561+
506562
507563/* -- other body styles ----------------------------------------------------- */
508564
@@ -553,19 +609,26 @@ ul.simple p {
553609 margin-bottom : 0 ;
554610}
555611
556- dl .footnote > dt ,
557- dl .citation > dt {
612+ aside .footnote > span ,
613+ div .citation > span {
558614 float : left;
559- margin-right : 0.5em ;
560615}
561-
562- dl .footnote > dd ,
563- dl .citation > dd {
616+ aside .footnote > span : last-of-type ,
617+ div .citation > span : last-of-type {
618+ padding-right : 0.5em ;
619+ }
620+ aside .footnote > p {
621+ margin-left : 2em ;
622+ }
623+ div .citation > p {
624+ margin-left : 4em ;
625+ }
626+ aside .footnote > p : last-of-type ,
627+ div .citation > p : last-of-type {
564628 margin-bottom : 0em ;
565629}
566-
567- dl .footnote > dd : after ,
568- dl .citation > dd : after {
630+ aside .footnote > p : last-of-type : after ,
631+ div .citation > p : last-of-type : after {
569632 content : "" ;
570633 clear : both;
571634}
@@ -582,10 +645,6 @@ dl.field-list > dt {
582645 padding-right : 5px ;
583646}
584647
585- dl .field-list > dt : after {
586- content : ":" ;
587- }
588-
589648dl .field-list > dd {
590649 padding-left : 0.5em ;
591650 margin-top : 0em ;
@@ -611,6 +670,16 @@ dd {
611670 margin-left : 30px ;
612671}
613672
673+ .sig dd {
674+ margin-top : 0px ;
675+ margin-bottom : 0px ;
676+ }
677+
678+ .sig dl {
679+ margin-top : 0px ;
680+ margin-bottom : 0px ;
681+ }
682+
614683dl > dd : last-child ,
615684dl > dd : last-child > : last-child {
616685 margin-bottom : 0 ;
@@ -629,14 +698,6 @@ dl.glossary dt {
629698 font-size : 1.1em ;
630699}
631700
632- .optional {
633- font-size : 1.3em ;
634- }
635-
636- .sig-paren {
637- font-size : larger;
638- }
639-
640701.versionmodified {
641702 font-style : italic;
642703}
@@ -677,15 +738,24 @@ dl.glossary dt {
677738
678739.classifier : before {
679740 font-style : normal;
680- margin : 0.5em ;
741+ margin : 0 0 .5em ;
681742 content : ":" ;
743+ display : inline-block;
682744}
683745
684746abbr , acronym {
685747 border-bottom : dotted 1px ;
686748 cursor : help;
687749}
688750
751+ .translated {
752+ background-color : rgba (207 , 255 , 207 , 0.2 )
753+ }
754+
755+ .untranslated {
756+ background-color : rgba (255 , 207 , 207 , 0.2 )
757+ }
758+
689759/* -- code displays --------------------------------------------------------- */
690760
691761pre {
@@ -702,6 +772,7 @@ span.pre {
702772 -ms-hyphens : none;
703773 -webkit-hyphens : none;
704774 hyphens : none;
775+ white-space : nowrap;
705776}
706777
707778div [class *= "highlight-" ] {
@@ -764,8 +835,13 @@ div.code-block-caption code {
764835}
765836
766837table .highlighttable td .linenos ,
767- div .doctest > div .highlight span .gp { /* gp: Generic.Prompt */
768- user-select : none;
838+ span .linenos ,
839+ div .highlight span .gp { /* gp: Generic.Prompt */
840+ user-select : none;
841+ -webkit-user-select : text; /* Safari fallback only */
842+ -webkit-user-select : none; /* Chrome/Safari */
843+ -moz-user-select : none; /* Firefox */
844+ -ms-user-select : none; /* IE10+ */
769845}
770846
771847div .code-block-caption span .caption-number {
@@ -780,16 +856,6 @@ div.literal-block-wrapper {
780856 margin : 1em 0 ;
781857}
782858
783- code .descname {
784- background-color : transparent;
785- font-weight : bold;
786- font-size : 1.2em ;
787- }
788-
789- code .descclassname {
790- background-color : transparent;
791- }
792-
793859code .xref , a code {
794860 background-color : transparent;
795861 font-weight : bold;
0 commit comments