44 *
55 * Sphinx stylesheet -- basic theme.
66 *
7- * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
7+ * :copyright: Copyright 2007-2022 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 ;
@@ -333,12 +324,16 @@ div.sidebar {
333324p .sidebar-title {
334325 font-weight : bold;
335326}
327+ nav .contents ,
328+ aside .topic ,
336329
337330div .admonition , div .topic , blockquote {
338331 clear : left;
339332}
340333
341334/* -- topics ---------------------------------------------------------------- */
335+ nav .contents ,
336+ aside .topic ,
342337
343338div .topic {
344339 border : 1px solid # ccc ;
@@ -377,12 +372,20 @@ 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 ,
378+
380379div .topic > : last-child ,
381380div .admonition > : last-child {
382381 margin-bottom : 0 ;
383382}
384383
385384div .sidebar ::after ,
385+ aside .sidebar ::after ,
386+ nav .contents ::after ,
387+ aside .topic ::after ,
388+
386389div .topic ::after ,
387390div .admonition ::after ,
388391blockquote ::after {
@@ -425,10 +428,6 @@ table.docutils td, table.docutils th {
425428 border-bottom : 1px solid # aaa ;
426429}
427430
428- table .footnote td , table .footnote th {
429- border : 0 !important ;
430- }
431-
432431th {
433432 text-align : left;
434433 padding-right : 5px ;
@@ -455,20 +454,22 @@ td > :last-child {
455454
456455/* -- figures --------------------------------------------------------------- */
457456
458- div .figure {
457+ div .figure , figure {
459458 margin : 0.5em ;
460459 padding : 0.5em ;
461460}
462461
463- div .figure p .caption {
462+ div .figure p .caption , figcaption {
464463 padding : 0.3em ;
465464}
466465
467- div .figure p .caption span .caption-number {
466+ div .figure p .caption span .caption-number ,
467+ figcaption span .caption-number {
468468 font-style : italic;
469469}
470470
471- div .figure p .caption span .caption-text {
471+ div .figure p .caption span .caption-text ,
472+ figcaption span .caption-text {
472473}
473474
474475/* -- field list styles ----------------------------------------------------- */
@@ -503,6 +504,63 @@ table.hlist td {
503504 vertical-align : top;
504505}
505506
507+ /* -- object description styles --------------------------------------------- */
508+
509+ .sig {
510+ font-family : 'Consolas' , 'Menlo' , 'DejaVu Sans Mono' , 'Bitstream Vera Sans Mono' , monospace;
511+ }
512+
513+ .sig-name , code .descname {
514+ background-color : transparent;
515+ font-weight : bold;
516+ }
517+
518+ .sig-name {
519+ font-size : 1.1em ;
520+ }
521+
522+ code .descname {
523+ font-size : 1.2em ;
524+ }
525+
526+ .sig-prename , code .descclassname {
527+ background-color : transparent;
528+ }
529+
530+ .optional {
531+ font-size : 1.3em ;
532+ }
533+
534+ .sig-paren {
535+ font-size : larger;
536+ }
537+
538+ .sig-param .n {
539+ font-style : italic;
540+ }
541+
542+ /* C++ specific styling */
543+
544+ .sig-inline .c-texpr ,
545+ .sig-inline .cpp-texpr {
546+ font-family : unset;
547+ }
548+
549+ .sig .c .k , .sig .c .kt ,
550+ .sig .cpp .k , .sig .cpp .kt {
551+ color : # 0033B3 ;
552+ }
553+
554+ .sig .c .m ,
555+ .sig .cpp .m {
556+ color : # 1750EB ;
557+ }
558+
559+ .sig .c .s , .sig .c .sc ,
560+ .sig .cpp .s , .sig .cpp .sc {
561+ color : # 067D17 ;
562+ }
563+
506564
507565/* -- other body styles ----------------------------------------------------- */
508566
@@ -553,6 +611,7 @@ ul.simple p {
553611 margin-bottom : 0 ;
554612}
555613
614+ /* Docutils 0.17 and older (footnotes & citations) */
556615dl .footnote > dt ,
557616dl .citation > dt {
558617 float : left;
@@ -570,6 +629,33 @@ dl.citation > dd:after {
570629 clear : both;
571630}
572631
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+
573659dl .field-list {
574660 display : grid;
575661 grid-template-columns : fit-content (30% ) auto;
@@ -629,14 +715,6 @@ dl.glossary dt {
629715 font-size : 1.1em ;
630716}
631717
632- .optional {
633- font-size : 1.3em ;
634- }
635-
636- .sig-paren {
637- font-size : larger;
638- }
639-
640718.versionmodified {
641719 font-style : italic;
642720}
@@ -677,8 +755,9 @@ dl.glossary dt {
677755
678756.classifier : before {
679757 font-style : normal;
680- margin : 0.5em ;
758+ margin : 0 0 .5em ;
681759 content : ":" ;
760+ display : inline-block;
682761}
683762
684763abbr , acronym {
@@ -702,6 +781,7 @@ span.pre {
702781 -ms-hyphens : none;
703782 -webkit-hyphens : none;
704783 hyphens : none;
784+ white-space : nowrap;
705785}
706786
707787div [class *= "highlight-" ] {
@@ -765,8 +845,12 @@ div.code-block-caption code {
765845
766846table .highlighttable td .linenos ,
767847span .linenos ,
768- div .doctest > div .highlight span .gp { /* gp: Generic.Prompt */
769- user-select : none;
848+ div .highlight span .gp { /* gp: Generic.Prompt */
849+ user-select : none;
850+ -webkit-user-select : text; /* Safari fallback only */
851+ -webkit-user-select : none; /* Chrome/Safari */
852+ -moz-user-select : none; /* Firefox */
853+ -ms-user-select : none; /* IE10+ */
770854}
771855
772856div .code-block-caption span .caption-number {
@@ -781,16 +865,6 @@ div.literal-block-wrapper {
781865 margin : 1em 0 ;
782866}
783867
784- code .descname {
785- background-color : transparent;
786- font-weight : bold;
787- font-size : 1.2em ;
788- }
789-
790- code .descclassname {
791- background-color : transparent;
792- }
793-
794868code .xref , a code {
795869 background-color : transparent;
796870 font-weight : bold;
0 commit comments