Created
March 18, 2022 14:01
-
-
Save JeffersonBledsoe/548f4aa732f139d8eaf77e36933d9e22 to your computer and use it in GitHub Desktop.
Trick to lighten/ darken a background colour that is IE compatible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Change `0.15` to adjust the effect. Closer to 1 will apply the effect more. Change to black to darken */ | |
.item:focus, | |
.item:hover { | |
background-image: linear-gradient( | |
rgba(var(--white-rgb), 0.15), | |
rgba(var(--white-rgb), 0.15) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment