web-apps/apps/common/main/resources/less/spinner.less

71 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-03-11 00:48:53 +00:00
.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 {
2020-12-19 19:43:19 +00:00
border-color: @border-preview-select;
}
2016-03-11 00:48:53 +00:00
}
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;
2016-03-11 00:48:53 +00:00
i {
display: inline-block;
2020-12-22 12:45:06 +00:00
width: 4px;
height: 4px;
border: solid 1px @icon-normal;
border-bottom: none;
border-right: none;
2016-03-11 00:48:53 +00:00
}
button {
&.disabled {
opacity: .35;
}
}
}
.spinner-up {
i {
2020-12-22 12:45:06 +00:00
transform: rotate(45deg) translate(1px,-2px);
2016-03-11 00:48:53 +00:00
}
}
.spinner-down {
i {
2020-12-22 12:45:06 +00:00
transform: rotate(-135deg) translate(1px,4px);
2016-03-11 00:48:53 +00:00
}
}
}