aw-front-helpers 2.5.14 → 2.5.16
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/bootstraper/index.js +5 -3
- package/classes/index.js +8 -4
- package/index.js +11 -7
- package/package.json +2 -1
- package/stylesheets/_medias.scss +2 -0
- package/stylesheets/_mixins.scss +15 -19
- package/stylesheets/_reset.scss +3 -2
- package/stylesheets/_sticky.scss +0 -1
- package/stylesheets/_variables.scss +2 -0
- package/utils/index.js +10 -7
package/bootstraper/index.js
CHANGED
package/classes/index.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import GParallax from './classes/globalParallax'
|
|
2
|
+
import Nearby from './classes/nearby'
|
|
3
|
+
import FormControl from './classes/formControl'
|
|
4
|
+
import Sticky from './classes/sticky'
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
GParallax, Nearby, FormControl, Sticky,
|
|
8
|
+
}
|
package/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import GParallax from './classes/globalParallax'
|
|
2
|
+
import Nearby from './classes/nearby'
|
|
3
|
+
import FormControl from './classes/formControl'
|
|
4
|
+
import Sticky from './classes/sticky'
|
|
5
|
+
import BootstraperMaps from './bootstraper/maps'
|
|
6
|
+
import BootstraperYoutube from './bootstraper/youtube'
|
|
7
|
+
import utils from './utils'
|
|
8
|
+
|
|
9
|
+
module.exports = {
|
|
10
|
+
GParallax, Nearby, FormControl, Sticky, BootstraperMaps, BootstraperYoutube, utils
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aw-front-helpers",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.16",
|
|
4
4
|
"description": "Assets helpers for projects",
|
|
5
5
|
"author": "Yoann Le Poupon",
|
|
6
6
|
"license": "ISC",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"es6-symbol": "^3.1.3",
|
|
14
14
|
"exif-js": "^2.3.0",
|
|
15
|
+
"debounce": "^2.1.0",
|
|
15
16
|
"gsap": "^3.12.3"
|
|
16
17
|
}
|
|
17
18
|
}
|
package/stylesheets/_medias.scss
CHANGED
|
@@ -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
|
|
package/stylesheets/_mixins.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
|
|
3
|
-
$color-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
191
|
+
@mixin loader($color: $color-primary, $scale: 1, $position: after) {
|
|
196
192
|
&::#{$position} {
|
|
197
193
|
content: '';
|
|
198
194
|
position: absolute;
|
package/stylesheets/_reset.scss
CHANGED
package/stylesheets/_sticky.scss
CHANGED
|
@@ -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
|
|
package/utils/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import array from './array'
|
|
2
|
+
import dom from './dom'
|
|
3
|
+
import func from './func'
|
|
4
|
+
import math from './math'
|
|
5
|
+
import regex from './regex'
|
|
6
|
+
import image from './image'
|
|
7
|
+
|
|
8
|
+
module.exports = {
|
|
9
|
+
array, dom, func, math, regex, image
|
|
10
|
+
}
|