aw-front-helpers 2.5.34 → 3.0.0

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.
@@ -7,7 +7,7 @@ export default class Credits {
7
7
  gsap.registerPlugin(SplitText);
8
8
  this._pattern = [
9
9
  '\u0074', '\u006f', '\u0075', '\u0074', '\u006f', '\u0063', '\u006c', '\u0069', '\u0063'
10
- ].reverse();
10
+ ];
11
11
  this._current = 0;
12
12
  this._createBounds();
13
13
  this._addEvents();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aw-front-helpers",
3
- "version": "2.5.34",
3
+ "version": "3.0.0",
4
4
  "description": "Assets helpers for projects",
5
5
  "author": "Yoann Le Poupon",
6
6
  "license": "ISC",
@@ -11,20 +11,18 @@ $breakpoint-burger: 1100px !default;
11
11
  // MEDIAS
12
12
  // ------------------------------------------------------------
13
13
 
14
- $media-query: 'only screen and';
15
-
16
14
  // Queries string
17
- $mobile: '#{$media-query} (max-width: #{$breakpoint-tablet - 1})';
18
- $phablet: '#{$media-query} (min-width: #{$breakpoint-phablet})';
19
- $tablet: '#{$media-query} (min-width: #{$breakpoint-tablet})';
20
- $tablet-max: '#{$media-query} (max-width: #{$breakpoint-desktop - 1})';
21
- $tablet-only: '#{$media-query} (min-width: #{$breakpoint-tablet}) and (max-width: #{$breakpoint-desktop - 1})';
22
- $desktop: '#{$media-query} (min-width: #{$breakpoint-desktop})';
23
- $desktop-xl: '#{$media-query} (min-width: #{$breakpoint-desktop-xl})';
24
- $desktop-xxl: '#{$media-query} (min-width: #{$breakpoint-desktop-xxl})';
25
- $desktop-xxxl: '#{$media-query} (min-width: #{$breakpoint-desktop-xxxl})';
26
- $burger-enable: '#{$media-query} (max-width: #{$breakpoint-burger - 1})';
27
- $burger-disable: '#{$media-query} (min-width: #{$breakpoint-burger})';
15
+ $mobile: 'only screen and (max-width: #{$breakpoint-tablet - 1})';
16
+ $phablet: 'only screen and (min-width: #{$breakpoint-phablet})';
17
+ $tablet: 'only screen and (min-width: #{$breakpoint-tablet})';
18
+ $tablet-max: 'only screen and (max-width: #{$breakpoint-desktop - 1})';
19
+ $tablet-only: 'only screen and (min-width: #{$breakpoint-tablet}) and (max-width: #{$breakpoint-desktop - 1})';
20
+ $desktop: 'only screen and (min-width: #{$breakpoint-desktop})';
21
+ $desktop-xl: 'only screen and (min-width: #{$breakpoint-desktop-xl})';
22
+ $desktop-xxl: 'only screen and (min-width: #{$breakpoint-desktop-xxl})';
23
+ $desktop-xxxl: 'only screen and (min-width: #{$breakpoint-desktop-xxxl})';
24
+ $burger-enable: 'only screen and (max-width: #{$breakpoint-burger - 1})';
25
+ $burger-disable: 'only screen and (min-width: #{$breakpoint-burger})';
28
26
 
29
27
  // Mixins media queries
30
28
  @mixin mobile {
@@ -1,16 +1,4 @@
1
1
  @charset "UTF-8";
2
-
3
- $color-primary: #000 !default;
4
-
5
- $wrapper-max: 1500px !default;
6
- $wrapper-width-sm: 95% !default;
7
- $wrapper-width-md: 95% !default;
8
- $wrapper-width-lg: 90% !default;
9
-
10
- $vertical-spacing-mobile: 50px !default;
11
- $vertical-spacing-tablet: 60px !default;
12
- $vertical-spacing-desktop: 80px !default;
13
-
14
2
  // ------------------------------------------------------------
15
3
  // MIXINS
16
4
  // ------------------------------------------------------------
@@ -19,13 +7,13 @@ $vertical-spacing-desktop: 80px !default;
19
7
  position: relative;
20
8
  margin-left: auto;
21
9
  margin-right: auto;
22
- width: $wrapper-width-sm;
23
- max-width: $wrapper-max;
10
+ width: var(--wrapper-width-sm);
11
+ max-width: var(--wrapper-max);
24
12
  @include desktop {
25
- width: $wrapper-width-md;
13
+ width: var(--wrapper-width-md);
26
14
  }
27
15
  @include desktop-xl {
28
- width: $wrapper-width-lg;
16
+ width: var(--wrapper-width-lg);
29
17
  }
30
18
  }
31
19
 
@@ -41,25 +29,25 @@ $vertical-spacing-desktop: 80px !default;
41
29
 
42
30
  @mixin vertical-spacing-top($facteur: 1) {
43
31
  & {
44
- margin-top: $vertical-spacing-mobile * $facteur;
32
+ margin-top: calc( var(--vertical-spacing-mobile) * $facteur );
45
33
  }
46
34
  @include tablet {
47
- margin-top: $vertical-spacing-tablet * $facteur;
35
+ margin-top: calc( var(--vertical-spacing-tablet) * $facteur );
48
36
  }
49
37
  @include desktop {
50
- margin-top: $vertical-spacing-desktop * $facteur;
38
+ margin-top: calc( var(--vertical-spacing-desktop) * $facteur );
51
39
  }
52
40
  }
53
41
 
54
42
  @mixin vertical-spacing-bottom($facteur: 1) {
55
43
  & {
56
- margin-bottom: $vertical-spacing-mobile * $facteur;
44
+ margin-bottom: calc( var(--vertical-spacing-mobile) * $facteur );
57
45
  }
58
46
  @include tablet {
59
- margin-bottom: $vertical-spacing-tablet * $facteur;
47
+ margin-bottom: calc( var(--vertical-spacing-tablet) * $facteur );
60
48
  }
61
49
  @include desktop {
62
- margin-bottom: $vertical-spacing-desktop * $facteur;
50
+ margin-bottom: calc( var(--vertical-spacing-desktop) * $facteur );
63
51
  }
64
52
  }
65
53
 
@@ -70,25 +58,25 @@ $vertical-spacing-desktop: 80px !default;
70
58
 
71
59
  @mixin vertical-spacing-inner-top($facteur: 1) {
72
60
  & {
73
- padding-top: $vertical-spacing-mobile * $facteur;
61
+ padding-top: calc( var(--vertical-spacing-mobile) * $facteur );
74
62
  }
75
63
  @include tablet {
76
- padding-top: $vertical-spacing-tablet * $facteur;
64
+ padding-top: calc( var(--vertical-spacing-tablet) * $facteur );
77
65
  }
78
66
  @include desktop {
79
- padding-top: $vertical-spacing-desktop * $facteur;
67
+ padding-top: calc( var(--vertical-spacing-desktop) * $facteur );
80
68
  }
81
69
  }
82
70
 
83
71
  @mixin vertical-spacing-inner-bottom($facteur: 1) {
84
72
  & {
85
- padding-bottom: $vertical-spacing-mobile * $facteur;
73
+ padding-bottom: calc( var(--vertical-spacing-mobile) * $facteur );
86
74
  }
87
75
  @include tablet {
88
- padding-bottom: $vertical-spacing-tablet * $facteur;
76
+ padding-bottom: calc( var(--vertical-spacing-tablet) * $facteur );
89
77
  }
90
78
  @include desktop {
91
- padding-bottom: $vertical-spacing-desktop * $facteur;
79
+ padding-bottom: calc( var(--vertical-spacing-desktop) * $facteur );
92
80
  }
93
81
  }
94
82
 
@@ -188,15 +176,15 @@ $vertical-spacing-desktop: 80px !default;
188
176
  }
189
177
  }
190
178
 
191
- @mixin loader($color: $color-primary, $scale: 1, $position: after) {
179
+ @mixin loader($color: var(--color-primary), $scale: 1, $position: after) {
192
180
  &::#{$position} {
193
181
  content: '';
194
182
  position: absolute;
195
183
  left: 50%;
196
184
  top: 50%;
197
185
  transform: translateX(-50%) translateY(-50%);
198
- border: rem(3 * $scale) solid rgba($color, 0.1);
199
- border-top: rem(3 * $scale) solid rgba($color, 1);
186
+ border: rem(3 * $scale) solid $color;
187
+ border-top: rem(3 * $scale) solid color-mix(in srgb, #{$color} 10%, transparent);
200
188
  border-radius: 50%;
201
189
  width: rem(30 * $scale);
202
190
  height: rem(30 * $scale);
@@ -1,6 +1,3 @@
1
- $px-base: 16 !default;
2
- $color-link: black !default;
3
-
4
1
  html,
5
2
  body,
6
3
  div,
@@ -1,89 +0,0 @@
1
- // ------------------------------------------------------------
2
- // VARIABLES
3
- // ------------------------------------------------------------
4
-
5
- // -------------------------
6
- // Path
7
- // -------------------------
8
- $base-images: '../images' !default;
9
-
10
- // -------------------------
11
- // Colors
12
- // -------------------------
13
- $white: #fff;
14
- $black: #000;
15
- $red: #c82a28 !default;
16
- $green: #0d8e00 !default;
17
-
18
- // socials
19
- $social-fb: #3b5998;
20
- $social-tw: #3b9ef2;
21
- $social-goo: #dd4b39;
22
- $social-dp: #007ee5;
23
- $social-in: #d73576;
24
-
25
- // variables
26
- $color-error: $red !default;
27
- $color-success: $green !default;
28
-
29
- // -------------------------
30
- // Typography
31
- // -------------------------
32
-
33
- /* -----
34
- Font size
35
- ----- */
36
- $px-base: 16 !default;
37
-
38
- // -------------------------
39
- // Breakpoints
40
- // -------------------------
41
- $breakpoint-phablet: 480px !default;
42
- $breakpoint-tablet: 768px !default;
43
- $breakpoint-desktop: 1024px !default;
44
- $breakpoint-desktop-xl: 1280px !default;
45
- $breakpoint-desktop-xxl: 1440px !default;
46
- $breakpoint-desktop-xxxl: 1680px !default;
47
- $breakpoint-burger: 1100px !default;
48
-
49
- $wrapper-max: 1440px !default;
50
-
51
- // -------------------------
52
- // Easing
53
- // -------------------------
54
- $ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
55
- $ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
56
- $ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
57
- $ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
58
- $ease-in-sine: cubic-bezier(0.47, 0, 0.745, 0.715);
59
- $ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
60
- $ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
61
- $ease-in-back: cubic-bezier(0.6, -0.28, 0.735, 0.045);
62
-
63
- $ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
64
- $ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
65
- $ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
66
- $ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
67
- $ease-out-sine: cubic-bezier(0.39, 0.575, 0.565, 1);
68
- $ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
69
- $ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
70
- $ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
71
-
72
- $ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
73
- $ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
74
- $ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
75
- $ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
76
- $ease-in-out-sine: cubic-bezier(0.445, 0.05, 0.55, 0.95);
77
- $ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
78
- $ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
79
- $ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
80
-
81
- /* -----
82
- Transition
83
- ----- */
84
- $transition-in-duration: 0.2s !default;
85
- $transition-in-ease: $ease-in-sine !default;
86
- $transition-out-duration: 0.5s !default;
87
- $transition-out-ease: $ease-out-sine !default;
88
- $transition-in-hover: 0.15s $ease-in-quad !default;
89
- $transition-out-hover: 0.25s $ease-out-quad !default;