aw-front-helpers 2.5.13 → 2.5.15

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": "aw-front-helpers",
3
- "version": "2.5.13",
3
+ "version": "2.5.15",
4
4
  "description": "Assets helpers for projects",
5
5
  "author": "Yoann Le Poupon",
6
6
  "license": "ISC",
@@ -4,6 +4,7 @@ $breakpoint-tablet: 768px !default;
4
4
  $breakpoint-desktop: 1024px !default;
5
5
  $breakpoint-desktop-xl: 1280px !default;
6
6
  $breakpoint-desktop-xxl: 1440px !default;
7
+ $breakpoint-desktop-xxxl: 1680px !default;
7
8
  $breakpoint-burger: 1100px !default;
8
9
 
9
10
  // ------------------------------------------------------------
@@ -21,6 +22,7 @@ $tablet-only: '#{$media-query} (min-width: #{$breakpoint-tablet}) and (max-width
21
22
  $desktop: '#{$media-query} (min-width: #{$breakpoint-desktop})';
22
23
  $desktop-xl: '#{$media-query} (min-width: #{$breakpoint-desktop-xl})';
23
24
  $desktop-xxl: '#{$media-query} (min-width: #{$breakpoint-desktop-xxl})';
25
+ $desktop-xxxl: '#{$media-query} (min-width: #{$breakpoint-desktop-xxxl})';
24
26
  $burger-enable: '#{$media-query} (max-width: #{$breakpoint-burger - 1})';
25
27
  $burger-disable: '#{$media-query} (min-width: #{$breakpoint-burger})';
26
28
 
@@ -1,6 +1,6 @@
1
1
  @charset "UTF-8";
2
2
 
3
- $color-main: #000 !default;
3
+ $color-primary: #000 !default;
4
4
 
5
5
  $wrapper-max: 1500px !default;
6
6
  $wrapper-width-sm: 95% !default;
@@ -40,24 +40,24 @@ $vertical-spacing-desktop: 80px !default;
40
40
  }
41
41
 
42
42
  @mixin vertical-spacing-top($facteur: 1) {
43
- margin-top: $vertical-spacing-mobile * $facteur;
44
-
43
+ & {
44
+ margin-top: $vertical-spacing-mobile * $facteur;
45
+ }
45
46
  @include tablet {
46
47
  margin-top: $vertical-spacing-tablet * $facteur;
47
48
  }
48
-
49
49
  @include desktop {
50
50
  margin-top: $vertical-spacing-desktop * $facteur;
51
51
  }
52
52
  }
53
53
 
54
54
  @mixin vertical-spacing-bottom($facteur: 1) {
55
- margin-bottom: $vertical-spacing-mobile * $facteur;
56
-
55
+ & {
56
+ margin-bottom: $vertical-spacing-mobile * $facteur;
57
+ }
57
58
  @include tablet {
58
59
  margin-bottom: $vertical-spacing-tablet * $facteur;
59
60
  }
60
-
61
61
  @include desktop {
62
62
  margin-bottom: $vertical-spacing-desktop * $facteur;
63
63
  }
@@ -69,24 +69,24 @@ $vertical-spacing-desktop: 80px !default;
69
69
  }
70
70
 
71
71
  @mixin vertical-spacing-inner-top($facteur: 1) {
72
- padding-top: $vertical-spacing-mobile * $facteur;
73
-
72
+ & {
73
+ padding-top: $vertical-spacing-mobile * $facteur;
74
+ }
74
75
  @include tablet {
75
76
  padding-top: $vertical-spacing-tablet * $facteur;
76
77
  }
77
-
78
78
  @include desktop {
79
79
  padding-top: $vertical-spacing-desktop * $facteur;
80
80
  }
81
81
  }
82
82
 
83
83
  @mixin vertical-spacing-inner-bottom($facteur: 1) {
84
- padding-bottom: $vertical-spacing-mobile * $facteur;
85
-
84
+ & {
85
+ padding-bottom: $vertical-spacing-mobile * $facteur;
86
+ }
86
87
  @include tablet {
87
88
  padding-bottom: $vertical-spacing-tablet * $facteur;
88
89
  }
89
-
90
90
  @include desktop {
91
91
  padding-bottom: $vertical-spacing-desktop * $facteur;
92
92
  }
@@ -114,7 +114,6 @@ $vertical-spacing-desktop: 80px !default;
114
114
  width: auto;
115
115
  overflow: visible;
116
116
  background: transparent;
117
- color: currentColor;
118
117
  font: inherit;
119
118
  line-height: normal;
120
119
  text-align: center;
@@ -140,11 +139,9 @@ $vertical-spacing-desktop: 80px !default;
140
139
  @mixin size($value) {
141
140
  $width: nth($value, 1);
142
141
  $height: $width;
143
-
144
142
  @if length($value) >1 {
145
143
  $height: nth($value, 2);
146
144
  }
147
-
148
145
  width: $width;
149
146
  height: $height;
150
147
  }
@@ -178,7 +175,6 @@ $vertical-spacing-desktop: 80px !default;
178
175
  }
179
176
 
180
177
  @mixin imageCover {
181
- @include absolute;
182
178
  width: 100%;
183
179
  height: 100%;
184
180
  object-fit: cover;
@@ -186,13 +182,13 @@ $vertical-spacing-desktop: 80px !default;
186
182
 
187
183
  @mixin clearfix {
188
184
  &::after {
189
- clear: both;
190
185
  content: '';
186
+ clear: both;
191
187
  display: table;
192
188
  }
193
189
  }
194
190
 
195
- @mixin loader($color: $color-main, $scale: 1, $position: after) {
191
+ @mixin loader($color: $color-primary, $scale: 1, $position: after) {
196
192
  &::#{$position} {
197
193
  content: '';
198
194
  position: absolute;
@@ -139,6 +139,8 @@ svg {
139
139
  max-width: 100%;
140
140
  }
141
141
 
142
+ p,
143
+ li,
142
144
  h1,
143
145
  h2,
144
146
  h3,
@@ -151,15 +153,14 @@ h6 {
151
153
  a {
152
154
  text-decoration: none;
153
155
  color: currentColor;
154
- &:focus,
156
+ &:focus-visible,
155
157
  &:hover {
156
158
  color: currentColor;
157
159
  }
158
160
  }
159
161
 
160
162
  .sprite {
161
- &,
162
- svg {
163
+ &, svg {
163
164
  display: inline-block;
164
165
  width: 100%;
165
166
  height: 100%;
@@ -6,7 +6,6 @@
6
6
  position: fixed !important;
7
7
  z-index: 3;
8
8
  }
9
-
10
9
  &.is-sticky-end {
11
10
  position: absolute !important;
12
11
  bottom: 0;
@@ -43,6 +43,8 @@ $breakpoint-tablet: 768px !default;
43
43
  $breakpoint-desktop: 1024px !default;
44
44
  $breakpoint-desktop-xl: 1280px !default;
45
45
  $breakpoint-desktop-xxl: 1440px !default;
46
+ $breakpoint-desktop-xxxl: 1680px !default;
47
+ $breakpoint-burger: 1100px !default;
46
48
 
47
49
  $wrapper-max: 1440px !default;
48
50