@mixin global-button-primary {
    color: #fff;
    background-color: $uni-primary-6;
}
@mixin global-button-primary-active {
    color: darken(#fff, 10%);
    background-color: darken($uni-primary-7, 5%);
    border-color: darken($uni-primary-7, 5%);
}
@mixin global-button-success {
    color: #fff;
    background-color: $uni-success-6;
}
@mixin global-button-success-active {
    color: darken(#fff, 10%);
    background-color: darken($uni-success-7, 5%);
    border-color: darken($uni-success-7, 5%);
}
@mixin global-button-warning {
    color: #fff;
    background-color: $uni-warning-6;
}
@mixin global-button-warning-active {
    color: darken(#fff, 10%);
    background-color: darken($uni-warning-7, 5%);
    border-color: darken($uni-warning-7, 5%);
}
@mixin global-button-danger {
    color: #fff;
    background-color: $uni-danger-6;
}
@mixin global-button-danger-active {
    color: darken(#fff, 10%);
    background-color: darken($uni-danger-7, 5%);
    border-color: darken($uni-danger-7, 5%);
}
.global-button {
    padding: 0 20rpx;
    margin: 0;
    font-size: 28rpx;
    border-radius: 52rpx;
    &.primary {
        @include global-button-primary;
        &:active {
            @include global-button-primary-active;
        }
    }
    &.success {
        @include global-button-success;
        &:active {
            @include global-button-success-active;
        }
    }
    &.warning {
        @include global-button-warning;
        &:active {
            @include global-button-warning-active;
        }
    }
    &.danger {
        @include global-button-danger;
        &:active {
            @include global-button-danger-active;
        }
    }
    &.text {
        padding: 0;
        color: $uni-primary-6;
        background-color: transparent;
        &::after {
            border: none;
        }
    }
}
