4
4
*
5
5
* Sphinx stylesheet -- basic theme.
6
6
*
7
- * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
7
+ * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
8
8
* :license: BSD, see LICENSE for details.
9
9
*
10
10
*/
@@ -81,10 +81,26 @@ div.sphinxsidebar input {
81
81
font-size : 1em ;
82
82
}
83
83
84
+ div .sphinxsidebar # searchbox form .search {
85
+ overflow : hidden;
86
+ }
87
+
84
88
div .sphinxsidebar # searchbox input [type = "text" ] {
85
- width : 170px ;
89
+ float : left;
90
+ width : 80% ;
91
+ padding : 0.25em ;
92
+ box-sizing : border-box;
86
93
}
87
94
95
+ div .sphinxsidebar # searchbox input [type = "submit" ] {
96
+ float : left;
97
+ width : 20% ;
98
+ border-left : none;
99
+ padding : 0.25em ;
100
+ box-sizing : border-box;
101
+ }
102
+
103
+
88
104
img {
89
105
border : 0 ;
90
106
max-width : 100% ;
@@ -122,6 +138,8 @@ ul.keywordmatches li.goodmatch a {
122
138
123
139
table .contentstable {
124
140
width : 90% ;
141
+ margin-left : auto;
142
+ margin-right : auto;
125
143
}
126
144
127
145
table .contentstable p .biglink {
@@ -149,9 +167,14 @@ table.indextable td {
149
167
vertical-align : top;
150
168
}
151
169
152
- table .indextable dl , table . indextable dd {
170
+ table .indextable ul {
153
171
margin-top : 0 ;
154
172
margin-bottom : 0 ;
173
+ list-style-type : none;
174
+ }
175
+
176
+ table .indextable > tbody > tr > td > ul {
177
+ padding-left : 0em ;
155
178
}
156
179
157
180
table .indextable tr .pcap {
@@ -183,8 +206,20 @@ div.genindex-jumpbox {
183
206
padding : 0.4em ;
184
207
}
185
208
209
+ /* -- domain module index --------------------------------------------------- */
210
+
211
+ table .modindextable td {
212
+ padding : 2px ;
213
+ border-collapse : collapse;
214
+ }
215
+
186
216
/* -- general body styles --------------------------------------------------- */
187
217
218
+ div .body {
219
+ min-width : 450px ;
220
+ max-width : 800px ;
221
+ }
222
+
188
223
div .body p , div .body dd , div .body li , div .body blockquote {
189
224
-moz-hyphens : auto;
190
225
-ms-hyphens : auto;
@@ -196,6 +231,16 @@ a.headerlink {
196
231
visibility : hidden;
197
232
}
198
233
234
+ a .brackets : before ,
235
+ span .brackets > a : before {
236
+ content : "[" ;
237
+ }
238
+
239
+ a .brackets : after ,
240
+ span .brackets > a : after {
241
+ content : "]" ;
242
+ }
243
+
199
244
h1 : hover > a .headerlink ,
200
245
h2 : hover > a .headerlink ,
201
246
h3 : hover > a .headerlink ,
@@ -217,10 +262,6 @@ div.body td {
217
262
text-align : left;
218
263
}
219
264
220
- .field-list ul {
221
- padding-left : 1em ;
222
- }
223
-
224
265
.first {
225
266
margin-top : 0 !important ;
226
267
}
@@ -248,6 +289,12 @@ img.align-center, .figure.align-center, object.align-center {
248
289
margin-right : auto;
249
290
}
250
291
292
+ img .align-default , .figure .align-default {
293
+ display : block;
294
+ margin-left : auto;
295
+ margin-right : auto;
296
+ }
297
+
251
298
.align-left {
252
299
text-align : left;
253
300
}
@@ -256,6 +303,10 @@ img.align-center, .figure.align-center, object.align-center {
256
303
text-align : center;
257
304
}
258
305
306
+ .align-default {
307
+ text-align : center;
308
+ }
309
+
259
310
.align-right {
260
311
text-align : right;
261
312
}
@@ -322,6 +373,16 @@ table.docutils {
322
373
border-collapse : collapse;
323
374
}
324
375
376
+ table .align-center {
377
+ margin-left : auto;
378
+ margin-right : auto;
379
+ }
380
+
381
+ table .align-default {
382
+ margin-left : auto;
383
+ margin-right : auto;
384
+ }
385
+
325
386
table caption span .caption-number {
326
387
font-style : italic;
327
388
}
@@ -337,10 +398,6 @@ table.docutils td, table.docutils th {
337
398
border-bottom : 1px solid # aaa ;
338
399
}
339
400
340
- table .field-list td , table .field-list th {
341
- border : 0 !important ;
342
- }
343
-
344
401
table .footnote td , table .footnote th {
345
402
border : 0 !important ;
346
403
}
@@ -359,6 +416,16 @@ table.citation td {
359
416
border-bottom : none;
360
417
}
361
418
419
+ th > p : first-child ,
420
+ td > p : first-child {
421
+ margin-top : 0px ;
422
+ }
423
+
424
+ th > p : last-child ,
425
+ td > p : last-child {
426
+ margin-bottom : 0px ;
427
+ }
428
+
362
429
/* -- figures --------------------------------------------------------------- */
363
430
364
431
div .figure {
@@ -377,6 +444,34 @@ div.figure p.caption span.caption-number {
377
444
div .figure p .caption span .caption-text {
378
445
}
379
446
447
+ /* -- field list styles ----------------------------------------------------- */
448
+
449
+ table .field-list td , table .field-list th {
450
+ border : 0 !important ;
451
+ }
452
+
453
+ .field-list ul {
454
+ margin : 0 ;
455
+ padding-left : 1em ;
456
+ }
457
+
458
+ .field-list p {
459
+ margin : 0 ;
460
+ }
461
+
462
+ .field-name {
463
+ -moz-hyphens : manual;
464
+ -ms-hyphens : manual;
465
+ -webkit-hyphens : manual;
466
+ hyphens : manual;
467
+ }
468
+
469
+ /* -- hlist styles ---------------------------------------------------------- */
470
+
471
+ table .hlist td {
472
+ vertical-align : top;
473
+ }
474
+
380
475
381
476
/* -- other body styles ----------------------------------------------------- */
382
477
@@ -400,11 +495,58 @@ ol.upperroman {
400
495
list-style : upper-roman;
401
496
}
402
497
498
+ li > p : first-child {
499
+ margin-top : 0px ;
500
+ }
501
+
502
+ li > p : last-child {
503
+ margin-bottom : 0px ;
504
+ }
505
+
506
+ dl .footnote > dt ,
507
+ dl .citation > dt {
508
+ float : left;
509
+ }
510
+
511
+ dl .footnote > dd ,
512
+ dl .citation > dd {
513
+ margin-bottom : 0em ;
514
+ }
515
+
516
+ dl .footnote > dd : after ,
517
+ dl .citation > dd : after {
518
+ content : "" ;
519
+ clear : both;
520
+ }
521
+
522
+ dl .field-list {
523
+ display : grid;
524
+ grid-template-columns : fit-content (30% ) auto;
525
+ }
526
+
527
+ dl .field-list > dt {
528
+ font-weight : bold;
529
+ word-break : break-word;
530
+ padding-left : 0.5em ;
531
+ padding-right : 5px ;
532
+ }
533
+
534
+ dl .field-list > dt : after {
535
+ content : ":" ;
536
+ }
537
+
538
+ dl .field-list > dd {
539
+ padding-left : 0.5em ;
540
+ margin-top : 0em ;
541
+ margin-left : 0em ;
542
+ margin-bottom : 0em ;
543
+ }
544
+
403
545
dl {
404
546
margin-bottom : 15px ;
405
547
}
406
548
407
- dd p {
549
+ dd > p : first-child {
408
550
margin-top : 0px ;
409
551
}
410
552
@@ -418,24 +560,19 @@ dd {
418
560
margin-left : 30px ;
419
561
}
420
562
421
- dt : target , .highlighted {
563
+ dt : target , span .highlighted {
422
564
background-color : # fbe54e ;
423
565
}
424
566
567
+ rect .highlighted {
568
+ fill : # fbe54e ;
569
+ }
570
+
425
571
dl .glossary dt {
426
572
font-weight : bold;
427
573
font-size : 1.1em ;
428
574
}
429
575
430
- .field-list ul {
431
- margin : 0 ;
432
- padding-left : 1em ;
433
- }
434
-
435
- .field-list p {
436
- margin : 0 ;
437
- }
438
-
439
576
.optional {
440
577
font-size : 1.3em ;
441
578
}
@@ -482,6 +619,12 @@ dl.glossary dt {
482
619
font-style : oblique;
483
620
}
484
621
622
+ .classifier : before {
623
+ font-style : normal;
624
+ margin : 0.5em ;
625
+ content : ":" ;
626
+ }
627
+
485
628
abbr , acronym {
486
629
border-bottom : dotted 1px ;
487
630
cursor : help;
@@ -529,6 +672,10 @@ div.code-block-caption + div > div.highlight > pre {
529
672
margin-top : 0 ;
530
673
}
531
674
675
+ div .doctest > div .highlight span .gp { /* gp: Generic.Prompt */
676
+ user-select : none;
677
+ }
678
+
532
679
div .code-block-caption span .caption-number {
533
680
padding : 0.1em 0.3em ;
534
681
font-style : italic;
@@ -592,6 +739,16 @@ span.eqno {
592
739
float : right;
593
740
}
594
741
742
+ span .eqno a .headerlink {
743
+ position : relative;
744
+ left : 0px ;
745
+ z-index : 1 ;
746
+ }
747
+
748
+ div .math : hover a .headerlink {
749
+ visibility : visible;
750
+ }
751
+
595
752
/* -- printout stylesheet --------------------------------------------------- */
596
753
597
754
@media print {
0 commit comments