Skip to content

Commit

Permalink
CSS tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock committed Jul 25, 2023
1 parent 25039b7 commit 6525b44
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion doc/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,35 @@ span.option {
white-space: nowrap;
}

html[data-theme="light"] {
/* sphinx-gallery overrides */
--sg-download-a-background-color: var(--pst-color-primary);
--sg-download-a-background-image: unset;
--sg-download-a-border-color: var(--pst-color-border);
--sg-download-a-color: #fff;
--sg-download-a-hover-background-color: var(--pst-color-primary-highlight);
--sg-download-a-hover-box-shadow-1: none;
--sg-download-a-hover-box-shadow-2: none;
}
html[data-theme="dark"] {
/* sphinx-gallery overrides */
--sg-download-a-background-color: var(--pst-color-primary);
--sg-download-a-background-image: unset;
--sg-download-a-border-color: var(--pst-color-border);
--sg-download-a-color: #000;
--sg-download-a-hover-background-color: var(--pst-color-primary-highlight);
--sg-download-a-hover-box-shadow-1: none;
--sg-download-a-hover-box-shadow-2: none;
}

/* script/notebook download buttons */
.sphx-glr-download a.download {
div.sphx-glr-download a {
border-radius: 0.5rem;
/* ↓↓↓↓↓↓↓ these two rules copied from sphinx-design */
box-shadow: 0 .125rem .25rem var(--sd-color-shadow) !important;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

div.sphx-glr-download a code {
color: var(--sg-download-a-color);
}

0 comments on commit 6525b44

Please sign in to comment.