cy-element-ui 1.0.47 → 1.0.48

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 (209) hide show
  1. package/README.md +1 -1
  2. package/lib/element-ui.common.js +1 -1
  3. package/lib/index.js +1 -1
  4. package/lib/theme-chalk/README.md +33 -0
  5. package/lib/theme-chalk/base.css +1 -1
  6. package/lib/theme-chalk/gulpfile.js +27 -0
  7. package/lib/theme-chalk/index.css +1 -1
  8. package/lib/theme-chalk/package.json +35 -0
  9. package/lib/theme-chalk/src/alert.scss +147 -0
  10. package/lib/theme-chalk/src/aside.scss +7 -0
  11. package/lib/theme-chalk/src/autocomplete.scss +80 -0
  12. package/lib/theme-chalk/src/avatar.scss +51 -0
  13. package/lib/theme-chalk/src/backtop.scss +22 -0
  14. package/lib/theme-chalk/src/badge.scss +57 -0
  15. package/lib/theme-chalk/src/base.scss +2 -0
  16. package/lib/theme-chalk/src/breadcrumb.scss +55 -0
  17. package/lib/theme-chalk/src/button.scss +262 -0
  18. package/lib/theme-chalk/src/calendar.scss +79 -0
  19. package/lib/theme-chalk/src/card.scss +32 -0
  20. package/lib/theme-chalk/src/carousel-item.scss +50 -0
  21. package/lib/theme-chalk/src/carousel.scss +161 -0
  22. package/lib/theme-chalk/src/cascader-panel.scss +120 -0
  23. package/lib/theme-chalk/src/cascader.scss +182 -0
  24. package/lib/theme-chalk/src/checkbox.scss +359 -0
  25. package/lib/theme-chalk/src/col.scss +156 -0
  26. package/lib/theme-chalk/src/collapse.scss +63 -0
  27. package/lib/theme-chalk/src/color-picker.scss +384 -0
  28. package/lib/theme-chalk/src/common/popup.scss +42 -0
  29. package/lib/theme-chalk/src/common/transition.scss +99 -0
  30. package/lib/theme-chalk/src/common/var.scss +1028 -0
  31. package/lib/theme-chalk/src/container.scss +14 -0
  32. package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -0
  33. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  34. package/lib/theme-chalk/src/date-picker/date-table.scss +151 -0
  35. package/lib/theme-chalk/src/date-picker/month-table.scss +82 -0
  36. package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  37. package/lib/theme-chalk/src/date-picker/picker.scss +197 -0
  38. package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -0
  39. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  40. package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  41. package/lib/theme-chalk/src/date-picker/year-table.scss +51 -0
  42. package/lib/theme-chalk/src/date-picker.scss +12 -0
  43. package/lib/theme-chalk/src/descriptions-item.scss +42 -0
  44. package/lib/theme-chalk/src/descriptions.scss +111 -0
  45. package/lib/theme-chalk/src/dialog.scss +123 -0
  46. package/lib/theme-chalk/src/display.scss +12 -0
  47. package/lib/theme-chalk/src/divider.scss +47 -0
  48. package/lib/theme-chalk/src/drawer.scss +219 -0
  49. package/lib/theme-chalk/src/dropdown.scss +182 -0
  50. package/lib/theme-chalk/src/empty.scss +45 -0
  51. package/lib/theme-chalk/src/footer.scss +8 -0
  52. package/lib/theme-chalk/src/form.scss +167 -0
  53. package/lib/theme-chalk/src/header.scss +8 -0
  54. package/lib/theme-chalk/src/icon.scss +1167 -0
  55. package/lib/theme-chalk/src/image.scss +179 -0
  56. package/lib/theme-chalk/src/index.scss +90 -0
  57. package/lib/theme-chalk/src/input-number.scss +180 -0
  58. package/lib/theme-chalk/src/input.scss +360 -0
  59. package/lib/theme-chalk/src/link.scss +81 -0
  60. package/lib/theme-chalk/src/loading.scss +96 -0
  61. package/lib/theme-chalk/src/main.scss +12 -0
  62. package/lib/theme-chalk/src/menu.scss +289 -0
  63. package/lib/theme-chalk/src/message-box.scss +226 -0
  64. package/lib/theme-chalk/src/message.scss +120 -0
  65. package/lib/theme-chalk/src/mixins/_button.scss +81 -0
  66. package/lib/theme-chalk/src/mixins/config.scss +4 -0
  67. package/lib/theme-chalk/src/mixins/function.scss +44 -0
  68. package/lib/theme-chalk/src/mixins/mixins.scss +190 -0
  69. package/lib/theme-chalk/src/mixins/utils.scss +39 -0
  70. package/lib/theme-chalk/src/notification.scss +99 -0
  71. package/lib/theme-chalk/src/option-group.scss +42 -0
  72. package/lib/theme-chalk/src/option.scss +36 -0
  73. package/lib/theme-chalk/src/page-header.scss +41 -0
  74. package/lib/theme-chalk/src/pagination.scss +295 -0
  75. package/lib/theme-chalk/src/popconfirm.scss +16 -0
  76. package/lib/theme-chalk/src/popover.scss +40 -0
  77. package/lib/theme-chalk/src/popper.scss +101 -0
  78. package/lib/theme-chalk/src/progress.scss +141 -0
  79. package/lib/theme-chalk/src/radio-button.scss +113 -0
  80. package/lib/theme-chalk/src/radio-group.scss +9 -0
  81. package/lib/theme-chalk/src/radio.scss +199 -0
  82. package/lib/theme-chalk/src/rate.scss +49 -0
  83. package/lib/theme-chalk/src/reset.scss +79 -0
  84. package/lib/theme-chalk/src/result.scss +61 -0
  85. package/lib/theme-chalk/src/row.scss +43 -0
  86. package/lib/theme-chalk/src/scrollbar.scss +72 -0
  87. package/lib/theme-chalk/src/select-dropdown.scss +62 -0
  88. package/lib/theme-chalk/src/select.scss +152 -0
  89. package/lib/theme-chalk/src/skeleton-item.scss +84 -0
  90. package/lib/theme-chalk/src/skeleton.scss +40 -0
  91. package/lib/theme-chalk/src/slider.scss +250 -0
  92. package/lib/theme-chalk/src/spinner.scss +44 -0
  93. package/lib/theme-chalk/src/statistic.scss +38 -0
  94. package/lib/theme-chalk/src/step.scss +317 -0
  95. package/lib/theme-chalk/src/steps.scss +20 -0
  96. package/lib/theme-chalk/src/switch.scss +116 -0
  97. package/lib/theme-chalk/src/table-column.scss +97 -0
  98. package/lib/theme-chalk/src/table.scss +564 -0
  99. package/lib/theme-chalk/src/tabs.scss +602 -0
  100. package/lib/theme-chalk/src/tag.scss +163 -0
  101. package/lib/theme-chalk/src/time-picker.scss +8 -0
  102. package/lib/theme-chalk/src/time-select.scss +37 -0
  103. package/lib/theme-chalk/src/timeline-item.scss +86 -0
  104. package/lib/theme-chalk/src/timeline.scss +14 -0
  105. package/lib/theme-chalk/src/tooltip.scss +141 -0
  106. package/lib/theme-chalk/src/transfer.scss +227 -0
  107. package/lib/theme-chalk/src/tree.scss +123 -0
  108. package/lib/theme-chalk/src/upload.scss +603 -0
  109. package/package.json +3 -3
  110. package/packages/theme-chalk/gulpfile.js +1 -14
  111. package/packages/theme-chalk/src/common/var.scss +16 -16
  112. package/packages/theme-cy/gulpfile.js +1 -14
  113. package/src/index.js +1 -1
  114. package/lib/theme-chalk/alert.css +0 -1
  115. package/lib/theme-chalk/aside.css +0 -1
  116. package/lib/theme-chalk/autocomplete.css +0 -1
  117. package/lib/theme-chalk/avatar.css +0 -1
  118. package/lib/theme-chalk/backtop.css +0 -1
  119. package/lib/theme-chalk/badge.css +0 -1
  120. package/lib/theme-chalk/breadcrumb.css +0 -1
  121. package/lib/theme-chalk/button.css +0 -1
  122. package/lib/theme-chalk/calendar.css +0 -1
  123. package/lib/theme-chalk/card.css +0 -1
  124. package/lib/theme-chalk/carousel-item.css +0 -1
  125. package/lib/theme-chalk/carousel.css +0 -1
  126. package/lib/theme-chalk/cascader-panel.css +0 -1
  127. package/lib/theme-chalk/cascader.css +0 -1
  128. package/lib/theme-chalk/checkbox.css +0 -1
  129. package/lib/theme-chalk/col.css +0 -1
  130. package/lib/theme-chalk/collapse.css +0 -1
  131. package/lib/theme-chalk/color-picker.css +0 -1
  132. package/lib/theme-chalk/container.css +0 -1
  133. package/lib/theme-chalk/date-picker.css +0 -1
  134. package/lib/theme-chalk/descriptions-item.css +0 -1
  135. package/lib/theme-chalk/descriptions.css +0 -1
  136. package/lib/theme-chalk/dialog.css +0 -1
  137. package/lib/theme-chalk/display.css +0 -1
  138. package/lib/theme-chalk/divider.css +0 -1
  139. package/lib/theme-chalk/drawer.css +0 -1
  140. package/lib/theme-chalk/dropdown.css +0 -1
  141. package/lib/theme-chalk/empty.css +0 -1
  142. package/lib/theme-chalk/footer.css +0 -1
  143. package/lib/theme-chalk/form.css +0 -1
  144. package/lib/theme-chalk/header.css +0 -1
  145. package/lib/theme-chalk/icon.css +0 -1
  146. package/lib/theme-chalk/image.css +0 -1
  147. package/lib/theme-chalk/input-number.css +0 -1
  148. package/lib/theme-chalk/input.css +0 -1
  149. package/lib/theme-chalk/link.css +0 -1
  150. package/lib/theme-chalk/loading.css +0 -1
  151. package/lib/theme-chalk/main.css +0 -1
  152. package/lib/theme-chalk/menu.css +0 -1
  153. package/lib/theme-chalk/message-box.css +0 -1
  154. package/lib/theme-chalk/message.css +0 -1
  155. package/lib/theme-chalk/notification.css +0 -1
  156. package/lib/theme-chalk/option-group.css +0 -1
  157. package/lib/theme-chalk/option.css +0 -1
  158. package/lib/theme-chalk/page-header.css +0 -1
  159. package/lib/theme-chalk/pagination.css +0 -1
  160. package/lib/theme-chalk/popconfirm.css +0 -1
  161. package/lib/theme-chalk/popover.css +0 -1
  162. package/lib/theme-chalk/popper.css +0 -1
  163. package/lib/theme-chalk/progress.css +0 -1
  164. package/lib/theme-chalk/radio-button.css +0 -1
  165. package/lib/theme-chalk/radio-group.css +0 -1
  166. package/lib/theme-chalk/radio.css +0 -1
  167. package/lib/theme-chalk/rate.css +0 -1
  168. package/lib/theme-chalk/reset.css +0 -1
  169. package/lib/theme-chalk/result.css +0 -1
  170. package/lib/theme-chalk/row.css +0 -1
  171. package/lib/theme-chalk/scrollbar.css +0 -1
  172. package/lib/theme-chalk/select-dropdown.css +0 -1
  173. package/lib/theme-chalk/select.css +0 -1
  174. package/lib/theme-chalk/skeleton-item.css +0 -1
  175. package/lib/theme-chalk/skeleton.css +0 -1
  176. package/lib/theme-chalk/slider.css +0 -1
  177. package/lib/theme-chalk/spinner.css +0 -1
  178. package/lib/theme-chalk/statistic.css +0 -1
  179. package/lib/theme-chalk/step.css +0 -1
  180. package/lib/theme-chalk/steps.css +0 -1
  181. package/lib/theme-chalk/switch.css +0 -1
  182. package/lib/theme-chalk/table-column.css +0 -1
  183. package/lib/theme-chalk/table.css +0 -1
  184. package/lib/theme-chalk/tabs.css +0 -1
  185. package/lib/theme-chalk/tag.css +0 -1
  186. package/lib/theme-chalk/time-picker.css +0 -1
  187. package/lib/theme-chalk/time-select.css +0 -1
  188. package/lib/theme-chalk/timeline-item.css +0 -1
  189. package/lib/theme-chalk/timeline.css +0 -1
  190. package/lib/theme-chalk/tooltip.css +0 -1
  191. package/lib/theme-chalk/transfer.css +0 -1
  192. package/lib/theme-chalk/tree.css +0 -1
  193. package/lib/theme-chalk/upload.css +0 -1
  194. /package/lib/theme-chalk/{breadcrumb-item.css → src/breadcrumb-item.scss} +0 -0
  195. /package/lib/theme-chalk/{button-group.css → src/button-group.scss} +0 -0
  196. /package/lib/theme-chalk/{checkbox-button.css → src/checkbox-button.scss} +0 -0
  197. /package/lib/theme-chalk/{checkbox-group.css → src/checkbox-group.scss} +0 -0
  198. /package/lib/theme-chalk/{collapse-item.css → src/collapse-item.scss} +0 -0
  199. /package/lib/theme-chalk/{dropdown-item.css → src/dropdown-item.scss} +0 -0
  200. /package/lib/theme-chalk/{dropdown-menu.css → src/dropdown-menu.scss} +0 -0
  201. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.ttf +0 -0
  202. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.woff +0 -0
  203. /package/lib/theme-chalk/{form-item.css → src/form-item.scss} +0 -0
  204. /package/lib/theme-chalk/{infinite-scroll.css → src/infinite-scroll.scss} +0 -0
  205. /package/lib/theme-chalk/{infiniteScroll.css → src/infiniteScroll.scss} +0 -0
  206. /package/lib/theme-chalk/{menu-item-group.css → src/menu-item-group.scss} +0 -0
  207. /package/lib/theme-chalk/{menu-item.css → src/menu-item.scss} +0 -0
  208. /package/lib/theme-chalk/{submenu.css → src/submenu.scss} +0 -0
  209. /package/lib/theme-chalk/{tab-pane.css → src/tab-pane.scss} +0 -0
@@ -0,0 +1,199 @@
1
+ @import "mixins/mixins";
2
+ @import "mixins/utils";
3
+ @import 'mixins/button';
4
+ @import "common/var";
5
+
6
+ @include b(radio) {
7
+ color: $--radio-font-color;
8
+ font-weight: $--radio-font-weight;
9
+ line-height: 1;
10
+ position: relative;
11
+ cursor: pointer;
12
+ display: inline-block;
13
+ white-space: nowrap;
14
+ outline: none;
15
+ font-size: $--font-size-base;
16
+ margin-right: 30px;
17
+ @include utils-user-select(none);
18
+
19
+ @include when(bordered) {
20
+ padding: $--radio-bordered-padding;
21
+ border-radius: $--border-radius-base;
22
+ border: $--border-base;
23
+ box-sizing: border-box;
24
+ height: $--radio-bordered-height;
25
+
26
+ &.is-checked {
27
+ border-color: $--color-primary;
28
+ }
29
+
30
+ &.is-disabled {
31
+ cursor: not-allowed;
32
+ border-color: $--border-color-lighter;
33
+ }
34
+
35
+ & + .el-radio.is-bordered {
36
+ margin-left: 10px;
37
+ }
38
+ }
39
+
40
+ @include m(medium) {
41
+ &.is-bordered {
42
+ padding: $--radio-bordered-medium-padding;
43
+ border-radius: $--button-medium-border-radius;
44
+ height: $--radio-bordered-medium-height;
45
+ .el-radio__label {
46
+ font-size: $--button-medium-font-size;
47
+ }
48
+ .el-radio__inner {
49
+ height: $--radio-bordered-medium-input-height;
50
+ width: $--radio-bordered-medium-input-width;
51
+ }
52
+ }
53
+ }
54
+ @include m(small) {
55
+ &.is-bordered {
56
+ padding: $--radio-bordered-small-padding;
57
+ border-radius: $--button-small-border-radius;
58
+ height: $--radio-bordered-small-height;
59
+ .el-radio__label {
60
+ font-size: $--button-small-font-size;
61
+ }
62
+ .el-radio__inner {
63
+ height: $--radio-bordered-small-input-height;
64
+ width: $--radio-bordered-small-input-width;
65
+ }
66
+ }
67
+ }
68
+ @include m(mini) {
69
+ &.is-bordered {
70
+ padding: $--radio-bordered-mini-padding;
71
+ border-radius: $--button-mini-border-radius;
72
+ height: $--radio-bordered-mini-height;
73
+ .el-radio__label {
74
+ font-size: $--button-mini-font-size;
75
+ }
76
+ .el-radio__inner {
77
+ height: $--radio-bordered-mini-input-height;
78
+ width: $--radio-bordered-mini-input-width;
79
+ }
80
+ }
81
+ }
82
+
83
+ &:last-child {
84
+ margin-right: 0;
85
+ }
86
+
87
+ @include e(input) {
88
+ white-space: nowrap;
89
+ cursor: pointer;
90
+ outline: none;
91
+ display: inline-block;
92
+ line-height: 1;
93
+ position: relative;
94
+ vertical-align: middle;
95
+
96
+ @include when(disabled) {
97
+ .el-radio__inner {
98
+ background-color: $--radio-disabled-input-fill;
99
+ border-color: $--radio-disabled-input-border-color;
100
+ cursor: not-allowed;
101
+
102
+ &::after {
103
+ cursor: not-allowed;
104
+ background-color: $--radio-disabled-icon-color;
105
+ }
106
+
107
+ & + .el-radio__label {
108
+ cursor: not-allowed;
109
+ }
110
+ }
111
+ &.is-checked {
112
+ .el-radio__inner {
113
+ background-color: $--radio-disabled-checked-input-fill;
114
+ border-color: $--radio-disabled-checked-input-border-color;
115
+
116
+ &::after {
117
+ background-color: $--radio-disabled-checked-icon-color;
118
+ }
119
+ }
120
+ }
121
+ & + span.el-radio__label {
122
+ color: $--color-text-placeholder;
123
+ cursor: not-allowed;
124
+ }
125
+ }
126
+
127
+ @include when(checked) {
128
+ .el-radio__inner {
129
+ border-color: $--radio-checked-input-border-color;
130
+ background: $--radio-checked-icon-color;
131
+
132
+ &::after {
133
+ transform: translate(-50%, -50%) scale(1);
134
+ }
135
+ }
136
+
137
+ & + .el-radio__label {
138
+ color: $--radio-checked-font-color;
139
+ }
140
+ }
141
+
142
+ @include when(focus) {
143
+ .el-radio__inner {
144
+ border-color: $--radio-input-border-color-hover;
145
+ }
146
+ }
147
+ }
148
+ @include e(inner) {
149
+ border: $--radio-input-border;
150
+ border-radius: $--radio-input-border-radius;
151
+ width: $--radio-input-width;
152
+ height: $--radio-input-height;
153
+ background-color: $--radio-input-background-color;
154
+ position: relative;
155
+ cursor: pointer;
156
+ display: inline-block;
157
+ box-sizing: border-box;
158
+
159
+ &:hover {
160
+ border-color: $--radio-input-border-color-hover;
161
+ }
162
+
163
+ &::after {
164
+ width: 4px;
165
+ height: 4px;
166
+ border-radius: $--radio-input-border-radius;
167
+ background-color: $--color-white;
168
+ content: "";
169
+ position: absolute;
170
+ left: 50%;
171
+ top: 50%;
172
+ transform: translate(-50%, -50%) scale(0);
173
+ transition: transform .15s ease-in;
174
+ }
175
+ }
176
+
177
+ @include e(original) {
178
+ opacity: 0;
179
+ outline: none;
180
+ position: absolute;
181
+ z-index: -1;
182
+ top: 0;
183
+ left: 0;
184
+ right: 0;
185
+ bottom: 0;
186
+ margin: 0;
187
+ }
188
+
189
+ &:focus:not(.is-focus):not(:active):not(.is-disabled) { /*获得焦点时 样式提醒*/
190
+ .el-radio__inner {
191
+ box-shadow: 0 0 2px 2px $--radio-input-border-color-hover;
192
+ }
193
+ }
194
+
195
+ @include e(label) {
196
+ font-size: $--radio-font-size;
197
+ padding-left: 10px;
198
+ }
199
+ }
@@ -0,0 +1,49 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(rate) {
5
+ height: $--rate-height;
6
+ line-height: 1;
7
+
8
+ &:focus, &:active {
9
+ outline-width: 0;
10
+ }
11
+
12
+ @include e(item) {
13
+ display: inline-block;
14
+ position: relative;
15
+ font-size: 0;
16
+ vertical-align: middle;
17
+ }
18
+
19
+ @include e(icon) {
20
+ position: relative;
21
+ display: inline-block;
22
+ font-size: $--rate-icon-size;
23
+ margin-right: $--rate-icon-margin;
24
+ color: $--rate-icon-color;
25
+ transition: .3s;
26
+ &.hover {
27
+ transform: scale(1.15);
28
+ }
29
+
30
+ .path2 {
31
+ position: absolute;
32
+ left: 0;
33
+ top: 0;
34
+ }
35
+ }
36
+
37
+ @include e(decimal) {
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ display: inline-block;
42
+ overflow: hidden;
43
+ }
44
+
45
+ @include e(text) {
46
+ font-size: $--rate-font-size;
47
+ vertical-align: middle;
48
+ }
49
+ }
@@ -0,0 +1,79 @@
1
+ @import 'common/var';
2
+
3
+ body {
4
+ font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
5
+ font-weight: 400;
6
+ font-size: $--font-size-base;
7
+ color: $--color-black;
8
+ -webkit-font-smoothing: antialiased;
9
+ }
10
+
11
+ a {
12
+ color: $--color-primary;
13
+ text-decoration: none;
14
+
15
+ &:hover,
16
+ &:focus {
17
+ color: mix($--color-white, $--color-primary, $--button-hover-tint-percent);
18
+ }
19
+
20
+ &:active {
21
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
22
+ }
23
+ }
24
+
25
+ h1, h2, h3, h4, h5, h6 {
26
+ color: $--color-text-regular;
27
+ font-weight: inherit;
28
+
29
+ &:first-child {
30
+ margin-top: 0;
31
+ }
32
+
33
+ &:last-child {
34
+ margin-bottom: 0;
35
+ }
36
+ }
37
+
38
+ h1 {
39
+ font-size: #{$--font-size-base + 6px};
40
+ }
41
+
42
+ h2 {
43
+ font-size: #{$--font-size-base + 4px};
44
+ }
45
+
46
+ h3 {
47
+ font-size: #{$--font-size-base + 2px};
48
+ }
49
+
50
+ h4, h5, h6, p {
51
+ font-size: inherit;
52
+ }
53
+
54
+ p {
55
+ line-height: 1.8;
56
+
57
+ &:first-child {
58
+ margin-top: 0;
59
+ }
60
+
61
+ &:last-child {
62
+ margin-bottom: 0;
63
+ }
64
+ }
65
+
66
+ sup, sub {
67
+ font-size: #{$--font-size-base - 1px};
68
+ }
69
+
70
+ small {
71
+ font-size: #{$--font-size-base - 2px};
72
+ }
73
+
74
+ hr {
75
+ margin-top: 20px;
76
+ margin-bottom: 20px;
77
+ border: 0;
78
+ border-top: 1px solid #eeeeee;
79
+ }
@@ -0,0 +1,61 @@
1
+ @import 'mixins/mixins';
2
+ @import 'common/var';
3
+
4
+ @include b(result) {
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ flex-direction: column;
9
+ text-align: center;
10
+ box-sizing: border-box;
11
+ padding: $--result-padding;
12
+
13
+ @include e(icon) {
14
+ svg {
15
+ width: $--result-icon-font-size;
16
+ height: $--result-icon-font-size;
17
+ }
18
+ }
19
+
20
+ @include e(title) {
21
+ margin-top: $--result-title-margin-top;
22
+
23
+ p {
24
+ margin: 0;
25
+ font-size: $--result-title-font-size;
26
+ color: $--color-text-primary;
27
+ line-height: 1.3;
28
+ }
29
+ }
30
+
31
+ @include e(subtitle) {
32
+ margin-top: $--result-subtitle-margin-top;
33
+
34
+ p {
35
+ margin: 0;
36
+ font-size: $--font-size-base;
37
+ color: $--color-text-regular;
38
+ line-height: 1.3;
39
+ }
40
+ }
41
+
42
+ @include e(extra) {
43
+ margin-top: $--result-extra-margin-top;
44
+ }
45
+
46
+ .icon-success {
47
+ fill: $--result-success-color;
48
+ }
49
+
50
+ .icon-error {
51
+ fill: $--result-danger-color;
52
+ }
53
+
54
+ .icon-info {
55
+ fill: $--result-info-color;
56
+ }
57
+
58
+ .icon-warning {
59
+ fill: $--result-warning-color;
60
+ }
61
+ }
@@ -0,0 +1,43 @@
1
+ @import "common/var";
2
+ @import "mixins/mixins";
3
+ @import "mixins/utils";
4
+
5
+ @include b(row) {
6
+ position: relative;
7
+ box-sizing: border-box;
8
+ @include utils-clearfix;
9
+
10
+ @include m(flex) {
11
+ display: flex;
12
+ &:before,
13
+ &:after {
14
+ display: none;
15
+ }
16
+
17
+ @include when(justify-center) {
18
+ justify-content: center;
19
+ }
20
+ @include when(justify-end) {
21
+ justify-content: flex-end;
22
+ }
23
+ @include when(justify-space-between) {
24
+ justify-content: space-between;
25
+ }
26
+ @include when(justify-space-around) {
27
+ justify-content: space-around;
28
+ }
29
+
30
+ @include when(align-top) {
31
+ align-items: flex-start;
32
+ }
33
+
34
+ @include when(align-middle) {
35
+ align-items: center;
36
+ }
37
+ @include when(align-bottom) {
38
+ align-items: flex-end;
39
+ }
40
+ }
41
+
42
+ }
43
+
@@ -0,0 +1,72 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(scrollbar) {
5
+ overflow: hidden;
6
+ position: relative;
7
+
8
+ &:hover,
9
+ &:active,
10
+ &:focus {
11
+ > .el-scrollbar__bar {
12
+ opacity: 1;
13
+ transition: opacity 340ms ease-out;
14
+ }
15
+ }
16
+
17
+ @include e(wrap) {
18
+ overflow: scroll;
19
+ height: 100%;
20
+
21
+ @include m(hidden-default) {
22
+ scrollbar-width: none;
23
+ &::-webkit-scrollbar {
24
+ width: 0;
25
+ height: 0;
26
+ }
27
+ }
28
+ }
29
+
30
+ @include e(thumb) {
31
+ position: relative;
32
+ display: block;
33
+ width: 0;
34
+ height: 0;
35
+ cursor: pointer;
36
+ border-radius: inherit;
37
+ background-color: $--scrollbar-background-color;
38
+ transition: .3s background-color;
39
+
40
+ &:hover {
41
+ background-color: $--scrollbar-hover-background-color;
42
+ }
43
+ }
44
+
45
+ @include e(bar) {
46
+ position: absolute;
47
+ right: 2px;
48
+ bottom: 2px;
49
+ z-index: 1;
50
+ border-radius: 4px;
51
+ opacity: 0;
52
+ transition: opacity 120ms ease-out;
53
+
54
+ @include when(vertical) {
55
+ width: 6px;
56
+ top: 2px;
57
+
58
+ > div {
59
+ width: 100%;
60
+ }
61
+ }
62
+
63
+ @include when(horizontal) {
64
+ height: 6px;
65
+ left: 2px;
66
+
67
+ > div {
68
+ height: 100%;
69
+ }
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,62 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+ @import "./popper";
4
+
5
+ @include b(select-dropdown) {
6
+ position: absolute;
7
+ z-index: #{$--index-top + 1};
8
+ border: $--select-dropdown-border;
9
+ border-radius: $--border-radius-base;
10
+ background-color: $--select-dropdown-background;
11
+ box-shadow: $--select-dropdown-shadow;
12
+ box-sizing: border-box;
13
+ margin: 5px 0;
14
+
15
+ @include when(multiple) {
16
+ & .el-select-dropdown__item {
17
+ padding-right: 40px;
18
+ }
19
+ & .el-select-dropdown__item.selected {
20
+ color: $--select-option-selected-font-color;
21
+ background-color: $--select-dropdown-background;
22
+
23
+ &.hover {
24
+ background-color: $--select-option-hover-background;
25
+ }
26
+
27
+ &::after {
28
+ position: absolute;
29
+ right: 20px;
30
+ font-family: 'element-icons';
31
+ content: "\e6da";
32
+ font-size: 12px;
33
+ font-weight: bold;
34
+ -webkit-font-smoothing: antialiased;
35
+ -moz-osx-font-smoothing: grayscale;
36
+ }
37
+ }
38
+ }
39
+
40
+ .el-scrollbar.is-empty .el-select-dropdown__list{
41
+ padding: 0;
42
+ }
43
+ }
44
+
45
+ @include b(select-dropdown__empty) {
46
+ padding: $--select-dropdown-empty-padding;
47
+ margin: 0;
48
+ text-align: center;
49
+ color: $--select-dropdown-empty-color;
50
+ font-size: $--select-font-size;
51
+ }
52
+
53
+ @include b(select-dropdown__wrap) {
54
+ max-height: $--select-dropdown-max-height;
55
+ }
56
+
57
+ @include b(select-dropdown__list) {
58
+ list-style: none;
59
+ padding: $--select-dropdown-padding;
60
+ margin: 0;
61
+ box-sizing: border-box;
62
+ }
@@ -0,0 +1,152 @@
1
+ @import "mixins/mixins";
2
+ @import "mixins/utils";
3
+ @import "common/var";
4
+ @import "select-dropdown";
5
+ @import "input";
6
+ @import "tag";
7
+ @import "option";
8
+ @import "option-group";
9
+ @import "scrollbar";
10
+
11
+ @include b(select) {
12
+ display: inline-block;
13
+ position: relative;
14
+
15
+ .el-select__tags
16
+ >span {
17
+ display: contents;
18
+ }
19
+
20
+ &:hover {
21
+ .el-input__inner {
22
+ border-color: $--select-border-color-hover;
23
+ }
24
+ }
25
+
26
+ .el-input__inner {
27
+ cursor: pointer;
28
+ padding-right: 35px;
29
+
30
+ &:focus {
31
+ border-color: $--select-input-focus-border-color;
32
+ }
33
+ }
34
+
35
+ .el-input {
36
+ & .el-select__caret {
37
+ color: $--select-input-color;
38
+ font-size: $--select-input-font-size;
39
+ transition: transform .3s;
40
+ transform: rotateZ(180deg);
41
+ cursor: pointer;
42
+
43
+ @include when(reverse) {
44
+ transform: rotateZ(0deg);
45
+ }
46
+
47
+ @include when(show-close) {
48
+ font-size: $--select-font-size;
49
+ text-align: center;
50
+ transform: rotateZ(180deg);
51
+ border-radius: $--border-radius-circle;
52
+ color: $--select-input-color;
53
+ transition: $--color-transition-base;
54
+
55
+ &:hover {
56
+ color: $--select-close-hover-color;
57
+ }
58
+ }
59
+ }
60
+
61
+ &.is-disabled {
62
+ & .el-input__inner {
63
+ cursor: not-allowed;
64
+
65
+ &:hover {
66
+ border-color: $--select-disabled-border;
67
+ }
68
+ }
69
+ }
70
+
71
+ &.is-focus .el-input__inner {
72
+ border-color: $--select-input-focus-border-color;
73
+ }
74
+ }
75
+
76
+ > .el-input {
77
+ display: block;
78
+ }
79
+
80
+ @include e(input) {
81
+ border: none;
82
+ outline: none;
83
+ padding: 0;
84
+ margin-left: 15px;
85
+ color: $--select-multiple-input-color;
86
+ font-size: $--select-font-size;
87
+ appearance: none;
88
+ height: 28px;
89
+ background-color: transparent;
90
+ @include when(mini) {
91
+ height: 14px;
92
+ }
93
+ }
94
+
95
+ @include e(close) {
96
+ cursor: pointer;
97
+ position: absolute;
98
+ top: 8px;
99
+ z-index: $--index-top;
100
+ right: 25px;
101
+ color: $--select-input-color;
102
+ line-height: 18px;
103
+ font-size: $--select-input-font-size;
104
+
105
+ &:hover {
106
+ color: $--select-close-hover-color;
107
+ }
108
+ }
109
+
110
+ @include e(tags) {
111
+ position: absolute;
112
+ line-height: normal;
113
+ white-space: normal;
114
+ z-index: $--index-normal;
115
+ top: 50%;
116
+ transform: translateY(-50%);
117
+ display: flex;
118
+ align-items: center;
119
+ flex-wrap: wrap;
120
+ }
121
+
122
+ @include e(tags-text) {
123
+ overflow: hidden;
124
+ text-overflow: ellipsis;
125
+ }
126
+
127
+ .el-tag {
128
+ box-sizing: border-box;
129
+ border-color: transparent;
130
+ margin: 2px 0 2px 6px;
131
+ background-color: #f0f2f5;
132
+ display: flex;
133
+ max-width: 100%;
134
+ align-items: center;
135
+
136
+ &__close.el-icon-close {
137
+ background-color: $--color-text-placeholder;
138
+ top: 0;
139
+ color: $--color-white;
140
+ flex-shrink: 0;
141
+
142
+ &:hover {
143
+ background-color: $--color-text-secondary;
144
+ }
145
+
146
+ &::before {
147
+ display: block;
148
+ transform: translate(0, .5px);
149
+ }
150
+ }
151
+ }
152
+ }