Skip to content

Commit

Permalink
Merge pull request preactjs#762 from preactjs/dark-theme-webflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister authored Apr 12, 2021
2 parents f4fd9ae + 58731c1 commit 9143827
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
15 changes: 3 additions & 12 deletions src/components/sponsors/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,19 @@
justify-content: center;
align-items: center;
padding: 0 !important;
margin: .5rem 0 0;
margin: 0.5rem 0 0;
}

.sponsorItem {
flex: 1 1 auto;
list-style: none;
opacity: 0.5;
transition: all 0.3s;
filter: grayscale(1) contrast(5);
filter: contrast(0);
text-align: center;
padding: .5rem 1.5rem 0;
padding: 0.5rem 1.5rem 0;
margin: 0;

@media (prefers-color-scheme: dark) {
filter: brightness(0) invert(1);
&:hover {
filter: grayscale(0) contrast(1);
}
}

&:hover {
opacity: 1;
filter: none;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/sponsors/trivago.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion src/components/sponsors/webflow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9143827

Please sign in to comment.