Last active
May 4, 2020 17:28
-
-
Save dyarfi/4d69c13eb4534da43d8e9fbd931618db to your computer and use it in GitHub Desktop.
SCSS Placeholder hover SCSS
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
/* --- Box Shadow --- */ | |
// -- Placeholder -- box shadow default placeholder | |
%box-shadow-ready { | |
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1); | |
} | |
%box-shadow-hover { | |
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .175); | |
} | |
// -- Placeholder -- box-shadow | |
%box-shadow { | |
@extend %box-shadow-ready; | |
transition: box-shadow .5s ease; | |
&:hover { | |
@extend %box-shadow-hover; | |
} | |
} | |
.shape { | |
width: 100%; | |
padding-right: 15px; | |
padding-left: 15px; | |
flex: 0 0 33.3%; | |
max-width: 33.3%; | |
&-body { | |
@extend %box-shadow; | |
background:white; | |
padding: 2rem; | |
position: relative; | |
overflow: hidden; | |
border-radius:5px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment