
@import "./common";

//数字编辑器
.spinner-editor {
    position: relative;

    .spinner-editor-control {
        display: flex;
        position: absolute;
        right: 0;
        bottom: 10px;

        //单位部分
        .spinner-editor-unit {
            //position:absolute;
            width: 60px;
            height: 32px;
            //right:0;
            //top:6px;

            .spinner-editor-unit-label {
                height: 100%;
                color: #666666;
                line-height: 32px;
                text-align: center;
                background: #f5f5f5;
                cursor: pointer;
                position: relative;
                &:hover {
                    background: #e5e5e5;
                }

            }
            .spinner-editor-unit-arrow{
                .iconfont;
                font-size: 16px;
                position: absolute;
                bottom: 0;
                left: 44px;
                line-height: 26px;
                &:before{
                    content: '\e674';
                }

            }

        }

        //箭头部分
        .spinner-editor-arrow {
            //position:absolute;
            //right:48px;
            //top:6px;
            height: 32px;
            width: 16px;
            background: #f5f5f5;
            color: #43c0ff;

            .editor-icon-spinner {
                width: 16px;
                height: 16px;
                line-height: 16px;
                font-size: 12px;
                border: 0;
                color: #444;

                &:hover {
                    background: #e5e5e5;
                }

            }

            .editor-icon-spinner-up {
                .editor-icon();
                .editor-icon-spinner;
                font-size: 16px;
                line-height: 26px;
                &:before {
                    content: "\e886";
                }
            }

            .editor-icon-spinner-down {
                .editor-icon();
                .editor-icon-spinner;
                font-size: 16px;
                line-height: 14px;
                &:before {
                    content: "\e674";
                }
            }
        }

    }

}