/**
* DevExtreme (widgets/common/numberBox.less)
* Version: 20.1.10
* Build date: Fri Jan 15 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
@import (once) "./textEditor.less";

@SPIN_CONTAINER_WIDTH: 22px;
@TOUCH_FRIENDLY_SPIN_CONTAINER_WIDTH: 64px;

.dx-numberbox {
    position: relative;
    .user-select(none);

    input[type=number] {
        -moz-appearance: textfield; // stylelint-disable-line property-no-vendor-prefix

        &::-webkit-outer-spin-button,
        &::-webkit-inner-spin-button {
            -webkit-appearance: none; // stylelint-disable-line property-no-vendor-prefix
            margin: 0;
        }
    }
}

.dx-numberbox-spin-container {
    width: @SPIN_CONTAINER_WIDTH;
    height: 100%;
}

.dx-numberbox-spin-down,
.dx-numberbox-spin-up {
    position: relative;
    width: 100%;
    height: 50%;
    cursor: pointer;
}

.dx-numberbox-spin-touch-friendly {
    .dx-numberbox-spin-container {
        width: @TOUCH_FRIENDLY_SPIN_CONTAINER_WIDTH;
    }

    .dx-numberbox-spin-down,
    .dx-numberbox-spin-up {
        width: 50%;
        height: 100%;
        display: inline-block;
    }
}

.dx-numberbox-spin-up-icon,
.dx-numberbox-spin-down-icon {
    width: 100%;
    height: 100%;
}

.dx-state-disabled {
    .dx-numberbox-spin-container {
        opacity: 0.2;
    }
}
