view-toolbar.less 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
// 默认工具栏样式
.toolbar-container {
    height: 22px;

    .seperator {
        margin-right: 5px;
    }

    .ivu-btn {
        height: 22px;
        line-height: 21px;
        border: 0px;
        margin-right: 4px;
        font-size: 12px;

        >span {

            >i {
                min-width: 20px;
            }
        }
    }

    .ivu-btn:active {
        background-color: transparent;
    }
}
// 模式二工具栏样式
.toolbar-container.style2 {
    height: 100%;
    border: 1px solid transparent;

    .toolbar-item {
        display: inline-block;
        height: 100%;
    }

    .seperator {
        margin: 0;
    }

    .ivu-btn.ivu-btn-text {
        color: var(--view-font-color-bright);
    }

    .ivu-btn.ivu-btn-text:disabled {
        color: rgba(var(--view-font-color-bright-rgb), 0.5);
    }

    .ivu-btn.ivu-btn-text:disabled:hover {
        background-color: transparent;
    }

    .ivu-btn.ivu-btn-text:hover {
        background-color: rgba(var(--view-button-background-color-active-rgb), 0.2);
    }

    .ivu-btn {
        height: 100%;
        font-size: 14px;
        padding: 0;
        padding-left: 5px;
        padding-right: 5px;
        margin: 0;

        i {
            font-size: 16px;
        }
    }

    .ivu-btn:focus {
        box-shadow: unset;
    }

    .ivu-dropdown.toolbar-dropdown {
        height: 100%;

        .ivu-dropdown-rel {
            height: 100%;
        }

        .ivu-btn {
            .toolbar-container.style2 .ivu-btn;
        }
    }
}