button.less 2.22 KB
@import "variables.less";

.btn {
    display: inline-block;
    width: auto;
    font-size: 14px;
    padding: 4px 12px;
    text-align: center;
    border-radius: 2px;
    border: none;
}

.btn-normal {
    height: 36px;
    color: @xn-font-primary;
    font-weight: 600;
    font-size: 14px;
    line-height: 36px;
    padding: 0 20px;
}

.btn-normal-disable {
    height: 36px;
    font-weight: 600;
    font-size: 14px;
    line-height: 36px;
    padding: 0 20px;
    color: #ccc;
    background: #eee;
}
.btn-normal-disable:hover, .btn-normal-disable:focus {
    color: #ccc;
}
.btn-common {
    background: #ddd;
}
.btn-common:hover {
    background: #eee;
}
.btn-common:focus {
    background: #ccc;
}
.btn-sm {
    height: 30px;
    color: @xn-font-primary;
    font-size: 12px;
    padding: 3px 8px;
}
.btn-bg{
    padding: 3px 8px;
}


.btn-sm-disable {
    height: 30px;
    font-size: 14px;
    line-height: 30px;
    padding: 0 15px;
    color: #ccc;
    background: #eee;
}
.btn-sm-disable:hover, .btn-sm-disable:focus {
    color: #ccc;
}

.btn-primary{
    color: #fff;
    background: @xn-blue;
}
.btn-primary:hover {
    color: #fff;
    background: #6699ff;
}
.btn-primary:focus {
    background: #2976eb;
}

.btn-success {
    color: #fff;
    background: #5CB85C;
}
.btn-success:hover{
    color: #fff;
    background: #449d44;
}
.btn-success:focus {
    color: #fff;
    background: #449d44;
}

.btn-info {
    color: #fff;
    background: #5bc0de;
}
.btn-info:hover{
    color: #fff;
    background: #31b0d5;
}
.btn-info:focus {
    color: #fff;
    background: #31b0d5;
}

.btn-warn {
    color: #fff;
    background: #f0ad4e;
}
.btn-warn:hover{
    color: #fff;
    background: #ec971f;
}
.btn-warn:focus {
    color: #fff;
    background: #ec971f;
}

.btn-danger {
    color: #fff;
    background: #d9534f;
}
.btn-danger:hover{
    color: #fff;
    background: #c9302c;
}
.btn-danger:focus {
    color: #fff;
    background: #c9302c;
}

.btn-special {
    height: 48px;
    color: #fff;
    font-weight: 600;
    line-height: 48px;
    padding: 0;
    width: 300px;
    background: @xn-orange;
    font-size: 18px;
}
.btn-special:hover {
    background: #ffcb7e;
    color: #fff;
}
.btn-special:focus {
    color: #fff;
    background: #ffb344;
}