2025-09-08 09:16:10 +08:00
|
|
|
.ant-btn {
|
2025-09-09 14:08:54 +08:00
|
|
|
border-radius: 4px !important;
|
2025-09-08 09:16:10 +08:00
|
|
|
border: 1px solid #d7d7d9 !important;
|
|
|
|
|
color: #3c4043 !important;
|
|
|
|
|
font-family: $font-family-regular;
|
|
|
|
|
font-size: 14px !important;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 400 !important;
|
|
|
|
|
line-height: 22px !important;
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
&.ant-btn-lg {
|
|
|
|
|
height: 36px;
|
|
|
|
|
padding: 0 20px;
|
|
|
|
|
}
|
|
|
|
|
&.ant-btn-sm {
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
}
|
2025-09-16 17:29:09 +08:00
|
|
|
|
2025-09-08 09:16:10 +08:00
|
|
|
}
|
|
|
|
|
.ant-btn-default {
|
|
|
|
|
&:disabled {
|
|
|
|
|
border-color: #f2f3f5 !important;
|
|
|
|
|
color: #b1b2b5 !important;
|
|
|
|
|
background-color: #fff !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
border-color: #e6e6e8 !important;
|
|
|
|
|
color: #737478 !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&.ant-btn-dangerous {
|
|
|
|
|
border-color: $color-error !important;
|
|
|
|
|
color: $color-error !important;
|
|
|
|
|
&:disabled {
|
|
|
|
|
background-color: $color-error-3 !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
border-color: $color-error-5 !important;
|
|
|
|
|
color: $color-error-5 !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-btn-primary {
|
|
|
|
|
background-color: $color-primary !important;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
color: #fff !important;
|
2025-09-16 10:34:43 +08:00
|
|
|
|
|
|
|
|
|
2025-09-08 09:16:10 +08:00
|
|
|
&:disabled {
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
background-color: $color-primary-3 !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
background-color: $color-primary-5 !important;
|
|
|
|
|
}
|
|
|
|
|
&:focus-visible {
|
|
|
|
|
outline: none;
|
|
|
|
|
outline-offset: unset;
|
|
|
|
|
}
|
2025-09-16 10:34:43 +08:00
|
|
|
|
2025-09-16 11:55:56 +08:00
|
|
|
&:active {
|
2025-09-17 17:58:11 +08:00
|
|
|
color: #fff !important;
|
|
|
|
|
border-color: transparent !important;
|
2025-09-17 11:59:31 +08:00
|
|
|
background-color: $color-primary-7 !important;
|
2025-09-16 11:55:56 +08:00
|
|
|
}
|
2025-09-16 10:34:43 +08:00
|
|
|
}
|
2025-09-16 11:55:56 +08:00
|
|
|
|
2025-09-08 09:16:10 +08:00
|
|
|
&.ant-btn-dangerous {
|
|
|
|
|
background-color: $color-error !important;
|
|
|
|
|
&:disabled {
|
|
|
|
|
background-color: $color-error-3 !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: $color-error-5 !important;
|
|
|
|
|
}
|
2025-09-16 11:55:56 +08:00
|
|
|
|
|
|
|
|
&:active {
|
2025-09-16 17:29:09 +08:00
|
|
|
background-color: $color-error-7 !important;
|
2025-09-16 11:55:56 +08:00
|
|
|
}
|
2025-09-08 09:16:10 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&.ant-btn-background-ghost {
|
|
|
|
|
border: 1px solid $color-primary !important;
|
|
|
|
|
color: $color-primary !important;
|
|
|
|
|
background-color: #fff !important;
|
|
|
|
|
&:disabled {
|
|
|
|
|
border-color: $color-primary-3 !important;
|
|
|
|
|
color: $color-primary-3 !important;
|
|
|
|
|
background-color: #fff !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
border-color: $color-primary-5 !important;
|
|
|
|
|
color: $color-primary-5 !important;
|
|
|
|
|
background-color: #fff !important;
|
|
|
|
|
}
|
2025-09-16 17:29:09 +08:00
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
border-color: $color-primary-7 !important;
|
|
|
|
|
color: $color-primary-7 !important;
|
2025-09-17 17:58:11 +08:00
|
|
|
background-color: #fff !important;
|
2025-09-16 17:29:09 +08:00
|
|
|
}
|
2025-09-08 09:16:10 +08:00
|
|
|
}
|
|
|
|
|
&.ant-btn-dangerous {
|
|
|
|
|
border: 1px solid $color-error !important;
|
|
|
|
|
color: $color-error !important;
|
|
|
|
|
background-color: #fff !important;
|
|
|
|
|
&:disabled {
|
|
|
|
|
border-color: $color-error-3 !important;
|
|
|
|
|
color: $color-error-3 !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
border-color: $color-error-5 !important;
|
|
|
|
|
color: $color-error-5 !important;
|
|
|
|
|
}
|
2025-09-16 17:29:09 +08:00
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
border-color: $color-error-7 !important;
|
|
|
|
|
color: $color-error-7 !important;
|
|
|
|
|
}
|
2025-09-08 09:16:10 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-btn-outline {
|
|
|
|
|
border: 1px solid $color-primary !important;
|
|
|
|
|
color: $color-primary !important;
|
|
|
|
|
&:disabled {
|
|
|
|
|
border-color: $color-primary-3 !important;
|
|
|
|
|
color: $color-primary-3 !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
border-color: $color-primary-5 !important;
|
|
|
|
|
color: $color-primary-5 !important;
|
|
|
|
|
}
|
2025-09-16 17:29:09 +08:00
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
border-color: $color-primary-7 !important;
|
|
|
|
|
color: $color-primary-7 !important;
|
|
|
|
|
}
|
2025-09-08 09:16:10 +08:00
|
|
|
}
|
2025-09-16 11:55:56 +08:00
|
|
|
|
2025-09-08 09:16:10 +08:00
|
|
|
&.ant-btn-dangerous {
|
|
|
|
|
border: 1px solid $color-error !important;
|
|
|
|
|
color: $color-error !important;
|
|
|
|
|
&:disabled {
|
|
|
|
|
border-color: $color-error-3 !important;
|
|
|
|
|
color: $color-error-3 !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
border-color: $color-error-5 !important;
|
|
|
|
|
color: $color-error-5 !important;
|
|
|
|
|
}
|
2025-09-16 17:29:09 +08:00
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
border-color: $color-error-7 !important;
|
|
|
|
|
color: $color-error-7 !important;
|
|
|
|
|
}
|
2025-09-08 09:16:10 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-btn-text {
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
color: $color-primary !important;
|
|
|
|
|
&:disabled {
|
|
|
|
|
color: $color-primary-2 !important;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $color-primary-5 !important;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
}
|
2025-09-16 17:29:09 +08:00
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
color: $color-primary-7 !important;
|
2025-09-17 17:58:11 +08:00
|
|
|
border-color: transparent !important;
|
2025-09-16 17:29:09 +08:00
|
|
|
}
|
2025-09-08 09:16:10 +08:00
|
|
|
}
|
|
|
|
|
&.ant-btn-dangerous {
|
|
|
|
|
color: $color-error !important;
|
|
|
|
|
&:disabled {
|
|
|
|
|
color: $color-error-2 !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $color-error-5 !important;
|
|
|
|
|
}
|
2025-09-16 17:29:09 +08:00
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
color: $color-error-7 !important;
|
|
|
|
|
}
|
2025-09-08 09:16:10 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-btn-link {
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
color: $color-primary !important;
|
|
|
|
|
&:disabled {
|
|
|
|
|
color: $color-primary-2 !important;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $color-primary-5 !important;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
}
|
2025-09-16 17:29:09 +08:00
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
color: $color-primary-7 !important;
|
2025-09-17 17:58:11 +08:00
|
|
|
border-color: transparent !important;
|
2025-09-16 17:29:09 +08:00
|
|
|
}
|
2025-09-08 09:16:10 +08:00
|
|
|
}
|
|
|
|
|
&.ant-btn-dangerous {
|
|
|
|
|
color: $color-error !important;
|
|
|
|
|
&:disabled {
|
|
|
|
|
color: $color-error-2 !important;
|
|
|
|
|
}
|
|
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $color-error-5 !important;
|
|
|
|
|
}
|
2025-09-16 17:29:09 +08:00
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
color: $color-error-7 !important;
|
|
|
|
|
}
|
2025-09-08 09:16:10 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|