Skip to content

Commit

Permalink
Website fixes (#12776)
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock authored Aug 5, 2024
1 parent e42e1d6 commit 4dcd4d1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
24 changes: 15 additions & 9 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ a.sphx-glr-backref-instance:hover {
}
/* backreference links: make non-MNE func/meth calls resemble regular code */
a[class^="sphx-glr-backref-module"] {
color: rgb(var(--pst-color-text-base));
color: var(--pst-color-text-base);
}
/* backreference links: make MNE calls bold and colorful */
a[class^="sphx-glr-backref-module-mne"] {
color: rgb(var(--pst-color-link));
color: var(--pst-color-link);
font-weight: var(--mne-font-weight-semibold);
}
/* suppress redundant note at top of every tutorial and signature at the end */
Expand All @@ -126,9 +126,12 @@ p.sphx-glr-signature {
border-radius: 0.5rem;
/* ↓↓↓↓↓↓↓ these two rules copied from sphinx-design */
box-shadow: 0 .125rem .25rem var(--sd-color-shadow) !important;
color: var(--sg-download-a-color);
text-decoration: none;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.sphx-glr-download a.download code {
color: var(--sg-download-a-color);
}
.sphx-glr-download a.download::before {
color: var(--sg-download-a-color);
}
Expand Down Expand Up @@ -204,16 +207,16 @@ aside.footnote:last-child {
}

/* ******************************************************* navbar icon links */
.navbar-icon-links i.fa-square-github::before {
.navbar-icon-links svg.fa-square-github {
color: var(--mne-color-github);
}
.navbar-icon-links i.fa-discourse::before {
.navbar-icon-links svg.fa-discourse {
color: var(--mne-color-discourse);
}
.navbar-icon-links i.fa-discord::before {
.navbar-icon-links svg.fa-discord {
color: var(--mne-color-discord);
}
.navbar-icon-links i.fa-mastodon::before {
.navbar-icon-links svg.fa-mastodon {
color: var(--mne-color-mastodon);
}

Expand Down Expand Up @@ -244,6 +247,9 @@ ul.quicklinks a {
color: var(--pst-color-text-base);
text-decoration: none;
}
ul.quicklinks a svg {
color: var(--pst-color-text-muted);
}
ul.quicklinks a:hover {
text-decoration: none;
}
Expand All @@ -264,7 +270,7 @@ div.frontpage-gallery {
}
div.frontpage-gallery a {
text-decoration: none;
color: rgb(var(--pst-color-text-base));
color: var(--pst-color-text-base);
}
div.frontpage-gallery img.card-img {
transform: scale(1.8);
Expand All @@ -289,7 +295,7 @@ div.frontpage-gallery:hover .fadeout {
needed for dark mode. */
div.card {
border: 1px solid var(--pst-color-border);
background-color: rgb(var(--pst-color-background));
background-color: var(--pst-color-background);
}
.card-header {
border-bottom-color: var(--pst-color-border);
Expand Down
2 changes: 1 addition & 1 deletion doc/_templates/copyright.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p class="text-center text-muted small">&copy; Copyright {{ copyright }}</p>
<p class="text-center small">&copy; Copyright {{ copyright }}</p>
10 changes: 5 additions & 5 deletions doc/_templates/sidebar-quicklinks.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<h5 class="card-header font-weight-bold">Version {{ release }}</h5>
<div class="card-body">
<ul class="list-group list-group-flush list-unstyled quicklinks">
<li><a href="{{ pathto('auto_tutorials/index.html', 1) }}"><i class="text-muted fas fa-book fa-fw"></i> Tutorials</a></li>
<li><a href="{{ pathto('development/whats_new.html', 1) }}"><i class="text-muted fas fa-newspaper fa-fw"></i> Changelog</a></li>
<li><a href="{{ pathto('help/index.html', 1) }}"><i class="text-muted fas fa-circle-question fa-fw"></i> Get help</a></li>
<li><a href="{{ pathto('documentation/cite.html', 1) }}"><i class="text-muted fas fa-quote-left fa-fw"></i> Cite</a></li>
<li><a href="{{ pathto('development/contributing.html', 1) }}"><i class="text-muted fas fa-code-branch fa-fw"></i> Contribute</a></li>
<li><a href="{{ pathto('auto_tutorials/index.html', 1) }}"><i class="fas fa-book fa-fw"></i> Tutorials</a></li>
<li><a href="{{ pathto('development/whats_new.html', 1) }}"><i class="fas fa-newspaper fa-fw"></i> Changelog</a></li>
<li><a href="{{ pathto('help/index.html', 1) }}"><i class="fas fa-circle-question fa-fw"></i> Get help</a></li>
<li><a href="{{ pathto('documentation/cite.html', 1) }}"><i class="fas fa-quote-left fa-fw"></i> Cite</a></li>
<li><a href="{{ pathto('development/contributing.html', 1) }}"><i class="fas fa-code-branch fa-fw"></i> Contribute</a></li>
</ul>
</div>
</div>

0 comments on commit 4dcd4d1

Please sign in to comment.