mirror of
https://github.com/uhIgnacio/igna.rocks.git
synced 2024-08-15 02:23:12 +00:00
32 lines
508 B
Text
32 lines
508 B
Text
/* Overline From Center */
|
|
.overline-from-center() {
|
|
@duration: @mediumDuration;
|
|
|
|
.hacks();
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
&:before {
|
|
content: "";
|
|
position: absolute;
|
|
z-index: -1;
|
|
left: 51%;
|
|
right: 51%;
|
|
top: 0;
|
|
background: @activeColor;
|
|
height: 4px;
|
|
.prefixed(transition-property, "left, right");
|
|
.prefixed(transition-duration, @duration);
|
|
.prefixed(transition-timing-function, ease-out);
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
|
|
&:before {
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
}
|
|
}
|