Skip to content
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;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

invert(1) is a brute-force visual hack that doesn't scale. Try class-based escape by adding no-invert would let individual images opt out

}

& .tabs div li {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks to be unrelated to this PR

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] & {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

html[data-theme="dark"] is the recommended convention

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