1- /* https://stackoverflow.com/questions/56195758/different-maxdepth-for-specific-entries-in-toctree-sphinx */
2- .rst-content .toctree-wrapper : not (: last-child ) ul {
3- margin-bottom : 12px ;
4- }
1+ /* Layout tweaks */
2+ .wy-nav-content {
3+ max-width : 1200px !important ;
4+ }
5+
6+ /* Make wide tables readable on desktop */
7+ @media screen and (min-width : 767px ) {
8+ .wy-table-responsive table td {
9+ /* Prevent later stylesheets from re-wrapping cells */
10+ white-space : normal !important ;
11+ }
12+
13+ .wy-table-responsive {
14+ overflow : visible !important ;
15+ }
16+ }
17+
18+ /* Hide the hash icon that appears on hover in headings */
19+ .headerlink ::after {
20+ font-size : 0 ;
21+ }
22+
23+ /* Call attention to API signatures */
24+ dl .py .function dt ,
25+ dl .py .class dt ,
26+ dl .py .method dt {
27+ background : # f8f8f8 ;
28+ padding : 8px ;
29+ }
30+
31+ /* Paragraph readability */
32+ .wy-nav-content p {
33+ line-height : 1.5 ;
34+ }
35+
36+ /* Cleaner parameter/field lists */
37+ .rst-content dl .field-list {
38+ display : grid;
39+ grid-template-columns : max-content 1fr ;
40+ gap : 0 1em ;
41+ align-items : baseline;
42+ }
43+
44+ .rst-content dl .field-list > dd {
45+ align-self : center;
46+ }
47+
48+ /* Emphasize parameter names */
49+ .rst-content dl .field-list dt {
50+ font-weight : 600 ;
51+ color : # 555 ;
52+ }
53+
54+ /* Signature parameter styling */
55+ .rst-content .sig-param .n {
56+ color : # 333 ;
57+ }
58+
59+ .rst-content .sig-param .default_value {
60+ color : # 666 ;
61+ }
62+
63+ /* Link styling */
64+ .rst-content a {
65+ color : # 2980b9 ;
66+ }
67+
68+ .rst-content a : hover {
69+ color : # 1a5276 ;
70+ }
71+
72+ /* Tighter list spacing inside field-list items */
73+ .rst-content dl .field-list dd ul li > p ,
74+ .rst-content dl .field-list dd ul li > ul {
75+ margin-top : 0 !important ;
76+ margin-bottom : 0 !important ;
77+ }
78+
79+ /* Highlight the current page in the sidebar */
80+ .wy-menu-vertical li .current > a {
81+ background : # fcfcfc ;
82+ border-left : 3px solid # 2980b9 ;
83+ }
84+
85+ /* Inline code styling */
86+ .rst-content code .literal {
87+ background : # f0f0f0 ;
88+ padding : 2px 4px ;
89+ border-radius : 3px ;
90+ border : none;
91+ font-size : 85% ;
92+ }
93+
94+ /* Code block styling */
95+ .rst-content div [class ^= "highlight" ] {
96+ background : # f8f8f8 ;
97+ border-radius : 4px ;
98+ }
99+
100+ .rst-content div [class ^= "highlight" ] pre {
101+ font-size : 13px ;
102+ line-height : 1.5 ;
103+ border-radius : 4px ;
104+ }
0 commit comments