web-apps/apps/common/main/resources/less/spinner.less
Maxim Kadushkin f62aa45b18 Merge branch 'develop' into feature/multiZoom5.5
# Conflicts:
#	apps/common/main/resources/img/toolbar/1x/big/.css.handlebars
#	apps/common/main/resources/less/asc-mixins.less
#	apps/common/main/resources/less/buttons.less
#	apps/common/main/resources/less/checkbox.less
#	apps/common/main/resources/less/combo-dataview.less
#	apps/common/main/resources/less/comments.less
#	apps/common/main/resources/less/common.less
#	apps/common/main/resources/less/dataview.less
#	apps/common/main/resources/less/dropdown-menu.less
#	apps/common/main/resources/less/listview.less
#	apps/common/main/resources/less/multislider-gradient.less
#	apps/common/main/resources/less/radiobox.less
#	apps/common/main/resources/less/scroller.less
#	apps/common/main/resources/less/separator.less
#	apps/common/main/resources/less/theme-colorpalette.less
#	apps/common/main/resources/less/toolbar.less
#	apps/common/main/resources/less/window.less
#	apps/documenteditor/main/resources/less/advanced-settings.less
#	apps/documenteditor/main/resources/less/filemenu.less
#	apps/documenteditor/main/resources/less/leftmenu.less
#	apps/documenteditor/main/resources/less/rightmenu.less
#	apps/documenteditor/main/resources/less/statusbar.less
#	apps/documenteditor/main/resources/less/toolbar.less
#	apps/presentationeditor/main/resources/less/leftmenu.less
#	apps/presentationeditor/main/resources/less/rightmenu.less
#	apps/presentationeditor/main/resources/less/statusbar.less
#	apps/spreadsheeteditor/main/resources/less/celleditor.less
#	apps/spreadsheeteditor/main/resources/less/leftmenu.less
#	apps/spreadsheeteditor/main/resources/less/rightmenu.less
#	apps/spreadsheeteditor/main/resources/less/statusbar.less
#	apps/spreadsheeteditor/main/resources/less/toolbar.less
2021-02-10 15:40:30 +03:00

77 lines
1.6 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 - 1;
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;
border-top: @scaled-one-px-value solid transparent;
border-bottom: @scaled-one-px-value solid transparent;
i {
display: inline-block;
width: 4px;
height: 4px;
border: solid @scaled-one-px-value @icon-normal;
border-bottom: none;
border-right: none;
}
button {
&.disabled {
opacity: .35;
}
&:hover {
background-color: @highlight-button-hover;
}
}
}
.spinner-up {
i {
transform: rotate(45deg) translate(-1px,-1px);
}
}
.spinner-down {
i {
transform: rotate(-135deg) translate(2px,2px);
}
}
}