Files
lingji-work-fe/src/styles/components/ant-button.scss

205 lines
4.7 KiB
SCSS
Raw Normal View History

2025-09-08 09:16:10 +08:00
.ant-btn {
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;
}
}
.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-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;
}
}
.ant-wave {
background: $color-primary-7 !important;
--wave-color: $color-primary-7;
}
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;
}
}
}
&.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;
}
}
&.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;
}
}
}
}
}
.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-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;
}
}
}
}
.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;
}
}
&.ant-btn-dangerous {
color: $color-error !important;
&:disabled {
color: $color-error-2 !important;
}
&:not(:disabled) {
&:hover {
color: $color-error-5 !important;
}
}
}
}
.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;
}
}
&.ant-btn-dangerous {
color: $color-error !important;
&:disabled {
color: $color-error-2 !important;
}
&:not(:disabled) {
&:hover {
color: $color-error-5 !important;
}
}
}
}