web-apps/apps/common/main/resources/less/spinner.less
2020-12-22 15:45:06 +03:00

71 lines
1.4 KiB
Plaintext

.spinner{
@spin-height: 22px;
@trigger-width: 17px;
position: relative;
input {
height: @spin-height;
text-align: right;
padding-left: 1px;
padding-right: @trigger-width + 2px;
&:focus {
border-color: @border-preview-select;
}
}
button {
display: block;
position: relative;
width: @trigger-width;
height: @spin-height/2;
padding: 0;
margin: 0;
border: none;
background: none;
line-height: 1;
&.disabled {
cursor: default;
}
&:focus {
outline: 0;
outline-offset: 0;
}
}
.spinner-buttons {
position: absolute;
top: 0;
right: 1px;
i {
display: inline-block;
width: 4px;
height: 4px;
border: solid 1px @icon-normal;
border-bottom: none;
border-right: none;
}
button {
&.disabled {
opacity: .35;
}
}
}
.spinner-up {
i {
transform: rotate(45deg) translate(1px,-2px);
}
}
.spinner-down {
i {
transform: rotate(-135deg) translate(1px,4px);
}
}
}