|
1 | | -$primaryAIColor: #00BAC6 0%, #0067FF 50%, #450FDE 100%; |
2 | | -$primaryHoverAIColor: #08C4FF 0%, #4892FF 50%, #8A61FF 100%; |
3 | | - |
4 | 1 | .ant-btn.dtc__aigc__button { |
5 | | - &.ant-btn-icon-only { |
6 | | - width: auto; |
7 | | - } |
8 | | - padding: 0; |
9 | 2 | border: none; |
| 3 | + border-radius: 4px; |
| 4 | + &.ant-btn-sm { |
| 5 | + border-radius: 2px; |
| 6 | + } |
10 | 7 | &[disabled] { |
11 | 8 | color: #B1B4C5; |
12 | 9 | background-color: #EBECF0; |
13 | 10 | border-color: #EBECF0; |
14 | 11 | } |
15 | 12 | &--primary { |
16 | 13 | &:not(.ant-btn[disabled]) { |
17 | | - background: linear-gradient(110deg, $primaryAIColor); |
| 14 | + background: linear-gradient(110deg, #00BAC6 0%, #0067FF 50%, #450FDE 100%); |
18 | 15 | color: #FFF; |
19 | 16 | } |
20 | 17 | &:hover { |
21 | 18 | &:not(.ant-btn[disabled]) { |
22 | | - background: linear-gradient(110deg, $primaryHoverAIColor); |
23 | | - color: #FFF; |
| 19 | + background: linear-gradient(110deg, #08C4FF 0%, #4892FF 50%, #8A61FF 100%); |
| 20 | + } |
| 21 | + } |
| 22 | + } |
| 23 | + &--default { |
| 24 | + &:not(.ant-btn[disabled]) { |
| 25 | + border: 1px solid #D8DAE2; |
| 26 | + color: #3D446E; |
| 27 | + transition: background-image 0.3s ease; |
| 28 | + } |
| 29 | + &:hover { |
| 30 | + &:not(.ant-btn[disabled]) { |
| 31 | + border-color: transparent; |
| 32 | + background-image: |
| 33 | + linear-gradient(white, white), |
| 34 | + linear-gradient(110deg, #08C4FF 0%, #4892FF 50%, #8A61FF 100%); |
| 35 | + background-origin: border-box; |
| 36 | + background-clip: padding-box, border-box; |
| 37 | + svg, |
| 38 | + path { |
| 39 | + fill: url(#secondary_linear_gradient_hover); |
| 40 | + } |
| 41 | + .dtc__aigc__button__text { |
| 42 | + background-image: |
| 43 | + linear-gradient( |
| 44 | + 110deg, |
| 45 | + #08C4FF 0%, |
| 46 | + #4892FF 50%, |
| 47 | + #8A61FF 100% |
| 48 | + ); |
| 49 | + background-clip: text; |
| 50 | + color: transparent; |
| 51 | + } |
24 | 52 | } |
25 | 53 | } |
26 | 54 | } |
27 | 55 | &--secondary.ant-btn-default { |
28 | 56 | &:not(.ant-btn[disabled]) { |
29 | | - position: relative; |
30 | | - background: linear-gradient(90deg, $primaryAIColor); |
31 | | - > :not(.dtc__aigc__mask--secondary) { |
32 | | - position: relative; |
33 | | - z-index: 2; |
| 57 | + border: 1px solid transparent; |
| 58 | + background-image: |
| 59 | + linear-gradient(white, white), |
| 60 | + linear-gradient(110deg, #00BAC6 0%, #0067FF 50%, #450FDE 100%); |
| 61 | + background-origin: border-box; |
| 62 | + background-clip: padding-box, border-box; |
| 63 | + transition: all 0.3s linear; |
| 64 | + .dtc__aigc__button__text { |
| 65 | + background-image: linear-gradient(110deg, #00BAC6 0%, #0067FF 50%, #450FDE 100%); |
| 66 | + background-clip: text; |
| 67 | + color: transparent; |
34 | 68 | } |
35 | 69 | svg, |
36 | 70 | path { |
37 | | - fill: url(#LINE_GRADIENT_ID); |
| 71 | + fill: url(#secondary_linear_gradient); |
38 | 72 | } |
39 | | - } |
40 | | - &:hover, |
41 | | - &:active { |
42 | | - &:not(.ant-btn[disabled]) { |
43 | | - background: linear-gradient(90deg, $primaryHoverAIColor); |
| 73 | + &:hover { |
| 74 | + background-image: |
| 75 | + linear-gradient(white, white), |
| 76 | + linear-gradient(110deg, #08C4FF 0%, #4892FF 50%, #8A61FF 100%); |
44 | 77 | svg, |
45 | 78 | path { |
46 | | - fill: url(#HOVER_LINE_GRADIENT_ID); |
| 79 | + fill: url(#secondary_linear_gradient_hover); |
| 80 | + } |
| 81 | + .dtc__aigc__button__text { |
| 82 | + background-image: |
| 83 | + linear-gradient( |
| 84 | + 110deg, |
| 85 | + #08C4FF 0%, |
| 86 | + #4892FF 50%, |
| 87 | + #8A61FF 100% |
| 88 | + ); |
47 | 89 | } |
48 | 90 | } |
49 | 91 | } |
50 | | - .dtc__aigc__mask--secondary { |
51 | | - content: ""; |
52 | | - position: absolute; |
53 | | - top: 0; |
54 | | - left: 0; |
55 | | - right: 0; |
56 | | - bottom: 0; |
57 | | - z-index: 1; |
58 | | - pointer-events: none; |
59 | | - background: #FFF; |
60 | | - margin: 1px; |
61 | | - border-radius: inherit; |
62 | | - } |
63 | 92 | } |
64 | 93 | } |
0 commit comments