@fishawack/lab-velocity 2.0.0-beta.3 → 2.0.0-beta.30
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.
- package/README.md +441 -37
- package/_Build/vue/components/basic/Button.vue +1 -1
- package/_Build/vue/components/form/Select.vue +2 -2
- package/_Build/vue/components/form/Spinner.vue +5 -0
- package/_Build/vue/components/layout/Alert.vue +5 -5
- package/_Build/vue/{modules/AuthModule/components/VBreadcrumbs.vue → components/layout/Breadcrumbs.vue} +4 -4
- package/_Build/vue/{modules/AuthModule/components → components/layout}/Chips.vue +2 -2
- package/_Build/vue/components/layout/Footer.vue +11 -10
- package/_Build/vue/{modules/AuthModule/components/VFormFooter.vue → components/layout/FormFooter.vue} +13 -7
- package/_Build/vue/{modules/AuthModule/components → components/layout}/FormRole.vue +10 -8
- package/_Build/vue/components/layout/Layout.vue +76 -0
- package/_Build/vue/components/layout/Navigation.vue +77 -0
- package/_Build/vue/{modules/AuthModule/components/VPageHeader.vue → components/layout/PageHeader.vue} +7 -2
- package/_Build/vue/components/layout/SideBar.vue +26 -0
- package/_Build/vue/{modules/AuthModule/components/VTable.vue → components/layout/Table.vue} +32 -16
- package/_Build/vue/{modules/AuthModule/components/VTableSorter.vue → components/layout/TableSorter.vue} +68 -43
- package/_Build/vue/components/layout/pageTitle.vue +1 -1
- package/_Build/vue/components/navigation/MenuItem.vue +7 -2
- package/_Build/vue/components/navigation/MenuItemGroup.vue +7 -2
- package/_Build/vue/modules/AuthModule/js/axios.js +19 -0
- package/_Build/vue/modules/AuthModule/js/router.js +28 -88
- package/_Build/vue/modules/AuthModule/js/store.js +15 -6
- package/_Build/vue/modules/AuthModule/{adminRoutes/PCompanies/Children/partials → routes/PCompanies}/form.vue +50 -18
- package/_Build/vue/modules/AuthModule/routes/PCompanies/resource.js +259 -0
- package/_Build/vue/modules/AuthModule/routes/PTeams/resource.js +308 -0
- package/_Build/vue/modules/AuthModule/{adminRoutes/PUsers/Children/partials → routes/PUsers}/form.vue +30 -18
- package/_Build/vue/modules/AuthModule/routes/PUsers/resource.js +215 -0
- package/_Build/vue/modules/AuthModule/routes/account-exists.vue +2 -2
- package/_Build/vue/modules/AuthModule/routes/change-password.vue +23 -24
- package/_Build/vue/modules/AuthModule/routes/container.vue +2 -11
- package/_Build/vue/modules/AuthModule/routes/expired-reset.vue +4 -4
- package/_Build/vue/modules/AuthModule/routes/expired-verification.vue +9 -8
- package/_Build/vue/modules/AuthModule/routes/force-reset.vue +24 -28
- package/_Build/vue/modules/AuthModule/routes/forgot.vue +4 -4
- package/_Build/vue/modules/AuthModule/routes/login.vue +7 -11
- package/_Build/vue/modules/AuthModule/routes/logincallback.vue +2 -4
- package/_Build/vue/modules/AuthModule/routes/loginsso.vue +7 -9
- package/_Build/vue/modules/AuthModule/routes/logout.vue +1 -3
- package/_Build/vue/modules/AuthModule/routes/logoutheadless.vue +1 -3
- package/_Build/vue/modules/AuthModule/routes/register.vue +19 -21
- package/_Build/vue/modules/AuthModule/routes/reset.vue +14 -13
- package/_Build/vue/modules/AuthModule/routes/success-forgot.vue +8 -7
- package/_Build/vue/modules/AuthModule/routes/success-reset.vue +2 -2
- package/_Build/vue/modules/AuthModule/routes/success-verify.vue +1 -3
- package/_Build/vue/modules/AuthModule/routes/verify.vue +11 -14
- package/_Build/vue/modules/resource/Children/create.vue +70 -0
- package/_Build/vue/modules/resource/Children/edit.vue +92 -0
- package/_Build/vue/modules/resource/Children/index.vue +42 -0
- package/_Build/vue/modules/resource/Children/partials/form.vue +57 -0
- package/_Build/vue/modules/resource/Children/show.vue +133 -0
- package/_Build/vue/modules/resource/index.js +486 -0
- package/_Build/vue/modules/resource/parent.vue +63 -0
- package/_base.scss +0 -1
- package/_defaults.scss +2 -13
- package/_variables.scss +9 -4
- package/components/_alert.scss +5 -0
- package/components/_auth.scss +163 -0
- package/components/_basic.scss +55 -0
- package/components/_breadcrumbs.scss +39 -0
- package/components/_button.scss +304 -0
- package/components/_cascader.scss +12 -0
- package/components/_checkbox.scss +41 -0
- package/components/_chip.scss +24 -0
- package/components/_collapse.scss +24 -0
- package/components/_datepicker.scss +52 -0
- package/components/_descriptions.scss +2 -0
- package/components/_footer.scss +47 -0
- package/components/_form.scss +24 -0
- package/components/_header.scss +30 -0
- package/components/_icon.scss +25 -0
- package/components/_inputNumber.scss +22 -0
- package/components/_layout.scss +56 -0
- package/components/_link.scss +44 -0
- package/components/_loader.scss +43 -0
- package/components/_menu.scss +112 -0
- package/components/_modal.scss +24 -0
- package/components/_pageTitle.scss +8 -0
- package/components/_permissionLegend.scss +18 -0
- package/components/_select.scss +29 -0
- package/components/_sidebar.scss +41 -0
- package/components/_switch.scss +14 -0
- package/components/_table.scss +20 -0
- package/components/_tooltip.scss +4 -0
- package/components/_typography.scss +162 -0
- package/components/_upload.scss +15 -0
- package/components/_wysiwyg.scss +7 -0
- package/components/_wysiwyg2.scss +142 -0
- package/index.js +9 -1
- package/package.json +4 -2
- package/vendor.scss +0 -1
- package/_Build/vue/components/layout/sideBar.vue +0 -25
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/Upload/upload.vue +0 -251
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/create.vue +0 -62
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/edit.vue +0 -98
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/index.vue +0 -90
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/show.vue +0 -262
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/parent.vue +0 -36
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/create.vue +0 -112
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/edit.vue +0 -103
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/index.vue +0 -112
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/show.vue +0 -120
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/parent.vue +0 -36
- /package/_Build/vue/{modules/AuthModule/components → components/layout}/AuthModal.vue +0 -0
- /package/_Build/vue/{modules/AuthModule/components → components/layout}/Chip.vue +0 -0
- /package/_Build/vue/{modules/AuthModule/components/VPasswordValidation.vue → components/layout/PasswordValidation.vue} +0 -0
- /package/_Build/vue/{modules/AuthModule/components/VRoleLegend.vue → components/layout/RoleLegend.vue} +0 -0
package/_defaults.scss
CHANGED
|
@@ -5,16 +5,5 @@
|
|
|
5
5
|
$colors: variables.dynamic("color", module-variables("variables"));
|
|
6
6
|
|
|
7
7
|
// Override lab-ui defaults here, e.g $button: $color6;
|
|
8
|
-
$
|
|
9
|
-
|
|
10
|
-
margin-left: 0;
|
|
11
|
-
padding: 0px 5 * $spacing;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
body {
|
|
15
|
-
font-family: $primaryFont, sans-serif;
|
|
16
|
-
font-size: get-ratio(16px);
|
|
17
|
-
line-height: 1.5;
|
|
18
|
-
color: $color1;
|
|
19
|
-
background-color: $color3;
|
|
20
|
-
}
|
|
8
|
+
$fontColor: $color1;
|
|
9
|
+
$fontFamily: $primaryFont, sans-serif;
|
package/_variables.scss
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@import "@fishawack/lab-ui/_variables.scss";
|
|
2
|
-
// Set global variables here, e.g $color6: red;
|
|
3
|
-
@import "./modules/AuthVariables";
|
|
4
2
|
|
|
3
|
+
// Set global variables here, e.g $color6: red;
|
|
5
4
|
$primaryFont: "Inter";
|
|
6
5
|
$primaryFontThin: "Inter-Thin";
|
|
7
6
|
$primaryFontExtraLight: "Inter-ExtraLight";
|
|
@@ -10,11 +9,10 @@ $primaryFontRegular: "Inter-Regular";
|
|
|
10
9
|
$primaryFontMedium: "Inter-Medium";
|
|
11
10
|
$primaryFontSemiBold: "Inter-SemiBold";
|
|
12
11
|
$primaryFontBold: "Inter-Bold";
|
|
13
|
-
|
|
14
12
|
$secondaryFont: "NotoSerif";
|
|
15
13
|
$secondaryFontMedium: "NotoSerif-Medium";
|
|
16
|
-
// Colors
|
|
17
14
|
|
|
15
|
+
// Colors
|
|
18
16
|
$color1: #2d2d2d;
|
|
19
17
|
$color2: #333333;
|
|
20
18
|
$color3: #f7f7f7;
|
|
@@ -29,3 +27,10 @@ $color11: #8c8c8c; //Used
|
|
|
29
27
|
$color12: #5c5c5c;
|
|
30
28
|
$color13: #3c976e;
|
|
31
29
|
$colorAlert: #d53a3a;
|
|
30
|
+
|
|
31
|
+
// Spacing
|
|
32
|
+
$spacing: 8px;
|
|
33
|
+
|
|
34
|
+
// Auth
|
|
35
|
+
$am-spacing: 8px;
|
|
36
|
+
$am-highlight: #3c976e;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
.AuthModule {
|
|
2
|
+
position: fixed;
|
|
3
|
+
background-color: black;
|
|
4
|
+
height: 100vh;
|
|
5
|
+
width: 100%;
|
|
6
|
+
background: url("../media/content/images/hero-auth-background-desktop.jpg")
|
|
7
|
+
center top no-repeat;
|
|
8
|
+
background-size: cover;
|
|
9
|
+
z-index: 10;
|
|
10
|
+
|
|
11
|
+
.logo {
|
|
12
|
+
width: 13.3rem;
|
|
13
|
+
z-index: 99;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@include breakpoint(max-width $tabletMax) {
|
|
17
|
+
background: url("../media/content/images/hero-auth-background-tablet.jpg")
|
|
18
|
+
center top no-repeat;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@include breakpoint(max-width $mobileMax) {
|
|
22
|
+
background: url("../media/content/images/hero-auth-background-mobile.jpg")
|
|
23
|
+
center top no-repeat;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.AuthModule__form {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 50%;
|
|
30
|
+
left: 50%;
|
|
31
|
+
transform: translate(-50%, -50%);
|
|
32
|
+
background-color: white;
|
|
33
|
+
min-width: 320px;
|
|
34
|
+
width: 460px;
|
|
35
|
+
padding: 48px 40px 40px;
|
|
36
|
+
z-index: 1;
|
|
37
|
+
|
|
38
|
+
@include breakpoint(max-width $mobileMax) {
|
|
39
|
+
top: 84px;
|
|
40
|
+
transform: translate(-50%, 0);
|
|
41
|
+
padding: 24px;
|
|
42
|
+
width: calc(100% - 80px);
|
|
43
|
+
|
|
44
|
+
h2 .h2 {
|
|
45
|
+
font-size: 24px;
|
|
46
|
+
line-height: 32px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
h2,
|
|
51
|
+
.h2 {
|
|
52
|
+
line-height: 50px;
|
|
53
|
+
font-size: 48px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.h2--small {
|
|
57
|
+
font-size: 36px;
|
|
58
|
+
line-height: 44px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
p {
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
line-height: 20px;
|
|
64
|
+
margin-bottom: 24px;
|
|
65
|
+
letter-spacing: -0.1px;
|
|
66
|
+
|
|
67
|
+
&.disclaimer {
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
color: rgba($color1, 0.5);
|
|
70
|
+
margin: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
a {
|
|
74
|
+
color: $color1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.form__error {
|
|
78
|
+
font-size: 12px;
|
|
79
|
+
line-height: 18px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.vel-button {
|
|
84
|
+
max-width: 200px;
|
|
85
|
+
width: 200px;
|
|
86
|
+
padding: 9px 23.5px;
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
|
|
89
|
+
@include breakpoint(max-width $mobileMax) {
|
|
90
|
+
max-width: unset;
|
|
91
|
+
width: 100%;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.form {
|
|
96
|
+
&.error {
|
|
97
|
+
.form__input {
|
|
98
|
+
.el-input__wrapper {
|
|
99
|
+
border: 0.4px solid red;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.form__input.error {
|
|
104
|
+
border: none;
|
|
105
|
+
|
|
106
|
+
.el-input__wrapper {
|
|
107
|
+
border: 0.4px solid red;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.vel-basic__label {
|
|
114
|
+
font-size: 12px;
|
|
115
|
+
color: rgba($color1, 0.5);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.vel-basic__textbox {
|
|
119
|
+
--el-border-color: #cfd8dd;
|
|
120
|
+
--el-input-text-color: #666666;
|
|
121
|
+
--el-input-focus-border-color: #cfd8dd;
|
|
122
|
+
--el-input-hover-border-color: #cfd8dd;
|
|
123
|
+
font-size: 14px;
|
|
124
|
+
|
|
125
|
+
.el-input__inner {
|
|
126
|
+
--el-input-inner-height: 38px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.el-button--primary {
|
|
131
|
+
--el-button-text-color: #ffffff;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
input,
|
|
135
|
+
input:focus {
|
|
136
|
+
@extend .el-input__inner;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.AuthModule__logo__container {
|
|
141
|
+
position: absolute;
|
|
142
|
+
top: 48px;
|
|
143
|
+
left: 0%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.AuthModule__logo {
|
|
147
|
+
position: relative;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.AuthModule__Content {
|
|
151
|
+
position: absolute;
|
|
152
|
+
z-index: 1;
|
|
153
|
+
top: 50%;
|
|
154
|
+
left: 50%;
|
|
155
|
+
transform: translate(-50%, -50%);
|
|
156
|
+
max-width: 1024px;
|
|
157
|
+
width: 100%;
|
|
158
|
+
height: 100%;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.color-highlight {
|
|
162
|
+
color: green;
|
|
163
|
+
}
|
|
@@ -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
|
+
}
|