metro4
Version:
The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style
49 lines (42 loc) • 899 B
text/less
@import (once) "include/vars";
@import (once) "include/mixins";
.resize-element {
display: block;
position: absolute;
right: -1px;
bottom: -1px;
z-index: 101;
cursor: nwse-resize;
width: 12px;
height: 12px;
&::after {
position: absolute;
display: block;
border-bottom: 12px solid @green;
border-left: 12px solid transparent;
content:"";
right: -2px;
bottom: -2px;
}
&.resize-element-disabled {
cursor: default;
&::after {
border-bottom-color: @gray;
}
}
&:not(.resize-element-disabled):hover {
&::after {
animation: resize-element-animation 1s ease infinite;
}
}
}
@keyframes resize-element-animation {
from {
right: 0;
bottom: 0;
}
to {
right: -2px;
bottom: -2px;
}
}