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/_trim.less
2021-08-31 11:30:22 -04:00

27 lines
489 B
Text

/* Trim */
.trim() {
@outerBorderWidth: 4px;
@innerBorderWidth: 4px;
.hacks();
position: relative;
&:before {
content: '';
position: absolute;
border: white solid @innerBorderWidth;
top: @outerBorderWidth;
left: @outerBorderWidth;
right: @outerBorderWidth;
bottom: @outerBorderWidth;
opacity: 0;
.prefixed(transition-duration, @mediumDuration);
.prefixed(transition-property, opacity);
}
&:hover:before,
&:focus:before,
&:active:before {
opacity: 1;
}
}