2022-01-31 23:23:20 +00:00
|
|
|
@import "../../theme/variable.less";
|
|
|
|
|
2022-02-08 12:23:22 +00:00
|
|
|
@button-primary-color: var(--button-primary-color);
|
|
|
|
@button-border-radius: var(--button-border-radius);
|
2022-02-09 02:37:44 +00:00
|
|
|
@button-border-color: var(--button-border-color);
|
2022-02-09 05:45:27 +00:00
|
|
|
@button-normal-color: var(--button-normal-color);
|
|
|
|
@button-warm-color: var(--button-warm-color);
|
|
|
|
@button-danger-color: var(--button-danger-color);
|
2022-02-08 12:23:22 +00:00
|
|
|
|
|
|
|
:root {
|
|
|
|
--button-primary-color: @global-primary-color;
|
|
|
|
--button-border-radius: @global-border-radius;
|
2022-02-09 02:37:44 +00:00
|
|
|
--button-border-color: #d2d2d2;
|
2022-02-09 05:45:27 +00:00
|
|
|
--button-normal-color: @global-normal-color;
|
|
|
|
--button-warm-color: @global-warm-color;
|
|
|
|
--button-danger-color: @global-danger-color;
|
2022-02-08 12:23:22 +00:00
|
|
|
}
|
2022-02-07 05:42:38 +00:00
|
|
|
|
2021-11-16 03:30:29 +00:00
|
|
|
.layui-btn {
|
2021-12-24 05:42:56 +00:00
|
|
|
height: 38px;
|
|
|
|
line-height: 36px;
|
|
|
|
padding: 0 18px;
|
|
|
|
color: #fff;
|
|
|
|
font-size: 14px;
|
2022-01-31 23:23:20 +00:00
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
border: 1px solid transparent;
|
2022-02-07 05:42:38 +00:00
|
|
|
background-color: @button-primary-color;
|
|
|
|
border-radius: @button-border-radius;
|
2021-12-24 05:42:56 +00:00
|
|
|
cursor: pointer;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn:hover {
|
2021-12-24 05:42:56 +00:00
|
|
|
opacity: 0.8;
|
|
|
|
filter: alpha(opacity=80);
|
|
|
|
color: #fff;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn:active {
|
2021-12-24 05:42:56 +00:00
|
|
|
opacity: 1;
|
|
|
|
filter: alpha(opacity=100);
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
2021-12-24 05:42:56 +00:00
|
|
|
.layui-btn + .layui-btn {
|
|
|
|
margin-left: 10px;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn-radius {
|
2021-12-24 05:42:56 +00:00
|
|
|
border-radius: 100px;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn .layui-icon {
|
2021-12-24 05:42:56 +00:00
|
|
|
padding: 0 2px;
|
|
|
|
vertical-align: middle\9;
|
|
|
|
vertical-align: bottom;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn-primary {
|
2022-02-09 02:37:44 +00:00
|
|
|
border-color: @global-border-color;
|
2021-12-24 05:42:56 +00:00
|
|
|
background: 0 0;
|
|
|
|
color: #666;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn-primary:hover {
|
2021-12-24 05:42:56 +00:00
|
|
|
color: #333;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn-normal {
|
2022-02-09 05:45:27 +00:00
|
|
|
background-color: @button-normal-color;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn-warm {
|
2022-02-09 05:45:27 +00:00
|
|
|
background-color: @button-warm-color;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn-danger {
|
2022-02-09 05:45:27 +00:00
|
|
|
background-color: @button-danger-color;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn-lg {
|
2021-12-24 05:42:56 +00:00
|
|
|
height: 44px;
|
|
|
|
line-height: 44px;
|
|
|
|
padding: 0 25px;
|
|
|
|
font-size: 16px;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn-sm {
|
2021-12-24 05:42:56 +00:00
|
|
|
height: 30px;
|
|
|
|
line-height: 30px;
|
|
|
|
padding: 0 10px;
|
|
|
|
font-size: 12px;
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn-xs {
|
2021-12-24 05:42:56 +00:00
|
|
|
height: 22px;
|
|
|
|
line-height: 22px;
|
|
|
|
padding: 0 5px;
|
|
|
|
font-size: 12px;
|
2022-01-31 23:23:20 +00:00
|
|
|
i {
|
|
|
|
font-size: 12px !important;
|
|
|
|
}
|
2021-11-16 03:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.layui-btn-fluid {
|
2021-12-24 05:42:56 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
2022-01-31 23:23:20 +00:00
|
|
|
|
|
|
|
.layui-btn-disabled,
|
|
|
|
.layui-btn-disabled:active,
|
|
|
|
.layui-btn-disabled:hover {
|
|
|
|
border-color: #eee !important;
|
|
|
|
background-color: #fbfbfb !important;
|
|
|
|
color: #d2d2d2 !important;
|
|
|
|
cursor: not-allowed !important;
|
|
|
|
opacity: 1;
|
|
|
|
}
|