Skip to content

Commit f169e02

Browse files
committed
MNT: Update Matplotlib and pydata sphinx theme
1 parent 9a30a70 commit f169e02

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

docs/_static/css/landing.css

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,13 @@ a.link--offsite::after {
166166
flex-direction: column;
167167
align-items: center;
168168
flex: 1 1 100px;
169+
font-size: var(--heading-4);
170+
font-family: var(--heading-font);
169171
}
170172

171-
.quicklinks a {
173+
.quicklinks a, .quicklinks a:visited,
174+
.quicklinks a:hover, .quicklinks a:visited:hover {
172175
color: var(--default-text);
173-
font-size: var(--heading-4);
174-
font-family: var(--heading-font);
175176
}
176177

177178
.quicklinks__icon {
@@ -386,11 +387,29 @@ ul.mpl-links {
386387
font-weight: bold;
387388
}
388389

390+
ul.mpl-links a, ul.mpl-links a:visited,
391+
ul.release-docs a, ul.release-docs a:visited
392+
{
393+
color: var(--white);
394+
text-decoration: none;
395+
}
396+
397+
ul.mpl-links a:hover, ul.mpl-links a:visited:hover,
398+
ul.release-docs a:hover, ul.release-docs a:visited:hover
399+
{
400+
color: var(--pst-color-link-hover);
401+
}
402+
389403
.release dt {
390404
font-family: var(--heading-font);
391405
font-size: var(--heading-5);
392406
text-transform: uppercase;
393407
letter-spacing: 1px;
408+
margin-top: 1em;
409+
}
410+
411+
.release dt:first-child {
412+
margin-top: 0;
394413
}
395414

396415
.release dd {
@@ -657,6 +676,10 @@ a.button::after {
657676
transition: margin 0.2s ease-out;
658677
}
659678

679+
a.button:hover {
680+
color: var(--white);
681+
}
682+
660683
.button:hover::after,
661684
a.button:hover::after {
662685
margin-left: 80px;
@@ -678,7 +701,8 @@ a.button--teal {
678701
}
679702

680703
.button--green,
681-
a.button--green {
704+
a.button--green,
705+
a.button--green:hover {
682706
background: var(--viridis-green);
683707
color: var(--black);
684708
}

docs/_templates/landing_footer.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ <h1>Matplotlib</h1>
6363
<a href="https://matplotlib.org/stable/users/whats_new.html"
6464
>changelog</a>
6565
</dd>
66-
</dl>
6766

68-
<dl class="release">
6967
<dt>Development version</dt>
7068
<dd>
7169
<a href="https://matplotlib.org/devdocs/index.html">docs</a>

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"navbar_links": ("absolute", "server-stable"),
4141
"footer_start": ["landing_footer"],
4242
"secondary_sidebar_items": [],
43+
"back_to_top_button": False,
4344
}
4445

4546
# Add any paths that contain custom static files (such as style sheets) here,

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jinja2>3
2-
mpl-sphinx-theme~=3.8.0
3-
pydata-sphinx-theme~=0.13.0
2+
mpl-sphinx-theme~=3.9.0
3+
pydata-sphinx-theme~=0.15.0
44
pygments>=2.7
55
sphinx>=7.1
66
sphinx-notfound-page

0 commit comments

Comments
 (0)