Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2148091

Browse files
committed
different sizes + top border
1 parent 1ea8901 commit 2148091

File tree

2 files changed

+152
-0
lines changed

2 files changed

+152
-0
lines changed

doc/_static/mpl.css

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,137 @@ table.property-table td {
9999
display: inline-block;
100100
margin: 0 0.5em;
101101
}
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+
}
102203

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+
}
103233
/* Removes title from toc in dropdwon */
104234

105235
.sd-dropdown>.sd-card-body>.toctree-wrapper>ul>.toctree-l1>a{
@@ -129,3 +259,10 @@ details.sd-dropdown summary {
129259
.sd-dropdown>.sd-card-body{
130260
padding: 0;
131261
}
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+
}

doc/users/index.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ User guide
1111
.. grid-item-card:: Information
1212
:shadow: none
1313
:class-card: sd-border-0
14+
:class-title: sd-fs-4
1415

1516
.. dropdown:: :doc:`getting_started/index`
1617
:open:
18+
:class-title: sd-fs-5
1719

1820
.. toctree::
1921
:maxdepth: 2
@@ -22,6 +24,7 @@ User guide
2224

2325
.. dropdown:: :doc:`installing/index`
2426
:open:
27+
:class-title: sd-fs-5
2528

2629
.. toctree::
2730
:maxdepth: 2
@@ -30,6 +33,7 @@ User guide
3033

3134
.. dropdown:: :doc:`../devel/index`
3235
:open:
36+
:class-title: sd-fs-5
3337

3438
.. toctree::
3539
:maxdepth: 2
@@ -38,6 +42,7 @@ User guide
3842

3943
.. dropdown:: :doc:`project/index`
4044
:open:
45+
:class-title: sd-fs-5
4146

4247
.. toctree::
4348
:maxdepth: 2
@@ -48,9 +53,11 @@ User guide
4853
.. grid-item-card:: Explanations & Examples
4954
:shadow: none
5055
:class-card: sd-border-0
56+
:class-title: sd-fs-4
5157

5258
.. dropdown:: :doc:`explain/index`
5359
:open:
60+
:class-title: sd-fs-5
5461

5562
.. toctree::
5663
:maxdepth: 2
@@ -59,6 +66,7 @@ User guide
5966

6067
.. dropdown:: :doc:`../plot_types/index`
6168
:open:
69+
:class-title: sd-fs-5
6270

6371
.. toctree::
6472
:maxdepth: 2
@@ -67,6 +75,7 @@ User guide
6775

6876
.. dropdown:: :doc:`../tutorials/index`
6977
:open:
78+
:class-title: sd-fs-5
7079

7180
.. toctree::
7281
:maxdepth: 2
@@ -75,6 +84,7 @@ User guide
7584

7685
.. dropdown:: :doc:`../gallery/index`
7786
:open:
87+
:class-title: sd-fs-5
7888

7989
.. toctree::
8090
:maxdepth: 2
@@ -85,9 +95,11 @@ User guide
8595
.. grid-item-card:: References & Resources
8696
:shadow: none
8797
:class-card: sd-border-0
98+
:class-title: sd-fs-4
8899

89100
.. dropdown:: :doc:`../api/index`
90101
:open:
102+
:class-title: sd-fs-5
91103

92104
.. toctree::
93105
:maxdepth: 2
@@ -96,6 +108,7 @@ User guide
96108

97109
.. dropdown:: :doc:`release_notes`
98110
:open:
111+
:class-title: sd-fs-5
99112

100113
.. toctree::
101114
:maxdepth: 2
@@ -104,6 +117,7 @@ User guide
104117

105118
.. dropdown:: :doc:`faq/index`
106119
:open:
120+
:class-title: sd-fs-5
107121

108122
.. toctree::
109123
:maxdepth: 2
@@ -112,6 +126,7 @@ User guide
112126

113127
.. dropdown:: :doc:`resources/index`
114128
:open:
129+
:class-title: sd-fs-5
115130

116131
.. toctree::
117132
:maxdepth: 2

0 commit comments

Comments
 (0)