@fishawack/lab-velocity 2.0.0-beta.3 → 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,25 @@
1
+ // @import "@fishawack/lab-ui/_icon.scss";
2
+
3
+ .vel-icon {
4
+ .vel-link &,
5
+ .vel-button &,
6
+ .vel-basic & {
7
+ width: get-ratio(16px);
8
+ min-width: get-ratio(16px);
9
+ max-height: get-ratio(16px);
10
+ padding-bottom: 0px;
11
+ line-height: 0px;
12
+ }
13
+
14
+ .vel-button.el-button--small & {
15
+ width: get-ratio(12px);
16
+ min-width: get-ratio(12px);
17
+ max-height: get-ratio(12px);
18
+ }
19
+ .vel-side-bar__button & {
20
+ width: get-ratio(20px);
21
+ min-width: get-ratio(20px);
22
+ padding-bottom: 0px;
23
+ line-height: 0px;
24
+ }
25
+ }
File without changes
@@ -0,0 +1,22 @@
1
+ @import "element-plus/theme-chalk/el-input-number";
2
+
3
+ .vel-input-number {
4
+ display: block;
5
+ font-size: 1rem;
6
+
7
+ .el-input__wrapper {
8
+ // padding: .5 * $spacing $spacing;
9
+ }
10
+
11
+ .el-input__inner {
12
+ --el-input-inner-height: 38px;
13
+ }
14
+ .el-input-group__append,
15
+ .el-input-group__prepend {
16
+ padding: 0 2 * $spacing;
17
+ }
18
+
19
+ &__error {
20
+ color: $colorAlert;
21
+ }
22
+ }
@@ -0,0 +1,44 @@
1
+ @import "element-plus/theme-chalk/el-link";
2
+
3
+ .vel-link.el-link--default {
4
+ &:hover {
5
+ color: currentColor;
6
+ &:after {
7
+ border-color: currentColor;
8
+ }
9
+ }
10
+ }
11
+ .vel-link--underline.vel-link {
12
+ &:after {
13
+ border-bottom: 1px solid currentColor;
14
+ bottom: 0;
15
+ content: "";
16
+ height: 0;
17
+ left: 0;
18
+ position: absolute;
19
+ right: 0;
20
+ border-color: currentColor;
21
+ }
22
+ &:hover {
23
+ color: currentColor;
24
+ &:after {
25
+ border-color: currentColor;
26
+ }
27
+ }
28
+ }
29
+
30
+ .vel-link--default {
31
+ font-size: get-ratio(16px);
32
+ }
33
+
34
+ .vel-link--large {
35
+ font-size: get-ratio(18px);
36
+ }
37
+
38
+ .vel-link--small {
39
+ font-size: get-ratio(14px);
40
+ }
41
+
42
+ .vel-link--xsmall {
43
+ font-size: get-ratio(12px);
44
+ }
@@ -0,0 +1,43 @@
1
+ .vel-loader {
2
+ position: relative;
3
+ display: block;
4
+ width: 6rem;
5
+ height: 6rem;
6
+ border-radius: 50%;
7
+ background-color: inherit;
8
+
9
+ svg {
10
+ .circle {
11
+ animation: 2s spinning cubic-bezier(0.41, 0.26, 0.2, 0.62) infinite;
12
+ transform-origin: center;
13
+ }
14
+ }
15
+ }
16
+
17
+ .vel-loader--l {
18
+ width: 10rem;
19
+ height: 10rem;
20
+
21
+ &::before {
22
+ border-width: 0.6rem;
23
+ }
24
+
25
+ @include breakpoint(max-width $mobileMax) {
26
+ width: 6rem;
27
+ height: 6rem;
28
+
29
+ &::before {
30
+ border-width: 0.4rem;
31
+ }
32
+ }
33
+ }
34
+
35
+ @keyframes spinning {
36
+ from {
37
+ transform: rotate(0);
38
+ }
39
+
40
+ to {
41
+ transform: rotate(2turn);
42
+ }
43
+ }
@@ -0,0 +1,112 @@
1
+ @import "element-plus/theme-chalk/el-menu";
2
+ @import "element-plus/theme-chalk/el-menu-item";
3
+ @import "element-plus/theme-chalk/el-sub-menu";
4
+
5
+ ul.vel-menu {
6
+ li {
7
+ --el-menu-level-padding: 0;
8
+ padding-right: 0px;
9
+ }
10
+ .el-sub-menu__title,
11
+ a,
12
+ .el-menu-item > * {
13
+ font-size: get-ratio(18px);
14
+ border-left: solid 0.5 * $spacing transparent;
15
+ padding: 0 2.5 * $spacing;
16
+ width: 100%;
17
+ display: flex;
18
+ align-items: center;
19
+ overflow: hidden;
20
+ .vel-icon {
21
+ vertical-align: middle;
22
+ width: 2.5 * $spacing;
23
+ min-width: 2.5 * $spacing;
24
+ fill: currentColor;
25
+ margin-right: 0.5 * $spacing;
26
+ * {
27
+ vertical-align: middle;
28
+ }
29
+ }
30
+ }
31
+
32
+ .el-sub-menu__title {
33
+ padding: 0 2.5 * $spacing !important;
34
+ }
35
+
36
+ a {
37
+ height: 100%;
38
+ box-sizing: border-box;
39
+ border-left: solid 0.5 * $spacing $color8;
40
+ .vel-icon {
41
+ width: 2.5 * $spacing;
42
+ max-width: 2.5 * $spacing;
43
+ min-width: 2.5 * $spacing;
44
+ padding-bottom: 0px;
45
+ }
46
+ &.active {
47
+ border-left-color: $color1;
48
+ }
49
+ }
50
+
51
+ span,
52
+ .el-sub-menu__icon-arrow {
53
+ opacity: 0;
54
+ transition: 0.2s ease-in-out opacity;
55
+ margin-left: 0.5 * $spacing;
56
+ }
57
+
58
+ .active & {
59
+ span,
60
+ .el-sub-menu__icon-arrow {
61
+ opacity: 1;
62
+ }
63
+ }
64
+
65
+ .el-icon {
66
+ flex-shrink: 1;
67
+ width: auto;
68
+ }
69
+ }
70
+
71
+ .vel-sub-menu {
72
+ --el-menu-level-padding: 0;
73
+ .el-menu-item,
74
+ .vel-sub-menu {
75
+ padding-left: 5 * $spacing !important;
76
+ }
77
+ .el-sub-menu__title {
78
+ height: auto;
79
+ line-height: get-ratio(48px);
80
+ }
81
+ }
82
+
83
+ .vel-menu-item {
84
+ height: auto;
85
+ line-height: get-ratio(48px);
86
+ * {
87
+ vertical-align: middle;
88
+ }
89
+ }
90
+
91
+ .vel-menu {
92
+ display: flex;
93
+ flex-direction: column;
94
+ height: 100%;
95
+
96
+ li:last-child {
97
+ margin-top: auto;
98
+ margin-bottom: 0px;
99
+ }
100
+
101
+ .el-sub-menu {
102
+ .vel-menu-item {
103
+ a.active {
104
+ border-left-color: transparent;
105
+ }
106
+ }
107
+ .vel-menu-item a {
108
+ padding-left: 0px;
109
+ padding-right: 0px;
110
+ }
111
+ }
112
+ }
@@ -0,0 +1,8 @@
1
+ .vel-page-title {
2
+ padding: 3 * $spacing 6 * $spacing;
3
+ background-color: $color0;
4
+ border-bottom: 0.5 * $spacing solid;
5
+ border-image: linear-gradient(90deg, #ff558f 0%, #856df6 100%) 1;
6
+ box-shadow: 0.5 * $spacing 0.5 * $spacing $spacing 0px #00000040;
7
+ margin-bottom: 2.5 * $spacing;
8
+ }
@@ -0,0 +1,18 @@
1
+ .permission-legend {
2
+ background-color: #f2f2f2;
3
+ border: 1px solid #e6e6e6;
4
+ padding: $spacing * 2;
5
+ }
6
+
7
+ .permission-legend__list {
8
+ list-style: none;
9
+ padding-left: 0;
10
+
11
+ & > li {
12
+ margin-bottom: $spacing;
13
+ }
14
+ }
15
+
16
+ .permission-legend__description {
17
+ padding-left: $spacing;
18
+ }
@@ -0,0 +1,29 @@
1
+ @import "element-plus/theme-chalk/el-tag";
2
+ @import "element-plus/theme-chalk/el-option";
3
+ @import "element-plus/theme-chalk/el-option-group";
4
+ @import "element-plus/theme-chalk/el-scrollbar";
5
+ @import "element-plus/theme-chalk/el-popper";
6
+ @import "element-plus/theme-chalk/el-select";
7
+
8
+ .vel-select {
9
+ .el-select__wrapper {
10
+ font-size: get-ratio(16px);
11
+ padding: get-ratio(17px) get-ratio(16px);
12
+ }
13
+ .el-select__input,
14
+ .el-select__selected-item {
15
+ line-height: get-ratio(16px);
16
+ height: get-ratio(16px);
17
+ }
18
+ .el-tag--default {
19
+ font-size: get-ratio(12px);
20
+ line-height: get-ratio(12px);
21
+ height: get-ratio(18px);
22
+ }
23
+ .el-select__selection.is-near {
24
+ margin-left: 0px;
25
+ }
26
+ &__error {
27
+ color: $colorAlert;
28
+ }
29
+ }
@@ -0,0 +1,56 @@
1
+ .vel-side-bar {
2
+ flex-basis: $spacing * 7.5;
3
+ display: flex;
4
+ flex-direction: column;
5
+ box-shadow: 0px $spacing * 0.5 $spacing * 0.5 0px hsla(0, 0%, 0%, 0.251);
6
+ min-height: 10vh;
7
+ max-height: 100vh;
8
+ overflow: hidden;
9
+ transition: flex-basis 0.3s ease-in-out;
10
+ background-color: $color0;
11
+
12
+ position: sticky;
13
+ top: 0vh;
14
+ padding-top: 2 * $spacing;
15
+ min-width: get-ratio(64px);
16
+ flex-basis: get-ratio(64px);
17
+
18
+ > div {
19
+ &:first-child {
20
+ flex-grow: 0.8;
21
+ }
22
+ &:last-child {
23
+ margin-bottom: 5.5vh;
24
+ }
25
+ }
26
+
27
+ &.active {
28
+ flex-basis: 31.5 * $spacing;
29
+ min-width: 31.5 * $spacing;
30
+
31
+ .vel-side-bar__button {
32
+ transform: rotateY(180deg);
33
+ }
34
+ }
35
+ }
36
+
37
+ .vel-side-bar__button {
38
+ outline: none;
39
+ background-color: transparent;
40
+ border: none;
41
+ cursor: pointer;
42
+ &:focus {
43
+ outline: 1px solid;
44
+ }
45
+ }
46
+
47
+ .vel-side-bar__bottom {
48
+ display: flex;
49
+ justify-content: flex-end;
50
+ border-top: solid 1px #e6e6e6;
51
+ padding: $spacing $spacing * 1.5;
52
+ }
53
+
54
+ main {
55
+ overflow: hidden;
56
+ }
@@ -0,0 +1,14 @@
1
+ @import "element-plus/theme-chalk/el-switch";
2
+
3
+ .vel-switch {
4
+ &__error {
5
+ color: $colorAlert;
6
+ }
7
+ .el-switch {
8
+ --el-switch-on-color: #{$color1};
9
+ height: auto;
10
+ }
11
+ .vel-switch__label {
12
+ margin-right: 0.5rem;
13
+ }
14
+ }
@@ -0,0 +1,20 @@
1
+ @import "element-plus/theme-chalk/el-table-column";
2
+ @import "element-plus/theme-chalk/el-table";
3
+ @import "element-plus/theme-chalk/el-pagination";
4
+
5
+ .el-table {
6
+ padding: get-ratio(8px);
7
+ thead tr .el-table__cell {
8
+ background-color: #f7f7f7;
9
+ }
10
+ .el-table__cell {
11
+ padding: get-ratio(8px) get-ratio(12px);
12
+ }
13
+ }
14
+
15
+ .table-wrapper {
16
+ // display: flex;
17
+ display: flex;
18
+ width: 100%;
19
+ max-width: 100%;
20
+ }
@@ -0,0 +1,4 @@
1
+ @import "element-plus/theme-chalk/el-tooltip";
2
+
3
+ .vel-tooltip {
4
+ }
@@ -0,0 +1,162 @@
1
+ @import "@fishawack/lab-ui/_typography.scss";
2
+ /* Primary font
3
+ -------------------------------------------------- */
4
+ @font-face {
5
+ font-family: $primaryFont;
6
+ font-weight: 400;
7
+ font-style: normal;
8
+
9
+ src:
10
+ resolve($primaryFontRegular + ".woff2") format("woff2"),
11
+ resolve($primaryFontRegular + ".woff") format("woff");
12
+ }
13
+
14
+ @font-face {
15
+ font-family: $primaryFont;
16
+ font-weight: 100;
17
+ font-style: normal;
18
+
19
+ src:
20
+ resolve($primaryFontThin + ".woff2") format("woff2"),
21
+ resolve($primaryFontThin + ".woff") format("woff");
22
+ }
23
+
24
+ @font-face {
25
+ font-family: $primaryFont;
26
+ font-weight: 200;
27
+ font-style: normal;
28
+
29
+ src:
30
+ resolve($primaryFontExtraLight + ".woff2") format("woff2"),
31
+ resolve($primaryFontExtraLight + ".woff") format("woff");
32
+ }
33
+
34
+ @font-face {
35
+ font-family: $primaryFont;
36
+ font-weight: 300;
37
+ font-style: normal;
38
+
39
+ src:
40
+ resolve($primaryFontLight + ".woff2") format("woff2"),
41
+ resolve($primaryFontLight + ".woff") format("woff");
42
+ }
43
+
44
+ @font-face {
45
+ font-family: $primaryFont;
46
+ font-weight: 500;
47
+ font-style: normal;
48
+
49
+ src:
50
+ resolve($primaryFontMedium + ".woff2") format("woff2"),
51
+ resolve($primaryFontMedium + ".woff") format("woff");
52
+ }
53
+
54
+ @font-face {
55
+ font-family: $primaryFont;
56
+ font-weight: 600;
57
+ font-style: normal;
58
+
59
+ src:
60
+ resolve($primaryFontSemiBold + ".woff2") format("woff2"),
61
+ resolve($primaryFontSemiBold + ".woff") format("woff");
62
+ }
63
+
64
+ @font-face {
65
+ font-family: $primaryFont;
66
+ font-weight: 700;
67
+ font-style: normal;
68
+
69
+ src:
70
+ resolve($primaryFontBold + ".woff2") format("woff2"),
71
+ resolve($primaryFontBold + ".woff2") format("woff2");
72
+ }
73
+
74
+ @font-face {
75
+ font-family: $secondaryFont;
76
+ font-weight: 500;
77
+ font-style: normal;
78
+
79
+ src: resolve($secondaryFontMedium + ".ttf") format("truetype");
80
+ }
81
+
82
+ h1,
83
+ .h1 {
84
+ font-size: get-ratio(48px);
85
+ line-height: get-ratio(56px);
86
+ font-family: $primaryFont;
87
+ }
88
+
89
+ h2,
90
+ .h2 {
91
+ font-size: get-ratio(36px);
92
+ line-height: get-ratio(48px);
93
+ font-family: $secondaryFont;
94
+ }
95
+
96
+ h3,
97
+ .h3 {
98
+ font-size: get-ratio(32px);
99
+ line-height: get-ratio(42px);
100
+ font-family: $primaryFont;
101
+ }
102
+
103
+ h4,
104
+ .h4 {
105
+ font-size: get-ratio(24px);
106
+ line-height: get-ratio(32px);
107
+ font-family: $primaryFont;
108
+ }
109
+
110
+ h5,
111
+ .h5 {
112
+ font-size: get-ratio(20px);
113
+ line-height: get-ratio(24px);
114
+ font-weight: 700;
115
+ font-family: $primaryFont;
116
+ }
117
+ h1,
118
+ .h1,
119
+ h2,
120
+ .h2,
121
+ h3,
122
+ .h3,
123
+ h4,
124
+ .h4,
125
+ h5,
126
+ .h5 {
127
+ font-weight: 500;
128
+ }
129
+
130
+ // may be project specific
131
+
132
+ .font-secondary {
133
+ font-family: $secondaryFont;
134
+ }
135
+
136
+ .font-primary {
137
+ font-family: $primaryFont;
138
+ }
139
+
140
+ .text-10 {
141
+ font-size: get-ratio(10px);
142
+ line-height: get-ratio(16px);
143
+ }
144
+ .text-12 {
145
+ font-size: get-ratio(12px);
146
+ line-height: get-ratio(18px);
147
+ }
148
+ .text-14 {
149
+ font-size: get-ratio(14px);
150
+ line-height: get-ratio(20px);
151
+ }
152
+ .font-16 {
153
+ font-size: get-ratio(16px);
154
+ line-height: get-ratio(24px);
155
+ }
156
+
157
+ .text-60 {
158
+ font-size: get-ratio(60px);
159
+ line-height: get-ratio(68px);
160
+ font-weight: 500;
161
+ font-family: $primaryFont;
162
+ }
@@ -0,0 +1,15 @@
1
+ @import "element-plus/theme-chalk/el-upload";
2
+
3
+ .vel-upload {
4
+ .el-upload__tip {
5
+ color: $color11;
6
+ }
7
+ &.form__group--error {
8
+ .el-upload__tip {
9
+ color: $colorAlert;
10
+ }
11
+ }
12
+ &__error {
13
+ color: $colorAlert;
14
+ }
15
+ }
@@ -0,0 +1,7 @@
1
+ @import "quill/dist/quill.snow";
2
+ @import "quill/dist/quill.core";
3
+
4
+ .ql-container,
5
+ .ql-toolbar {
6
+ background-color: $color0;
7
+ }