mediacube-ui 0.1.345 → 0.1.347

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 (109) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/0.mediacube-ui.umd.js +50 -0
  3. package/dist/assets/img/icons.3b7d59b2f49c67a2a3a4566b8ab233fd.svg +1 -0
  4. package/dist/assets/img/no_table_data.236cd56f46cfb71fc363b008d4ca70d5.png +0 -0
  5. package/dist/assets/img/no_user.e0030d6e54e2400e1181fd22b83cf8ae.png +0 -0
  6. package/dist/mediacube-ui.umd.js +1 -0
  7. package/package.json +14 -16
  8. package/src/assets/icons.svg +1 -1
  9. package/src/assets/tokens/tokens.json +5 -0
  10. package/dist/mediacube-ui.common.js +0 -378
  11. package/src/elements/McAvatar/McAvatar.vue +0 -274
  12. package/src/elements/McBadge/McBadge.vue +0 -148
  13. package/src/elements/McButton/McButton.vue +0 -841
  14. package/src/elements/McChip/McChip.vue +0 -300
  15. package/src/elements/McCropper/McCropper.vue +0 -133
  16. package/src/elements/McDate/McDate.vue +0 -105
  17. package/src/elements/McDatePicker/McDatePicker.vue +0 -902
  18. package/src/elements/McField/McFieldCheckbox/McFieldCheckbox.vue +0 -332
  19. package/src/elements/McField/McFieldRadio/McFieldRadioButton/McFieldRadioButton.vue +0 -201
  20. package/src/elements/McField/McFieldRadio/McFieldRadioGroup/McFieldRadioGroup.vue +0 -194
  21. package/src/elements/McField/McFieldSelect/McFieldSelect.vue +0 -1087
  22. package/src/elements/McField/McFieldText/McFieldText.vue +0 -969
  23. package/src/elements/McField/McFieldToggle/McFieldToggle.vue +0 -268
  24. package/src/elements/McInfinityLoadingIndicator/McInfinityLoadingIndicator.vue +0 -97
  25. package/src/elements/McNotification/McNotification.vue +0 -209
  26. package/src/elements/McProgress/McProgress.vue +0 -218
  27. package/src/elements/McRangeSlider/McRangeSlider.vue +0 -195
  28. package/src/elements/McSeparator/McSeparator.vue +0 -143
  29. package/src/elements/McSlideUpDown/McSlideUpDown.vue +0 -157
  30. package/src/elements/McSvgIcon/McSvgIcon.vue +0 -127
  31. package/src/elements/McTabs/McTab/McTab.vue +0 -187
  32. package/src/elements/McTabs/McTabs/McTabs.vue +0 -531
  33. package/src/elements/McTitle/McTitle.vue +0 -365
  34. package/src/elements/McTooltip/McTooltip.vue +0 -334
  35. package/src/helpers/consts.js +0 -3
  36. package/src/helpers/delayedAction.js +0 -26
  37. package/src/helpers/storybookFunctions.js +0 -20
  38. package/src/helpers/storybookVariables.js +0 -24
  39. package/src/mixins/equalFieldHeight.js +0 -59
  40. package/src/mixins/fieldErrors.js +0 -28
  41. package/src/patterns/McAccordion/McAccordion.vue +0 -53
  42. package/src/patterns/McCells/McCell/McCell.vue +0 -101
  43. package/src/patterns/McChat/McChat.vue +0 -305
  44. package/src/patterns/McChat/McChatComment/McChatComment.vue +0 -265
  45. package/src/patterns/McChat/McChatForm/McChatForm.vue +0 -147
  46. package/src/patterns/McCollapse/McCollapse.vue +0 -280
  47. package/src/patterns/McDrawer/McDrawer.vue +0 -146
  48. package/src/patterns/McDropdown/McDropdown.vue +0 -247
  49. package/src/patterns/McDropdown/McDropdownPanel/McDropdownPanel.vue +0 -40
  50. package/src/patterns/McFakeScroll/McFakeScroll.vue +0 -277
  51. package/src/patterns/McFilter/McFilter.vue +0 -847
  52. package/src/patterns/McFilter/McFilterChip/McFilterChip.vue +0 -83
  53. package/src/patterns/McFilter/McFilterTags/McFilterTags.vue +0 -374
  54. package/src/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue +0 -70
  55. package/src/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue +0 -132
  56. package/src/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue +0 -221
  57. package/src/patterns/McFilter/McFilterTypeSimple/McFilterTypeSimple.vue +0 -161
  58. package/src/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue +0 -62
  59. package/src/patterns/McGrid/McGridCol/McGridCol.vue +0 -165
  60. package/src/patterns/McGrid/McGridRow/McGridRow.vue +0 -158
  61. package/src/patterns/McModal/McModal.vue +0 -680
  62. package/src/patterns/McOverlay/McOverlay.vue +0 -78
  63. package/src/patterns/McPreview/McPreview.vue +0 -118
  64. package/src/patterns/McSideBar/McSideBar/McSideBar.vue +0 -387
  65. package/src/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue +0 -125
  66. package/src/patterns/McSideBar/McSideBarButton/McSideBarButton.vue +0 -252
  67. package/src/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue +0 -367
  68. package/src/patterns/McSideBar/McSideBarTop/McSideBarTop.vue +0 -238
  69. package/src/patterns/McStack/McStack.vue +0 -158
  70. package/src/patterns/McTable/McTable/McTable.vue +0 -854
  71. package/src/patterns/McTable/McTableCol/McTableCol.vue +0 -296
  72. package/src/patterns/McTableCard/McTableCard.vue +0 -135
  73. package/src/patterns/McTableCard/McTableCardHeader/McTableCardHeader.vue +0 -74
  74. package/src/patterns/McTopBar/McTopBar.vue +0 -153
  75. package/src/patterns/McWrapScroll/McWrapScroll.vue +0 -291
  76. package/src/styles/_functions.scss +0 -187
  77. package/src/styles/_mixins.scss +0 -612
  78. package/src/styles/_spacing.scss +0 -33
  79. package/src/styles/_variables.scss +0 -23
  80. package/src/styles/global.scss +0 -308
  81. package/src/styles/main.scss +0 -4
  82. package/src/styles/table.scss +0 -10
  83. package/src/styles/toast.scss +0 -55
  84. package/src/templates/layouts/McContentFixed/McContentFixed.vue +0 -60
  85. package/src/templates/layouts/McMain/McMain.vue +0 -115
  86. package/src/templates/layouts/McRoot/McRoot.vue +0 -45
  87. package/src/tokens/animations.scss +0 -9
  88. package/src/tokens/border-radius.scss +0 -26
  89. package/src/tokens/box-shadows.scss +0 -28
  90. package/src/tokens/colors.scss +0 -82
  91. package/src/tokens/durations.scss +0 -7
  92. package/src/tokens/easings.scss +0 -6
  93. package/src/tokens/font-families.scss +0 -8
  94. package/src/tokens/font-sizes.scss +0 -23
  95. package/src/tokens/font-weights.scss +0 -9
  96. package/src/tokens/gradients.scss +0 -18
  97. package/src/tokens/letter-spacings.scss +0 -6
  98. package/src/tokens/line-heights.scss +0 -22
  99. package/src/tokens/media-queries.scss +0 -32
  100. package/src/tokens/opacities.scss +0 -8
  101. package/src/tokens/sizes.scss +0 -47
  102. package/src/tokens/spacings.scss +0 -38
  103. package/src/tokens/z-indexes.scss +0 -14
  104. package/src/utils/dayjs.js +0 -19
  105. package/src/utils/filters.js +0 -11
  106. package/src/utils/getTokens.js +0 -41
  107. package/src/utils/load-icons.js +0 -3
  108. package/src/utils/treeSearch.js +0 -30
  109. package/src/utils/webFontLoader.js +0 -12
@@ -1,612 +0,0 @@
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
-
18
- @import '../tokens/border-radius';
19
-
20
- @mixin size(
21
- $width,
22
- $height: $width
23
- ) {
24
- height: $height;
25
- width: $width;
26
- }
27
- @function _unpack-shorthand($shorthand) {
28
- @if length($shorthand) == 1 {
29
- @return nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1);
30
- } @else if length($shorthand) == 2 {
31
- @return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 1) nth($shorthand, 2);
32
- } @else if length($shorthand) == 3 {
33
- @return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 3) nth($shorthand, 2);
34
- } @else {
35
- @return $shorthand;
36
- }
37
- }
38
-
39
- @mixin position(
40
- $position,
41
- $box-edge-values
42
- ) {
43
- $box-edge-values: _unpack-shorthand($box-edge-values);
44
- $offsets: (
45
- "top": nth($box-edge-values, 1),
46
- "inset-inline-end": nth($box-edge-values, 2),
47
- "bottom": nth($box-edge-values, 3),
48
- "inset-inline-start": nth($box-edge-values, 4),
49
- );
50
-
51
- position: $position;
52
-
53
- @each $offset, $value in $offsets {
54
- #{$offset}: $value;
55
- }
56
- }
57
-
58
- @mixin ellipsis(
59
- $width: 100%,
60
- $display: inline-block
61
- ) {
62
- display: $display;
63
- max-width: $width;
64
- overflow: hidden;
65
- text-overflow: ellipsis;
66
- white-space: nowrap;
67
- word-wrap: normal;
68
- }
69
-
70
- @mixin responsive-font($responsive, $min, $max: false, $fallback: false) {
71
- $responsive-unitless: calc(#{$responsive} / (#{$responsive} - #{$responsive} + 1));
72
- $dimension: if(unit($responsive) == "vh", "height", "width");
73
- $min-breakpoint: calc(#{$min} / #{$responsive}-unitless * 100);
74
-
75
- @media (max-#{$dimension}: #{$min-breakpoint}) {
76
- font-size: $min;
77
- }
78
-
79
- @if $max {
80
- $max-breakpoint: calc(#{$max} / #{$responsive-unitless} * 100);
81
-
82
- @media (min-#{$dimension}: #{$max-breakpoint}) {
83
- font-size: $max;
84
- }
85
- }
86
-
87
- @if $fallback {
88
- font-size: $fallback;
89
- }
90
-
91
- font-size: $responsive;
92
- }
93
-
94
- // Reset
95
- @mixin reset {
96
- box-sizing: border-box;
97
- padding: 0;
98
- margin: 0;
99
- }
100
-
101
- /// To be used on flex items. Resolves some common layout issues, such as
102
- /// text truncation not respecting padding or breaking out of container.
103
- /// https://css-tricks.com/flexbox-truncated-text/
104
- @mixin layout-flex-fix {
105
- min-width: 0;
106
- max-width: 100%;
107
- }
108
-
109
- @mixin align($vertical: true, $horizontal: false, $position: relative) {
110
- @if $position {
111
- position: $position;
112
- }
113
- @if $vertical {
114
- top: 50%;
115
- }
116
- @if $horizontal {
117
- left: 50%;
118
- }
119
-
120
- @if $vertical and $horizontal {
121
- transform: translateX(-50%) translateY(-50%);
122
- } @else if $vertical {
123
- transform: translateY(-50%);
124
- } @else {
125
- transform: translateX(-50%);
126
- }
127
- }
128
-
129
- @mixin hardware($backface: true, $perspective: 1000) {
130
- @if $backface {
131
- backface-visibility: hidden;
132
- }
133
-
134
- perspective: $perspective;
135
- }
136
-
137
- @mixin pseudo($display: block, $pos: absolute, $content: "") {
138
- content: $content;
139
- display: $display;
140
- position: $pos;
141
- }
142
-
143
- /*
144
- Responsive ratio
145
- Used for creating scalable elements that maintain the same ratio
146
- example:
147
- .element {
148
- @include responsive-ratio(400, 300);
149
- }
150
- */
151
-
152
- @mixin responsive-ratio($x, $y, $pseudo: false) {
153
- $padding: calc(#{$y} / #{$x} * 100 * 1%);
154
-
155
- @if $pseudo {
156
- &::before {
157
- @include pseudo($pos: relative);
158
- width: 100%;
159
- padding-top: $padding;
160
- }
161
- } @else {
162
- padding-top: $padding;
163
- }
164
- }
165
-
166
- @mixin input-placeholder {
167
- &.placeholder {
168
- @content;
169
- }
170
- &:-moz-placeholder {
171
- @content;
172
- }
173
- &::-moz-placeholder {
174
- @content;
175
- }
176
- &:-ms-input-placeholder {
177
- @content;
178
- }
179
- &::-webkit-input-placeholder {
180
- @content;
181
- }
182
- }
183
-
184
- @mixin selection {
185
- ::-moz-selection {
186
- @content;
187
- }
188
- ::selection {
189
- @content;
190
- }
191
- }
192
-
193
- @mixin reset-text-indents() {
194
- font-size: 0;
195
- line-height: 0;
196
- }
197
-
198
- // Reset btn styles
199
-
200
- @mixin reset-btn() {
201
- box-sizing: border-box;
202
- display: block;
203
- margin: 0;
204
- padding: 0;
205
- white-space: nowrap;
206
- vertical-align: middle;
207
- user-select: none;
208
- text-align: center;
209
- text-decoration: none;
210
- text-transform: none;
211
- border-radius: 0;
212
- border: none;
213
- background-color: transparent;
214
- background-image: none;
215
- cursor: pointer;
216
- outline: 0;
217
- font-size: 0;
218
- line-height: 0;
219
- font-family: inherit;
220
- -webkit-appearance: none;
221
- -webkit-text-fill-color: currentColor;
222
-
223
- &:focus {
224
- outline: 0;
225
- }
226
- }
227
-
228
- @mixin default-link($main-color: $color-black, $second-color: $color-purple, $is-important: false) {
229
- color: $main-color if($is-important, !important, null);
230
- &:hover,
231
- &:focus {
232
- color: $second-color if($is-important, !important, null);
233
- }
234
-
235
- &:active {
236
- color: darken($second-color, 8%) if($is-important, !important, null);
237
- }
238
- }
239
-
240
- @mixin delete-link() {
241
- @include default-link($color-black, $color-red);
242
- }
243
- @mixin text-link($is-important: false) {
244
- @include default-link($color-purple, $color-hover-purple, $is-important);
245
- }
246
- @mixin close-link() {
247
- @include default-link($color-gray, $color-black);
248
- }
249
-
250
- @mixin field-error() {
251
- color: $color-red;
252
- font-size: 13px;
253
- line-height: line-height(16, 13);
254
- display: block;
255
- margin-top: 5px;
256
- }
257
-
258
- @mixin custom-scroll($track-indent-vertical: 0, $track-indent-horizontal: 0,) {
259
- ::-webkit-scrollbar {
260
- @include size(5px);
261
- transition: background 0.3s;
262
- }
263
- ::-webkit-scrollbar-track {
264
- margin: $track-indent-vertical $track-indent-horizontal;
265
- background: $color-transparent;
266
- border-radius: $radius-50;
267
- }
268
- ::-webkit-scrollbar-thumb {
269
- background: $color-outline-gray;
270
- border-radius: $radius-50;
271
- }
272
- ::-webkit-scrollbar-thumb:hover {
273
- background: $color-gray;
274
- }
275
- ::-webkit-scrollbar-thumb:active {
276
- }
277
- /* Firefox */
278
- @-moz-document url-prefix() {
279
- scrollbar-color: $color-outline-gray $color-transparent;
280
- scrollbar-width: thin;
281
- }
282
- }
283
-
284
- @mixin hide-scrollbar() {
285
- -ms-overflow-style: none; /* IE and Edge */
286
- scrollbar-width: none; /* Firefox */
287
- &::-webkit-scrollbar { /* Hide scrollbar for Chrome, Safari and Opera */
288
- display: none;
289
- }
290
- }
291
-
292
- @mixin img-ofi($object-fit: "cover") {
293
- display: block;
294
- @include position(absolute, 0);
295
- @include size(100%);
296
- object-fit: $object-fit;
297
- }
298
-
299
- @mixin input-placeholder {
300
- &.placeholder {
301
- @content;
302
- }
303
- &:-moz-placeholder {
304
- @content;
305
- }
306
- &::-moz-placeholder {
307
- @content;
308
- }
309
- &:-ms-input-placeholder {
310
- @content;
311
- }
312
- &::-webkit-input-placeholder {
313
- @content;
314
- }
315
- }
316
-
317
- @mixin interplay() {
318
- &:hover,
319
- &:focus {
320
- background-color: #ebebeb;
321
- }
322
-
323
- &:active {
324
- background-color: #919191;
325
- }
326
- }
327
-
328
- // This triangle can be used as hint or in the dropdown list instead of svg-icon
329
- @mixin css-triangle($color: $color-orange, $direction: "up", $size: 6px, $position: absolute) {
330
- @include pseudo($pos: $position);
331
- @include size(0);
332
- @if $direction == down {
333
- border-left: $size solid transparent;
334
- border-right: $size solid transparent;
335
- border-top: $size solid $color;
336
- margin-top: calc(0 - round(calc(#{$size} / 2.5)));
337
- } @else if $direction == up {
338
- border-left: $size solid transparent;
339
- border-right: $size solid transparent;
340
- border-bottom: $size solid $color;
341
- margin-bottom: calc(0 - round(calc(#{$size} / 2.5)));
342
- } @else if $direction == right {
343
- border-top: $size solid transparent;
344
- border-bottom: $size solid transparent;
345
- border-left: $size solid $color;
346
- margin-right: -$size;
347
- } @else if $direction == left {
348
- border-top: $size solid transparent;
349
- border-bottom: $size solid transparent;
350
- border-right: $size solid $color;
351
- margin-left: -$size;
352
- }
353
- }
354
-
355
- @mixin editor-default-styles($main-font-size: $font-size-300, $main-line-height: $line-height-300) {
356
- p,
357
- strong,
358
- em,
359
- u,
360
- span {
361
- font-size: $main-font-size;
362
- line-height: $main-line-height;
363
- margin: 0;
364
- &:empty {
365
- display: none;
366
- }
367
- }
368
- ol,
369
- ul {
370
- margin-block-start: 0;
371
- margin-block-end: 0;
372
- padding-inline-start: $space-250;
373
-
374
- li {
375
- font-size: $main-font-size;
376
- line-height: $main-line-height;
377
- }
378
- }
379
- a {
380
- @include text-link(true);
381
- text-decoration: none;
382
- }
383
- h1 {
384
- &, & * {
385
- font-size: 40px !important;
386
- line-height: $line-height-600;
387
- font-weight: $font-weight-bold;
388
- }
389
- }
390
- h2 {
391
- &, & * {
392
- font-size: $font-size-600 !important;
393
- line-height: $line-height-500;
394
- font-weight: $font-weight-bold;
395
- }
396
- }
397
- h3, h4, h5, h6 {
398
- &, & * {
399
- font-size: $font-size-400 !important;
400
- line-height: $line-height-400;
401
- font-weight: $font-weight-bold;
402
- }
403
- }
404
- h1, h2, h3, h4, h5, h6 {
405
- &, & * {
406
- margin: 0;
407
- }
408
- }
409
- .ql {
410
- &-editor {
411
- padding: $space-150;
412
- &.ql-blank::before {
413
- left: $space-150;
414
- }
415
- }
416
- &-align-center {
417
- text-align: center;
418
- }
419
- &-align-right {
420
- text-align: right;
421
- }
422
- &-align-left {
423
- text-align: left;
424
- }
425
- }
426
- img {
427
- max-width: 100%;
428
- max-height: 600px;
429
- margin: $space-150 0;
430
- border-radius: $radius-200;
431
- }
432
- blockquote {
433
- border-left: $space-50 solid $color-purple !important;
434
- margin: $space-zero;
435
- padding-left: $space-200;
436
- }
437
- }
438
-
439
- @mixin editor-notification-styles {
440
- @include editor-default-styles;
441
- h1 {
442
- margin-bottom: $space-250;
443
- img {
444
- object-fit: cover;
445
- margin: $space-zero auto $space-50;
446
- @media #{$media-query-s} {
447
- margin: $space-zero auto $space-250;
448
- }
449
- }
450
- }
451
- h2 {
452
- margin-bottom: $space-200;
453
- }
454
- * + h2 {
455
- margin-top: $space-300;
456
- }
457
- h3, strong {
458
- margin-bottom: $space-100;
459
- }
460
- * + h3 {
461
- margin-top: $space-250;
462
- }
463
- img {
464
- object-fit: cover;
465
- margin: $space-250 $space-zero;
466
- }
467
- img.horizontal {
468
- width: 100%;
469
- height: auto;
470
- max-height: 200px;
471
- }
472
- img.vertical {
473
- display: block;
474
- max-height: 180px;
475
- margin-left: auto;
476
- margin-right: auto;
477
- }
478
- blockquote {
479
- margin-top: $space-100;
480
- font-size: $font-size-300;
481
- font-weight: $font-weight-normal;
482
- line-height: $line-height-300;
483
- }
484
- }
485
-
486
- @mixin common-slide-styles {
487
- &-enter-active,
488
- &-leave-active {
489
- transition: all 150ms ease;
490
- }
491
- &-enter,
492
- &-leave-to {
493
- opacity: 0;
494
- }
495
- }
496
-
497
- @mixin slideAnimations {
498
- /*slide-right*/
499
- .slide-right {
500
- @include common-slide-styles;
501
- &-enter {
502
- transform: translateX(50%);
503
- }
504
- &-leave-to {
505
- transform: translateX(-50%);
506
- }
507
- }
508
- /*slide-left*/
509
- .slide-left {
510
- @include common-slide-styles;
511
- &-enter {
512
- transform: translateX(-50%);
513
- }
514
- &-leave-to {
515
- transform: translateX(50%);
516
- }
517
- }
518
- }
519
-
520
- @mixin animation-border-spinner($duration: 2s, $border-color: $color-purple, $border-size: $space-100) {
521
- background-repeat: no-repeat;
522
- background-image: linear-gradient(to right, $border-color 100%, $border-color 100%),
523
- linear-gradient(to bottom, $border-color 100%, $border-color 100%),
524
- linear-gradient(to right, $border-color 100%, $border-color 100%),
525
- linear-gradient(to bottom, $border-color 100%, $border-color 100%);
526
- background-position: 0 0, 100% 0, 100% 100%, 0 100%;
527
- background-size: 100% $border-size, $border-size 100%, 100% $border-size, $border-size 100%;
528
- animation: spin-border $duration linear;
529
-
530
- @keyframes spin-border {
531
- 0% {
532
- background-position: 0 0, 100% 0, 100% 100%, 0 100%;
533
- background-size: 0 $border-size, $border-size 0, 0 $border-size, $border-size 0;
534
- }
535
- 10% {
536
- background-position: 0 0, 100% 0, 100% 100%, 0 100%;
537
- background-size: 0 $border-size, $border-size 25%, 0 $border-size, $border-size 0;
538
- }
539
- 20% {
540
- background-position: 0 0, 100% 100%, 100% 100%, 0 100%;
541
- background-size: 0 $border-size, $border-size 50%, 0 $border-size, $border-size 0;
542
- }
543
- 30% {
544
- background-position: 0 0, 100% 100%, 100% 100%, 0 100%;
545
- background-size: 0 $border-size, $border-size 0, 100% $border-size, $border-size 0;
546
- }
547
- 40% {
548
- background-position: 0 0, 100% 0, 0 100%, 0 100%;
549
- background-size: 0 $border-size, $border-size 0, 100% $border-size, $border-size 100%;
550
- }
551
- 50% {
552
- background-position: 0 0, 100% 0, 0 100%, 0 100%;
553
- background-size: 50% $border-size, $border-size 0, 75% $border-size, $border-size 100%;
554
- }
555
- 60% {
556
- background-position: 0 0, 100% 0, 0 100%, 0 100%;
557
- background-size: 100% $border-size, $border-size 0, 50% $border-size, $border-size 100%;
558
- }
559
- 70% {
560
- background-position: 0 0, 100% 0, 0 100%, 0 100%;
561
- background-size: 100% $border-size, $border-size 33%, 25% $border-size, $border-size 100%;
562
- }
563
- 80% {
564
- background-position: 0 0, 100% 0, 0 100%, 0 100%;
565
- background-size: 100% $border-size, $border-size 66%, 0 $border-size, $border-size 100%;
566
- }
567
- 90% {
568
- background-position: 0 0, 100% 0, 100% 100%, 0 100%;
569
- background-size: 100% $border-size, $border-size 100%, 0 $border-size, $border-size 100%;
570
- }
571
- 100% {
572
- background-position: 0 0, 100% 0, 100% 100%, 0 100%;
573
- background-size: 100% $border-size, $border-size 100%, 100% $border-size, $border-size 100%;
574
- }
575
- }
576
- }
577
-
578
- @mixin mirror-x {
579
- transform: scale(-1, 1);
580
- }
581
-
582
- @mixin gradientText($gradient) {
583
- span {
584
- -webkit-box-decoration-break: clone;
585
- background: $gradient;
586
- -webkit-background-clip: text;
587
- -webkit-text-fill-color: transparent;
588
- }
589
- }
590
-
591
- // Create stack-space
592
- @mixin child-indent-bottom($space) {
593
- > *:not(:last-child) {
594
- margin-bottom: $space;
595
- }
596
- }
597
- @mixin child-indent-top($space) {
598
- > *:not(:first-child) {
599
- margin-top: $space;
600
- }
601
- }
602
-
603
- @mixin child-indent-right($space) {
604
- > *:not(:last-child) {
605
- margin-inline-end: $space;
606
- }
607
- }
608
- @mixin child-indent-left($space) {
609
- > *:not(:first-child) {
610
- margin-inline-start: $space;
611
- }
612
- }
@@ -1,33 +0,0 @@
1
- /* VUE DESIGN SYSTEM SPACING HELPERS
2
- --------------------------------------------- */
3
-
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;
33
- }
@@ -1,23 +0,0 @@
1
- @import '../tokens/animations.scss';
2
- @import '../tokens/border-radius.scss';
3
- @import '../tokens/box-shadows.scss';
4
- @import '../tokens/colors.scss';
5
- @import '../tokens/gradients.scss';
6
- @import '../tokens/durations.scss';
7
- @import '../tokens/easings.scss';
8
- @import '../tokens/font-families.scss';
9
- @import '../tokens/font-sizes.scss';
10
- @import '../tokens/font-weights.scss';
11
- @import '../tokens/gradients.scss';
12
- @import '../tokens/letter-spacings.scss';
13
- @import '../tokens/line-heights.scss';
14
- @import '../tokens/media-queries.scss';
15
- @import '../tokens/opacities.scss';
16
- @import '../tokens/sizes.scss';
17
- @import '../tokens/spacings.scss';
18
- @import '../tokens/z-indexes.scss';
19
-
20
-
21
-
22
-
23
-