Skip to content

Commit 02a8bb4

Browse files
committed
chore: update style
1 parent e8fafa0 commit 02a8bb4

File tree

21 files changed

+596
-539
lines changed

21 files changed

+596
-539
lines changed

components/button/style/index.less

+3-3
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@
170170
}
171171

172172
&-background-ghost {
173-
color: @component-background;
174-
background: transparent !important;
175-
border-color: @component-background;
173+
color: @btn-default-ghost-color;
174+
background: @btn-default-ghost-bg !important;
175+
border-color: @btn-default-ghost-border;
176176
}
177177

178178
&-background-ghost&-primary {

components/card/style/index.less

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
&-hoverable {
2121
cursor: pointer;
22+
transition: box-shadow 0.3s border-color 0.3s;
23+
2224
&:hover {
2325
border-color: @card-hover-border;
2426
box-shadow: @card-shadow;

components/cascader/style/index.less

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
position: relative;
3030
display: inline-block;
31-
background-color: @component-background;
31+
background-color: @cascader-bg;
3232
border-radius: @border-radius-base;
3333
outline: 0;
3434
cursor: pointer;
@@ -127,7 +127,7 @@
127127
z-index: @zindex-dropdown;
128128
font-size: @cascader-dropdown-font-size;
129129
white-space: nowrap;
130-
background: @component-background;
130+
background: @cascader-menu-bg;
131131
border-radius: @border-radius-base;
132132
box-shadow: @box-shadow-base;
133133

@@ -168,7 +168,7 @@
168168
overflow: auto;
169169
vertical-align: top;
170170
list-style: none;
171-
border-right: @border-width-base @border-style-base @border-color-split;
171+
border-right: @border-width-base @border-style-base @cascader-menu-border-color-split;
172172
-ms-overflow-style: -ms-autohiding-scrollbar; // https://github.com/ant-design/ant-design/issues/11857
173173

174174
&:first-child {
@@ -203,7 +203,7 @@
203203
&,
204204
&:hover {
205205
font-weight: @select-item-selected-font-weight;
206-
background-color: @background-color-light;
206+
background-color: @cascader-item-selected-bg;
207207
}
208208
}
209209
&-expand {

components/comment/style/index.less

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
.@{comment-prefix-cls} {
77
position: relative;
8+
background-color: @comment-bg;
89

910
&-inner {
1011
display: flex;

components/divider/style/index.less

+6-6
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,33 @@
6262
&-horizontal&-with-text-left {
6363
&::before {
6464
top: 50%;
65-
width: 5%;
65+
width: @divider-orientation-margin;
6666
}
6767
&::after {
6868
top: 50%;
69-
width: 95%;
69+
width: 100% - @divider-orientation-margin;
7070
}
7171
}
7272

7373
&-horizontal&-with-text-right {
7474
&::before {
7575
top: 50%;
76-
width: 95%;
76+
width: 100% - @divider-orientation-margin;
7777
}
7878
&::after {
7979
top: 50%;
80-
width: 5%;
80+
width: @divider-orientation-margin;
8181
}
8282
}
8383

8484
&-inner-text {
8585
display: inline-block;
86-
padding: 0 24px;
86+
padding: 0 @divider-text-padding;
8787
}
8888

8989
&-dashed {
9090
background: none;
91-
border-color: @border-color-split;
91+
border-color: @divider-color;
9292
border-style: dashed;
9393
border-width: 1px 0 0;
9494
}

components/drawer/style/drawer.less

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
position: relative;
142142
z-index: 1;
143143
overflow: auto;
144-
background-color: @component-background;
144+
background-color: @drawer-bg;
145145
background-clip: padding-box;
146146
border: 0;
147147
}
@@ -181,14 +181,14 @@
181181
position: relative;
182182
padding: @drawer-header-padding;
183183
color: @text-color;
184-
background: @component-background;
184+
background: @drawer-bg;
185185
border-bottom: @border-width-base @border-style-base @border-color-split;
186186
border-radius: @border-radius-base @border-radius-base 0 0;
187187
}
188188

189189
&-header-no-title {
190190
color: @text-color;
191-
background: @component-background;
191+
background: @drawer-bg;
192192
}
193193

194194
&-body {

components/dropdown/style/index.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
&,
196196
.@{dropdown-prefix-cls}-menu-submenu-arrow-icon {
197197
color: @disabled-color;
198-
background-color: @component-background;
198+
background-color: @dropdown-menu-submenu-disabled-bg;
199199
cursor: not-allowed;
200200
}
201201
}

components/input/style/index.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
transition: all 0.3s;
3434

3535
&:hover {
36-
color: #333;
36+
color: @input-icon-hover-color;
3737
}
3838
}
3939

components/input/style/search-input.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
cursor: pointer;
1212
transition: all 0.3s;
1313
&:hover {
14-
color: fade(@black, 80%);
14+
color: @input-icon-hover-color;
1515
}
1616
}
1717

components/mentions/style/index.less

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
box-sizing: border-box;
9999
font-size: @font-size-base;
100100
font-variant: initial;
101-
background-color: @component-background;
101+
background-color: @mentions-dropdown-bg;
102102
border-radius: @border-radius-base;
103103
outline: none;
104104
box-shadow: @box-shadow-base;
@@ -147,7 +147,7 @@
147147

148148
&:hover {
149149
color: @disabled-color;
150-
background-color: @component-background;
150+
background-color: @mentions-dropdown-menu-item-hover-bg;
151151
cursor: not-allowed;
152152
}
153153
}

components/message/style/index.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
&-notice-content {
2525
display: inline-block;
2626
padding: @message-notice-content-padding;
27-
background: @component-background;
27+
background: @message-notice-content-bg;
2828
border-radius: @border-radius-base;
2929
box-shadow: @shadow-2;
3030
pointer-events: all;

components/notification/style/index.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
padding: @notification-padding;
4040
overflow: hidden;
4141
line-height: 1.5;
42-
background: @component-background;
42+
background: @notification-bg;
4343
border-radius: @border-radius-base;
4444
box-shadow: @shadow-2;
4545

components/pagination/style/index.less

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
text-align: center;
4242
vertical-align: middle;
4343
list-style: none;
44-
background-color: @component-background;
44+
background-color: @pagination-item-bg;
4545
border: @border-width-base @border-style-base @border-color-base;
4646
border-radius: @border-radius-base;
4747
outline: 0;
@@ -180,7 +180,7 @@
180180
height: 100%;
181181
font-size: 12px;
182182
text-align: center;
183-
background-color: @component-background;
183+
background-color: @pagination-item-link-bg;
184184
border: @border-width-base @border-style-base @border-color-base;
185185
border-radius: @border-radius-base;
186186
outline: none;
@@ -264,7 +264,7 @@
264264
margin-right: 8px;
265265
padding: 0 6px;
266266
text-align: center;
267-
background-color: @component-background;
267+
background-color: @pagination-item-input-bg;
268268
border: @border-width-base @border-style-base @border-color-base;
269269
border-radius: @border-radius-base;
270270
outline: none;
@@ -350,10 +350,10 @@
350350
}
351351

352352
&-active {
353-
background: darken(@disabled-bg, 10%);
353+
background: @pagination-item-disabled-bg-active;
354354
border-color: transparent;
355355
a {
356-
color: #fff;
356+
color: @pagination-item-disabled-color-active;
357357
}
358358
}
359359
}

components/progress/progress.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export default defineComponent({
1818
type: 'line',
1919
percent: 0,
2020
showInfo: true,
21-
trailColor: '#f3f3f3',
21+
// null for different theme definition
22+
trailColor: null,
2223
size: 'default',
2324
gapDegree: 0,
2425
strokeLinecap: 'round',

components/steps/style/index.less

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
@error-title-color: @error-color;
2020
@error-description-color: @error-color;
2121
@error-tail-color: @wait-tail-color;
22-
@steps-background: @component-background;
23-
@steps-nav-arrow-color: fade(@black, 25%);
2422
@steps-nav-active-color: @primary-color;
2523

2624
@steps-icon-size: 32px;

0 commit comments

Comments
 (0)