Skip to content

Commit

Permalink
MNT: Update Matplotlib and pydata sphinx theme
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Aug 16, 2024
1 parent 9a30a70 commit c7f6d79
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
31 changes: 27 additions & 4 deletions docs/_static/css/landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ a.link--offsite::after {
flex-direction: column;
align-items: center;
flex: 1 1 100px;
font-size: var(--heading-4);
font-family: var(--heading-font);
}

.quicklinks a {
.quicklinks a, .quicklinks a:visited, .quicklinks a:hover, .quicklinks:visited:hover {
color: var(--default-text);
font-size: var(--heading-4);
font-family: var(--heading-font);
}

.quicklinks__icon {
Expand Down Expand Up @@ -386,11 +386,29 @@ ul.mpl-links {
font-weight: bold;
}

ul.mpl-links a, ul.mpl-links a:visited,
ul.release-docs a, ul.release-docs a:visited
{
color: var(--white);
text-decoration: none;
}

ul.mpl-links a:hover, ul.mpl-links a:visited:hover,
ul.release-docs a:hover, ul.release-docs a:visited:hover
{
color: var(--pst-color-link-hover);
}

.release dt {
font-family: var(--heading-font);
font-size: var(--heading-5);
text-transform: uppercase;
letter-spacing: 1px;
margin-top: 1em;
}

.release dt:first-child {
margin-top: 0;
}

.release dd {
Expand Down Expand Up @@ -657,6 +675,10 @@ a.button::after {
transition: margin 0.2s ease-out;
}

a.button:hover {
color: var(--white);
}

.button:hover::after,
a.button:hover::after {
margin-left: 80px;
Expand All @@ -678,7 +700,8 @@ a.button--teal {
}

.button--green,
a.button--green {
a.button--green,
a.button--green:hover {
background: var(--viridis-green);
color: var(--black);
}
Expand Down
2 changes: 0 additions & 2 deletions docs/_templates/landing_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ <h1>Matplotlib</h1>
<a href="https://matplotlib.org/stable/users/whats_new.html"
>changelog</a>
</dd>
</dl>

<dl class="release">
<dt>Development version</dt>
<dd>
<a href="https://matplotlib.org/devdocs/index.html">docs</a>
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"navbar_links": ("absolute", "server-stable"),
"footer_start": ["landing_footer"],
"secondary_sidebar_items": [],
"back_to_top_button": False,
}

# Add any paths that contain custom static files (such as style sheets) here,
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
jinja2>3
mpl-sphinx-theme~=3.8.0
pydata-sphinx-theme~=0.13.0
mpl-sphinx-theme~=3.9.0
pydata-sphinx-theme~=0.15.0
pygments>=2.7
sphinx>=7.1
sphinx-notfound-page

0 comments on commit c7f6d79

Please sign in to comment.