aw-front-helpers 2.5.34 → 3.0.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.
@@ -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.1",
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,31 +1,22 @@
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
  // ------------------------------------------------------------
5
+ $vertical-spacing-mobile: 50px !default;
6
+ $vertical-spacing-tablet: 60px !default;
7
+ $vertical-spacing-desktop: 80px !default;
17
8
 
18
9
  @mixin wrapper {
19
10
  position: relative;
20
11
  margin-left: auto;
21
12
  margin-right: auto;
22
- width: $wrapper-width-sm;
23
- max-width: $wrapper-max;
13
+ width: var(--wrapper-width-sm);
14
+ max-width: var(--wrapper-max);
24
15
  @include desktop {
25
- width: $wrapper-width-md;
16
+ width: var(--wrapper-width-md);
26
17
  }
27
18
  @include desktop-xl {
28
- width: $wrapper-width-lg;
19
+ width: var(--wrapper-width-lg);
29
20
  }
30
21
  }
31
22
 
@@ -188,15 +179,15 @@ $vertical-spacing-desktop: 80px !default;
188
179
  }
189
180
  }
190
181
 
191
- @mixin loader($color: $color-primary, $scale: 1, $position: after) {
182
+ @mixin loader($color: var(--color-primary), $scale: 1, $position: after) {
192
183
  &::#{$position} {
193
184
  content: '';
194
185
  position: absolute;
195
186
  left: 50%;
196
187
  top: 50%;
197
188
  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);
189
+ border: rem(3 * $scale) solid $color;
190
+ border-top: rem(3 * $scale) solid color-mix(in srgb, #{$color} 10%, transparent);
200
191
  border-radius: 50%;
201
192
  width: rem(30 * $scale);
202
193
  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;