/**
* DevExtreme (widgets/common/numberBox.less)
* Version: 19.2.6
* Build date: Thu Jan 30 2020
*
* Copyright (c) 2012 - 2020 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;
    }
}
