1
0
Fork 0
mirror of https://github.com/uhIgnacio/igna.rocks.git synced 2024-08-15 02:23:12 +00:00
igna.rocks/assets/js/less/effects/border-transitions/_border-fade.less
2021-08-31 11:30:22 -04:00

19 lines
482 B
Text

/* Border Fade */
.border-fade() {
@borderWidth: 4px;
.hacks();
.prefixed(transition-duration, @mediumDuration);
.prefixed(transition-property, box-shadow);
box-shadow:
inset 0 0 0 @borderWidth @primaryColor,
0 0 1px rgba(0, 0, 0, 0); /* Hack to improve aliasing on mobile/tablet devices */
&:hover,
&:focus,
&:active {
box-shadow:
inset 0 0 0 @borderWidth @activeColor,
0 0 1px rgba(0, 0, 0, 0); /* Hack to improve aliasing on mobile/tablet devices */
}
}