mediacube-ui-v2 0.0.44 → 0.0.46
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 +4 -0
- package/README.template.md +4 -0
- package/dist/assets/fonts/inter/Inter-Bold.woff +0 -0
- package/dist/assets/fonts/inter/Inter-Bold.woff2 +0 -0
- package/dist/assets/fonts/inter/Inter-Italic.woff +0 -0
- package/dist/assets/fonts/inter/Inter-Italic.woff2 +0 -0
- package/dist/assets/fonts/inter/Inter-Medium.woff +0 -0
- package/dist/assets/fonts/inter/Inter-Medium.woff2 +0 -0
- package/dist/assets/fonts/inter/Inter-Regular.woff +0 -0
- package/dist/assets/fonts/inter/Inter-Regular.woff2 +0 -0
- package/dist/assets/fonts/inter/Inter-SemiBold.woff +0 -0
- package/dist/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
- package/dist/assets/fonts/inter/inter.css +44 -0
- package/dist/assets/styles/functions.scss +187 -0
- package/dist/assets/styles/main.scss +5 -0
- package/dist/assets/styles/mixins.scss +664 -0
- package/dist/assets/styles/spacing.scss +33 -0
- package/dist/assets/styles/table.scss +12 -0
- package/dist/assets/styles/toast.scss +62 -0
- package/dist/assets/styles/tooltip.scss +123 -0
- package/dist/assets/tokens/animations.scss +57 -0
- package/dist/assets/tokens/border-radius.scss +23 -0
- package/dist/assets/tokens/box-shadows.scss +22 -0
- package/dist/assets/tokens/colors.scss +81 -0
- package/dist/assets/tokens/durations.scss +13 -0
- package/dist/assets/tokens/easings.scss +6 -0
- package/dist/assets/tokens/font-families.scss +8 -0
- package/dist/assets/tokens/font-sizes.scss +23 -0
- package/dist/assets/tokens/font-weights.scss +16 -0
- package/dist/assets/tokens/gradients.scss +18 -0
- package/dist/assets/tokens/json/animations.json +6 -0
- package/dist/assets/tokens/json/border-radius.json +24 -0
- package/dist/assets/tokens/json/box-shadows.json +24 -0
- package/dist/assets/tokens/json/colors.json +71 -0
- package/dist/assets/tokens/json/durations.json +10 -0
- package/dist/assets/tokens/json/easings.json +3 -0
- package/dist/assets/tokens/json/font-families.json +4 -0
- package/dist/assets/tokens/json/font-sizes.json +18 -0
- package/dist/assets/tokens/json/font-weights.json +12 -0
- package/dist/assets/tokens/json/gradients.json +13 -0
- package/dist/assets/tokens/json/index.d.ts +19 -0
- package/dist/assets/tokens/json/index.d.ts.map +1 -0
- package/dist/assets/tokens/json/index.js +18 -0
- package/dist/assets/tokens/json/index.ts +37 -0
- package/dist/assets/tokens/json/letter-spacings.json +4 -0
- package/dist/assets/tokens/json/line-heights.json +18 -0
- package/dist/assets/tokens/json/media-queries.json +26 -0
- package/dist/assets/tokens/json/opacities.json +5 -0
- package/dist/assets/tokens/json/sizes.json +42 -0
- package/dist/assets/tokens/json/spacings.json +34 -0
- package/dist/assets/tokens/json/z-indexes.json +12 -0
- package/dist/assets/tokens/letter-spacings.scss +6 -0
- package/dist/assets/tokens/line-heights.scss +22 -0
- package/dist/assets/tokens/media-queries.scss +32 -0
- package/dist/assets/tokens/opacities.scss +8 -0
- package/dist/assets/tokens/sizes.scss +47 -0
- package/dist/assets/tokens/spacings.scss +38 -0
- package/dist/assets/tokens/z-indexes.scss +14 -0
- package/dist/assets/variables.scss +18 -0
- package/dist/mediacube-ui-v2.js +1 -1
- package/dist/mediacube-ui-v2.umd.cjs +1 -1
- package/dist/npm_preview.jpg +0 -0
- package/dist/style.css +1 -1
- package/dist/types/main.d.ts +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,664 @@
|
|
|
1
|
+
/* GLOBAL MIXINS
|
|
2
|
+
--------------------------------------------- */
|
|
3
|
+
|
|
4
|
+
/* AUTO SCALING FOR TYPE WITH MIN/MAX SIZES
|
|
5
|
+
|
|
6
|
+
@param {Number} $responsive - Viewport-based size
|
|
7
|
+
@param {Number} $min - Minimum font size (px)
|
|
8
|
+
@param {Number} $max - Maximum font size (px) (optional)
|
|
9
|
+
|
|
10
|
+
@param {Number} $fallback - Fallback for viewport-based units (optional)
|
|
11
|
+
|
|
12
|
+
@example SCSS - 5vw size, 35px min & 150px max size + 50px fallback:
|
|
13
|
+
|
|
14
|
+
@include responsive-font(5vw, 35px, 150px, 50px);
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
@use 'sass:list' as *;
|
|
18
|
+
@use 'sass:color' as sasscolor;
|
|
19
|
+
@use '../tokens/border-radius' as *;
|
|
20
|
+
@use '../tokens/colors' as *;
|
|
21
|
+
@use '../tokens/font-sizes' as *;
|
|
22
|
+
@use '../tokens/line-heights' as *;
|
|
23
|
+
@use '../tokens/spacings' as *;
|
|
24
|
+
@use '../tokens/font-weights' as *;
|
|
25
|
+
@use '../styles/functions' as *;
|
|
26
|
+
|
|
27
|
+
@mixin size($width, $height: $width) {
|
|
28
|
+
height: $height;
|
|
29
|
+
width: $width;
|
|
30
|
+
}
|
|
31
|
+
@function _unpack-shorthand($shorthand) {
|
|
32
|
+
@if length($shorthand) == 1 {
|
|
33
|
+
@return nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1);
|
|
34
|
+
} @else if length($shorthand) == 2 {
|
|
35
|
+
@return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 1) nth($shorthand, 2);
|
|
36
|
+
} @else if length($shorthand) == 3 {
|
|
37
|
+
@return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 3) nth($shorthand, 2);
|
|
38
|
+
} @else {
|
|
39
|
+
@return $shorthand;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin position($position, $box-edge-values) {
|
|
44
|
+
position: $position;
|
|
45
|
+
$box-edge-values-unpacked: _unpack-shorthand($box-edge-values);
|
|
46
|
+
top: nth($box-edge-values-unpacked, 1);
|
|
47
|
+
inset-inline-end: nth($box-edge-values-unpacked, 2);
|
|
48
|
+
bottom: nth($box-edge-values-unpacked, 3);
|
|
49
|
+
inset-inline-start: nth($box-edge-values-unpacked, 4);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@mixin ellipsis($width: 100%, $display: inline-block) {
|
|
53
|
+
display: $display;
|
|
54
|
+
max-width: $width;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
word-wrap: normal;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin responsive-font($responsive, $min, $max: false, $fallback: false) {
|
|
62
|
+
$responsive-unitless: calc(#{$responsive} / (#{$responsive} - #{$responsive} + 1));
|
|
63
|
+
$dimension: if(unit($responsive) == 'vh', 'height', 'width');
|
|
64
|
+
$min-breakpoint: calc(#{$min} / #{$responsive}-unitless * 100);
|
|
65
|
+
|
|
66
|
+
@media (max-#{$dimension}: #{$min-breakpoint}) {
|
|
67
|
+
font-size: $min;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@if $max {
|
|
71
|
+
$max-breakpoint: calc(#{$max} / #{$responsive-unitless} * 100);
|
|
72
|
+
|
|
73
|
+
@media (min-#{$dimension}: #{$max-breakpoint}) {
|
|
74
|
+
font-size: $max;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@if $fallback {
|
|
79
|
+
font-size: $fallback;
|
|
80
|
+
} @else {
|
|
81
|
+
font-size: $responsive;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Reset
|
|
86
|
+
@mixin reset {
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
padding: 0;
|
|
89
|
+
margin: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/// To be used on flex items. Resolves some common layout issues, such as
|
|
93
|
+
/// text truncation not respecting padding or breaking out of container.
|
|
94
|
+
/// https://css-tricks.com/flexbox-truncated-text/
|
|
95
|
+
@mixin layout-flex-fix {
|
|
96
|
+
min-width: 0;
|
|
97
|
+
max-width: 100%;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@mixin align($vertical: true, $horizontal: false, $position: relative) {
|
|
101
|
+
@if $position {
|
|
102
|
+
position: $position;
|
|
103
|
+
}
|
|
104
|
+
@if $vertical {
|
|
105
|
+
top: 50%;
|
|
106
|
+
}
|
|
107
|
+
@if $horizontal {
|
|
108
|
+
left: 50%;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@if $vertical and $horizontal {
|
|
112
|
+
transform: translateX(-50%) translateY(-50%);
|
|
113
|
+
} @else if $vertical {
|
|
114
|
+
transform: translateY(-50%);
|
|
115
|
+
} @else {
|
|
116
|
+
transform: translateX(-50%);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@mixin hardware($backface: true, $perspective: 1000) {
|
|
121
|
+
@if $backface {
|
|
122
|
+
backface-visibility: hidden;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
perspective: $perspective;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@mixin pseudo($display: block, $pos: absolute, $content: '') {
|
|
129
|
+
content: $content;
|
|
130
|
+
display: $display;
|
|
131
|
+
position: $pos;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/*
|
|
135
|
+
Responsive ratio
|
|
136
|
+
Used for creating scalable elements that maintain the same ratio
|
|
137
|
+
example:
|
|
138
|
+
.element {
|
|
139
|
+
@include responsive-ratio(400, 300);
|
|
140
|
+
}
|
|
141
|
+
*/
|
|
142
|
+
|
|
143
|
+
@mixin responsive-ratio($x, $y, $pseudo: false) {
|
|
144
|
+
$padding: calc(#{$y} / #{$x} * 100 * 1%);
|
|
145
|
+
|
|
146
|
+
@if $pseudo {
|
|
147
|
+
&::before {
|
|
148
|
+
@include pseudo($pos: relative);
|
|
149
|
+
width: 100%;
|
|
150
|
+
padding-top: $padding;
|
|
151
|
+
}
|
|
152
|
+
} @else {
|
|
153
|
+
padding-top: $padding;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@mixin input-placeholder {
|
|
158
|
+
&.placeholder {
|
|
159
|
+
@content;
|
|
160
|
+
}
|
|
161
|
+
&:-moz-placeholder {
|
|
162
|
+
@content;
|
|
163
|
+
}
|
|
164
|
+
&::-moz-placeholder {
|
|
165
|
+
@content;
|
|
166
|
+
}
|
|
167
|
+
&:-ms-input-placeholder {
|
|
168
|
+
@content;
|
|
169
|
+
}
|
|
170
|
+
&::-webkit-input-placeholder {
|
|
171
|
+
@content;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@mixin selection {
|
|
176
|
+
::-moz-selection {
|
|
177
|
+
@content;
|
|
178
|
+
}
|
|
179
|
+
::selection {
|
|
180
|
+
@content;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@mixin reset-text-indents() {
|
|
185
|
+
font-size: 0;
|
|
186
|
+
line-height: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// Reset btn styles
|
|
190
|
+
|
|
191
|
+
@mixin reset-btn() {
|
|
192
|
+
box-sizing: border-box;
|
|
193
|
+
display: block;
|
|
194
|
+
margin: 0;
|
|
195
|
+
padding: 0;
|
|
196
|
+
white-space: nowrap;
|
|
197
|
+
vertical-align: middle;
|
|
198
|
+
user-select: none;
|
|
199
|
+
text-align: center;
|
|
200
|
+
text-decoration: none;
|
|
201
|
+
text-transform: none;
|
|
202
|
+
border-radius: 0;
|
|
203
|
+
border: none;
|
|
204
|
+
background-color: transparent;
|
|
205
|
+
background-image: none;
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
outline: 0;
|
|
208
|
+
font-size: 0;
|
|
209
|
+
line-height: 0;
|
|
210
|
+
font-family: inherit;
|
|
211
|
+
-webkit-appearance: none;
|
|
212
|
+
-webkit-text-fill-color: currentColor;
|
|
213
|
+
&:focus {
|
|
214
|
+
outline: 0;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@mixin default-link($main-color: $color-black, $second-color: $color-purple, $is-important: false) {
|
|
219
|
+
& {
|
|
220
|
+
color: $main-color if($is-important, !important, null);
|
|
221
|
+
}
|
|
222
|
+
&:hover,
|
|
223
|
+
&:focus {
|
|
224
|
+
color: $second-color if($is-important, !important, null);
|
|
225
|
+
}
|
|
226
|
+
&:active {
|
|
227
|
+
color: sasscolor.adjust($second-color, $lightness: 8%) if($is-important, !important, null);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@mixin delete-link() {
|
|
232
|
+
@include default-link($color-black, $color-red);
|
|
233
|
+
}
|
|
234
|
+
@mixin text-link($is-important: false) {
|
|
235
|
+
@include default-link($color-purple, $color-hover-purple, $is-important);
|
|
236
|
+
}
|
|
237
|
+
@mixin close-link() {
|
|
238
|
+
@include default-link($color-gray, $color-black);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@mixin field-error() {
|
|
242
|
+
color: $color-red;
|
|
243
|
+
font-size: 13px;
|
|
244
|
+
line-height: line-height(16, 13);
|
|
245
|
+
display: block;
|
|
246
|
+
margin-top: 5px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@mixin custom-scroll($track-indent-vertical: 0, $track-indent-horizontal: 0) {
|
|
250
|
+
/* Firefox */
|
|
251
|
+
@-moz-document url-prefix() {
|
|
252
|
+
scrollbar-color: $color-outline-gray $color-transparent;
|
|
253
|
+
scrollbar-width: thin;
|
|
254
|
+
}
|
|
255
|
+
::-webkit-scrollbar {
|
|
256
|
+
@include size(5px);
|
|
257
|
+
transition: background 0.3s;
|
|
258
|
+
}
|
|
259
|
+
::-webkit-scrollbar-track {
|
|
260
|
+
margin: $track-indent-vertical $track-indent-horizontal;
|
|
261
|
+
background: $color-transparent;
|
|
262
|
+
border-radius: $radius-50;
|
|
263
|
+
}
|
|
264
|
+
::-webkit-scrollbar-thumb {
|
|
265
|
+
background: $color-outline-gray;
|
|
266
|
+
border-radius: $radius-50;
|
|
267
|
+
}
|
|
268
|
+
::-webkit-scrollbar-thumb:hover {
|
|
269
|
+
background: $color-gray;
|
|
270
|
+
}
|
|
271
|
+
::-webkit-scrollbar-thumb:active {
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@mixin hide-scrollbar() {
|
|
276
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
277
|
+
scrollbar-width: none; /* Firefox */
|
|
278
|
+
&::-webkit-scrollbar {
|
|
279
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
280
|
+
display: none;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
@mixin img-ofi($object-fit: 'cover') {
|
|
285
|
+
display: block;
|
|
286
|
+
@include position(absolute, 0);
|
|
287
|
+
@include size(100%);
|
|
288
|
+
object-fit: $object-fit;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@mixin input-placeholder {
|
|
292
|
+
&.placeholder {
|
|
293
|
+
@content;
|
|
294
|
+
}
|
|
295
|
+
&:-moz-placeholder {
|
|
296
|
+
@content;
|
|
297
|
+
}
|
|
298
|
+
&::-moz-placeholder {
|
|
299
|
+
@content;
|
|
300
|
+
}
|
|
301
|
+
&:-ms-input-placeholder {
|
|
302
|
+
@content;
|
|
303
|
+
}
|
|
304
|
+
&::-webkit-input-placeholder {
|
|
305
|
+
@content;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@mixin interplay() {
|
|
310
|
+
&:hover,
|
|
311
|
+
&:focus {
|
|
312
|
+
background-color: #ebebeb;
|
|
313
|
+
}
|
|
314
|
+
&:active {
|
|
315
|
+
background-color: #919191;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// This triangle can be used as hint or in the dropdown list instead of svg-icon
|
|
320
|
+
@mixin css-triangle($color: $color-orange, $direction: 'up', $size: 6px, $position: absolute) {
|
|
321
|
+
@include pseudo($pos: $position);
|
|
322
|
+
@include size(0);
|
|
323
|
+
@if $direction == down {
|
|
324
|
+
border-left: $size solid transparent;
|
|
325
|
+
border-right: $size solid transparent;
|
|
326
|
+
border-top: $size solid $color;
|
|
327
|
+
margin-top: calc(0 - round(calc(#{$size} / 2.5)));
|
|
328
|
+
} @else if $direction == up {
|
|
329
|
+
border-left: $size solid transparent;
|
|
330
|
+
border-right: $size solid transparent;
|
|
331
|
+
border-bottom: $size solid $color;
|
|
332
|
+
margin-bottom: calc(0 - round(calc(#{$size} / 2.5)));
|
|
333
|
+
} @else if $direction == right {
|
|
334
|
+
border-top: $size solid transparent;
|
|
335
|
+
border-bottom: $size solid transparent;
|
|
336
|
+
border-left: $size solid $color;
|
|
337
|
+
margin-right: -$size;
|
|
338
|
+
} @else if $direction == left {
|
|
339
|
+
border-top: $size solid transparent;
|
|
340
|
+
border-bottom: $size solid transparent;
|
|
341
|
+
border-right: $size solid $color;
|
|
342
|
+
margin-left: -$size;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@mixin editor-default-styles($main-font-size: $font-size-300, $main-line-height: $line-height-300) {
|
|
347
|
+
p,
|
|
348
|
+
strong,
|
|
349
|
+
em,
|
|
350
|
+
u,
|
|
351
|
+
span {
|
|
352
|
+
font-size: $main-font-size;
|
|
353
|
+
line-height: $main-line-height;
|
|
354
|
+
margin: 0;
|
|
355
|
+
&:empty {
|
|
356
|
+
display: none;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
ol,
|
|
360
|
+
ul {
|
|
361
|
+
margin-block-start: 0;
|
|
362
|
+
margin-block-end: 0;
|
|
363
|
+
padding-inline-start: $space-250;
|
|
364
|
+
|
|
365
|
+
li {
|
|
366
|
+
font-size: $main-font-size;
|
|
367
|
+
line-height: $main-line-height;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
a {
|
|
371
|
+
@include text-link(true);
|
|
372
|
+
text-decoration: none;
|
|
373
|
+
}
|
|
374
|
+
h1 {
|
|
375
|
+
&,
|
|
376
|
+
& * {
|
|
377
|
+
font-size: 40px !important;
|
|
378
|
+
line-height: $line-height-600;
|
|
379
|
+
font-weight: $font-weight-bold;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
h2 {
|
|
383
|
+
&,
|
|
384
|
+
& * {
|
|
385
|
+
font-size: $font-size-600 !important;
|
|
386
|
+
line-height: $line-height-500;
|
|
387
|
+
font-weight: $font-weight-bold;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
h3,
|
|
391
|
+
h4,
|
|
392
|
+
h5,
|
|
393
|
+
h6 {
|
|
394
|
+
&,
|
|
395
|
+
& * {
|
|
396
|
+
font-size: $font-size-400 !important;
|
|
397
|
+
line-height: $line-height-400;
|
|
398
|
+
font-weight: $font-weight-bold;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
h1,
|
|
402
|
+
h2,
|
|
403
|
+
h3,
|
|
404
|
+
h4,
|
|
405
|
+
h5,
|
|
406
|
+
h6 {
|
|
407
|
+
&,
|
|
408
|
+
& * {
|
|
409
|
+
margin: 0;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
.ql {
|
|
413
|
+
&-editor {
|
|
414
|
+
padding: $space-150;
|
|
415
|
+
&.ql-blank::before {
|
|
416
|
+
left: $space-150;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
&-align-center {
|
|
420
|
+
text-align: center;
|
|
421
|
+
}
|
|
422
|
+
&-align-right {
|
|
423
|
+
text-align: right;
|
|
424
|
+
}
|
|
425
|
+
&-align-left {
|
|
426
|
+
text-align: left;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
img {
|
|
430
|
+
max-width: 100%;
|
|
431
|
+
max-height: 600px;
|
|
432
|
+
margin: $space-150 0;
|
|
433
|
+
border-radius: $radius-200;
|
|
434
|
+
}
|
|
435
|
+
blockquote {
|
|
436
|
+
border-left: $space-50 solid $color-purple !important;
|
|
437
|
+
margin: $space-zero;
|
|
438
|
+
padding-left: $space-200;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
@mixin common-slide-styles {
|
|
443
|
+
&-enter-active,
|
|
444
|
+
&-leave-active {
|
|
445
|
+
transition: all 150ms ease;
|
|
446
|
+
}
|
|
447
|
+
&-enter,
|
|
448
|
+
&-leave-to {
|
|
449
|
+
opacity: 0;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
@mixin slideAnimations {
|
|
454
|
+
/*slide-right*/
|
|
455
|
+
.slide-right {
|
|
456
|
+
@include common-slide-styles;
|
|
457
|
+
&-enter {
|
|
458
|
+
transform: translateX(50%);
|
|
459
|
+
}
|
|
460
|
+
&-leave-to {
|
|
461
|
+
transform: translateX(-50%);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
/*slide-left*/
|
|
465
|
+
.slide-left {
|
|
466
|
+
@include common-slide-styles;
|
|
467
|
+
&-enter {
|
|
468
|
+
transform: translateX(-50%);
|
|
469
|
+
}
|
|
470
|
+
&-leave-to {
|
|
471
|
+
transform: translateX(50%);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
@mixin animation-border-spinner($duration: 2s, $border-color: $color-purple, $border-size: $space-100) {
|
|
477
|
+
background-repeat: no-repeat;
|
|
478
|
+
background-image: linear-gradient(to right, $border-color 100%, $border-color 100%),
|
|
479
|
+
linear-gradient(to bottom, $border-color 100%, $border-color 100%),
|
|
480
|
+
linear-gradient(to right, $border-color 100%, $border-color 100%),
|
|
481
|
+
linear-gradient(to bottom, $border-color 100%, $border-color 100%);
|
|
482
|
+
background-position:
|
|
483
|
+
0 0,
|
|
484
|
+
100% 0,
|
|
485
|
+
100% 100%,
|
|
486
|
+
0 100%;
|
|
487
|
+
background-size:
|
|
488
|
+
100% $border-size,
|
|
489
|
+
$border-size 100%,
|
|
490
|
+
100% $border-size,
|
|
491
|
+
$border-size 100%;
|
|
492
|
+
animation: spin-border $duration linear;
|
|
493
|
+
|
|
494
|
+
@keyframes spin-border {
|
|
495
|
+
0% {
|
|
496
|
+
background-position:
|
|
497
|
+
0 0,
|
|
498
|
+
100% 0,
|
|
499
|
+
100% 100%,
|
|
500
|
+
0 100%;
|
|
501
|
+
background-size:
|
|
502
|
+
0 $border-size,
|
|
503
|
+
$border-size 0,
|
|
504
|
+
0 $border-size,
|
|
505
|
+
$border-size 0;
|
|
506
|
+
}
|
|
507
|
+
10% {
|
|
508
|
+
background-position:
|
|
509
|
+
0 0,
|
|
510
|
+
100% 0,
|
|
511
|
+
100% 100%,
|
|
512
|
+
0 100%;
|
|
513
|
+
background-size:
|
|
514
|
+
0 $border-size,
|
|
515
|
+
$border-size 25%,
|
|
516
|
+
0 $border-size,
|
|
517
|
+
$border-size 0;
|
|
518
|
+
}
|
|
519
|
+
20% {
|
|
520
|
+
background-position:
|
|
521
|
+
0 0,
|
|
522
|
+
100% 100%,
|
|
523
|
+
100% 100%,
|
|
524
|
+
0 100%;
|
|
525
|
+
background-size:
|
|
526
|
+
0 $border-size,
|
|
527
|
+
$border-size 50%,
|
|
528
|
+
0 $border-size,
|
|
529
|
+
$border-size 0;
|
|
530
|
+
}
|
|
531
|
+
30% {
|
|
532
|
+
background-position:
|
|
533
|
+
0 0,
|
|
534
|
+
100% 100%,
|
|
535
|
+
100% 100%,
|
|
536
|
+
0 100%;
|
|
537
|
+
background-size:
|
|
538
|
+
0 $border-size,
|
|
539
|
+
$border-size 0,
|
|
540
|
+
100% $border-size,
|
|
541
|
+
$border-size 0;
|
|
542
|
+
}
|
|
543
|
+
40% {
|
|
544
|
+
background-position:
|
|
545
|
+
0 0,
|
|
546
|
+
100% 0,
|
|
547
|
+
0 100%,
|
|
548
|
+
0 100%;
|
|
549
|
+
background-size:
|
|
550
|
+
0 $border-size,
|
|
551
|
+
$border-size 0,
|
|
552
|
+
100% $border-size,
|
|
553
|
+
$border-size 100%;
|
|
554
|
+
}
|
|
555
|
+
50% {
|
|
556
|
+
background-position:
|
|
557
|
+
0 0,
|
|
558
|
+
100% 0,
|
|
559
|
+
0 100%,
|
|
560
|
+
0 100%;
|
|
561
|
+
background-size:
|
|
562
|
+
50% $border-size,
|
|
563
|
+
$border-size 0,
|
|
564
|
+
75% $border-size,
|
|
565
|
+
$border-size 100%;
|
|
566
|
+
}
|
|
567
|
+
60% {
|
|
568
|
+
background-position:
|
|
569
|
+
0 0,
|
|
570
|
+
100% 0,
|
|
571
|
+
0 100%,
|
|
572
|
+
0 100%;
|
|
573
|
+
background-size:
|
|
574
|
+
100% $border-size,
|
|
575
|
+
$border-size 0,
|
|
576
|
+
50% $border-size,
|
|
577
|
+
$border-size 100%;
|
|
578
|
+
}
|
|
579
|
+
70% {
|
|
580
|
+
background-position:
|
|
581
|
+
0 0,
|
|
582
|
+
100% 0,
|
|
583
|
+
0 100%,
|
|
584
|
+
0 100%;
|
|
585
|
+
background-size:
|
|
586
|
+
100% $border-size,
|
|
587
|
+
$border-size 33%,
|
|
588
|
+
25% $border-size,
|
|
589
|
+
$border-size 100%;
|
|
590
|
+
}
|
|
591
|
+
80% {
|
|
592
|
+
background-position:
|
|
593
|
+
0 0,
|
|
594
|
+
100% 0,
|
|
595
|
+
0 100%,
|
|
596
|
+
0 100%;
|
|
597
|
+
background-size:
|
|
598
|
+
100% $border-size,
|
|
599
|
+
$border-size 66%,
|
|
600
|
+
0 $border-size,
|
|
601
|
+
$border-size 100%;
|
|
602
|
+
}
|
|
603
|
+
90% {
|
|
604
|
+
background-position:
|
|
605
|
+
0 0,
|
|
606
|
+
100% 0,
|
|
607
|
+
100% 100%,
|
|
608
|
+
0 100%;
|
|
609
|
+
background-size:
|
|
610
|
+
100% $border-size,
|
|
611
|
+
$border-size 100%,
|
|
612
|
+
0 $border-size,
|
|
613
|
+
$border-size 100%;
|
|
614
|
+
}
|
|
615
|
+
100% {
|
|
616
|
+
background-position:
|
|
617
|
+
0 0,
|
|
618
|
+
100% 0,
|
|
619
|
+
100% 100%,
|
|
620
|
+
0 100%;
|
|
621
|
+
background-size:
|
|
622
|
+
100% $border-size,
|
|
623
|
+
$border-size 100%,
|
|
624
|
+
100% $border-size,
|
|
625
|
+
$border-size 100%;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
@mixin mirror-x {
|
|
631
|
+
transform: scale(-1, 1);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
@mixin gradientText($gradient) {
|
|
635
|
+
span {
|
|
636
|
+
-webkit-box-decoration-break: clone;
|
|
637
|
+
background: $gradient;
|
|
638
|
+
-webkit-background-clip: text;
|
|
639
|
+
-webkit-text-fill-color: transparent;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// Create stack-space
|
|
644
|
+
@mixin child-indent-bottom($space) {
|
|
645
|
+
> *:not(:last-child) {
|
|
646
|
+
margin-block-end: $space;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
@mixin child-indent-top($space) {
|
|
650
|
+
> *:not(:first-child) {
|
|
651
|
+
margin-block-start: $space;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
@mixin child-indent-right($space) {
|
|
656
|
+
> *:not(:last-child) {
|
|
657
|
+
margin-inline-end: $space;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
@mixin child-indent-left($space) {
|
|
661
|
+
> *:not(:first-child) {
|
|
662
|
+
margin-inline-start: $space;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* VUE DESIGN SYSTEM SPACING HELPERS
|
|
2
|
+
--------------------------------------------- */
|
|
3
|
+
@use '../tokens/line-heights' as *;
|
|
4
|
+
$spacing-ratio: $line-height-250;
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
INSET-SPACE: For interface containers.
|
|
8
|
+
INSET-SQUISH-SPACE: For buttons, form elements, cells.
|
|
9
|
+
STACK-SPACE: For vertically stacked content.
|
|
10
|
+
INLINE-SPACE: For things displayed inline.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// Create inset-space
|
|
14
|
+
//
|
|
15
|
+
// @param {Number} inset-space to set
|
|
16
|
+
@mixin inset-space($value) {
|
|
17
|
+
padding: $value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Create inset-squish-space
|
|
21
|
+
//
|
|
22
|
+
// @param {Number} inset-squish-space to set
|
|
23
|
+
@mixin inset-squish-space($value) {
|
|
24
|
+
padding: round($value / $spacing-ratio - 1px) $value round($value / $spacing-ratio);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin indent-top($space: $space-xs, $indent-type: "margin") {
|
|
28
|
+
#{$indent-type}-top: $space;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin indent-bottom($size: "middle", $indent-type: "margin") {
|
|
32
|
+
#{$indent-type}-bottom: $space-xs;
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use '../tokens/colors' as *;
|
|
2
|
+
|
|
3
|
+
$vxe-table-border-color: $color-hover-gray;
|
|
4
|
+
$vxe-table-header-background-color: $color-white;
|
|
5
|
+
$vxe-table-row-hover-background-color: $color-hover-gray;
|
|
6
|
+
$vxe-table-row-hover-striped-background-color: $color-hover-gray;
|
|
7
|
+
$vxe-table-row-current-background-color: $color-lighter-purple;
|
|
8
|
+
$vxe-table-row-hover-current-background-color: $color-lighter-purple;
|
|
9
|
+
$vxe-table-row-cheched-background-color: $color-lighter-purple;
|
|
10
|
+
$vxe-table-row-hover-cheched-background-color: $color-lighter-purple;
|
|
11
|
+
|
|
12
|
+
$vxe-table-row-line-height: 16px;
|