Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable and fix for dark mode #708

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
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
20 changes: 20 additions & 0 deletions assets/css/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ table td, table th {
.tabs-section {
display: flex;
flex-direction: column;

html[data-theme=dark] & img {
filter: invert(1) !important;
}

& .tabs div li {
display: inline;

& .grid-container {
margin-top: 1em;

& p {
margin-top: 0em;
}
}
}
}

.tabs-section .container {
Expand Down Expand Up @@ -109,6 +125,10 @@ section.scientific-domains {
width: 50px;
height: 50px;
margin-bottom: 0.5em;

html[data-theme=dark] & {
filter: invert(1) grayscale(1) !important;
}
}
& ul {
align-content: left;
Expand Down
1 change: 0 additions & 1 deletion config.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ markup:
disableLanguages: []

params:
colorScheme: light
author:
name: "NumPy team"
images:
Expand Down