@kdcloudjs/kdesign 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/kdesign-complete.less +304 -219
  3. package/dist/kdesign.css +167 -97
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +19 -10
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +4 -4
  8. package/dist/kdesign.min.js +3 -3
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/avatar/style/token.less +13 -8
  11. package/es/base-data/base-data.js +5 -1
  12. package/es/base-data/style/index.css +8 -3
  13. package/es/base-data/style/index.less +8 -3
  14. package/es/base-data/style/token.less +7 -0
  15. package/es/button/style/token.less +7 -5
  16. package/es/card/style/token.less +8 -8
  17. package/es/carousel/style/index.css +4 -4
  18. package/es/carousel/style/token.less +10 -9
  19. package/es/city-picker/style/token.less +7 -7
  20. package/es/form/Field.js +4 -2
  21. package/es/form/style/index.css +1 -2
  22. package/es/form/style/index.less +1 -2
  23. package/es/form/style/token.less +7 -12
  24. package/es/image/style/token.less +0 -13
  25. package/es/menu/menu.js +1 -1
  26. package/es/menu/style/index.css +113 -69
  27. package/es/menu/style/index.less +149 -61
  28. package/es/menu/style/mixin.less +1 -10
  29. package/es/menu/style/token.less +13 -13
  30. package/es/menu/subMenu.js +1 -2
  31. package/es/message/content.js +7 -3
  32. package/es/message/style/index.css +30 -13
  33. package/es/message/style/index.less +22 -9
  34. package/es/message/style/token.less +29 -5
  35. package/es/pagination/style/token.less +5 -3
  36. package/es/progress/style/token.less +0 -8
  37. package/es/radio/style/token.less +0 -16
  38. package/es/select/style/index.css +1 -1
  39. package/es/select/style/token.less +1 -1
  40. package/es/stepper/style/index.css +1 -0
  41. package/es/stepper/style/index.less +1 -0
  42. package/es/stepper/style/token.less +8 -10
  43. package/es/switch/style/token.less +0 -6
  44. package/es/timeline/style/token.less +0 -8
  45. package/es/tree/style/index.css +6 -3
  46. package/es/tree/style/index.less +4 -0
  47. package/es/tree/style/token.less +2 -2
  48. package/lib/avatar/style/token.less +13 -8
  49. package/lib/base-data/base-data.js +5 -1
  50. package/lib/base-data/style/index.css +8 -3
  51. package/lib/base-data/style/index.less +8 -3
  52. package/lib/base-data/style/token.less +7 -0
  53. package/lib/button/style/token.less +7 -5
  54. package/lib/card/style/token.less +8 -8
  55. package/lib/carousel/style/index.css +4 -4
  56. package/lib/carousel/style/token.less +10 -9
  57. package/lib/city-picker/style/token.less +7 -7
  58. package/lib/form/Field.js +4 -2
  59. package/lib/form/style/index.css +1 -2
  60. package/lib/form/style/index.less +1 -2
  61. package/lib/form/style/token.less +7 -12
  62. package/lib/image/style/token.less +0 -13
  63. package/lib/menu/menu.js +1 -1
  64. package/lib/menu/style/index.css +113 -69
  65. package/lib/menu/style/index.less +149 -61
  66. package/lib/menu/style/mixin.less +1 -10
  67. package/lib/menu/style/token.less +13 -13
  68. package/lib/menu/subMenu.js +1 -2
  69. package/lib/message/content.js +7 -3
  70. package/lib/message/style/index.css +30 -13
  71. package/lib/message/style/index.less +22 -9
  72. package/lib/message/style/token.less +29 -5
  73. package/lib/pagination/style/token.less +5 -3
  74. package/lib/progress/style/token.less +0 -8
  75. package/lib/radio/style/token.less +0 -16
  76. package/lib/select/style/index.css +1 -1
  77. package/lib/select/style/token.less +1 -1
  78. package/lib/stepper/style/index.css +1 -0
  79. package/lib/stepper/style/index.less +1 -0
  80. package/lib/stepper/style/token.less +8 -10
  81. package/lib/switch/style/token.less +0 -6
  82. package/lib/timeline/style/token.less +0 -8
  83. package/lib/tree/style/index.css +6 -3
  84. package/lib/tree/style/index.less +4 -0
  85. package/lib/tree/style/token.less +2 -2
  86. package/package.json +1 -1
@@ -21,31 +21,13 @@
21
21
  .@{submenu-prefix-cls} {
22
22
  padding-right: 0;
23
23
  }
24
-
25
- .@{submenu-prefix-cls}:not(.@{submenu-prefix-cls}-disabled):hover {
26
- color: @menu-inline-color-active;
27
- }
28
24
  }
29
25
 
30
26
  &-vertical {
31
- .@{submenu-prefix-cls}:not(.@{submenu-prefix-cls}-disabled):hover,
32
- .@{submenu-prefix-cls}-hover {
33
- .hover();
34
- }
35
-
36
27
  .@{submenu-prefix-cls} {
37
28
  padding-right: 0;
38
29
 
39
30
  &-sub {
40
- background: @menu-sub-color-background;
41
-
42
- .@{menuitem-prefix-cls} {
43
- &:hover,
44
- &-active {
45
- color: @menu-sub-color-active;
46
- }
47
- }
48
-
49
31
  &-second,
50
32
  &-third {
51
33
  animation: kdZoomTopLeftIn calc(@menu-motion-duration - 0.1s) cubic-bezier(0, .4, .4, 1) forwards;
@@ -70,6 +52,7 @@
70
52
 
71
53
  &-collapsed {
72
54
  width: 50px;
55
+ min-width: auto;
73
56
  }
74
57
 
75
58
  &-light {
@@ -80,20 +63,6 @@
80
63
  .light-default;
81
64
  }
82
65
 
83
- .@{submenu-prefix-cls}-title:hover {
84
- color: @menu-light-color-hover;
85
- }
86
-
87
- .@{submenu-prefix-cls}:not(.@{submenu-prefix-cls}-disabled):hover {
88
- .light-default;
89
- }
90
-
91
- .@{menuitem-prefix-cls} {
92
- &-active {
93
- .light-hover();
94
- }
95
- }
96
-
97
66
  .@{menuitem-prefix-cls}:not(.@{menuitem-prefix-cls}-disabled):hover {
98
67
  .light-hover();
99
68
  }
@@ -101,22 +70,7 @@
101
70
 
102
71
  &-light&-vertical {
103
72
  .@{submenu-prefix-cls}-sub {
104
- box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
105
- 0 9px 28px 8px rgba(0, 0, 0, 0.05);
106
- }
107
-
108
- .@{menuitem-prefix-cls} {
109
- &:not(.@{menuitem-prefix-cls}-disabled):not(.@{menuitem-prefix-cls}-active):hover {
110
- color: @menu-light-color-hover;
111
- background: #fff;
112
- border: none;
113
- }
114
-
115
- &-active {
116
- color: @menu-light-color-active;
117
- background-color: @menu-light-color-background;
118
- border: none !important;
119
- }
73
+ box-shadow: 0 4px 10px 0 #f5f5f5;
120
74
  }
121
75
  }
122
76
  }
@@ -127,10 +81,6 @@
127
81
  transition: color, background-color;
128
82
  transition-duration: calc(@menu-motion-duration - 0.1s);
129
83
  transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
130
-
131
- &:not(&-disabled):hover {
132
- .hover();
133
- }
134
84
  }
135
85
 
136
86
  .@{submenu-prefix-cls} {
@@ -140,13 +90,12 @@
140
90
  transition-duration: calc(@menu-motion-duration - 0.1s);
141
91
  transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
142
92
 
143
- &-hover {
144
- color: @menu-sub-color-hover;
145
- }
146
-
147
93
  &-sub {
148
94
  line-height: @menu-item-height;
149
95
  color: @menu-sub-color;
96
+ min-width: 130px;
97
+
98
+
150
99
  }
151
100
 
152
101
  &-thrid {
@@ -154,7 +103,6 @@
154
103
  max-width: 810px;
155
104
  max-height: 492px;
156
105
  padding-left: 24px;
157
- background: @menu-sub-color-background;
158
106
  flex-wrap: wrap;
159
107
  overflow-y: auto;
160
108
  cursor: default;
@@ -202,10 +150,6 @@
202
150
  cursor: pointer;
203
151
  .ellipsis();
204
152
 
205
- &:hover {
206
- color: @menu-sub-color-active;
207
- }
208
-
209
153
  & > span {
210
154
  .ellipsis();
211
155
  }
@@ -221,3 +165,147 @@
221
165
  }
222
166
  }
223
167
  }
168
+
169
+ .@{kd-prefix}-menu-dark {
170
+ .@{menu-prefix-cls}-item:not(.@{menu-prefix-cls}-item-disabled) ,
171
+ .@{menu-prefix-cls}-submenu:not(.@{menu-prefix-cls}-submenu-hover) {
172
+ :hover {
173
+ .hover-sub()
174
+ }
175
+ }
176
+
177
+ &.@{menu-prefix-cls}-inline {
178
+ > ul > li.@{menu-prefix-cls}-submenu {
179
+
180
+ .@{menu-prefix-cls}-submenu-sub {
181
+ .base-sub();
182
+
183
+ :hover {
184
+ .hover-third()
185
+ }
186
+ }
187
+ }
188
+ }
189
+
190
+ .@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
191
+ .hover-sub()
192
+ }
193
+
194
+ .@{menu-prefix-cls}-submenu {
195
+ &-sub {
196
+ .base-sub();
197
+ }
198
+
199
+ .@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
200
+ .hover-third()
201
+ }
202
+ }
203
+
204
+ > .@{menu-prefix-cls}-submenu {
205
+ :hover {
206
+ .hover-sub();
207
+ }
208
+ }
209
+
210
+ > .@{menu-prefix-cls}-item:not(.@{menu-prefix-cls}-item-disabled), .@{menu-prefix-cls}-submenu-collapsed {
211
+ :hover {
212
+ .hover-sub()
213
+ }
214
+ }
215
+
216
+ .@{menu-prefix-cls}-submenu-sub-second {
217
+ > li:hover {
218
+ .hover-third()
219
+ }
220
+ }
221
+
222
+ .@{menu-prefix-cls}-submenu-sub-third {
223
+ .@{menu-prefix-cls}-item:hover {
224
+ .hover-third()
225
+ }
226
+ }
227
+ }
228
+
229
+ .@{kd-prefix}-menu-light {
230
+
231
+ &.@{menu-prefix-cls}-inline {
232
+ > ul > li.@{menu-prefix-cls}-submenu {
233
+
234
+ .@{menu-prefix-cls}-submenu-sub {
235
+ .base-sub-light();
236
+
237
+ :hover {
238
+ .hover-third-light()
239
+ }
240
+ }
241
+ }
242
+ }
243
+
244
+ .@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
245
+ .hover-sub-light()
246
+ }
247
+
248
+ .@{menu-prefix-cls}-submenu {
249
+ &-sub {
250
+ .base-sub-light();
251
+ }
252
+
253
+ .@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
254
+ .hover-third-light()
255
+ }
256
+ }
257
+
258
+ > .@{menu-prefix-cls}-submenu {
259
+ :hover {
260
+ .hover-sub-light();
261
+ }
262
+ }
263
+
264
+ > .@{menu-prefix-cls}-item:not(.@{menu-prefix-cls}-item-disabled), .@{menu-prefix-cls}-submenu-collapsed {
265
+ :hover {
266
+ .hover-sub-light()
267
+ }
268
+ }
269
+
270
+ .@{menu-prefix-cls}-submenu-sub-second {
271
+ > li:hover {
272
+ .hover-third-light()
273
+ }
274
+ }
275
+
276
+ .@{menu-prefix-cls}-submenu-sub-third {
277
+ .@{menu-prefix-cls}-item:hover {
278
+ .hover-third-light()
279
+ }
280
+ }
281
+ }
282
+
283
+ .hover-sub {
284
+ background: @menu-sub-base-color-background-hover;
285
+ color: @menu-sub-color-hover;
286
+ }
287
+
288
+ .base-sub {
289
+ background: @menu-sub-base-color-background-hover;
290
+ color: @menu-sub-base-color-hover;
291
+ }
292
+
293
+ .hover-third {
294
+ background: @menu-sub-color-background-hover !important;
295
+ color: @menu-sub-color-hover;
296
+ }
297
+
298
+ .hover-sub-light {
299
+ background: @menu-light-color-background;
300
+ color: @menu-light-color;
301
+ }
302
+
303
+ .base-sub-light {
304
+ background: @menu-light-color-background;
305
+ color: @menu-light-color;
306
+ }
307
+
308
+ .hover-third-light {
309
+ background: @menu-light-color-background-hover;
310
+ color: @menu-light-color;
311
+ }
@@ -4,6 +4,7 @@
4
4
  .menu() {
5
5
  position: relative;
6
6
  width: 100%;
7
+ min-width: 138px;
7
8
  height: 100%;
8
9
  background-color: @menu-color-background;
9
10
  color: @menu-sub-color;
@@ -51,10 +52,6 @@
51
52
  color: @menu-color-disabled;
52
53
  }
53
54
 
54
- &-active {
55
- .hover();
56
- }
57
-
58
55
  &-arrow {
59
56
  margin-left: auto;
60
57
  font-size: 16px;
@@ -70,15 +67,9 @@
70
67
  }
71
68
  }
72
69
 
73
- .hover {
74
- background-color: @menu-sub-color-background;
75
- color: @menu-sub-color-hover;
76
- }
77
-
78
70
  .light-hover {
79
71
  background-color: @menu-light-color-background;
80
72
  color: @menu-light-color-hover;
81
- border-right: 2px solid @menu-light-color-active;
82
73
  }
83
74
 
84
75
  .light-default {
@@ -2,31 +2,31 @@
2
2
 
3
3
  @menu-prefix: '--@{kd-prefix}-c-menu';
4
4
 
5
- // shadow
6
5
  // color
7
6
  @menu-color-disabled: var(~'@{menu-prefix}-color-disabled', @color-disabled);
8
7
  @menu-sub-color: var(~'@{menu-prefix}-sub-color', rgba(255, 255, 255, 0.65));
9
8
  @menu-sub-color-hover: var(~'@{menu-prefix}-sub-color-hover', @color-white);
10
- @menu-sub-color-active: var(~'@{menu-prefix}-sub-color-active', @color-theme);
9
+ @menu-sub-color-active: var(~'@{menu-prefix}-sub-color-active', @color-white);
11
10
  @menu-sub-color-background: var(~'@{menu-prefix}-sub-color-background', #21242d);
11
+ @menu-sub-color-background-hover: var(~'@{menu-prefix}-sub-color-background-hover', #121319);
12
+ @menu-sub-base-color-hover: var(~'@{menu-prefix}-sub-base-color-hover', #b2b3b7);
13
+ @menu-sub-base-color-background-hover: var(~'@{menu-prefix}-sub-base-color-background-hover', #1f212b);
12
14
  @menu-inline-color-active: var(~'@{menu-prefix}-inline-color-active', @color-white);
13
15
  @menu-color-background: var(~'@{menu-prefix}-color-background', #343848);
14
-
15
16
  @menu-light-color: var(~'@{menu-prefix}-light-color', @color-text-primary);
16
- @menu-light-color-hover: var(~'@{menu-prefix}-light-color-hover', @color-ongoing);
17
- @menu-light-color-active: var(~'@{menu-prefix}-light-color-active', @color-theme);
18
- @menu-light-color-background: var(~'@{menu-prefix}-light-color-background', @color-background-ongoing);
17
+ @menu-light-color-hover: var(~'@{menu-prefix}-light-color-hover', @color-text-primary);
18
+ @menu-light-color-active: var(~'@{menu-prefix}-light-color-active', @color-text-primary);
19
+ @menu-light-color-background: var(~'@{menu-prefix}-light-color-background', #f5f5f5);
20
+ @menu-light-color-background-hover: var(~'@{menu-prefix}-light-color-background-hover', #eaeaea);
21
+
22
+ // font
23
+ @menu-icon-font-size: var(~'@{menu-prefix}-icon-font-size', @font-size-xx-large);
19
24
 
20
- // sizing
21
- @menu-item-height: var(~'@{menu-prefix}-item-sizing-height', 50px);
22
- // spacing
23
25
  // motion
24
26
  @menu-motion-duration: var(~'@{menu-prefix}-motion-duration', @duration-promptly);
25
27
 
26
- // font
27
- @menu-icon-font-size: var(~'@{menu-prefix}-icon-font-size', @font-size-xx-large);
28
+ // sizing
29
+ @menu-item-height: var(~'@{menu-prefix}-item-sizing-height', 50px);
28
30
 
29
- // radius
30
- // line-height
31
31
  // z-index
32
32
  @menu-z-index: var(~'@{menu-prefix}-z-index', @z-index-dialog);
@@ -390,8 +390,7 @@ var SubMenu = function SubMenu(props) {
390
390
  return /*#__PURE__*/React.createElement("li", (0, _extends2.default)({
391
391
  ref: subMenuRef,
392
392
  className: (0, _classnames.default)(prefixCls, className, (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-collapsed"), collapsed), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-disabled"), disabled), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-hover"), !disabled && isVisible), _classNames2)),
393
- key: keyValue,
394
- title: title
393
+ key: keyValue
395
394
  }, mouseEvent, {
396
395
  style: style
397
396
  }), /*#__PURE__*/React.createElement("div", {
@@ -51,13 +51,17 @@ var Content = function Content(args) {
51
51
  type: "warning-solid"
52
52
  }),
53
53
  info: /*#__PURE__*/_react.default.createElement(_icon.default, {
54
- type: "tips-solid"
54
+ type: "notice"
55
55
  })
56
56
  };
57
57
 
58
58
  var renderIcon = function renderIcon() {
59
- if (icon) return /*#__PURE__*/_react.default.createElement("div", null, icon);
60
- return iconMap[type] ? /*#__PURE__*/_react.default.createElement("div", null, iconMap[type]) : null;
59
+ if (icon) return /*#__PURE__*/_react.default.createElement("div", {
60
+ className: "".concat(classPrefix, "-icon-wrapper")
61
+ }, icon);
62
+ return iconMap[type] ? /*#__PURE__*/_react.default.createElement("div", {
63
+ className: "".concat(classPrefix, "-icon-wrapper")
64
+ }, iconMap[type]) : null;
61
65
  };
62
66
 
63
67
  var handleClick = function handleClick(e) {
@@ -120,13 +120,13 @@
120
120
  display: inline-block;
121
121
  -webkit-box-sizing: border-box;
122
122
  box-sizing: border-box;
123
- min-width: 280px;
124
- max-width: 1000px;
125
- margin: 0 auto 16px;
126
- padding: 10px 20px;
127
- color: var(--kd-c-message-info-color-text, var(--kd-g-color-text-link, #0e5fd8));
123
+ min-width: var(--kd-c-message-sizing-min-width, 280px);
124
+ max-width: var(--kd-c-message-sizing-max-width, 1000px);
125
+ margin: 0 auto var(--kd-c-message-spacing-margin-bottom, 16px);
126
+ padding: var(--kd-c-message-spacing-padding-horizontal, 10px) var(--kd-c-message-spacing-padding-vertical, 20px);
127
+ color: var(--kd-c-message-info-color-text, #0e5fd8);
128
128
  border: 1px solid var(--kd-c-message-info-color-border, #b3d5ff);
129
- border-radius: 4px;
129
+ border-radius: var(--kd-c-message-border-radius, 4px);
130
130
  background-color: var(--kd-c-message-info-color-background, #e0efff);
131
131
  pointer-events: all;
132
132
  -webkit-animation: kdNoticeEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
@@ -139,37 +139,54 @@
139
139
  -webkit-box-pack: justify;
140
140
  -ms-flex-pack: justify;
141
141
  justify-content: space-between;
142
- font-size: 12px;
142
+ font-size: var(--kd-c-message-font-size, 14px);
143
+ line-height: var(--kd-c-message-line-height, 20px);
143
144
  }
144
145
  .kd-message-content-main {
145
146
  display: -webkit-box;
146
147
  display: -ms-flexbox;
147
148
  display: flex;
149
+ }
150
+ .kd-message-content-icon-wrapper {
151
+ font-size: var(--kd-c-message-icon-font-size, 16px);
152
+ margin-right: var(--kd-c-message-icon-spacing-margin-right, 8px);
153
+ -ms-flex-item-align: start;
154
+ align-self: flex-start;
155
+ display: -webkit-inline-box;
156
+ display: -ms-inline-flexbox;
157
+ display: inline-flex;
148
158
  -webkit-box-align: center;
149
159
  -ms-flex-align: center;
150
160
  align-items: center;
151
161
  }
152
- .kd-message-content-main > div:nth-child(1) {
153
- margin-right: 10px;
162
+ .kd-message-content-text {
163
+ max-height: var(--kd-c-message-text-sizing-max-height, 160px);
164
+ overflow: auto;
154
165
  }
155
166
  .kd-message-content-close {
156
167
  cursor: pointer;
168
+ color: var(--kd-c-message-close-color-text, #666);
169
+ font-size: var(--kd-c-message-font-size, 16px);
170
+ margin-left: var(--kd-c-message-close-spacing-margin-left, 12px);
171
+ display: -webkit-inline-box;
172
+ display: -ms-inline-flexbox;
173
+ display: inline-flex;
157
174
  }
158
175
  .kd-message-content-close:hover {
159
- color: var(--kd-c-message-icon-color-text-hover, var(--kd-g-color-border-ongoing, #85b8ff));
176
+ color: var(--kd-c-message-close-color-text-hover, var(--kd-g-color-theme-5, #87adff));
160
177
  }
161
178
  .kd-message-success {
162
- color: var(--kd-c-message-success-color-text, var(--kd-g-color-success, #1ba854));
179
+ color: var(--kd-c-message-success-color-text, #1BA854);
163
180
  background: var(--kd-c-message-success-color-background, #dcfae4);
164
181
  border: 1px solid var(--kd-c-message-success-color-border, #a1e6b5);
165
182
  }
166
183
  .kd-message-warning {
167
- color: var(--kd-c-message-warning-color-text, var(--kd-g-color-warning, #ff991c));
184
+ color: var(--kd-c-message-warning-color-text, #FF991C);
168
185
  background: var(--kd-c-message-warning-color-background, #fff1d4);
169
186
  border: 1px solid var(--kd-c-message-warning-color-border, #ffe0a6);
170
187
  }
171
188
  .kd-message-error {
172
- color: var(--kd-c-message-error-color-text, var(--kd-g-color-error, #fb2323));
189
+ color: var(--kd-c-message-error-color-text, #FB2323);
173
190
  background: var(--kd-c-message-error-color-background, #ffdbe0);
174
191
  border: 1px solid var(--kd-c-message-error-color-border, #ffadb6);
175
192
  }
@@ -17,13 +17,13 @@
17
17
  position: relative;
18
18
  display: inline-block;
19
19
  box-sizing: border-box;
20
- min-width: 280px;
21
- max-width: 1000px;
22
- margin: 0 auto 16px;
23
- padding: 10px 20px;
20
+ min-width: @message-sizing-min-width;
21
+ max-width: @message-sizing-max-width;
22
+ margin: 0 auto @message-spacing-margin-bottom;
23
+ padding: @message-spacing-padding-horizontal @message-spacing-padding-vertical;
24
24
  color: @message-info-text-color;
25
25
  border: 1px solid @message-info-color-border;
26
- border-radius: 4px;
26
+ border-radius: @message-border-radius;
27
27
  background-color: @message-info-color-background;
28
28
  pointer-events: all;
29
29
  animation: kdNoticeEffect calc(@transition-duration - 0.2s) @ease-out forwards;
@@ -31,19 +31,32 @@
31
31
  &-content {
32
32
  display: flex;
33
33
  justify-content: space-between;
34
- font-size: 12px;
34
+ font-size: @message-font-size;
35
+ line-height: @messgae-line-height;
35
36
 
36
37
  &-main{
37
38
  display: flex;
39
+ }
40
+
41
+ &-icon-wrapper{
42
+ font-size: @message-icon-font-size;
43
+ margin-right: @message-icon-spacing-margin-right;
44
+ align-self: flex-start;
45
+ display: inline-flex;
38
46
  align-items: center;
47
+ }
39
48
 
40
- &>div:nth-child(1){
41
- margin-right: 10px;
42
- }
49
+ &-text {
50
+ max-height: @message-text-sizing-max-height;
51
+ overflow: auto;
43
52
  }
44
53
 
45
54
  &-close{
46
55
  cursor: pointer;
56
+ color: @message-close-color-text;
57
+ font-size: @message-close-font-size;
58
+ margin-left: @message-close-spacing-margin-left;
59
+ display: inline-flex;
47
60
 
48
61
  &:hover {
49
62
  color: @message-icon-text-color-hover;
@@ -5,17 +5,41 @@
5
5
  // color
6
6
  @message-info-color-background: var(~'@{message-custom-prefix}-info-color-background', #e0efff);
7
7
  @message-info-color-border: var(~'@{message-custom-prefix}-info-color-border', #b3d5ff);
8
+ @message-info-text-color: var(~'@{message-custom-prefix}-info-color-text', #0e5fd8);
8
9
  @message-success-color-background: var(~'@{message-custom-prefix}-success-color-background', #dcfae4);
9
10
  @message-success-color-border: var(~'@{message-custom-prefix}-success-color-border', #a1e6b5);
10
- @message-success-text-color: var(~'@{message-custom-prefix}-success-color-text', @color-success);
11
+ @message-success-text-color: var(~'@{message-custom-prefix}-success-color-text', #1BA854);
11
12
  @message-warning-color-background: var(~'@{message-custom-prefix}-warning-color-background', #fff1d4);
12
13
  @message-warning-color-border: var(~'@{message-custom-prefix}-warning-color-border', #ffe0a6);
13
- @message-warning-text-color: var(~'@{message-custom-prefix}-warning-color-text', @color-warning);
14
+ @message-warning-text-color: var(~'@{message-custom-prefix}-warning-color-text', #FF991C);
14
15
  @message-error-color-background: var(~'@{message-custom-prefix}-error-color-background', #ffdbe0);
15
16
  @message-error-color-border: var(~'@{message-custom-prefix}-error-color-border', #ffadb6);
16
- @message-error-text-color: var(~'@{message-custom-prefix}-error-color-text', @color-error);
17
- @message-icon-text-color-hover: var(~'@{message-custom-prefix}-icon-color-text-hover', @color-border-ongoing);
18
- @message-info-text-color: var(~'@{message-custom-prefix}-info-color-text', @color-text-link);
17
+ @message-error-text-color: var(~'@{message-custom-prefix}-error-color-text', #FB2323);
18
+ @message-close-color-text: var(~'@{message-custom-prefix}-close-color-text', #666);
19
+ @message-icon-text-color-hover: var(~'@{message-custom-prefix}-close-color-text-hover', @color-theme-hover);
20
+
21
+ // font
22
+ @message-font-size: var(~'@{message-custom-prefix}-font-size', 14px);
23
+ @message-icon-font-size: var(~'@{message-custom-prefix}-icon-font-size', 16px);
24
+ @message-close-font-size: var(~'@{message-custom-prefix}-font-size', 16px);
25
+
26
+ // line-height
27
+ @messgae-line-height: var(~'@{message-custom-prefix}-line-height', 20px);
28
+
29
+ // radius
30
+ @message-border-radius: var(~'@{message-custom-prefix}-border-radius', 4px);
31
+
32
+ // sizing
33
+ @message-sizing-max-width: var(~'@{message-custom-prefix}-sizing-max-width', 1000px);
34
+ @message-sizing-min-width: var(~'@{message-custom-prefix}-sizing-min-width', 280px);
35
+ @message-text-sizing-max-height: var(~'@{message-custom-prefix}-text-sizing-max-height', 160px);
36
+
37
+ // spacing
38
+ @message-spacing-margin-bottom: var(~'@{message-custom-prefix}-spacing-margin-bottom', 16px);
39
+ @message-spacing-padding-horizontal: var(~'@{message-custom-prefix}-spacing-padding-horizontal', 10px);
40
+ @message-spacing-padding-vertical: var(~'@{message-custom-prefix}-spacing-padding-vertical', 20px);
41
+ @message-icon-spacing-margin-right: var(~'@{message-custom-prefix}-icon-spacing-margin-right', 8px);
42
+ @message-close-spacing-margin-left: var(~'@{message-custom-prefix}-close-spacing-margin-left', 12px);
19
43
 
20
44
  // z-index
21
45
  @message-z-index: var(~'@{message-custom-prefix}-z-index', @z-index-apex);
@@ -13,6 +13,10 @@
13
13
  @pagination-border-disabled-color: var(~'@{pagination-custom-prefix}-color-border-disabled', @color-border-strong);
14
14
  @pagination-button-disabled-background-color: var(~'@{pagination-custom-prefix}-button-color-background-disabled', @color-background-contain-disabled);
15
15
 
16
+ // font
17
+ @pagination-font-size: var(~'@{pagination-custom-prefix}-font-size', @font-size-small);
18
+ @pagination-icon-size: var(~'@{pagination-custom-prefix}-icon-font-size', @font-size-large);
19
+
16
20
  // sizing
17
21
  @pagination-size: var(~'@{pagination-custom-prefix}-sizing-square', 24px);
18
22
  @pagination-nicety-size: var(~'@{pagination-custom-prefix}-nicety-sizing-square', 30px);
@@ -21,8 +25,6 @@
21
25
  // spacing
22
26
  @pagination-button-spacing: var(~'@{pagination-custom-prefix}-button-spacing', 4px);
23
27
 
24
- // font
25
- @pagination-font-size: var(~'@{pagination-custom-prefix}-font-size', @font-size-small);
26
- @pagination-icon-size: var(~'@{pagination-custom-prefix}-icon-font-size', @font-size-large);
28
+
27
29
 
28
30
 
@@ -1,14 +1,7 @@
1
1
  @import '../../style/themes/token.less';
2
2
  @progress-prefix: '--@{kd-prefix}-c-progress';
3
-
4
-
5
-
6
3
  @progress-transition-fn: cubic-bezier(0.66, 0, 0.34, 1);
7
4
 
8
-
9
-
10
-
11
-
12
5
  // color
13
6
  @progress-remaining-color: var(~'@{progress-prefix}-color-remaining', #e5e5e5);//背景色
14
7
  @progress-default-color: var(~'@{progress-prefix}-color-default', #5582f3);//进度条 默认色
@@ -28,7 +21,6 @@
28
21
  @progress-border-radius: var(~'@{progress-prefix}-radius-border', 100px);//线性进度条圆角
29
22
 
30
23
 
31
-
32
24
  // sizing
33
25
  @progress-line-stroke-width: var(~'@{progress-prefix}-line-stroke-sizing-width', 8px);
34
26
  @progress-circle-stroke-width: var(~'@{progress-prefix}-circle-stroke-sizing-width', 4px);
@@ -1,19 +1,9 @@
1
1
  @import '../../style/themes/token.less';
2
2
  @import '../../style/mixins/index';
3
3
 
4
-
5
4
  @radio-prefix: '--@{kd-prefix}-c-radio';
6
-
7
-
8
-
9
-
10
-
11
-
12
5
  @radio-transition-fn: cubic-bezier(0.075, 0.82, 0.165, 1);
13
6
 
14
-
15
-
16
-
17
7
  // color
18
8
  @radio-font-color: var(~'@{radio-prefix}-color-font', @color-text-primary);//单选项字体颜色
19
9
  @radio-color-theme: var(~'@{radio-prefix}-color-theme', @color-theme);//悬停/选中跟随主题色
@@ -26,19 +16,13 @@
26
16
  // font
27
17
  @radio-font-size: var(~'@{radio-prefix}-font-size', @font-size-small);//单选项字体大小
28
18
 
29
-
30
-
31
-
32
19
  //radius
33
20
  @radio-border-width: var(~'@{radio-prefix}-radius-border-width',1px);
34
21
 
35
-
36
-
37
22
  // sizing
38
23
  @radio-circle-size:var(~'@{radio-prefix}-square-sizing-width-height',13px);//单选图标大小
39
24
  @radio-square-height: var(~'@{radio-prefix}-square-sizing-height',32px);//单选框 高度
40
25
 
41
-
42
26
  // spacing
43
27
  @radio-margin-right: var(~'@{radio-prefix}-spacing-margin-right',8px);
44
28
  @radio-square-padding-vertical: var(~'@{radio-prefix}-square-spacing-padding-vertical',0px); //内间距 纵向
@@ -413,7 +413,7 @@
413
413
  background-color: var(--kd-c-select-color-background, var(--kd-g-color-hover, #f5f5f5));
414
414
  }
415
415
  .kd-select-item-option-selected:not(.kd-select-item-option-disabled) {
416
- color: var(--kd-c-select-item-color-text-selected, var(--kd-g-color-ongoing, #276ff5));
416
+ color: var(--kd-c-select-item-color-text-selected, var(--kd-g-color-theme, #5582f3));
417
417
  background-color: var(--kd-c-select-color-background-selected, #f2f9ff);
418
418
  }
419
419
  .kd-select-item-option-disabled {
@@ -13,7 +13,7 @@
13
13
  @select-g-color-border-hover: var(~'@{select-custom-prefix}-color-border-hover', @color-theme);
14
14
  @select-border-g-color-border: var(~'@{select-custom-prefix}-border-color-border', @color-border-strong);
15
15
  @select-placeholder-color: var(~'@{select-custom-prefix}-placeholder-color-text', @color-text-third);
16
- @select-item-selected-color: var(~'@{select-custom-prefix}-item-color-text-selected', @color-ongoing);
16
+ @select-item-selected-color: var(~'@{select-custom-prefix}-item-color-text-selected', @color-theme);
17
17
  @select-font-color: var(~'@{select-custom-prefix}-footer-color-text', @color-text-primary);
18
18
  @select-footer-g-text-color-selected: var(~'@{select-custom-prefix}-footer-color-text-selected', @color-text-link);
19
19
  @select-g-item-text-color-disabled: var(~'@{select-custom-prefix}-item-color-text-disabled', @color-disabled);