@lucca-front/scss 20.3.0 → 20.3.1-rc.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "20.3.0",
3
+ "version": "20.3.1-rc.1",
4
4
  "description": "A Sass framework for Lucca products.",
5
5
  "main": "src/main.scss",
6
6
  "scripts": {},
@@ -23,6 +23,6 @@
23
23
  "normalize.css": "^8.0.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@lucca-front/icons": "20.3.0"
26
+ "@lucca-front/icons": "20.3.1-rc.1"
27
27
  }
28
28
  }
@@ -8,7 +8,8 @@
8
8
  @use '@lucca-front/scss/src/commons/utils/reset';
9
9
  @use '@lucca-front/scss/src/commons/utils/text';
10
10
  @use '@lucca-front/scss/src/commons/utils/a11y';
11
-
11
+ @use '@lucca-front/scss/src/commons/utils/media';
12
+ @use '@lucca-front/scss/src/commons/utils/container';
12
13
  @use '@lucca-front/scss/src/components/title/exports' as title;
13
14
 
14
15
  @layer utils {
@@ -25,108 +26,6 @@
25
26
  }
26
27
  }
27
28
 
28
- %animated {
29
- &FadeIn,
30
- &FadeOut {
31
- animation-name: fadeIn;
32
-
33
- @include keyframe.fadeIn;
34
- }
35
-
36
- &ScaleIn,
37
- &ScaleOut {
38
- animation-name: scaleIn;
39
-
40
- @include keyframe.scaleIn;
41
- }
42
-
43
- &ScaleInTop,
44
- &ScaleOutTop {
45
- animation-name: scaleInTop;
46
-
47
- @include keyframe.scaleIn;
48
- }
49
-
50
- &ScaleInRight,
51
- &ScaleOutRight {
52
- animation-name: scaleInRight;
53
-
54
- @include keyframe.scaleInRight;
55
- }
56
-
57
- &ScaleInBottom,
58
- &ScaleOutBottom {
59
- animation-name: scaleInBottom;
60
-
61
- @include keyframe.scaleInBottom;
62
- }
63
-
64
- &ScaleInLeft,
65
- &ScaleOutLeft {
66
- animation-name: scaleInLeft;
67
-
68
- @include keyframe.scaleInLeft;
69
- }
70
-
71
- &SlideIn,
72
- &SlideInTop,
73
- &SlideOut,
74
- &SlideOutTop {
75
- animation-name: slideIn;
76
-
77
- @include keyframe.slideIn;
78
- }
79
-
80
- &SlideInRight,
81
- &SlideOutRight {
82
- animation-name: slideInRight;
83
-
84
- @include keyframe.slideInRight;
85
- }
86
-
87
- &SlideInBottom,
88
- &SlideOutBottom {
89
- animation-name: slideInBottom;
90
-
91
- @include keyframe.slideInBottom;
92
- }
93
-
94
- &SlideInLeft,
95
- &SlideOutLeft {
96
- animation-name: slideInLeft;
97
-
98
- @include keyframe.slideInLeft;
99
- }
100
-
101
- &Shake {
102
- animation-name: shake;
103
-
104
- @include keyframe.shake;
105
- }
106
-
107
- &Pulse {
108
- animation-name: pulse;
109
- animation-direction: alternate;
110
- animation-iteration-count: var(--commons-animations-iteration-count);
111
-
112
- @include keyframe.pulse;
113
- }
114
-
115
- &FadeOut,
116
- &SlideOut,
117
- &SlideOutTop,
118
- &SlideOutRight,
119
- &SlideOutBottom,
120
- &SlideOutLeft,
121
- &ScaleOut,
122
- &ScaleOutTop,
123
- &ScaleOutRight,
124
- &ScaleOutBottom,
125
- &ScaleOutLeft {
126
- animation-direction: reverse;
127
- }
128
- }
129
-
130
29
  %mask {
131
30
  @include a11y.mask('!important');
132
31
  }
@@ -292,7 +191,105 @@
292
191
  }
293
192
 
294
193
  .pr-u-animated {
295
- @extend %animated;
194
+ &FadeIn,
195
+ &FadeOut {
196
+ animation-name: fadeIn;
197
+
198
+ @include keyframe.fadeIn;
199
+ }
200
+
201
+ &ScaleIn,
202
+ &ScaleOut {
203
+ animation-name: scaleIn;
204
+
205
+ @include keyframe.scaleIn;
206
+ }
207
+
208
+ &ScaleInTop,
209
+ &ScaleOutTop {
210
+ animation-name: scaleInTop;
211
+
212
+ @include keyframe.scaleIn;
213
+ }
214
+
215
+ &ScaleInRight,
216
+ &ScaleOutRight {
217
+ animation-name: scaleInRight;
218
+
219
+ @include keyframe.scaleInRight;
220
+ }
221
+
222
+ &ScaleInBottom,
223
+ &ScaleOutBottom {
224
+ animation-name: scaleInBottom;
225
+
226
+ @include keyframe.scaleInBottom;
227
+ }
228
+
229
+ &ScaleInLeft,
230
+ &ScaleOutLeft {
231
+ animation-name: scaleInLeft;
232
+
233
+ @include keyframe.scaleInLeft;
234
+ }
235
+
236
+ &SlideIn,
237
+ &SlideInTop,
238
+ &SlideOut,
239
+ &SlideOutTop {
240
+ animation-name: slideIn;
241
+
242
+ @include keyframe.slideIn;
243
+ }
244
+
245
+ &SlideInRight,
246
+ &SlideOutRight {
247
+ animation-name: slideInRight;
248
+
249
+ @include keyframe.slideInRight;
250
+ }
251
+
252
+ &SlideInBottom,
253
+ &SlideOutBottom {
254
+ animation-name: slideInBottom;
255
+
256
+ @include keyframe.slideInBottom;
257
+ }
258
+
259
+ &SlideInLeft,
260
+ &SlideOutLeft {
261
+ animation-name: slideInLeft;
262
+
263
+ @include keyframe.slideInLeft;
264
+ }
265
+
266
+ &Shake {
267
+ animation-name: shake;
268
+
269
+ @include keyframe.shake;
270
+ }
271
+
272
+ &Pulse {
273
+ animation-name: pulse;
274
+ animation-direction: alternate;
275
+ animation-iteration-count: var(--commons-animations-iteration-count);
276
+
277
+ @include keyframe.pulse;
278
+ }
279
+
280
+ &FadeOut,
281
+ &SlideOut,
282
+ &SlideOutTop,
283
+ &SlideOutRight,
284
+ &SlideOutBottom,
285
+ &SlideOutLeft,
286
+ &ScaleOut,
287
+ &ScaleOutTop,
288
+ &ScaleOutRight,
289
+ &ScaleOutBottom,
290
+ &ScaleOutLeft {
291
+ animation-direction: reverse;
292
+ }
296
293
  }
297
294
 
298
295
  .pr-u-mask {
@@ -489,6 +486,32 @@
489
486
  }
490
487
  }
491
488
 
489
+ @each $breakpoint, $value in config.$breakpoints {
490
+ @include media.min($breakpoint) {
491
+ .pr-u-displayNoneAtMediaMin#{$breakpoint} {
492
+ display: none !important;
493
+ }
494
+ }
495
+
496
+ @include media.max($breakpoint) {
497
+ .pr-u-displayNoneAtMediaMax#{$breakpoint} {
498
+ display: none !important;
499
+ }
500
+ }
501
+
502
+ @include container.min($breakpoint) {
503
+ .pr-u-displayNoneAtContainerMin#{$breakpoint} {
504
+ display: none !important;
505
+ }
506
+ }
507
+
508
+ @include container.max($breakpoint) {
509
+ .pr-u-displayNoneAtContainerMax#{$breakpoint} {
510
+ display: none !important;
511
+ }
512
+ }
513
+ }
514
+
492
515
  %inset0 {
493
516
  inset: 0 !important;
494
517
  }
@@ -531,7 +554,106 @@
531
554
  }
532
555
 
533
556
  .u-animated {
534
- @extend %animated;
557
+ &FadeIn,
558
+ &FadeOut {
559
+ animation-name: fadeIn;
560
+
561
+
562
+ @include keyframe.fadeIn;
563
+ }
564
+
565
+ &ScaleIn,
566
+ &ScaleOut {
567
+ animation-name: scaleIn;
568
+
569
+ @include keyframe.scaleIn;
570
+ }
571
+
572
+ &ScaleInTop,
573
+ &ScaleOutTop {
574
+ animation-name: scaleInTop;
575
+
576
+ @include keyframe.scaleIn;
577
+ }
578
+
579
+ &ScaleInRight,
580
+ &ScaleOutRight {
581
+ animation-name: scaleInRight;
582
+
583
+ @include keyframe.scaleInRight;
584
+ }
585
+
586
+ &ScaleInBottom,
587
+ &ScaleOutBottom {
588
+ animation-name: scaleInBottom;
589
+
590
+ @include keyframe.scaleInBottom;
591
+ }
592
+
593
+ &ScaleInLeft,
594
+ &ScaleOutLeft {
595
+ animation-name: scaleInLeft;
596
+
597
+ @include keyframe.scaleInLeft;
598
+ }
599
+
600
+ &SlideIn,
601
+ &SlideInTop,
602
+ &SlideOut,
603
+ &SlideOutTop {
604
+ animation-name: slideIn;
605
+
606
+ @include keyframe.slideIn;
607
+ }
608
+
609
+ &SlideInRight,
610
+ &SlideOutRight {
611
+ animation-name: slideInRight;
612
+
613
+ @include keyframe.slideInRight;
614
+ }
615
+
616
+ &SlideInBottom,
617
+ &SlideOutBottom {
618
+ animation-name: slideInBottom;
619
+
620
+ @include keyframe.slideInBottom;
621
+ }
622
+
623
+ &SlideInLeft,
624
+ &SlideOutLeft {
625
+ animation-name: slideInLeft;
626
+
627
+ @include keyframe.slideInLeft;
628
+ }
629
+
630
+ &Shake {
631
+ animation-name: shake;
632
+
633
+ @include keyframe.shake;
634
+ }
635
+
636
+ &Pulse {
637
+ animation-name: pulse;
638
+ animation-direction: alternate;
639
+ animation-iteration-count: var(--commons-animations-iteration-count);
640
+
641
+ @include keyframe.pulse;
642
+ }
643
+
644
+ &FadeOut,
645
+ &SlideOut,
646
+ &SlideOutTop,
647
+ &SlideOutRight,
648
+ &SlideOutBottom,
649
+ &SlideOutLeft,
650
+ &ScaleOut,
651
+ &ScaleOutTop,
652
+ &ScaleOutRight,
653
+ &ScaleOutBottom,
654
+ &ScaleOutLeft {
655
+ animation-direction: reverse;
656
+ }
535
657
  }
536
658
 
537
659
  .u-mask {