mirror of https://github.com/IanLunn/Hover.git
35 lines
681 B
SCSS
35 lines
681 B
SCSS
/* Curl Bottom Right */
|
|
@mixin curl-bottom-right {
|
|
position: relative;
|
|
|
|
@include 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);
|
|
@include prefixed(transition-duration, $defaultDuration);
|
|
@include prefixed(transition-property, "width, height");
|
|
}
|
|
|
|
&:hover:before,
|
|
&:focus:before,
|
|
&:active:before {
|
|
width: $curlWidth;
|
|
height: $curlHeight;
|
|
}
|
|
}
|