Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tested for Sphinx 1.3.1 for all themes: default, alabaster, sphinxdoc,
scrolls, agogo, traditional, nature, haiku, pyramid
Tested for Read the Docs theme 0.1.7 */

div.sphx-glr-download a {
html[data-theme="light"] div.sphx-glr-download a {
background-color: rgb(255, 255, 255) !important;
background-image: linear-gradient(to bottom, rgb(255, 255, 255), #ffffff) !important;
border-radius: 4px;
Expand All @@ -16,14 +16,34 @@ div.sphx-glr-download a {
text-align: center;
}

div.sphx-glr-download a:hover {
html[data-theme="light"] div.sphx-glr-download a:hover {
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
0 1px 5px rgba(0, 0, 0, 0.25);
text-decoration: none;
background-image: none;
background-color: #ffffff !important;
}

html[data-theme="dark"] div.sphx-glr-download a {
background-color: #222832 !important;
background-image: linear-gradient(to bottom, #222832, #222832) !important;
border-radius: 4px;
border: 1px solid #222832 !important;
color: #000;
display: inline-block;
font-weight: bold;
padding: 1ex;
text-align: center;
}

html[data-theme="dark"] div.sphx-glr-download a:hover {
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
0 1px 5px rgba(0, 0, 0, 0.25);
text-decoration: none;
background-image: none;
background-color: #222832 !important;
}

/* Version warning banner color */
#bd-header-version-warning {
background-color: color-mix(in srgb, var(--pst-color-secondary-bg), transparent 30%);
Expand All @@ -41,4 +61,4 @@ div.sphx-glr-download a:hover {
border-color: var(--pst-color-secondary-bg);
color: var(--napari-color-text-base);
font-weight: 700;
}
}
7 changes: 5 additions & 2 deletions docs/community/meeting_schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ If you are using napari or interested in how napari could be used in your work,
},
eventDidMount: function (info) {
if (info.event.title.toLowerCase().includes('community') || info.event.title.toLowerCase().includes('working')) {
info.el.style.backgroundColor = 'var(--napari-primary-blue)';
info.el.style.borderColor = 'var(--napari-primary-blue)';
info.el.style.backgroundColor = 'var(--napari-navbar)';
info.el.style.borderColor = 'var(--napari-navbar)';
} else {
info.el.style.backgroundColor = 'var(--napari-calendar-light)';
info.el.style.borderColor = 'var(--napari-calendar-light)';
}
},
eventClick: function (info) {
Expand Down
9 changes: 8 additions & 1 deletion docs/community/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,11 @@ Below is the list of colors used in the napari website.
- deep blue: #009bf2
- light blue: #d2efff
- dark gray: #686868
- gray: #f7f7f7
- gray: #f7f7f7

For dark mode, we use two additional colors:

- purple: #4d485c
- dark blue: #526a77

See more details in the [napari-sphinx-theme colors page](https://napari.org/napari-sphinx-theme/colors.html).
Loading