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,35 @@
1
+ {
2
+ "name": "element-theme-chalk",
3
+ "version": "2.15.14",
4
+ "description": "Element component chalk theme.",
5
+ "main": "lib/index.css",
6
+ "style": "lib/index.css",
7
+ "files": [
8
+ "lib",
9
+ "src"
10
+ ],
11
+ "scripts": {
12
+ "build": "gulp build"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/ElementUI/theme-chalk.git"
17
+ },
18
+ "keywords": [
19
+ "element",
20
+ "theme"
21
+ ],
22
+ "author": "yi.shyang@ele.me",
23
+ "license": "MIT",
24
+ "bugs": {
25
+ "url": "https://github.com/ElementUI/theme-chalk/issues"
26
+ },
27
+ "homepage": "https://github.com/ElementUI/theme-chalk#readme",
28
+ "devDependencies": {
29
+ "gulp": "^3.9.1",
30
+ "gulp-cssmin": "^0.1.7",
31
+ "gulp-sass": "^3.1.0",
32
+ "gulp-autoprefixer": "^4.0.0"
33
+ },
34
+ "dependencies": {}
35
+ }
@@ -0,0 +1,147 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(alert) {
5
+ width: 100%;
6
+ padding: $--alert-padding;
7
+ margin: 0;
8
+ box-sizing: border-box;
9
+ border-radius: $--alert-border-radius;
10
+ position: relative;
11
+ background-color: $--color-white;
12
+ overflow: hidden;
13
+ opacity: 1;
14
+ display: flex;
15
+ align-items: center;
16
+ transition: opacity .2s;
17
+
18
+ @include when(light) {
19
+ .el-alert__closebtn {
20
+ color: $--color-text-placeholder;
21
+ }
22
+ }
23
+
24
+ @include when(dark) {
25
+ .el-alert__closebtn {
26
+ color: $--color-white;
27
+ }
28
+ .el-alert__description {
29
+ color: $--color-white;
30
+ }
31
+ }
32
+
33
+ @include when(center) {
34
+ justify-content: center;
35
+ }
36
+
37
+ @include m(success) {
38
+ &.is-light {
39
+ background-color: $--alert-success-color;
40
+ color: $--color-success;
41
+
42
+ .el-alert__description {
43
+ color: $--color-success;
44
+ }
45
+ }
46
+
47
+ &.is-dark {
48
+ background-color: $--color-success;
49
+ color: $--color-white;
50
+ }
51
+ }
52
+
53
+ @include m(info) {
54
+ &.is-light {
55
+ background-color: $--alert-info-color;
56
+ color: $--color-info;
57
+ }
58
+
59
+ &.is-dark {
60
+ background-color: $--color-info;
61
+ color: $--color-white;
62
+ }
63
+
64
+ .el-alert__description {
65
+ color: $--color-info;
66
+ }
67
+ }
68
+
69
+ @include m(warning) {
70
+ &.is-light {
71
+ background-color: $--alert-warning-color;
72
+ color: $--color-warning;
73
+
74
+ .el-alert__description {
75
+ color: $--color-warning;
76
+ }
77
+ }
78
+
79
+ &.is-dark {
80
+ background-color: $--color-warning;
81
+ color: $--color-white;
82
+ }
83
+ }
84
+
85
+ @include m(error) {
86
+ &.is-light {
87
+ background-color: $--alert-danger-color;
88
+ color: $--color-danger;
89
+
90
+ .el-alert__description {
91
+ color: $--color-danger;
92
+ }
93
+ }
94
+
95
+ &.is-dark {
96
+ background-color: $--color-danger;
97
+ color: $--color-white;
98
+ }
99
+ }
100
+
101
+ @include e(content) {
102
+ display: table-cell;
103
+ padding: 0 8px;
104
+ }
105
+
106
+ @include e(icon) {
107
+ font-size: $--alert-icon-size;
108
+ width: $--alert-icon-size;
109
+ @include when(big) {
110
+ font-size: $--alert-icon-large-size;
111
+ width: $--alert-icon-large-size;
112
+ }
113
+ }
114
+
115
+ @include e(title) {
116
+ font-size: $--alert-title-font-size;
117
+ line-height: 18px;
118
+ @include when(bold) {
119
+ font-weight: bold;
120
+ }
121
+ }
122
+
123
+ & .el-alert__description {
124
+ font-size: $--alert-description-font-size;
125
+ margin: 5px 0 0 0;
126
+ }
127
+
128
+ @include e(closebtn) {
129
+ font-size: $--alert-close-font-size;
130
+ opacity: 1;
131
+ position: absolute;
132
+ top: 12px;
133
+ right: 15px;
134
+ cursor: pointer;
135
+
136
+ @include when(customed) {
137
+ font-style: normal;
138
+ font-size: $--alert-close-customed-font-size;
139
+ top: 9px;
140
+ }
141
+ }
142
+ }
143
+
144
+ .el-alert-fade-enter,
145
+ .el-alert-fade-leave-active {
146
+ opacity: 0;
147
+ }
@@ -0,0 +1,7 @@
1
+ @import "mixins/mixins";
2
+
3
+ @include b(aside) {
4
+ overflow: auto;
5
+ box-sizing: border-box;
6
+ flex-shrink: 0;
7
+ }
@@ -0,0 +1,80 @@
1
+ @import "mixins/mixins";
2
+ @import "mixins/utils";
3
+ @import "common/var";
4
+ @import "./input.scss";
5
+ @import "./scrollbar.scss";
6
+ @import "./popper";
7
+
8
+ @include b(autocomplete) {
9
+ position: relative;
10
+ display: inline-block;
11
+ }
12
+
13
+ @include b(autocomplete-suggestion) {
14
+ margin: 5px 0;
15
+ box-shadow: $--box-shadow-light;
16
+ border-radius: $--border-radius-base;
17
+ border: 1px solid $--border-color-light;
18
+ box-sizing: border-box;
19
+ background-color: $--color-white;
20
+
21
+ @include e(wrap) {
22
+ max-height: 280px;
23
+ padding: 10px 0;
24
+ box-sizing: border-box;
25
+ }
26
+
27
+ @include e(list) {
28
+ margin: 0;
29
+ padding: 0;
30
+ }
31
+
32
+ & li {
33
+ padding: 0 20px;
34
+ margin: 0;
35
+ line-height: 34px;
36
+ cursor: pointer;
37
+ color: $--color-text-regular;
38
+ font-size: $--font-size-base;
39
+ list-style: none;
40
+ white-space: nowrap;
41
+ overflow: hidden;
42
+ text-overflow: ellipsis;
43
+
44
+ &:hover {
45
+ background-color: $--select-option-hover-background;
46
+ }
47
+
48
+ &.highlighted {
49
+ background-color: $--select-option-hover-background;
50
+ }
51
+
52
+ &.divider {
53
+ margin-top: 6px;
54
+ border-top: 1px solid $--color-black;
55
+ }
56
+
57
+ &.divider:last-child {
58
+ margin-bottom: -6px;
59
+ }
60
+ }
61
+
62
+ @include when(loading) {
63
+ li {
64
+ text-align: center;
65
+ height: 100px;
66
+ line-height: 100px;
67
+ font-size: 20px;
68
+ color: #999;
69
+ @include utils-vertical-center;
70
+
71
+ &:hover {
72
+ background-color: $--color-white;
73
+ }
74
+ }
75
+
76
+ & .el-icon-loading {
77
+ vertical-align: middle;
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,51 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(avatar) {
5
+ display: inline-block;
6
+ box-sizing: border-box;
7
+ text-align: center;
8
+ overflow: hidden;
9
+ color: $--avatar-font-color;
10
+ background: $--avatar-background-color;
11
+ width: $--avatar-large-size;
12
+ height: $--avatar-large-size;
13
+ line-height: $--avatar-large-size;
14
+ font-size: $--avatar-text-font-size;
15
+
16
+ >img {
17
+ display: block;
18
+ height: 100%;
19
+ vertical-align: middle;
20
+ }
21
+
22
+ @include m(circle) {
23
+ border-radius: 50%;
24
+ }
25
+
26
+ @include m(square) {
27
+ border-radius: $--avatar-border-radius;
28
+ }
29
+
30
+ @include m(icon) {
31
+ font-size: $--avatar-icon-font-size;
32
+ }
33
+
34
+ @include m(large) {
35
+ width: $--avatar-large-size;
36
+ height: $--avatar-large-size;
37
+ line-height: $--avatar-large-size;
38
+ }
39
+
40
+ @include m(medium) {
41
+ width: $--avatar-medium-size;
42
+ height: $--avatar-medium-size;
43
+ line-height: $--avatar-medium-size;
44
+ }
45
+
46
+ @include m(small) {
47
+ width: $--avatar-small-size;
48
+ height: $--avatar-small-size;
49
+ line-height: $--avatar-small-size;
50
+ }
51
+ }
@@ -0,0 +1,22 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(backtop) {
5
+ position: fixed;
6
+ background-color: $--backtop-background-color;
7
+ width: 40px;
8
+ height: 40px;
9
+ border-radius: 50%;
10
+ color: $--backtop-font-color;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ font-size: 20px;
15
+ box-shadow: 0 0 6px rgba(0,0,0, .12);
16
+ cursor: pointer;
17
+ z-index: 5;
18
+
19
+ &:hover {
20
+ background-color: $--backtop-hover-background-color
21
+ }
22
+ }
@@ -0,0 +1,57 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(badge) {
5
+ position: relative;
6
+ vertical-align: middle;
7
+ display: inline-block;
8
+
9
+ @include e(content) {
10
+ background-color: $--badge-background-color;
11
+ border-radius: $--badge-radius;
12
+ color: $--color-white;
13
+ display: inline-block;
14
+ font-size: $--badge-font-size;
15
+ height: $--badge-size;
16
+ line-height: $--badge-size;
17
+ padding: 0 $--badge-padding;
18
+ text-align: center;
19
+ white-space: nowrap;
20
+ border: 1px solid $--color-white;
21
+
22
+ @include when(fixed) {
23
+ position: absolute;
24
+ top: 0;
25
+ right: #{1 + $--badge-size / 2};
26
+ transform: translateY(-50%) translateX(100%);
27
+
28
+ @include when(dot) {
29
+ right: 5px;
30
+ }
31
+ }
32
+
33
+ @include when(dot) {
34
+ height: 8px;
35
+ width: 8px;
36
+ padding: 0;
37
+ right: 0;
38
+ border-radius: 50%;
39
+ }
40
+
41
+ @each $type in (primary, success, warning, info, danger) {
42
+ @include m($type) {
43
+ @if $type == primary {
44
+ background-color: $--color-primary;
45
+ } @else if $type == success {
46
+ background-color: $--color-success;
47
+ } @else if $type == warning {
48
+ background-color: $--color-warning;
49
+ } @else if $type == info {
50
+ background-color: $--color-info;
51
+ } @else {
52
+ background-color: $--color-danger;
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,2 @@
1
+ @import "common/transition.scss";
2
+ @import "icon.scss";
@@ -0,0 +1,55 @@
1
+ @import "mixins/mixins";
2
+ @import "mixins/utils";
3
+ @import "common/var";
4
+
5
+ @include b(breadcrumb) {
6
+ font-size: 14px;
7
+ line-height: 1;
8
+ @include utils-clearfix;
9
+
10
+ @include e(separator) {
11
+ margin: 0 9px;
12
+ font-weight: bold;
13
+ color: $--color-text-placeholder;
14
+
15
+ &[class*=icon] {
16
+ margin: 0 6px;
17
+ font-weight: normal;
18
+ }
19
+ }
20
+
21
+ @include e(item) {
22
+ float: left;
23
+
24
+ @include e(inner) {
25
+ color: $--color-text-regular;
26
+
27
+ &.is-link, & a {
28
+ font-weight: bold;
29
+ text-decoration: none;
30
+ transition: $--color-transition-base;
31
+ color: $--color-text-primary;
32
+
33
+ &:hover {
34
+ color: $--color-primary;
35
+ cursor: pointer;
36
+ }
37
+ }
38
+ }
39
+
40
+ &:last-child {
41
+ .el-breadcrumb__inner,
42
+ .el-breadcrumb__inner a {
43
+ &, &:hover {
44
+ font-weight: normal;
45
+ color: $--color-text-regular;
46
+ cursor: text;
47
+ }
48
+ }
49
+
50
+ .el-breadcrumb__separator {
51
+ display: none;
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,262 @@
1
+ @charset "UTF-8";
2
+ @import "common/var";
3
+ @import "mixins/button";
4
+ @import "mixins/mixins";
5
+ @import "mixins/utils";
6
+
7
+ @include b(button) {
8
+ display: inline-block;
9
+ line-height: 1;
10
+ white-space: nowrap;
11
+ cursor: pointer;
12
+ background: $--button-default-background-color;
13
+ border: $--border-base;
14
+ border-color: $--button-default-border-color;
15
+ color: $--button-default-font-color;
16
+ -webkit-appearance: none;
17
+ text-align: center;
18
+ box-sizing: border-box;
19
+ outline: none;
20
+ margin: 0;
21
+ transition: .1s;
22
+ font-weight: $--button-font-weight;
23
+ @include utils-user-select(none);
24
+ & + & {
25
+ margin-left: 10px;
26
+ }
27
+
28
+ @include button-size($--button-padding-vertical, $--button-padding-horizontal, $--button-font-size, $--button-border-radius);
29
+
30
+ &:hover,
31
+ &:focus {
32
+ color: $--color-primary;
33
+ border-color: $--color-primary-light-7;
34
+ background-color: $--color-primary-light-9;
35
+ }
36
+
37
+ &:active {
38
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
39
+ border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
40
+ outline: none;
41
+ }
42
+
43
+ &::-moz-focus-inner {
44
+ border: 0;
45
+ }
46
+
47
+ & [class*="el-icon-"] {
48
+ & + span {
49
+ margin-left: 5px;
50
+ }
51
+ }
52
+
53
+ @include when(plain) {
54
+ &:hover,
55
+ &:focus {
56
+ background: $--color-white;
57
+ border-color: $--color-primary;
58
+ color: $--color-primary;
59
+ }
60
+
61
+ &:active {
62
+ background: $--color-white;
63
+ border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
64
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
65
+ outline: none;
66
+ }
67
+ }
68
+
69
+ @include when(active) {
70
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
71
+ border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
72
+ }
73
+
74
+ @include when(disabled) {
75
+ &,
76
+ &:hover,
77
+ &:focus {
78
+ color: $--button-disabled-font-color;
79
+ cursor: not-allowed;
80
+ background-image: none;
81
+ background-color: $--button-disabled-background-color;
82
+ border-color: $--button-disabled-border-color;
83
+ }
84
+
85
+ &.el-button--text {
86
+ background-color: transparent;
87
+ }
88
+
89
+ &.is-plain {
90
+ &,
91
+ &:hover,
92
+ &:focus {
93
+ background-color: $--color-white;
94
+ border-color: $--button-disabled-border-color;
95
+ color: $--button-disabled-font-color;
96
+ }
97
+ }
98
+ }
99
+
100
+ @include when(loading) {
101
+ position: relative;
102
+ pointer-events: none;
103
+
104
+ &:before {
105
+ pointer-events: none;
106
+ content: '';
107
+ position: absolute;
108
+ left: -1px;
109
+ top: -1px;
110
+ right: -1px;
111
+ bottom: -1px;
112
+ border-radius: inherit;
113
+ background-color: rgba(255,255,255,.35);
114
+ }
115
+ }
116
+ @include when(round) {
117
+ border-radius: 20px;
118
+ padding: 12px 23px;
119
+ }
120
+ @include when(circle) {
121
+ border-radius: 50%;
122
+ padding: $--button-padding-vertical;
123
+ }
124
+ @include m(primary) {
125
+ @include button-variant($--button-primary-font-color, $--button-primary-background-color, $--button-primary-border-color);
126
+ }
127
+ @include m(success) {
128
+ @include button-variant($--button-success-font-color, $--button-success-background-color, $--button-success-border-color);
129
+ }
130
+ @include m(warning) {
131
+ @include button-variant($--button-warning-font-color, $--button-warning-background-color, $--button-warning-border-color);
132
+ }
133
+ @include m(danger) {
134
+ @include button-variant($--button-danger-font-color, $--button-danger-background-color, $--button-danger-border-color);
135
+ }
136
+ @include m(info) {
137
+ @include button-variant($--button-info-font-color, $--button-info-background-color, $--button-info-border-color);
138
+ }
139
+ @include m(medium) {
140
+ @include button-size($--button-medium-padding-vertical, $--button-medium-padding-horizontal, $--button-medium-font-size, $--button-medium-border-radius);
141
+ @include when(circle) {
142
+ padding: $--button-medium-padding-vertical;
143
+ }
144
+ }
145
+ @include m(small) {
146
+ @include button-size($--button-small-padding-vertical, $--button-small-padding-horizontal, $--button-small-font-size, $--button-small-border-radius);
147
+ @include when(circle) {
148
+ padding: $--button-small-padding-vertical;
149
+ }
150
+ }
151
+ @include m(mini) {
152
+ @include button-size($--button-mini-padding-vertical, $--button-mini-padding-horizontal, $--button-mini-font-size, $--button-mini-border-radius);
153
+ @include when(circle) {
154
+ padding: $--button-mini-padding-vertical;
155
+ }
156
+ }
157
+ @include m(text) {
158
+ border-color: transparent;
159
+ color: $--color-primary;
160
+ background: transparent;
161
+ padding-left: 0;
162
+ padding-right: 0;
163
+
164
+ &:hover,
165
+ &:focus {
166
+ color: mix($--color-white, $--color-primary, $--button-hover-tint-percent);
167
+ border-color: transparent;
168
+ background-color: transparent;
169
+ }
170
+ &:active {
171
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
172
+ border-color: transparent;
173
+ background-color: transparent;
174
+ }
175
+
176
+ &.is-disabled,
177
+ &.is-disabled:hover,
178
+ &.is-disabled:focus {
179
+ border-color: transparent;
180
+ }
181
+ }
182
+ }
183
+
184
+ @include b(button-group) {
185
+ @include utils-clearfix;
186
+ display: inline-block;
187
+ vertical-align: middle;
188
+
189
+ & > .el-button {
190
+ float: left;
191
+ position: relative;
192
+ & + .el-button {
193
+ margin-left: 0;
194
+ }
195
+ &.is-disabled {
196
+ z-index: 1;
197
+ }
198
+ &:first-child {
199
+ border-top-right-radius: 0;
200
+ border-bottom-right-radius: 0;
201
+ }
202
+ &:last-child {
203
+ border-top-left-radius: 0;
204
+ border-bottom-left-radius: 0;
205
+ }
206
+ &:first-child:last-child {
207
+ border-top-right-radius: $--button-border-radius;
208
+ border-bottom-right-radius: $--button-border-radius;
209
+ border-top-left-radius: $--button-border-radius;
210
+ border-bottom-left-radius: $--button-border-radius;
211
+
212
+ &.is-round {
213
+ border-radius: 20px;
214
+ }
215
+
216
+ &.is-circle {
217
+ border-radius: 50%;
218
+ }
219
+ }
220
+ &:not(:first-child):not(:last-child) {
221
+ border-radius: 0;
222
+ }
223
+ &:not(:last-child) {
224
+ margin-right: -1px;
225
+ }
226
+
227
+ &:not(.is-disabled) {
228
+ &:hover,
229
+ &:focus,
230
+ &:active {
231
+ z-index: 1;
232
+ }
233
+ }
234
+
235
+ @include when(active) {
236
+ z-index: 1;
237
+ }
238
+ }
239
+
240
+ & > .el-dropdown {
241
+ & > .el-button {
242
+ border-top-left-radius: 0;
243
+ border-bottom-left-radius: 0;
244
+ border-left-color: rgba($--color-white, 0.5);
245
+ }
246
+ }
247
+
248
+ @each $type in (primary, success, warning, danger, info) {
249
+ .el-button--#{$type} {
250
+ &:first-child {
251
+ border-right-color: rgba($--color-white, 0.5);
252
+ }
253
+ &:last-child {
254
+ border-left-color: rgba($--color-white, 0.5);
255
+ }
256
+ &:not(:first-child):not(:last-child) {
257
+ border-left-color: rgba($--color-white, 0.5);
258
+ border-right-color: rgba($--color-white, 0.5);
259
+ }
260
+ }
261
+ }
262
+ }