144 lines
2.9 KiB
CSS
144 lines
2.9 KiB
CSS
/** Buttom 默认*/
|
|
.pear-btn {
|
|
display: inline-block;
|
|
line-height: 38px;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
background-color: #fff;
|
|
border: 1px solid #dcdfe6;
|
|
color: #606266;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
transition: 0.1s;
|
|
font-weight: 500;
|
|
padding: 0 18px;
|
|
height: 38px;
|
|
font-size: 14px;
|
|
border-radius: 4px;
|
|
}
|
|
.pear-btn i {
|
|
font-size: 13px;
|
|
}
|
|
.pear-btn:hover {
|
|
opacity: .8;
|
|
filter: alpha(opacity=80);
|
|
color: #409eff;
|
|
border-color: #c6e2ff;
|
|
background-color: #ECF5FF;
|
|
}
|
|
.pear-btn-danger,
|
|
.pear-btn-warming,
|
|
.pear-btn-success,
|
|
.pear-btn-primary {
|
|
color: #fff !important
|
|
}
|
|
.pear-btn[dashed] {
|
|
border-style: dashed !important;
|
|
}
|
|
/** Button 主题 */
|
|
.pear-btn-primary {
|
|
background-color: #2D8CF0 !important;
|
|
}
|
|
.pear-btn-danger {
|
|
background-color: #f56c6c !important
|
|
}
|
|
.pear-btn-warming {
|
|
background-color: #e6a23c !important
|
|
}
|
|
.pear-btn-success {
|
|
background-color: #67c23a !important
|
|
}
|
|
.pear-btn[round] {
|
|
border-radius: 50px;
|
|
}
|
|
.pear-btn-primary[plain] {
|
|
color: #409eff !important;
|
|
background: #ecf5ff !important;
|
|
border-color: #b3d8ff !important;
|
|
}
|
|
.pear-btn-primary[plain]:hover {
|
|
color: #fff !important;
|
|
background-color: #2d8cf0 !important
|
|
}
|
|
.pear-btn-success[plain] {
|
|
color: #67c23a !important;
|
|
background: #f0f9eb !important;
|
|
border-color: #c2e7b0 !important;
|
|
}
|
|
.pear-btn-success[plain]:hover {
|
|
color: white !important;
|
|
background-color: #67c23a !important
|
|
}
|
|
.pear-btn-warming[plain] {
|
|
color: #e6a23c !important;
|
|
background: #fdf6ec !important;
|
|
border-color: #f5dab1 !important;
|
|
}
|
|
.pear-btn-warming[plain]:hover {
|
|
color: white !important;
|
|
background-color: #e6a23c !important
|
|
}
|
|
.pear-btn-danger[plain] {
|
|
color: #f56c6c !important;
|
|
background: #fef0f0 !important;
|
|
border-color: #fbc4c4 !important;
|
|
}
|
|
.pear-btn-danger[plain]:hover {
|
|
color: white !important;
|
|
background-color: #f56c6c !important
|
|
}
|
|
|
|
/** Button Group */
|
|
.pear-btn-group {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
.pear-btn-group .pear-btn {
|
|
float: left;
|
|
position: relative;
|
|
border-radius: 0px;
|
|
|
|
}
|
|
.pear-btn-md {
|
|
height: 34px;
|
|
line-height: 34px;
|
|
padding: 0 10px;
|
|
font-size: 12.5px;
|
|
}
|
|
.pear-btn-group .pear-btn:first-child {
|
|
border-top-left-radius: 4px !important;
|
|
border-bottom-left-radius: 4px !important;
|
|
}
|
|
.pear-btn-group .pear-btn:last-child {
|
|
border-top-right-radius: 4px !important;
|
|
border-bottom-right-radius: 4px !important;
|
|
}
|
|
.pear-btn-group .pear-btn[round]:first-child {
|
|
border-top-left-radius: 50px !important;
|
|
border-bottom-left-radius: 50px !important;
|
|
}
|
|
.pear-btn-group .pear-btn[round]:last-child {
|
|
border-top-right-radius: 50px !important;
|
|
border-bottom-right-radius: 50px !important;
|
|
}
|
|
|
|
/** Button Size*/
|
|
.pear-btn-sm {
|
|
height: 30px;
|
|
line-height: 30px;
|
|
padding: 0 10px;
|
|
font-size: 12px;
|
|
}
|
|
.pear-btn-xs {
|
|
height: 22px;
|
|
line-height: 22px;
|
|
padding: 0 5px;
|
|
font-size: 12px;
|
|
}
|
|
.pear-btn-lg {
|
|
height: 44px;
|
|
line-height: 44px;
|
|
padding: 0 25px;
|
|
font-size: 16px;
|
|
} |