Skip to content

Commit

Permalink
feat: apply filter on images in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
roadlittledawn committed Aug 31, 2021
1 parent 0e0ba33 commit fd8a79b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/PackTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ const PackTile = ({
padding: 0 ${view === VIEWS.GRID ? 5 : 1}%;
margin: ${view === VIEWS.GRID ? 'auto' : 0};
.dark-mode & {
filter: brightness(1) invert(1) hue-rotate(188deg);
/* filter: grayscale(50%); */
}
${view === VIEWS.LIST &&
css`
max-height: 150px;
Expand Down

0 comments on commit fd8a79b

Please sign in to comment.