4
4
*
5
5
* Sphinx stylesheet -- basic theme.
6
6
*
7
- * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
7
+ * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
8
8
* :license: BSD, see LICENSE for details.
9
9
*
10
10
*/
@@ -130,7 +130,7 @@ ul.search li a {
130
130
font-weight : bold;
131
131
}
132
132
133
- ul .search li div .context {
133
+ ul .search li p .context {
134
134
color : # 888 ;
135
135
margin : 2px 0 0 30px ;
136
136
text-align : left;
@@ -277,25 +277,25 @@ p.rubric {
277
277
font-weight : bold;
278
278
}
279
279
280
- img .align-left , .figure .align-left , object .align-left {
280
+ img .align-left , figure . align-left , .figure .align-left , object .align-left {
281
281
clear : left;
282
282
float : left;
283
283
margin-right : 1em ;
284
284
}
285
285
286
- img .align-right , .figure .align-right , object .align-right {
286
+ img .align-right , figure . align-right , .figure .align-right , object .align-right {
287
287
clear : right;
288
288
float : right;
289
289
margin-left : 1em ;
290
290
}
291
291
292
- img .align-center , .figure .align-center , object .align-center {
292
+ img .align-center , figure . align-center , .figure .align-center , object .align-center {
293
293
display : block;
294
294
margin-left : auto;
295
295
margin-right : auto;
296
296
}
297
297
298
- img .align-default , .figure .align-default {
298
+ img .align-default , figure . align-default , .figure .align-default {
299
299
display : block;
300
300
margin-left : auto;
301
301
margin-right : auto;
@@ -319,7 +319,8 @@ img.align-default, .figure.align-default {
319
319
320
320
/* -- sidebars -------------------------------------------------------------- */
321
321
322
- div .sidebar {
322
+ div .sidebar ,
323
+ aside .sidebar {
323
324
margin : 0 0 0.5em 1em ;
324
325
border : 1px solid # ddb ;
325
326
padding : 7px ;
@@ -377,12 +378,14 @@ div.body p.centered {
377
378
/* -- content of sidebars/topics/admonitions -------------------------------- */
378
379
379
380
div .sidebar > : last-child ,
381
+ aside .sidebar > : last-child ,
380
382
div .topic > : last-child ,
381
383
div .admonition > : last-child {
382
384
margin-bottom : 0 ;
383
385
}
384
386
385
387
div .sidebar ::after ,
388
+ aside .sidebar ::after ,
386
389
div .topic ::after ,
387
390
div .admonition ::after ,
388
391
blockquote ::after {
@@ -455,20 +458,22 @@ td > :last-child {
455
458
456
459
/* -- figures --------------------------------------------------------------- */
457
460
458
- div .figure {
461
+ div .figure , figure {
459
462
margin : 0.5em ;
460
463
padding : 0.5em ;
461
464
}
462
465
463
- div .figure p .caption {
466
+ div .figure p .caption , figcaption {
464
467
padding : 0.3em ;
465
468
}
466
469
467
- div .figure p .caption span .caption-number {
470
+ div .figure p .caption span .caption-number ,
471
+ figcaption span .caption-number {
468
472
font-style : italic;
469
473
}
470
474
471
- div .figure p .caption span .caption-text {
475
+ div .figure p .caption span .caption-text ,
476
+ figcaption span .caption-text {
472
477
}
473
478
474
479
/* -- field list styles ----------------------------------------------------- */
@@ -503,6 +508,63 @@ table.hlist td {
503
508
vertical-align : top;
504
509
}
505
510
511
+ /* -- object description styles --------------------------------------------- */
512
+
513
+ .sig {
514
+ font-family : 'Consolas' , 'Menlo' , 'DejaVu Sans Mono' , 'Bitstream Vera Sans Mono' , monospace;
515
+ }
516
+
517
+ .sig-name , code .descname {
518
+ background-color : transparent;
519
+ font-weight : bold;
520
+ }
521
+
522
+ .sig-name {
523
+ font-size : 1.1em ;
524
+ }
525
+
526
+ code .descname {
527
+ font-size : 1.2em ;
528
+ }
529
+
530
+ .sig-prename , code .descclassname {
531
+ background-color : transparent;
532
+ }
533
+
534
+ .optional {
535
+ font-size : 1.3em ;
536
+ }
537
+
538
+ .sig-paren {
539
+ font-size : larger;
540
+ }
541
+
542
+ .sig-param .n {
543
+ font-style : italic;
544
+ }
545
+
546
+ /* C++ specific styling */
547
+
548
+ .sig-inline .c-texpr ,
549
+ .sig-inline .cpp-texpr {
550
+ font-family : unset;
551
+ }
552
+
553
+ .sig .c .k , .sig .c .kt ,
554
+ .sig .cpp .k , .sig .cpp .kt {
555
+ color : # 0033B3 ;
556
+ }
557
+
558
+ .sig .c .m ,
559
+ .sig .cpp .m {
560
+ color : # 1750EB ;
561
+ }
562
+
563
+ .sig .c .s , .sig .c .sc ,
564
+ .sig .cpp .s , .sig .cpp .sc {
565
+ color : # 067D17 ;
566
+ }
567
+
506
568
507
569
/* -- other body styles ----------------------------------------------------- */
508
570
@@ -629,14 +691,6 @@ dl.glossary dt {
629
691
font-size : 1.1em ;
630
692
}
631
693
632
- .optional {
633
- font-size : 1.3em ;
634
- }
635
-
636
- .sig-paren {
637
- font-size : larger;
638
- }
639
-
640
694
.versionmodified {
641
695
font-style : italic;
642
696
}
@@ -677,8 +731,9 @@ dl.glossary dt {
677
731
678
732
.classifier : before {
679
733
font-style : normal;
680
- margin : 0.5em ;
734
+ margin : 0 0 .5em ;
681
735
content : ":" ;
736
+ display : inline-block;
682
737
}
683
738
684
739
abbr , acronym {
@@ -702,6 +757,7 @@ span.pre {
702
757
-ms-hyphens : none;
703
758
-webkit-hyphens : none;
704
759
hyphens : none;
760
+ white-space : nowrap;
705
761
}
706
762
707
763
div [class *= "highlight-" ] {
@@ -765,8 +821,12 @@ div.code-block-caption code {
765
821
766
822
table .highlighttable td .linenos ,
767
823
span .linenos ,
768
- div .doctest > div .highlight span .gp { /* gp: Generic.Prompt */
769
- user-select : none;
824
+ div .highlight span .gp { /* gp: Generic.Prompt */
825
+ user-select : none;
826
+ -webkit-user-select : text; /* Safari fallback only */
827
+ -webkit-user-select : none; /* Chrome/Safari */
828
+ -moz-user-select : none; /* Firefox */
829
+ -ms-user-select : none; /* IE10+ */
770
830
}
771
831
772
832
div .code-block-caption span .caption-number {
@@ -781,16 +841,6 @@ div.literal-block-wrapper {
781
841
margin : 1em 0 ;
782
842
}
783
843
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
-
794
844
code .xref , a code {
795
845
background-color : transparent;
796
846
font-weight : bold;
0 commit comments