app-preset-button.less 1.2 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
.app-preset-button {
    width: auto;
    min-height: 30px;
    .ivu-btn {
        width: 100%;
        height: 100%;
    }
    .ivu-button {
        font-size: 12px;
    
        >span {
            display: flex;
            align-items: center;
            justify-content: center;
        }
    
        .button-content {
            display: flex;
    
            &.left {
                justify-content: flex-start;
                align-items: center;
    
                .icon+.caption {
                    padding-left: 6px;
                }
            }
    
            &.right {
                flex-direction: row-reverse;
                justify-content: flex-start;
                align-items: center;
    
                .icon+.caption {
                    padding-right: 6px;
                }
            }
    
            &.top {
                flex-direction: column;
                justify-content: flex-start;
            }
    
            &.bottom {
                flex-direction: column-reverse;
                justify-content: flex-start;
            }
        }
    }
    .ivu-btn-loading {
        display: flex;
        line-height: 2;
    
        .ivu-icon-ios-loading {
            line-height: 2;
        }
    }
}