@fishawack/lab-velocity 2.0.0-beta.4 → 2.0.0-beta.5

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.
@@ -0,0 +1,5 @@
1
+ @import "element-plus/theme-chalk/el-alert";
2
+
3
+ .vel-alert {
4
+ --el-color-error: #d53a3a;
5
+ }
@@ -0,0 +1,55 @@
1
+ @import "element-plus/theme-chalk/el-input";
2
+
3
+ .el-input {
4
+ font-size: 1rem;
5
+
6
+ .el-input__wrapper {
7
+ // padding: .5 * $spacing $spacing;
8
+ }
9
+
10
+ .el-input__inner {
11
+ --el-input-inner-height: 46px;
12
+ }
13
+ .el-input-group__append,
14
+ .el-input-group__prepend {
15
+ padding: 0 2 * $spacing;
16
+ }
17
+ }
18
+
19
+ .vel-basic {
20
+ &__error {
21
+ color: $colorAlert;
22
+ }
23
+ }
24
+
25
+ .form__icon-container {
26
+ position: absolute;
27
+ top: 50%;
28
+ right: 12px;
29
+ transform: translateY(-50%);
30
+ display: flex;
31
+
32
+ .icon {
33
+ display: flex;
34
+ }
35
+ }
36
+
37
+ .input--password {
38
+ .el-input-group__append {
39
+ border: none;
40
+ box-shadow: none;
41
+ background-color: transparent;
42
+ position: absolute;
43
+ right: 0px;
44
+ top: 0px;
45
+ padding: 0px;
46
+ height: 40px;
47
+ min-height: fit-content;
48
+ }
49
+ .icon {
50
+ width: 24px;
51
+ min-width: 24px;
52
+ padding: 0px !important;
53
+ fill: #cfd8dd !important;
54
+ }
55
+ }
@@ -0,0 +1,39 @@
1
+ @import "element-plus/theme-chalk/el-breadcrumb";
2
+ @import "element-plus/theme-chalk/el-breadcrumb-item";
3
+ .vel-breadcrumb {
4
+ .el-breadcrumb__separator {
5
+ display: none;
6
+ margin: 0px $spacing;
7
+ }
8
+
9
+ .el-breadcrumb__separator,
10
+ .el-breadcrumb__inner {
11
+ font-size: get-ratio(16px);
12
+ line-height: get-ratio(24px);
13
+ }
14
+
15
+ .el-breadcrumb__inner {
16
+ &.is-link {
17
+ text-decoration: underline;
18
+ font-weight: 500;
19
+ color: $color2;
20
+ text-transform: capitalize;
21
+
22
+ &:hover {
23
+ color: $color12;
24
+ }
25
+ }
26
+ }
27
+
28
+ .el-breadcrumb__item {
29
+ &:last-child {
30
+ .el-breadcrumb__inner {
31
+ &.is-link {
32
+ color: $color2;
33
+ font-weight: 400;
34
+ text-decoration: none;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,304 @@
1
+ @import "element-plus/theme-chalk/el-button";
2
+
3
+ .vel-button {
4
+ height: auto;
5
+ --el-border-radius-base: 0px;
6
+ --el-font-size-base: get-ratio(16px);
7
+
8
+ .is-round {
9
+ --el-border-radius-base: 999px;
10
+ }
11
+
12
+ // colors
13
+ &.el-button--default {
14
+ --el-color-primary: #ffffff;
15
+
16
+ // text color
17
+ --el-text-color-regular: #{$color2};
18
+ --el-button-hover-text-color: #{$color1};
19
+ --el-button-active-text-color: #{$color1};
20
+ --el-button-disabled-text-color: #bdbdbd;
21
+
22
+ // background color
23
+ --el-button-bg-color: #ffffff;
24
+ --el-button-hover-bg-color: #{$color8};
25
+ --el-button-active-text-color: #{$color1};
26
+ --el-button-disabled-bg-color: #ffffff;
27
+
28
+ // border color
29
+ --el-button-border-color: #{$color5};
30
+ --el-button-hover-border-color: #afafaf;
31
+ --el-button-active-border-color: #{$color1};
32
+ --el-button-disabled-border-color: #{$color4};
33
+
34
+ &.is-loading {
35
+ --el-text-color-regular: #a4a4a4;
36
+ --el-button-border-color: #{$color4};
37
+ }
38
+
39
+ &.is-plain {
40
+ --el-color-primary: #ffffff;
41
+
42
+ // text color
43
+ --el-text-color-regular: #{$color2};
44
+ --el-button-hover-text-color: #{$color1};
45
+ --el-button-active-text-color: #{$color1};
46
+ --el-button-disabled-text-color: #bdbdbd;
47
+
48
+ // background color
49
+ --el-button-bg-color: #ffffff;
50
+ --el-button-hover-bg-color: ##ffffff;
51
+ --el-button-active-text-color: #{$color1};
52
+ --el-button-disabled-bg-color: #ffffff;
53
+
54
+ // border color
55
+ --el-button-border-color: #{$color5};
56
+ --el-button-hover-border-color: #{$color1};
57
+ --el-button-active-border-color: #{$color1};
58
+ --el-button-disabled-border-color: #{$color4};
59
+
60
+ &.is-loading {
61
+ --el-text-color-regular: #a4a4a4;
62
+ --el-button-border-color: #{$color4};
63
+ }
64
+ }
65
+ }
66
+
67
+ &.el-button--primary {
68
+ --el-color-primary: #{$color1};
69
+
70
+ // text color
71
+ --el-text-color-regular: #ffffff;
72
+ --el-button-hover-text-color: #ffffff;
73
+ --el-button-active-text-color: #ffffff;
74
+ --el-button-disabled-text-color: #ffffff;
75
+
76
+ // background color
77
+ --el-button-bg-color: #{$color1};
78
+ --el-button-hover-bg-color: #{$color12};
79
+ --el-button-active-bg-color: #090909;
80
+ --el-button-disabled-bg-color: #afafaf;
81
+
82
+ // border color
83
+ --el-button-border-color: transparent;
84
+ --el-button-hover-border-color: transparent;
85
+ --el-button-active-border-color: transparent;
86
+ --el-button-disabled-border-color: transparent;
87
+
88
+ &.is-loading {
89
+ --el-text-color-regular: #a4a4a4;
90
+ --el-button-border-color: transparent;
91
+ --el-button-bg-color: #5c5c5c;
92
+ }
93
+
94
+ &.is-plain {
95
+ --el-color-primary: #{$color1};
96
+
97
+ // text color
98
+ --el-text-color-regular: #{$color1};
99
+ --el-button-hover-text-color: #ffffff;
100
+ --el-button-active-text-color: #ffffff;
101
+ --el-button-disabled-text-color: #ffffff;
102
+ --el-color-primary-light-5: #757575;
103
+
104
+ // background color
105
+ --el-button-bg-color: #f2f2f2;
106
+ --el-button-hover-bg-color: #{$color1};
107
+ --el-button-active-bg-color: #090909;
108
+ --el-button-disabled-bg-color: #{$color8};
109
+ --el-color-primary-light-9: #{$color8};
110
+
111
+ // border color
112
+ --el-button-border-color: #757575;
113
+ --el-button-hover-border-color: transparent;
114
+ --el-button-active-border-color: transparent;
115
+ --el-button-disabled-border-color: #d5d5d5;
116
+ --el-color-primary-light-8: #d5d5d5;
117
+
118
+ &.is-loading {
119
+ --el-text-color-regular: #{$color12};
120
+ --el-button-border-color: #757575;
121
+ --el-button-bg-color: #{$color8};
122
+ }
123
+ }
124
+
125
+ &.is-text,
126
+ &.is-link {
127
+ // text color
128
+ --el-button-hover-link-text-color: #{$color12};
129
+ --el-button-active-color: #090909;
130
+
131
+ &.is-disabled {
132
+ --el-color-primary-light-5: #bdbdbd;
133
+ }
134
+ }
135
+ }
136
+
137
+ &.el-button--danger {
138
+ --el-color-primary: #{$colorAlert};
139
+
140
+ // text color
141
+ --el-text-color-regular: #ffffff;
142
+ --el-button-hover-text-color: #ffffff;
143
+ --el-button-active-text-color: #ffffff;
144
+ --el-button-disabled-text-color: #ffffff;
145
+
146
+ // background color
147
+ --el-button-bg-color: #{$colorAlert};
148
+ --el-button-hover-bg-color: #df6b6b;
149
+ --el-button-active-bg-color: #b42929;
150
+ --el-button-disabled-bg-color: #ea9c9c;
151
+
152
+ // border color
153
+ --el-button-border-color: transparent;
154
+ --el-button-hover-border-color: transparent;
155
+ --el-button-active-border-color: transparent;
156
+ --el-button-disabled-border-color: transparent;
157
+
158
+ &.is-loading {
159
+ --el-text-color-regular: #ffffff;
160
+ --el-button-border-color: transparent;
161
+ --el-button-bg-color: #df6b6b;
162
+ }
163
+
164
+ &.is-plain {
165
+ // border: 2px solid orange !important;
166
+ --el-color-primary: #{$colorAlert};
167
+
168
+ // text color
169
+ --el-button-text-color: #d53a3a;
170
+ --el-text-color-regular: #d53a3a;
171
+ --el-button-hover-text-color: #ffffff;
172
+ --el-button-active-text-color: #ffffff;
173
+ --el-button-disabled-text-color: ##ea9c9c;
174
+
175
+ // background color
176
+ --el-button-bg-color: #fcf1f1;
177
+ --el-button-hover-bg-color: #d53a3a;
178
+ --el-button-active-bg-color: #b42929;
179
+ --el-button-disabled-bg-color: #fcf1f1;
180
+
181
+ // border color
182
+ --el-button-border-color: #ea9c9c;
183
+ --el-button-hover-border-color: transparent;
184
+ --el-button-active-border-color: transparent;
185
+ --el-button-disabled-border-color: #f9e1e1;
186
+
187
+ &.is-loading {
188
+ --el-text-color-regular: ##df6b6b;
189
+ --el-button-border-color: #ea9c9c;
190
+ --el-button-bg-color: #fcf1f1;
191
+ }
192
+ }
193
+ }
194
+
195
+ &.el-button--success {
196
+ }
197
+
198
+ &.el-button--info {
199
+ }
200
+
201
+ &.el-button--warning {
202
+ }
203
+
204
+ .vel-icon {
205
+ fill: currentColor;
206
+ path {
207
+ fill: currentColor;
208
+ }
209
+ }
210
+
211
+ // sizes & spacing
212
+ &.el-button--default,
213
+ &.el-button--primary,
214
+ &.el-button--danger,
215
+ &.el-button--success,
216
+ &.el-button--warning,
217
+ &.el-button--info {
218
+ // line-height: 1;
219
+ padding: get-ratio(11px) $spacing * 2;
220
+ }
221
+
222
+ &.el-button--large {
223
+ // line-height: 1;
224
+ padding: get-ratio(15px) $spacing * 2;
225
+ }
226
+
227
+ &.el-button--small {
228
+ // line-height: 1;
229
+ padding: get-ratio(5px) $spacing;
230
+ }
231
+
232
+ // shapes
233
+
234
+ &.is-circle,
235
+ &.is-square {
236
+ width: auto;
237
+ & [class*="el-icon"] + span {
238
+ margin-left: 0;
239
+ }
240
+ &.el-button--default,
241
+ &.el-button--primary,
242
+ &.el-button--danger,
243
+ &.el-button--success,
244
+ &.el-button--warning,
245
+ &.el-button--info {
246
+ padding: get-ratio(11px);
247
+ }
248
+
249
+ &.el-button--large {
250
+ padding: get-ratio(15px);
251
+ }
252
+
253
+ &.el-button--small {
254
+ padding: get-ratio(5px);
255
+ }
256
+ }
257
+ // Fix for improper spacing
258
+ .el-icon.is-loading {
259
+ + span:empty {
260
+ margin-left: 0px;
261
+ }
262
+ }
263
+ }
264
+
265
+ .vel-button {
266
+ &[disabled="true"] {
267
+ pointer-events: none !important;
268
+ }
269
+
270
+ &--iconRight {
271
+ .el-icon {
272
+ order: 2;
273
+ }
274
+
275
+ > span {
276
+ order: 1;
277
+ margin: 0 0.5rem 0 0;
278
+ }
279
+ }
280
+
281
+ &--iconOnly1 {
282
+ > span {
283
+ margin: 0;
284
+ }
285
+
286
+ .vel-icon {
287
+ width: 1.5 * $spacing;
288
+ height: 1.5 * $spacing;
289
+ }
290
+
291
+ svg {
292
+ width: 100%;
293
+ height: 100%;
294
+ }
295
+
296
+ &.el-button--small {
297
+ padding: $spacing $spacing * 2;
298
+ }
299
+
300
+ &.el-button--large {
301
+ padding: 2 * $spacing 2.5 * $spacing;
302
+ }
303
+ }
304
+ }
@@ -0,0 +1,12 @@
1
+ @import "element-plus/theme-chalk/el-cascader";
2
+ @import "element-plus/theme-chalk/el-cascader-panel";
3
+ @import "element-plus/theme-chalk/el-popper";
4
+
5
+ .el-cascader-panel {
6
+ font-size: 1rem;
7
+ }
8
+
9
+ .el-cascader-node {
10
+ line-height: get-ratio(40px);
11
+ height: get-ratio(40px);
12
+ }
@@ -0,0 +1,41 @@
1
+ @import "element-plus/theme-chalk/el-checkbox";
2
+ @import "element-plus/theme-chalk/el-checkbox-button";
3
+
4
+ .vel-checkbox,
5
+ .el-checkbox {
6
+ display: flex;
7
+ flex-direction: row;
8
+ align-items: center;
9
+ gap: $spacing * 0.5;
10
+ flex-wrap: wrap;
11
+ align-items: baseline;
12
+
13
+ &__label {
14
+ order: 2;
15
+ }
16
+ &__checkbox {
17
+ order: 1;
18
+ .el-checkbox__input {
19
+ &.is-checked {
20
+ .el-checkbox__inner {
21
+ background-color: black;
22
+ }
23
+ }
24
+ }
25
+ }
26
+ &__error {
27
+ order: 3;
28
+ flex-basis: 100%;
29
+ color: $colorAlert;
30
+ }
31
+ }
32
+
33
+ .vel-checkbox-group,
34
+ .vel-checkbox {
35
+ &--vertical {
36
+ .vel-checkbox-group__wrapper {
37
+ display: flex;
38
+ flex-direction: column;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,24 @@
1
+ .chip {
2
+ border: solid 1px currentColor;
3
+ border-radius: 4px;
4
+ background-color: #f0f9eb;
5
+ padding: get-ratio(2px) get-ratio(10px);
6
+ font-size: get-ratio(12px);
7
+ line-height: get-ratio(18px);
8
+ box-sizing: border-box;
9
+
10
+ &.deactive,
11
+ &--inherited {
12
+ color: #909399 !important;
13
+ border-color: #dedfe0 !important;
14
+ background-color: #f4f4f5 !important;
15
+ }
16
+ }
17
+
18
+ .chip--round {
19
+ display: inline-block;
20
+ text-indent: -100000px;
21
+ width: get-ratio(22px);
22
+ height: get-ratio(22px);
23
+ border-radius: 100%;
24
+ }
@@ -0,0 +1,24 @@
1
+ @import "element-plus/theme-chalk/el-collapse";
2
+ @import "element-plus/theme-chalk/el-collapse-item";
3
+
4
+ .el-collapse-item__header {
5
+ align-items: center;
6
+ --el-collapse-header-font-size: get-ratio(16px);
7
+ .vel-icon {
8
+ vertical-align: middle;
9
+ width: 13px;
10
+ min-width: 13px;
11
+ fill: currentColor;
12
+ margin-right: 0.25rem;
13
+
14
+ svg {
15
+ vertical-align: middle;
16
+ }
17
+ }
18
+ }
19
+
20
+ .el-collapse {
21
+ --el-collapse-header-bg-color: transparent;
22
+ --el-collapse-content-bg-color: transparent;
23
+ --el-collapse-border-color: transparent;
24
+ }
@@ -0,0 +1,52 @@
1
+ @import "element-plus/theme-chalk/el-date-picker";
2
+
3
+ .vel-datepicker {
4
+ // --el-input-height:38px;
5
+
6
+ // &.el-input--large {
7
+ --el-input-height: 46px;
8
+ // }
9
+
10
+ &__error {
11
+ color: $colorAlert;
12
+ }
13
+ }
14
+
15
+ .vel-popper {
16
+ @include breakpoint(max-width $mobileMax) {
17
+ min-width: 280px;
18
+ max-width: 325px;
19
+ width: auto;
20
+ .el-date-range-picker {
21
+ width: 100%;
22
+ .el-picker-panel__body {
23
+ width: 100%;
24
+ min-width: 100%;
25
+ & > div {
26
+ width: auto;
27
+ min-width: auto;
28
+ border: none;
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+
35
+ .vel-date-picker,
36
+ .el-date-picker {
37
+ &.has-sidebar {
38
+ width: auto;
39
+
40
+ .el-picker-panel__body-wrapper {
41
+ display: flex;
42
+ }
43
+ }
44
+ .el-picker-panel__sidebar {
45
+ width: auto;
46
+ position: relative;
47
+ }
48
+ .el-picker-panel__body {
49
+ margin-left: 0px;
50
+ position: relative !important;
51
+ }
52
+ }
@@ -0,0 +1,46 @@
1
+ .vel-footer {
2
+ background-color: $color1;
3
+ padding: $spacing * 3 $spacing * 3 $spacing * 2 $spacing * 3;
4
+ box-sizing: border-box;
5
+ width: 100%;
6
+
7
+ svg {
8
+ // width: 3 * $spacing;
9
+ // max-width: 3 * $spacing;
10
+ // height: 3 * $spacing;
11
+ display: inline-block;
12
+ margin-right: $spacing;
13
+ }
14
+ * {
15
+ font-size: get-ratio(14px);
16
+ line-height: get-ratio(21px);
17
+ }
18
+ }
19
+
20
+ .vel-footer__bottom {
21
+ display: flex;
22
+ flex-wrap: wrap;
23
+ align-items: stretch;
24
+ align-content: stretch;
25
+ flex-basis: 100%;
26
+ justify-content: space-between;
27
+ margin-top: 3.5 * $spacing;
28
+
29
+ > * {
30
+ max-width: 50%;
31
+ flex-basis: 50%;
32
+ }
33
+ }
34
+ .vel-footer__bottom__links {
35
+ display: flex;
36
+ flex-wrap: wrap;
37
+ align-items: self-end;
38
+ flex-basis: 100%;
39
+ }
40
+
41
+ .vel-footer__bottom__end {
42
+ justify-content: end;
43
+ flex-wrap: wrap;
44
+ align-items: self-end;
45
+ display: flex;
46
+ }
@@ -0,0 +1,24 @@
1
+ // @import "element-plus/theme-chalk/el-form";
2
+ .form__group {
3
+ label {
4
+ margin-bottom: $spacing;
5
+ display: inline-block;
6
+ font-weight: 500;
7
+ }
8
+
9
+ &:not(:last-child) {
10
+ margin-bottom: 2.5 * $spacing;
11
+ }
12
+ }
13
+
14
+ .form__group--error {
15
+ .el-select__wrapper,
16
+ .el-select__wrapper:hover,
17
+ .el-input__wrapper,
18
+ .el-input__wrapper:hover {
19
+ box-shadow: 0 0 0 1px $colorAlert inset;
20
+ .el-select__icon {
21
+ color: $colorAlert;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,54 @@
1
+ .vel-header {
2
+ border-bottom: solid get-ratio(1px) $color4;
3
+ background-color: $color0;
4
+ width: 100%;
5
+ box-sizing: border-box;
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ align-items: center;
9
+ align-content: center;
10
+ flex-basis: 100%;
11
+ justify-content: space-between;
12
+ padding: 1.5 * $spacing 3 * $spacing;
13
+
14
+ > * {
15
+ max-width: 50%;
16
+ flex-basis: 50%;
17
+ justify-content: flex-end !important;
18
+ }
19
+
20
+ .icon {
21
+ min-width: $spacing * 2.5;
22
+ max-width: $spacing * 2.5;
23
+ width: $spacing * 2.5;
24
+ height: $spacing * 2.5;
25
+ margin-right: 0.5 * $spacing;
26
+ }
27
+ }
28
+
29
+ .vel-header__list {
30
+ display: flex;
31
+ flex-wrap: wrap;
32
+ align-items: stretch;
33
+ align-content: stretch;
34
+ flex-basis: 100%;
35
+ padding-right: 1.5 * $spacing;
36
+ margin-left: -1.5 * $spacing;
37
+ margin-right: -1.5 * $spacing;
38
+
39
+ > div {
40
+ align-items: center;
41
+ &:not(:last-child) {
42
+ position: relative;
43
+ &::after {
44
+ position: absolute;
45
+ content: "";
46
+ border-right: solid get-ratio(1px) $color4;
47
+ height: 75%;
48
+ transform: translateY(-50%);
49
+ top: 50%;
50
+ right: 0px;
51
+ }
52
+ }
53
+ }
54
+ }