@@ -99,7 +99,137 @@ table.property-table td {
99
99
display : inline-block;
100
100
margin : 0 0.5em ;
101
101
}
102
+ /* Removes title from toc in dropdwon */
103
+
104
+ .sd-dropdown > .sd-card-body > .toctree-wrapper > ul > .toctree-l1 > a {
105
+ display : none
106
+ }
107
+
108
+ .sd-dropdown > .sd-card-body > .toctree-wrapper > ul > .toctree-l1 > ul {
109
+ list-style : none;
110
+ padding-inline-start : 0em ;
111
+ }
112
+
113
+ /* styles dropdown like toctree-toggle */
114
+ details .sd-dropdown {
115
+ box-shadow : none !important ;
116
+ }
117
+
118
+ details .sd-dropdown summary .sd-card-header ,
119
+ details .sd-dropdown summary .sd-card-header + div .sd-summary-content {
120
+ --pst-sd-dropdown-color : none;
121
+ }
122
+
123
+ details .sd-dropdown summary {
124
+ /* padding: 1em; */
125
+ padding : 0 ;
126
+ }
127
+
128
+ .sd-dropdown > .sd-card-body {
129
+ padding : 0 ;
130
+ }
131
+
132
+ : root {
133
+ --pst-color-link : var (--pst-color-primary );
134
+ --pst-color-link-hover : var (--pst-color-secondary );
135
+ --sd-color-primary : var (--pst-color-primary );
136
+ --sd-color-primary-text : var (--pst-color-text-base );
137
+ }
138
+
139
+ .simple li > p {
140
+ margin : 0 ;
141
+ }
142
+
143
+ /* multi column TOC */
144
+ .contents ul {
145
+ list-style-type : none;
146
+ padding-left : 2em ;
147
+ }
148
+
149
+ .contents > ul {
150
+ padding-left : 0 ;
151
+ }
152
+
153
+ .multicol-toc > ul {
154
+ column-width : 250px ;
155
+ column-gap : 60px ;
156
+ -webkit-column-width : 250px ;
157
+ -moz-column-width : 250px ;
158
+ column-rule : 1px solid # ccc ;
159
+ }
160
+
161
+ .multicol-toc > li {
162
+ /* break inside is not yet broadly supported, but we just try */
163
+ break-inside : avoid-column;
164
+ -moz-break-inside : avoid-column;
165
+ -webkit-break-inside : avoid-column;
166
+ }
167
+
168
+ .contents > ul > li > a {
169
+ font-size : 1.0em ;
170
+ }
171
+
172
+ /* Hide red ¶ between the thumbnail and caption in gallery
173
+
174
+ Due the way that sphinx-gallery floats its captions the perma-link
175
+ does not float with it.
176
+ */
177
+ .sphx-glr-thumbcontainer p .caption : hover > a .headerlink {
178
+ visibility : hidden;
179
+ }
180
+
181
+ /* slightly reduce horizontal margin compared to gallery.css to
182
+ * get four columns of thumbnails in the pydata-sphinx-theme. */
183
+ .sphx-glr-thumbcontainer {
184
+ margin : 5px 2px ;
185
+ }
186
+
187
+ html [data-theme = "dark" ] .sphx-glr-thumbcontainer {
188
+ background-color : rgb (63 , 63 , 63 );
189
+ }
190
+
191
+ /* workaround: the default padding decenters the image inside the frame */
192
+ .sphx-glr-thumbcontainer .figure {
193
+ padding : 0 ;
194
+ }
195
+
196
+ /* hide note linking to the download section at the bottom of galleries
197
+ * as suggested in https://github.com/sphinx-gallery/sphinx-gallery/issues/760
198
+ */
199
+ div .sphx-glr-download-link-note {
200
+ height : 0px ;
201
+ visibility : hidden;
202
+ }
102
203
204
+ /* re-style the download button */
205
+ div .sphx-glr-download a {
206
+ background-color : # E3F0F6 ;
207
+ background-image : none;
208
+ color : # 11557c ;
209
+ border : 0 ;
210
+ }
211
+
212
+ div .sphx-glr-download a : hover {
213
+ background-color : # BCD4DF ;
214
+ }
215
+
216
+ /* Do not fold multiple figures in examples into two column layout. */
217
+ img .sphx-glr-multi-img {
218
+ max-width : 100% ;
219
+ }
220
+
221
+ table .property-table th ,
222
+ table .property-table td {
223
+ padding : 4px 10px ;
224
+ }
225
+
226
+ /* Fix selection of parameter names; remove when fixed in the theme
227
+ * https://github.com/sphinx-doc/sphinx/pull/9763
228
+ */
229
+ .classifier : before {
230
+ display : inline-block;
231
+ margin : 0 0.5em ;
232
+ }
103
233
/* Removes title from toc in dropdwon */
104
234
105
235
.sd-dropdown > .sd-card-body > .toctree-wrapper > ul > .toctree-l1 > a {
@@ -129,3 +259,10 @@ details.sd-dropdown summary {
129
259
.sd-dropdown > .sd-card-body {
130
260
padding : 0 ;
131
261
}
262
+
263
+ details .sd-sphinx-override .sd-dropdown .sd-card .sd-mb-3 {
264
+ border-top-style : solid !important ;
265
+ border-top-color : var (--pst-color-border ) !important ;
266
+ border-top-width : .1em !important ;
267
+ border-radius : 0 ;
268
+ }
0 commit comments