Skip to content

Commit 5da00cd

Browse files
committed
Remove matplotlib-specific CSS
Sphinx-gallery is only used in Matplotlib, so we don't need its CSS here. The multi-column ToC is a Matplotlib-specific CSS for the Axes API page only.
1 parent 29b6919 commit 5da00cd

File tree

1 file changed

+0
-59
lines changed

1 file changed

+0
-59
lines changed

mpl_sphinx_theme/static/css/style.css

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -12,65 +12,6 @@ html[data-theme="dark"] {
1212
--pst-color-text-base: rgb(240, 240, 240);
1313
}
1414

15-
.simple li>p {
16-
margin: 0;
17-
}
18-
19-
/* multi colunm TOC */
20-
.contents ul {
21-
list-style-type: none;
22-
padding-left: 2em;
23-
}
24-
25-
.contents > ul {
26-
padding-left: 0;
27-
}
28-
29-
.multicol-toc > ul {
30-
column-width: 250px;
31-
column-gap: 60px;
32-
-webkit-column-width: 250px;
33-
-moz-column-width: 250px;
34-
column-rule: 1px solid #ccc;
35-
}
36-
37-
.multicol-toc > li {
38-
/* break inside is not yet broadly supported, but we just try */
39-
break-inside: avoid-column;
40-
-moz-break-inside: avoid-column;
41-
-webkit-break-inside: avoid-column;
42-
}
43-
44-
.contents > ul > li > a {
45-
font-size: 1.0em;
46-
}
47-
48-
/* Hide red ¶ between the thumbnail and caption in gallery
49-
50-
Due the way that sphinx-gallery floats its captions the perma-link
51-
does not float with it.
52-
*/
53-
.sphx-glr-thumbcontainer p.caption:hover > a.headerlink{
54-
visibility: hidden;
55-
56-
}
57-
58-
/* slightly reduce horizontal margin compared to gallery.css to
59-
* get four columns of thumbnails in the pydata-sphinx-theme. */
60-
.sphx-glr-thumbcontainer {
61-
margin: 5px 2px;
62-
}
63-
64-
/* workaround: the default padding decenters the image inside the frame */
65-
.sphx-glr-thumbcontainer .figure {
66-
padding: 0;
67-
}
68-
69-
table.property-table th,
70-
table.property-table td {
71-
padding: 4px 10px;
72-
}
73-
7415
.sidebar-cheatsheets, .sidebar-donate {
7516
margin: 2.75rem 0;
7617
}

0 commit comments

Comments
 (0)