Last active
July 25, 2025 08:52
-
-
Save Lego2012/9ed5a0aa512d6d878d2a61eaed665f7e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* This CSS is in a custom class of the Card Element */ | |
%root% { | |
position: relative; | |
} | |
%root%:hover { | |
translate: 0 -.25rem; | |
} | |
%root% h4 a::before { | |
content: ''; | |
position: absolute; | |
inset: 0; | |
z-index: 1; | |
} | |
%root%:focus-within { | |
box-shadow: 0 0 0 10px var(--dark-5); | |
} | |
%root%:focus-within :focus { | |
box-shadow: none; | |
outline: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment