mirror of
https://github.com/uhIgnacio/igna.rocks.git
synced 2024-08-15 02:23:12 +00:00
42 lines
993 B
SCSS
42 lines
993 B
SCSS
|
/* Shadow Radial */
|
||
|
@mixin shadow-radial {
|
||
|
@include hacks();
|
||
|
position: relative;
|
||
|
|
||
|
&:before,
|
||
|
&:after {
|
||
|
pointer-events: none;
|
||
|
position: absolute;
|
||
|
content: '';
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
box-sizing: border-box;
|
||
|
background-repeat: no-repeat;
|
||
|
height: 5px;
|
||
|
opacity: 0;
|
||
|
@include prefixed(transition-duration, $mediumDuration);
|
||
|
@include prefixed(transition-property, opacity);
|
||
|
}
|
||
|
|
||
|
&:before {
|
||
|
bottom: 100%;
|
||
|
background: -webkit-radial-gradient(50% 150%, ellipse, $shadowColor 0%, rgba(0, 0, 0, 0) 80%);
|
||
|
background: radial-gradient(ellipse at 50% 150%, $shadowColor 0%, rgba(0, 0, 0, 0) 80%);
|
||
|
}
|
||
|
|
||
|
&:after {
|
||
|
top: 100%;
|
||
|
background: -webkit-radial-gradient(50% -50%, ellipse, $shadowColor 0%, rgba(0, 0, 0, 0) 80%);
|
||
|
background: radial-gradient(ellipse at 50% -50%, $shadowColor 0%, rgba(0, 0, 0, 0) 80%);
|
||
|
}
|
||
|
|
||
|
&:hover:before,
|
||
|
&:focus:before,
|
||
|
&:active:before,
|
||
|
&:hover:after,
|
||
|
&:focus:after,
|
||
|
&:active:after {
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|