Hover/scss/hover/_curl-bottom-right.scss

32 lines
633 B
SCSS

/* Curl Bottom Right */
@mixin curl-bottom-right {
display: inline-block;
position: relative;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
content: '';
height: 0;
width: 0;
bottom: 0;
right: 0;
background: $revealAreaColour; /* IE9 */
background: linear-gradient(
315deg,
$revealAreaColour 45%,
$curlLineColour 50%,
$curlTransitionColour 56%,
$curlLastColour 80%
);
box-shadow: -1px -1px 1px rgba(0, 0, 0, .4);
transition-duration: $defaultDuration;
transition-property: width height;
}
&:hover:before {
width: $curlWidth;
height: $curlHeight;
}
}