kui-vue 3.3.0-rc2 → 3.3.2

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 (126) hide show
  1. package/components/affix/demo/callbacks.md +25 -0
  2. package/components/affix/demo/index.vue +2 -2
  3. package/components/avatar/demo/change.md +7 -8
  4. package/components/avatar/demo/index.vue +9 -2
  5. package/components/avatar/demo/types.md +4 -4
  6. package/components/badge/demo/color.md +1 -1
  7. package/components/badge/demo/dot.md +1 -1
  8. package/components/badge/demo/index.vue +8 -8
  9. package/components/breadcrumb/demo/icon.md +1 -1
  10. package/components/breadcrumb/demo/index.vue +4 -4
  11. package/components/breadcrumb/demo/separator.md +5 -7
  12. package/components/breadcrumb/styles/index.less +12 -0
  13. package/components/button/demo/index.vue +7 -7
  14. package/components/button/demo/normal.md +2 -2
  15. package/components/button/demo/size.md +1 -1
  16. package/components/button/styles/index.less +145 -44
  17. package/components/card/demo/index.vue +3 -3
  18. package/components/carousel/demo/index.vue +1 -1
  19. package/components/checkbox/demo/disabled.md +15 -10
  20. package/components/checkbox/demo/index.vue +16 -9
  21. package/components/collapse/demo/index.vue +6 -6
  22. package/components/colorPicker/colorpicker.jsx +1 -0
  23. package/components/colorPicker/demo/index.vue +2 -2
  24. package/components/colorPicker/styles/index.less +293 -240
  25. package/components/datePicker/demo/index.vue +1 -1
  26. package/components/datePicker/styles/datepicker.less +1 -0
  27. package/components/descriptions/demo/index.vue +2 -2
  28. package/components/divider/demo/index.vue +4 -4
  29. package/components/drawer/demo/form.md +0 -26
  30. package/components/drawer/demo/index.vue +16 -8
  31. package/components/dropdown/demo/base.md +2 -2
  32. package/components/dropdown/demo/index.vue +12 -3
  33. package/components/dropdown/demo/placement.md +0 -8
  34. package/components/empty/demo/custom.md +2 -2
  35. package/components/empty/demo/index.vue +5 -5
  36. package/components/form/styles/index.less +39 -4
  37. package/components/icon/demo/index.vue +3 -3
  38. package/components/image/demo/base.md +1 -1
  39. package/components/image/demo/errors.md +2 -2
  40. package/components/image/demo/extra.md +3 -3
  41. package/components/image/demo/extra_globle.md +3 -3
  42. package/components/image/demo/globle.md +4 -4
  43. package/components/image/demo/group.md +2 -2
  44. package/components/image/demo/index.vue +8 -8
  45. package/components/image/demo/origin.md +2 -2
  46. package/components/image/preview.jsx +13 -6
  47. package/components/image/styles/index.less +5 -2
  48. package/components/input/demo/index.vue +9 -9
  49. package/components/input/styles/index.less +21 -8
  50. package/components/inputNumber/demo/index.vue +6 -6
  51. package/components/inputNumber/styles/index.less +1 -1
  52. package/components/layout/styles/index.less +5 -1
  53. package/components/loading/demo/index.vue +10 -3
  54. package/components/locale/index.js +1 -1
  55. package/components/menu/styles/dropmenu.less +19 -1
  56. package/components/menu/styles/index.less +156 -19
  57. package/components/message/demo/index.vue +16 -7
  58. package/components/modal/demo/base.md +3 -1
  59. package/components/modal/demo/confrim.md +3 -2
  60. package/components/modal/demo/index.vue +17 -8
  61. package/components/modal/index.js +6 -5
  62. package/components/modal/modal.jsx +1 -1
  63. package/components/modal/styles/index.less +18 -14
  64. package/components/notice/demo/index.vue +16 -7
  65. package/components/notice/styles/index.less +1 -0
  66. package/components/page/demo/index.vue +6 -6
  67. package/components/page/styles/index.less +10 -3
  68. package/components/popconfirm/demo/index.vue +1 -1
  69. package/components/popconfirm/styles/index.less +1 -1
  70. package/components/poptip/demo/index.vue +1 -1
  71. package/components/poptip/styles/index.less +197 -170
  72. package/components/progress/demo/index.vue +1 -1
  73. package/components/radio/demo/index.vue +9 -10
  74. package/components/radio/styles/index.less +1 -1
  75. package/components/rate/demo/index.vue +9 -9
  76. package/components/select/demo/index.vue +10 -10
  77. package/components/skeleton/demo/custom.md +1 -1
  78. package/components/skeleton/demo/index.vue +1 -1
  79. package/components/slider/demo/index.vue +8 -8
  80. package/components/slider/styles/index.less +5 -1
  81. package/components/slider/thumb.jsx +25 -7
  82. package/components/space/demo/index.vue +8 -8
  83. package/components/spin/demo/base.md +3 -1
  84. package/components/spin/demo/index.vue +5 -5
  85. package/components/spin/spin.jsx +8 -1
  86. package/components/spin/styles/index.less +18 -4
  87. package/components/styles/color.less +18 -2
  88. package/components/styles/var.less +26 -4
  89. package/components/switch/demo/index.vue +8 -8
  90. package/components/switch/styles/index.less +28 -1
  91. package/components/table/demo/base-render.md +1 -1
  92. package/components/table/demo/base.md +1 -1
  93. package/components/table/demo/bordered.md +1 -1
  94. package/components/table/demo/custom-header.md +1 -1
  95. package/components/table/demo/edit.md +1 -1
  96. package/components/table/demo/fixed-head.md +3 -1
  97. package/components/table/demo/index.vue +19 -21
  98. package/components/table/extend.jsx +29 -11
  99. package/components/table/index.md +1 -0
  100. package/components/table/styles/index.less +10 -1
  101. package/components/table/table.jsx +3 -3
  102. package/components/tabs/demo/index.vue +10 -10
  103. package/components/tag/demo/index.vue +4 -4
  104. package/components/timeline/demo/index.vue +4 -4
  105. package/components/tooltip/demo/index.vue +1 -1
  106. package/components/tooltip/styles/index.less +1 -1
  107. package/components/tree/demo/index.vue +1 -1
  108. package/components/upload/demo/index.vue +12 -12
  109. package/components/upload/demo/picture.md +2 -2
  110. package/dist/k-ui.css +2 -2
  111. package/dist/k-ui.js +2 -2
  112. package/dist/locale/de.js +1 -1
  113. package/dist/locale/el.js +1 -1
  114. package/dist/locale/en.js +1 -1
  115. package/dist/locale/fr.js +1 -1
  116. package/dist/locale/it.js +1 -1
  117. package/dist/locale/ja.js +1 -1
  118. package/dist/locale/ko.js +1 -1
  119. package/dist/locale/ru.js +1 -1
  120. package/dist/locale/th.js +1 -1
  121. package/dist/locale/ua.js +1 -1
  122. package/dist/locale/vi.js +1 -1
  123. package/dist/locale/zhCN.js +1 -1
  124. package/dist/locale/zhTW.js +1 -1
  125. package/package.json +17 -20
  126. package/readme.md +2 -2
@@ -7,21 +7,26 @@
7
7
  <template>
8
8
  <div>
9
9
  <Checkbox disabled>disabled</Checkbox>
10
- <Checkbox disabled :checked="true">disabled</Checkbox>
11
- <Checkbox indeterminate disabled>indeterminate</Checkbox>
12
- <br/>
13
- <br/>
14
- <Checkbox :disabled="disabled" v-model="checked">Checkbox</Checkbox>
15
- <Button @click="checked=!checked" size="small">{{checked?'Checked':'Uncheck'}}</Button>
16
- <Button @click="disabled=!disabled" size="small">{{disabled?'Enable':'Disabled'}}</Button>
10
+ <Checkbox disabled
11
+ :checked="true">disabled</Checkbox>
12
+ <Checkbox indeterminate
13
+ disabled>indeterminate</Checkbox>
14
+ <br />
15
+ <br />
16
+ <Checkbox :disabled="disabled"
17
+ v-model="checked">Checkbox</Checkbox>
18
+ <Button @click="checked=!checked"
19
+ size="small">{{checked?"Checked":"Uncheck"}}</Button>
20
+ <Button @click="disabled=!disabled"
21
+ size="small">{{disabled?"Enable":"Disabled"}}</Button>
17
22
  </div>
18
23
  </template>
19
24
  <script>
20
- export default{
25
+ export default {
21
26
  data() {
22
27
  return {
23
- disabled:false,
24
- checked:false
28
+ disabled: false,
29
+ checked: false
25
30
  }
26
31
  }
27
32
  }
@@ -1,16 +1,16 @@
1
1
  <script>
2
- import Base from './base'
3
- import Info from './info'
4
- import Disabled from './disabled'
5
- import Options from './options'
6
- import Group from './group'
7
- import GroupVertical from './group-vertical'
8
- import CheckAll from './check-all'
2
+ import Base from './base.md'
3
+ import Info from './info.md'
4
+ import Disabled from './disabled.md'
5
+ import Options from './options.md'
6
+ import Group from './group.md'
7
+ import GroupVertical from './group-vertical.md'
8
+ import CheckAll from './check-all.md'
9
9
  import CN from '../index.md'
10
10
  export default {
11
11
  render() {
12
12
  return (
13
- <div>
13
+ <div class="demo-checkbox">
14
14
  <Info class="typo" />
15
15
  <Base />
16
16
  <Disabled />
@@ -23,4 +23,11 @@ export default {
23
23
  )
24
24
  }
25
25
  }
26
- </script>
26
+ </script>
27
+ <style lang="less">
28
+ .demo-checkbox {
29
+ .k-btn {
30
+ margin-left: 8px;
31
+ }
32
+ }
33
+ </style>
@@ -1,10 +1,10 @@
1
1
  <script>
2
- import Info from './info'
3
- import Base from './base'
4
- import Accrodion from './accrodion'
5
- import Nesting from './nesting'
6
- import Sample from './sample'
7
- import Extra from './extra'
2
+ import Info from './info.md'
3
+ import Base from './base.md'
4
+ import Accrodion from './accrodion.md'
5
+ import Nesting from './nesting.md'
6
+ import Sample from './sample.md'
7
+ import Extra from './extra.md'
8
8
  import CN from '../index.md'
9
9
  export default {
10
10
  render() {
@@ -417,6 +417,7 @@ export default {
417
417
  let style = [
418
418
  'k-color-picker',
419
419
  {
420
+ 'k-color-picker-opened': this.opened,
420
421
  'k-color-picker-disabled': this.disabled,
421
422
  'k-color-picker-sm': this.size == 'small',
422
423
  'k-color-picker-circle': this.shape == 'circle' && !showArrow,
@@ -1,6 +1,6 @@
1
1
  <script>
2
- import Info from './info'
3
- import Base from './base'
2
+ import Info from './info.md'
3
+ import Base from './base.md'
4
4
  import Shape from './shape.md'
5
5
  import Mode from './mode.md'
6
6
  import Size from './size.md'
@@ -1,270 +1,323 @@
1
1
  @import '../../styles/var.less';
2
+
2
3
  .k-color-picker {
3
- // width: 55px;
4
- height: 30px;
5
- border: 1px solid var(--kui-color-border);
6
- border-radius: var(--kui-border-radius);
7
- position: relative;
8
- display: inline-block;
9
- .k-color-picker-selection {
10
- display: flex;
11
- align-items: center;
12
- padding: 2px;
13
- }
14
- .k-color-picker-color {
15
- height: 26px;
16
- width: 26px;
17
- border-radius: var(--kui-border-radius);
18
- // margin: 2px;
19
- overflow: hidden;
20
- background-image: linear-gradient(-45deg, #cdcdcd 25%, transparent 0), linear-gradient(45deg, #cdcdcd 25%, transparent 0), linear-gradient(-45deg, transparent 75%, #cdcdcd 0), linear-gradient(45deg, transparent 75%, #cdcdcd 0);
21
- background-size: 11px 11px;
22
- background-position: 0 0, 0 -5.5px, -5.5px 5.5px, 5.5px 0;
23
- .k-color-picker-color-inner {
24
- height: 100%;
25
- width: 100%;
26
- }
27
- }
28
- .k-icon {
29
- // position: absolute;
30
- // right: 5px;
31
- // top: 50%;
32
- // transform: translateY(-50%);
33
- margin: 0 5px;
34
- font-size: 16px;
35
- color: var(--kui-color-icon);
36
- #chevron-up {
37
- transform: rotate(180deg);
38
- }
39
- }
40
- .k-icon-default {
41
- transform: rotate(180deg);
42
- }
4
+ // width: 55px;
5
+ height: 30px;
6
+ border: 1px solid var(--kui-color-border);
7
+ border-radius: var(--kui-border-radius);
8
+ position: relative;
9
+ display: inline-block;
10
+
11
+ &:hover,
12
+ &:focus {
13
+ border-color: var(--kui-color-main-hover);
14
+ }
15
+ &:active{
16
+ opacity: .8;
17
+ }
18
+
19
+ .k-color-picker-selection {
20
+ display: flex;
21
+ align-items: center;
22
+ padding: 2px;
23
+ }
24
+
25
+ .k-color-picker-color {
26
+ height: 26px;
27
+ width: 26px;
28
+ border-radius: var(--kui-border-radius);
29
+ // margin: 2px;
30
+ overflow: hidden;
31
+ background-image: linear-gradient(-45deg, #cdcdcd 25%, transparent 0), linear-gradient(45deg, #cdcdcd 25%, transparent 0), linear-gradient(-45deg, transparent 75%, #cdcdcd 0), linear-gradient(45deg, transparent 75%, #cdcdcd 0);
32
+ background-size: 11px 11px;
33
+ background-position: 0 0, 0 -5.5px, -5.5px 5.5px, 5.5px 0;
34
+
35
+ .k-color-picker-color-inner {
36
+ height: 100%;
37
+ width: 100%;
38
+ }
39
+ }
40
+
41
+ .k-icon {
42
+ // position: absolute;
43
+ // right: 5px;
44
+ // top: 50%;
45
+ // transform: translateY(-50%);
46
+ margin: 0 5px;
47
+ font-size: 16px;
48
+ color: var(--kui-color-icon);
49
+
50
+ #chevron-up {
51
+ transform: rotate(180deg);
52
+ }
53
+ }
54
+
55
+ .k-icon-default {
56
+ transform: rotate(180deg);
57
+ }
58
+ }
59
+ .k-color-picker-opened{
60
+ border: 1px solid var(--kui-color-main);
61
+ box-shadow: 0 0 5px var(--kui-color-main-30);
43
62
  }
44
63
 
45
64
  .k-color-picker-disabled {
46
- cursor: not-allowed;
47
- background: var(--kui-color-disable-back);
48
- border-color: var(--kui-color-disable-border);
49
- cursor: not-allowed;
50
- .k-color-picker-color {
51
- opacity: .5;
52
- }
65
+ cursor: not-allowed;
66
+ background: var(--kui-color-disable-back);
67
+ border-color: var(--kui-color-disable-border);
68
+ cursor: not-allowed;
69
+
70
+ .k-color-picker-color {
71
+ opacity: .5;
72
+ }
53
73
  }
54
74
 
55
75
  .k-color-picker-lg {
56
- // width: 70px;
57
- height: 40px;
58
- .k-color-picker-color {
59
- width: 35.5px;
60
- height: 35.5px;
61
- }
62
- .k-icon {
63
- font-size: 22px;
64
- }
76
+ // width: 70px;
77
+ height: 40px;
78
+
79
+ .k-color-picker-color {
80
+ width: 35.5px;
81
+ height: 35.5px;
82
+ }
83
+
84
+ .k-icon {
85
+ font-size: 22px;
86
+ }
65
87
  }
66
88
 
67
89
  .k-color-picker-sm {
68
- // width: 45px;
69
- height: 22px;
70
- .k-color-picker-selection {
71
- padding: 3px;
72
- }
73
- .k-color-picker-color {
74
- width: 16px;
75
- height: 16px;
76
- }
77
- .k-icon {
78
- font-size: 14px;
79
- }
90
+ // width: 45px;
91
+ height: 22px;
92
+
93
+ .k-color-picker-selection {
94
+ padding: 3px;
95
+ }
96
+
97
+ .k-color-picker-color {
98
+ width: 16px;
99
+ height: 16px;
100
+ }
101
+
102
+ .k-icon {
103
+ font-size: 14px;
104
+ }
80
105
  }
81
106
 
82
107
  .k-color-picker-dropdown {
83
- width: 254px;
84
- font-size: 0;
85
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
86
- position: absolute;
87
- border-radius: var(--kui-border-radius);
88
- background: var(--kui-color-back);
89
- z-index: 1001;
90
- .k-color-picker-paint-dot {
91
- width: 15px;
92
- height: 15px;
93
- display: block;
94
- position: absolute;
95
- background: var(--kui-color-back);
96
- border: 1px solid var(--kui-color-border);
97
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
98
- border-radius: 50%;
99
- top: 10px;
100
- left: 10px;
101
- pointer-events: none;
102
- }
103
- .k-color-picker-paint {
104
- width: 254px;
105
- height: 136px;
106
- }
107
- .k-color-picker-bar {
108
- padding: 14px 16px 0 16px;
109
- display: inline-block;
110
- }
111
- .k-color-picker-avatar {
112
- width: 36px;
113
- height: 36px;
114
- border-radius: 50%;
115
- float: left;
116
- background-image: linear-gradient(-45deg, #cdcdcd 25%, transparent 0), linear-gradient(45deg, #cdcdcd 25%, transparent 0), linear-gradient(-45deg, transparent 75%, #cdcdcd 0), linear-gradient(45deg, transparent 75%, #cdcdcd 0);
117
- background-size: 11px 11px;
118
- background-position: 0 0, 0 -5.5px, -5.5px 5.5px, 5.5px 0;
119
- .k-color-picker-avatar-inner {
120
- border-radius: 50%;
121
- width: 100%;
122
- height: 100%;
123
- }
124
- }
125
- .k-color-picker-bar-box {
126
- margin-left: 16px;
127
- width: 170px;
128
- float: right;
129
- position: relative;
130
- canvas {
131
- height: 13px;
132
- width: 170px;
133
- border-radius: 2px;
134
- }
135
- .k-color-picker-alpha {
136
- margin-top: 10px;
137
- background-image: linear-gradient(-45deg, #cdcdcd 25%, transparent 0), linear-gradient(45deg, #cdcdcd 25%, transparent 0), linear-gradient(-45deg, transparent 75%, #cdcdcd 0), linear-gradient(45deg, transparent 75%, #cdcdcd 0);
138
- background-size: 11px 11px;
139
- background-position: 0 0, 0 -5.5px, -5.5px 5.5px, 5.5px 0;
140
- }
141
- span {
142
- width: 15px;
143
- height: 15px;
144
- display: block;
145
- position: absolute;
146
- background: var(--kui-color-back);
147
- border: 1px solid var(--kui-color-border);
148
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
149
- border-radius: 50%;
150
- pointer-events: none;
151
- }
152
- .k-color-picker-hue-dot {
153
- top: -1px;
154
- }
155
- .k-color-picker-alpha-dot {
156
- top: 22px;
157
- }
158
- }
159
- .k-color-picker-mode {
160
- position: relative;
161
- margin-left: 16px;
162
- margin-top: 16px;
163
- .k-btn {
164
- position: absolute;
165
- z-index: 1;
166
- right: 10px;
167
- top: 10px;
168
- cursor: pointer;
169
- &:hover {
170
- color: @main;
171
- }
172
- }
173
- .k-input {
174
- text-align: center;
175
- }
176
- .k-color-picker-key {
177
- text-align: center;
178
- font-size: 12px;
179
- line-height: 1;
180
- width: 195px;
181
- }
182
- }
183
- .k-color-picker-rgba, .k-color-picker-hsla {
184
- .k-input {
185
- width: 44px;
186
- margin-right: 4px;
187
- }
188
- .k-color-picker-key {
189
- span {
190
- width: 44px;
191
- display: inline-block;
192
- margin-right: 4px;
193
- color: #8b8b8b;
194
- }
195
- }
196
- }
197
- .k-color-picker-hex {
198
- .k-input {
199
- width: 188px;
200
- }
201
- }
202
- .k-color-picker-val {
203
- margin: 0 0 9px 0;
204
- input {
205
- transition: none;
206
- }
207
- }
208
- .k-coclor-picker-defaults {
209
- position: relative;
210
- box-sizing: border-box;
211
- padding: 13px 40px 10px 16px;
212
- margin-top: 13px;
213
- min-height: 62px;
214
- border-top: 1px solid var(--kui-color-border);
215
- >span {
216
- display: inline-block;
217
- width: 13px;
218
- height: 13px;
219
- border-radius: 2px;
220
- margin: 0 6px 6px 0;
221
- cursor: pointer;
222
- }
223
- .k-btn {
224
- position: absolute;
225
- top: 14px;
226
- right: 10px;
227
- width: 32px;
228
- padding: 0;
229
- }
230
- }
108
+ width: 254px;
109
+ font-size: 0;
110
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
111
+ position: absolute;
112
+ border-radius: var(--kui-border-radius);
113
+ background: var(--kui-color-back);
114
+ z-index: 1001;
115
+
116
+ .k-color-picker-paint-dot {
117
+ width: 15px;
118
+ height: 15px;
119
+ display: block;
120
+ position: absolute;
121
+ background: var(--kui-color-back);
122
+ border: 1px solid var(--kui-color-border);
123
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
124
+ border-radius: 50%;
125
+ top: 10px;
126
+ left: 10px;
127
+ pointer-events: none;
128
+ }
129
+
130
+ .k-color-picker-paint {
131
+ width: 254px;
132
+ height: 136px;
133
+ }
134
+
135
+ .k-color-picker-bar {
136
+ padding: 14px 16px 0 16px;
137
+ display: inline-block;
138
+ }
139
+
140
+ .k-color-picker-avatar {
141
+ width: 36px;
142
+ height: 36px;
143
+ border-radius: 50%;
144
+ float: left;
145
+ background-image: linear-gradient(-45deg, #cdcdcd 25%, transparent 0), linear-gradient(45deg, #cdcdcd 25%, transparent 0), linear-gradient(-45deg, transparent 75%, #cdcdcd 0), linear-gradient(45deg, transparent 75%, #cdcdcd 0);
146
+ background-size: 11px 11px;
147
+ background-position: 0 0, 0 -5.5px, -5.5px 5.5px, 5.5px 0;
148
+
149
+ .k-color-picker-avatar-inner {
150
+ border-radius: 50%;
151
+ width: 100%;
152
+ height: 100%;
153
+ }
154
+ }
155
+
156
+ .k-color-picker-bar-box {
157
+ margin-left: 16px;
158
+ width: 170px;
159
+ float: right;
160
+ position: relative;
161
+
162
+ canvas {
163
+ height: 13px;
164
+ width: 170px;
165
+ border-radius: 2px;
166
+ }
167
+
168
+ .k-color-picker-alpha {
169
+ margin-top: 10px;
170
+ background-image: linear-gradient(-45deg, #cdcdcd 25%, transparent 0), linear-gradient(45deg, #cdcdcd 25%, transparent 0), linear-gradient(-45deg, transparent 75%, #cdcdcd 0), linear-gradient(45deg, transparent 75%, #cdcdcd 0);
171
+ background-size: 11px 11px;
172
+ background-position: 0 0, 0 -5.5px, -5.5px 5.5px, 5.5px 0;
173
+ }
174
+
175
+ span {
176
+ width: 15px;
177
+ height: 15px;
178
+ display: block;
179
+ position: absolute;
180
+ background: var(--kui-color-back);
181
+ border: 1px solid var(--kui-color-border);
182
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
183
+ border-radius: 50%;
184
+ pointer-events: none;
185
+ }
186
+
187
+ .k-color-picker-hue-dot {
188
+ top: -1px;
189
+ }
190
+
191
+ .k-color-picker-alpha-dot {
192
+ top: 22px;
193
+ }
194
+ }
195
+
196
+ .k-color-picker-mode {
197
+ position: relative;
198
+ margin-left: 16px;
199
+ margin-top: 16px;
200
+
201
+ .k-btn {
202
+ position: absolute;
203
+ z-index: 1;
204
+ right: 10px;
205
+ top: 10px;
206
+ cursor: pointer;
207
+
208
+ &:hover {
209
+ color: @main;
210
+ }
211
+ }
212
+
213
+ .k-input {
214
+ text-align: center;
215
+ }
216
+
217
+ .k-color-picker-key {
218
+ text-align: center;
219
+ font-size: 12px;
220
+ line-height: 1;
221
+ width: 195px;
222
+ }
223
+ }
224
+
225
+ .k-color-picker-rgba,
226
+ .k-color-picker-hsla {
227
+ .k-input {
228
+ width: 44px;
229
+ margin-right: 4px;
230
+ }
231
+
232
+ .k-color-picker-key {
233
+ span {
234
+ width: 44px;
235
+ display: inline-block;
236
+ margin-right: 4px;
237
+ color: #8b8b8b;
238
+ }
239
+ }
240
+ }
241
+
242
+ .k-color-picker-hex {
243
+ .k-input {
244
+ width: 188px;
245
+ }
246
+ }
247
+
248
+ .k-color-picker-val {
249
+ margin: 0 0 9px 0;
250
+
251
+ input {
252
+ transition: none;
253
+ }
254
+ }
255
+
256
+ .k-coclor-picker-defaults {
257
+ position: relative;
258
+ box-sizing: border-box;
259
+ padding: 13px 40px 10px 16px;
260
+ margin-top: 13px;
261
+ min-height: 62px;
262
+ border-top: 1px solid var(--kui-color-border);
263
+
264
+ >span {
265
+ display: inline-block;
266
+ width: 13px;
267
+ height: 13px;
268
+ border-radius: 2px;
269
+ margin: 0 6px 6px 0;
270
+ cursor: pointer;
271
+ }
272
+
273
+ .k-btn {
274
+ position: absolute;
275
+ top: 14px;
276
+ right: 10px;
277
+ width: 32px;
278
+ padding: 0;
279
+ }
280
+ }
231
281
  }
232
282
 
233
283
  .k-color-picker-circle {
234
- border-radius: 50%;
235
- .k-color-picker-color {
236
- border-radius: 50%;
237
- }
284
+ border-radius: 50%;
285
+
286
+ .k-color-picker-color {
287
+ border-radius: 50%;
288
+ }
238
289
  }
239
290
 
240
291
  @keyframes dropDownIn {
241
- 0% {
242
- opacity: 0;
243
- transform: scaleY(0)
244
- }
245
- to {
246
- opacity: 1;
247
- transform: scaleY(1)
248
- }
292
+ 0% {
293
+ opacity: 0;
294
+ transform: scaleY(0)
295
+ }
296
+
297
+ to {
298
+ opacity: 1;
299
+ transform: scaleY(1)
300
+ }
249
301
  }
250
302
 
251
303
  @keyframes dropDownOut {
252
- 0% {
253
- opacity: 1;
254
- transform: scaleY(1)
255
- }
256
- to {
257
- opacity: 0;
258
- transform: scaleY(0)
259
- }
304
+ 0% {
305
+ opacity: 1;
306
+ transform: scaleY(1)
307
+ }
308
+
309
+ to {
310
+ opacity: 0;
311
+ transform: scaleY(0)
312
+ }
260
313
  }
261
314
 
262
315
  .k-color-picker-enter-active {
263
- transform-origin: 0 0;
264
- animation: dropDownIn .3s;
316
+ transform-origin: 0 0;
317
+ animation: dropDownIn .3s;
265
318
  }
266
319
 
267
320
  .k-color-picker-leave-active {
268
- transform-origin: 0 0;
269
- animation: dropDownOut .3s
321
+ transform-origin: 0 0;
322
+ animation: dropDownOut .3s
270
323
  }