aw-front-helpers 2.5.11 → 2.5.13

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.
Files changed (42) hide show
  1. package/.prettierrc.json +15 -0
  2. package/bootstraper/Readme.md +3 -2
  3. package/bootstraper/index.js +2 -2
  4. package/bootstraper/maps.js +1 -1
  5. package/bootstraper/youtube.js +1 -1
  6. package/classes/Readme.md +4 -3
  7. package/classes/formControl.js +82 -43
  8. package/classes/globalParallax.js +55 -32
  9. package/classes/index.js +1 -1
  10. package/classes/nearby.js +49 -33
  11. package/classes/sticky.js +44 -25
  12. package/package.json +2 -2
  13. package/stylesheets/Readme.md +9 -0
  14. package/stylesheets/_functions.scss +3 -3
  15. package/stylesheets/_medias.scss +62 -22
  16. package/stylesheets/_mixins.scss +33 -26
  17. package/stylesheets/_reset.scss +116 -24
  18. package/stylesheets/_sticky.scss +1 -1
  19. package/stylesheets/_variables.scss +29 -29
  20. package/utils/array/combine.js +2 -2
  21. package/utils/array/max.js +2 -2
  22. package/utils/array/merge-deep.js +2 -2
  23. package/utils/array/min.js +2 -2
  24. package/utils/array/slice.js +2 -2
  25. package/utils/array/without.js +2 -2
  26. package/utils/dom/each.js +4 -5
  27. package/utils/dom/getClosest.js +2 -2
  28. package/utils/dom/next.js +1 -1
  29. package/utils/dom/resize.js +2 -2
  30. package/utils/dom/retina.js +7 -8
  31. package/utils/dom/scroll.js +10 -6
  32. package/utils/func/isTouch.js +1 -1
  33. package/utils/func/once.js +6 -6
  34. package/utils/helpers.js +37 -20
  35. package/utils/image/detectVerticalSquash.js +3 -4
  36. package/utils/image/drawImage.js +1 -1
  37. package/utils/image/resize.js +6 -6
  38. package/utils/image/thumbnail.js +27 -8
  39. package/utils/math/clamp.js +2 -2
  40. package/utils/math/hypo.js +2 -2
  41. package/utils/media/autoplay.js +3 -2
  42. package/utils/regex/email.js +2 -1
package/classes/sticky.js CHANGED
@@ -1,4 +1,4 @@
1
- import debounce from "debounce";
1
+ import debounce from 'debounce';
2
2
  import EventEmitter from 'events';
3
3
 
4
4
  export default class Sticky extends EventEmitter {
@@ -10,7 +10,7 @@ export default class Sticky extends EventEmitter {
10
10
  el: window.document,
11
11
  breakpointDisabled: null,
12
12
  topHeightAdjustement: 0,
13
- ...options
13
+ ...options,
14
14
  };
15
15
 
16
16
  this._isDisabled = false;
@@ -45,9 +45,9 @@ export default class Sticky extends EventEmitter {
45
45
  }
46
46
 
47
47
  destroy() {
48
- window.removeEventListener("scroll", this._onScrollHandler);
49
- window.removeEventListener("resize", this._onResize);
50
- this._dom.el.classList.remove("is-sticky", "is-sticky-end");
48
+ window.removeEventListener('scroll', this._onScrollHandler);
49
+ window.removeEventListener('resize', this._onResize);
50
+ this._dom.el.classList.remove('is-sticky', 'is-sticky-end');
51
51
  this._dom.el.style.top = null;
52
52
  this._dom.el.style.width = null;
53
53
  }
@@ -56,65 +56,80 @@ export default class Sticky extends EventEmitter {
56
56
  // -
57
57
  _onScrollHandler() {
58
58
  if (this._isDisabled) return;
59
- this._vars.scrollY = window.pageYOffset;
60
- requestAnimationFrame(this._onScroll)
59
+ this._vars.scrollY = window.scrollY;
60
+ requestAnimationFrame(this._onScroll);
61
61
  }
62
62
 
63
63
  _onScroll() {
64
64
  if (this._isDisabled) return;
65
- const positionSticky = this._cache.containerTop - this._vars.scrollY - this._options.topHeightAdjustement;
65
+ const positionSticky =
66
+ this._cache.containerTop -
67
+ this._vars.scrollY -
68
+ this._options.topHeightAdjustement;
66
69
  const stickyFilter = positionSticky < 0;
67
70
 
68
- const stickyBottomWrapperPage = this._vars.scrollY + this._vars.height > this._cache.wrapperTop + this._cache.wrapperHeight;
69
- const stickyBottomElement = this._vars.scrollY + this._options.topHeightAdjustement + this._cache.containerHeight > this._cache.wrapperTop + this._cache.wrapperHeight;
71
+ const stickyBottomWrapperPage =
72
+ this._vars.scrollY + this._vars.height >
73
+ this._cache.wrapperTop + this._cache.wrapperHeight;
74
+ const stickyBottomElement =
75
+ this._vars.scrollY +
76
+ this._options.topHeightAdjustement +
77
+ this._cache.containerHeight >
78
+ this._cache.wrapperTop + this._cache.wrapperHeight;
70
79
  const stickyEndFilter = stickyBottomWrapperPage && stickyBottomElement;
71
80
  if (this._cache.wrapperHeight < this._cache.containerHeight) {
72
- this._dom.el.classList.remove("is-sticky", "is-sticky-end");
81
+ this._dom.el.classList.remove('is-sticky', 'is-sticky-end');
73
82
  return;
74
83
  }
75
84
 
76
85
  if (stickyFilter && !this._isSticky) {
77
86
  this._isSticky = true;
78
- this._dom.el.classList.add("is-sticky");
87
+ this._dom.el.classList.add('is-sticky');
79
88
  this._dom.el.style.top = `${this._options.topHeightAdjustement}px`;
80
89
  this._dom.el.style.width = `${this._cache.containerWidth}px`;
81
90
  } else if (!stickyFilter && this._isSticky) {
82
91
  this._isSticky = false;
83
92
  this._dom.el.style.top = null;
84
93
  this._dom.el.style.width = null;
85
- this._dom.el.classList.remove("is-sticky");
94
+ this._dom.el.classList.remove('is-sticky');
86
95
  }
87
96
  if (stickyEndFilter && !this._isEndSticky) {
88
97
  this._isEndSticky = true;
89
98
  this._dom.el.style.top = null;
90
99
  this._dom.el.style.width = null;
91
- this._dom.el.classList.add("is-sticky-end");
100
+ this._dom.el.classList.add('is-sticky-end');
92
101
  } else if (!stickyEndFilter && this._isEndSticky) {
93
102
  this._isEndSticky = false;
94
103
  this._dom.el.style.top = `${this._options.topHeightAdjustement}px`;
95
104
  this._dom.el.style.width = `${this._cache.containerWidth}px`;
96
- this._dom.el.classList.remove("is-sticky-end");
105
+ this._dom.el.classList.remove('is-sticky-end');
97
106
  }
98
107
  }
99
108
 
100
109
  _onResize() {
101
- if (this._options.breakpointDisabled && window.innerWidth < this._options.breakpointDisabled) {
110
+ if (
111
+ this._options.breakpointDisabled &&
112
+ window.innerWidth < this._options.breakpointDisabled
113
+ ) {
102
114
  this._setDisabled();
103
115
  return;
104
116
  }
105
117
  this._isSticky = false;
106
118
  this._isEndSticky = false;
107
- this._dom.el.classList.remove("is-sticky", "is-sticky-end");
119
+ this._dom.el.classList.remove('is-sticky', 'is-sticky-end');
108
120
  this._dom.el.style.width = null;
109
121
  setTimeout(() => {
110
122
  const boudingWrapper = this._dom.wrapper.getBoundingClientRect();
111
123
  const boudingContainer = this._dom.el.getBoundingClientRect();
112
124
  this._vars = {
113
- scrollY: window.pageYOffset || document.documentElement.scrollTop,
125
+ scrollY: window.scrollY || document.documentElement.scrollTop,
114
126
  height: window.innerHeight || document.documentElement.clientHeight,
115
127
  };
116
128
  this._cache = {
117
- windowHeight: window.innerHeight || document.documentElement.clientHeight || document.getElementsByTagName("body")[0],
129
+ windowHeight:
130
+ window.innerHeight ||
131
+ document.documentElement.clientHeight ||
132
+ document.getElementsByTagName('body')[0],
118
133
  containerTop: boudingContainer.top + this._vars.scrollY,
119
134
  containerHeight: boudingContainer.height,
120
135
  containerWidth: boudingContainer.width,
@@ -135,13 +150,15 @@ export default class Sticky extends EventEmitter {
135
150
  //________________________________________________________ private
136
151
  // -
137
152
  _createBound() {
138
- ["_onScroll", "_onScrollHandler", "_onResize"].forEach((fn) => (this[fn] = this[fn].bind(this)));
153
+ ['_onScroll', '_onScrollHandler', '_onResize'].forEach(
154
+ (fn) => (this[fn] = this[fn].bind(this))
155
+ );
139
156
  }
140
157
 
141
158
  _setDisabled() {
142
159
  if (this._isDisabled) return;
143
160
  this._isDisabled = true;
144
- this._dom.el.classList.remove("is-sticky", "is-sticky-end");
161
+ this._dom.el.classList.remove('is-sticky', 'is-sticky-end');
145
162
  this._dom.el.style.top = null;
146
163
  this._dom.el.style.width = null;
147
164
  this.emit('disable');
@@ -149,14 +166,16 @@ export default class Sticky extends EventEmitter {
149
166
 
150
167
  _grabDom() {
151
168
  this._dom = {};
152
- this._dom.el = this._options.el.querySelector("[data-sticker-element]");
153
- this._dom.wrapper = this._options.el.querySelector("[data-sticker-wrapper]");
169
+ this._dom.el = this._options.el.querySelector('[data-sticker-element]');
170
+ this._dom.wrapper = this._options.el.querySelector(
171
+ '[data-sticker-wrapper]'
172
+ );
154
173
  }
155
174
 
156
175
  _addEvents() {
157
176
  setTimeout(() => {
158
- window.addEventListener("scroll", this._onScrollHandler);
159
- window.addEventListener("resize", this._onResize);
177
+ window.addEventListener('scroll', this._onScrollHandler);
178
+ window.addEventListener('resize', this._onResize);
160
179
  });
161
180
  }
162
181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aw-front-helpers",
3
- "version": "2.5.11",
3
+ "version": "2.5.13",
4
4
  "description": "Assets helpers for projects",
5
5
  "author": "Yoann Le Poupon",
6
6
  "license": "ISC",
@@ -14,4 +14,4 @@
14
14
  "exif-js": "^2.3.0",
15
15
  "gsap": "^3.12.3"
16
16
  }
17
- }
17
+ }
@@ -7,15 +7,20 @@
7
7
  </div>
8
8
 
9
9
  ## functions.scss
10
+
10
11
  **Variables**
12
+
11
13
  - px-base
12
14
 
13
15
  **Functions**
16
+
14
17
  - rem
15
18
  - em
16
19
 
17
20
  ## medias.scss
21
+
18
22
  **Variables**
23
+
19
24
  - $breakpoint-phablet
20
25
  - $breakpoint-tablet
21
26
  - $breakpoint-desktop
@@ -24,6 +29,7 @@
24
29
  - $breakpoint-desktop-xxl
25
30
 
26
31
  **Mixins**
32
+
27
33
  - mobile
28
34
  - phablet
29
35
  - tablet
@@ -35,7 +41,9 @@
35
41
  - desktop-xxl
36
42
 
37
43
  ## mixins.scss
44
+
38
45
  **Variables:**
46
+
39
47
  - $wrapper-max
40
48
  - $wrapper-width-sm
41
49
  - $wrapper-width-md
@@ -45,6 +53,7 @@
45
53
  - $vertical-spacing-desktop
46
54
 
47
55
  **Mixins**
56
+
48
57
  - wrapper
49
58
  - vertical-spacing
50
59
  - vertical-spacing-top
@@ -4,9 +4,9 @@
4
4
  $px-base: 16 !default;
5
5
 
6
6
  @function rem($pxval) {
7
- @return math.div($pxval, $px-base ) * 1rem;
7
+ @return math.div($pxval, $px-base) * 1rem;
8
8
  }
9
9
 
10
10
  @function em($pxval) {
11
- @return math.div($pxval, $px-base ) * 1em;
12
- }
11
+ @return math.div($pxval, $px-base) * 1em;
12
+ }
@@ -1,7 +1,7 @@
1
1
  // VARIABLES
2
2
  $breakpoint-phablet: 480px !default;
3
- $breakpoint-tablet: 768px !default;
4
- $breakpoint-desktop: 1024px !default;
3
+ $breakpoint-tablet: 768px !default;
4
+ $breakpoint-desktop: 1024px !default;
5
5
  $breakpoint-desktop-xl: 1280px !default;
6
6
  $breakpoint-desktop-xxl: 1440px !default;
7
7
  $breakpoint-burger: 1100px !default;
@@ -13,25 +13,65 @@ $breakpoint-burger: 1100px !default;
13
13
  $media-query: 'only screen and';
14
14
 
15
15
  // Queries string
16
- $mobile: '#{$media-query} (max-width: #{$breakpoint-tablet - 1})';
17
- $phablet: '#{$media-query} (min-width: #{$breakpoint-phablet})';
18
- $tablet: '#{$media-query} (min-width: #{$breakpoint-tablet})';
19
- $tablet-max : '#{$media-query} (max-width: #{$breakpoint-desktop - 1})';
20
- $tablet-only: '#{$media-query} (min-width: #{$breakpoint-tablet}) and (max-width: #{$breakpoint-desktop - 1})';
21
- $desktop: '#{$media-query} (min-width: #{$breakpoint-desktop})';
22
- $desktop-xl: '#{$media-query} (min-width: #{$breakpoint-desktop-xl})';
23
- $desktop-xxl: '#{$media-query} (min-width: #{$breakpoint-desktop-xxl})';
24
- $burger-enable: '#{$media-query} (max-width: #{$breakpoint-burger - 1})';
25
- $burger-disable: '#{$media-query} (min-width: #{$breakpoint-burger})';
16
+ $mobile: '#{$media-query} (max-width: #{$breakpoint-tablet - 1})';
17
+ $phablet: '#{$media-query} (min-width: #{$breakpoint-phablet})';
18
+ $tablet: '#{$media-query} (min-width: #{$breakpoint-tablet})';
19
+ $tablet-max: '#{$media-query} (max-width: #{$breakpoint-desktop - 1})';
20
+ $tablet-only: '#{$media-query} (min-width: #{$breakpoint-tablet}) and (max-width: #{$breakpoint-desktop - 1})';
21
+ $desktop: '#{$media-query} (min-width: #{$breakpoint-desktop})';
22
+ $desktop-xl: '#{$media-query} (min-width: #{$breakpoint-desktop-xl})';
23
+ $desktop-xxl: '#{$media-query} (min-width: #{$breakpoint-desktop-xxl})';
24
+ $burger-enable: '#{$media-query} (max-width: #{$breakpoint-burger - 1})';
25
+ $burger-disable: '#{$media-query} (min-width: #{$breakpoint-burger})';
26
26
 
27
27
  // Mixins media queries
28
- @mixin mobile { @media #{$mobile} { @content; } }
29
- @mixin phablet { @media #{$phablet} { @content; } }
30
- @mixin tablet { @media #{$tablet} { @content; } }
31
- @mixin tablet-max { @media #{$tablet-max} { @content; } }
32
- @mixin tablet-only { @media #{$tablet-only} { @content; } }
33
- @mixin desktop { @media #{$desktop} { @content; } }
34
- @mixin desktop-xl { @media #{$desktop-xl} { @content; } }
35
- @mixin desktop-xxl { @media #{$desktop-xxl} { @content; } }
36
- @mixin burger-enable { @media #{$burger-enable} { @content; } }
37
- @mixin burger-disable { @media #{$burger-disable} { @content; } }
28
+ @mixin mobile {
29
+ @media #{$mobile} {
30
+ @content;
31
+ }
32
+ }
33
+ @mixin phablet {
34
+ @media #{$phablet} {
35
+ @content;
36
+ }
37
+ }
38
+ @mixin tablet {
39
+ @media #{$tablet} {
40
+ @content;
41
+ }
42
+ }
43
+ @mixin tablet-max {
44
+ @media #{$tablet-max} {
45
+ @content;
46
+ }
47
+ }
48
+ @mixin tablet-only {
49
+ @media #{$tablet-only} {
50
+ @content;
51
+ }
52
+ }
53
+ @mixin desktop {
54
+ @media #{$desktop} {
55
+ @content;
56
+ }
57
+ }
58
+ @mixin desktop-xl {
59
+ @media #{$desktop-xl} {
60
+ @content;
61
+ }
62
+ }
63
+ @mixin desktop-xxl {
64
+ @media #{$desktop-xxl} {
65
+ @content;
66
+ }
67
+ }
68
+ @mixin burger-enable {
69
+ @media #{$burger-enable} {
70
+ @content;
71
+ }
72
+ }
73
+ @mixin burger-disable {
74
+ @media #{$burger-disable} {
75
+ @content;
76
+ }
77
+ }
@@ -11,7 +11,6 @@ $vertical-spacing-mobile: 50px !default;
11
11
  $vertical-spacing-tablet: 60px !default;
12
12
  $vertical-spacing-desktop: 80px !default;
13
13
 
14
-
15
14
  // ------------------------------------------------------------
16
15
  // MIXINS
17
16
  // ------------------------------------------------------------
@@ -41,26 +40,26 @@ $vertical-spacing-desktop: 80px !default;
41
40
  }
42
41
 
43
42
  @mixin vertical-spacing-top($facteur: 1) {
44
- margin-top: $vertical-spacing-mobile*$facteur;
43
+ margin-top: $vertical-spacing-mobile * $facteur;
45
44
 
46
45
  @include tablet {
47
- margin-top: $vertical-spacing-tablet*$facteur;
46
+ margin-top: $vertical-spacing-tablet * $facteur;
48
47
  }
49
48
 
50
49
  @include desktop {
51
- margin-top: $vertical-spacing-desktop*$facteur;
50
+ margin-top: $vertical-spacing-desktop * $facteur;
52
51
  }
53
52
  }
54
53
 
55
54
  @mixin vertical-spacing-bottom($facteur: 1) {
56
- margin-bottom: $vertical-spacing-mobile*$facteur;
55
+ margin-bottom: $vertical-spacing-mobile * $facteur;
57
56
 
58
57
  @include tablet {
59
- margin-bottom: $vertical-spacing-tablet*$facteur;
58
+ margin-bottom: $vertical-spacing-tablet * $facteur;
60
59
  }
61
60
 
62
61
  @include desktop {
63
- margin-bottom: $vertical-spacing-desktop*$facteur;
62
+ margin-bottom: $vertical-spacing-desktop * $facteur;
64
63
  }
65
64
  }
66
65
 
@@ -70,26 +69,26 @@ $vertical-spacing-desktop: 80px !default;
70
69
  }
71
70
 
72
71
  @mixin vertical-spacing-inner-top($facteur: 1) {
73
- padding-top: $vertical-spacing-mobile*$facteur;
72
+ padding-top: $vertical-spacing-mobile * $facteur;
74
73
 
75
74
  @include tablet {
76
- padding-top: $vertical-spacing-tablet*$facteur;
75
+ padding-top: $vertical-spacing-tablet * $facteur;
77
76
  }
78
77
 
79
78
  @include desktop {
80
- padding-top: $vertical-spacing-desktop*$facteur;
79
+ padding-top: $vertical-spacing-desktop * $facteur;
81
80
  }
82
81
  }
83
82
 
84
83
  @mixin vertical-spacing-inner-bottom($facteur: 1) {
85
- padding-bottom: $vertical-spacing-mobile*$facteur;
84
+ padding-bottom: $vertical-spacing-mobile * $facteur;
86
85
 
87
86
  @include tablet {
88
- padding-bottom: $vertical-spacing-tablet*$facteur;
87
+ padding-bottom: $vertical-spacing-tablet * $facteur;
89
88
  }
90
89
 
91
90
  @include desktop {
92
- padding-bottom: $vertical-spacing-desktop*$facteur;
91
+ padding-bottom: $vertical-spacing-desktop * $facteur;
93
92
  }
94
93
  }
95
94
 
@@ -115,7 +114,7 @@ $vertical-spacing-desktop: 80px !default;
115
114
  width: auto;
116
115
  overflow: visible;
117
116
  background: transparent;
118
- color: inherit;
117
+ color: currentColor;
119
118
  font: inherit;
120
119
  line-height: normal;
121
120
  text-align: center;
@@ -142,7 +141,7 @@ $vertical-spacing-desktop: 80px !default;
142
141
  $width: nth($value, 1);
143
142
  $height: $width;
144
143
 
145
- @if length($value)>1 {
144
+ @if length($value) >1 {
146
145
  $height: nth($value, 2);
147
146
  }
148
147
 
@@ -185,6 +184,14 @@ $vertical-spacing-desktop: 80px !default;
185
184
  object-fit: cover;
186
185
  }
187
186
 
187
+ @mixin clearfix {
188
+ &::after {
189
+ clear: both;
190
+ content: '';
191
+ display: table;
192
+ }
193
+ }
194
+
188
195
  @mixin loader($color: $color-main, $scale: 1, $position: after) {
189
196
  &::#{$position} {
190
197
  content: '';
@@ -192,7 +199,7 @@ $vertical-spacing-desktop: 80px !default;
192
199
  left: 50%;
193
200
  top: 50%;
194
201
  transform: translateX(-50%) translateY(-50%);
195
- border: rem(3 * $scale) solid rgba($color, .1);
202
+ border: rem(3 * $scale) solid rgba($color, 0.1);
196
203
  border-top: rem(3 * $scale) solid rgba($color, 1);
197
204
  border-radius: 50%;
198
205
  width: rem(30 * $scale);
@@ -202,15 +209,6 @@ $vertical-spacing-desktop: 80px !default;
202
209
  }
203
210
  }
204
211
 
205
- @keyframes loaderAnimation {
206
- 0% {
207
- transform: translateX(-50%) translateY(-50%) rotate(0deg);
208
- }
209
- 100% {
210
- transform: translateX(-50%) translateY(-50%) rotate(360deg);
211
- }
212
- }
213
-
214
212
  @mixin hideAccess {
215
213
  border: 0 !important;
216
214
  clip: rect(1px, 1px, 1px, 1px) !important;
@@ -230,4 +228,13 @@ $vertical-spacing-desktop: 80px !default;
230
228
  width: auto !important;
231
229
  white-space: normal !important;
232
230
  }
233
- }
231
+ }
232
+
233
+ @keyframes loaderAnimation {
234
+ 0% {
235
+ transform: translateX(-50%) translateY(-50%) rotate(0deg);
236
+ }
237
+ 100% {
238
+ transform: translateX(-50%) translateY(-50%) rotate(360deg);
239
+ }
240
+ }
@@ -1,19 +1,88 @@
1
1
  $px-base: 16 !default;
2
2
  $color-link: black !default;
3
3
 
4
- html, body, div, span, applet, object, iframe,
5
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
6
- a, abbr, acronym, address, big, cite, code,
7
- del, dfn, em, img, ins, kbd, q, s, samp,
8
- small, strike, strong, sub, sup, tt, var,
9
- b, u, i, center,
10
- dl, dt, dd, ol, ul, li,
11
- fieldset, form, label, legend,
12
- table, caption, tbody, tfoot, thead, tr, th, td,
13
- article, aside, canvas, details, embed,
14
- figure, figcaption, footer, header, hgroup,
15
- menu, nav, output, ruby, section, summary,
16
- time, mark, audio, video, hr {
4
+ html,
5
+ body,
6
+ div,
7
+ span,
8
+ applet,
9
+ object,
10
+ iframe,
11
+ h1,
12
+ h2,
13
+ h3,
14
+ h4,
15
+ h5,
16
+ h6,
17
+ p,
18
+ blockquote,
19
+ pre,
20
+ a,
21
+ abbr,
22
+ acronym,
23
+ address,
24
+ big,
25
+ cite,
26
+ code,
27
+ del,
28
+ dfn,
29
+ em,
30
+ img,
31
+ ins,
32
+ kbd,
33
+ q,
34
+ s,
35
+ samp,
36
+ small,
37
+ strike,
38
+ strong,
39
+ sub,
40
+ sup,
41
+ tt,
42
+ var,
43
+ b,
44
+ u,
45
+ i,
46
+ center,
47
+ dl,
48
+ dt,
49
+ dd,
50
+ ol,
51
+ ul,
52
+ li,
53
+ fieldset,
54
+ form,
55
+ label,
56
+ legend,
57
+ table,
58
+ caption,
59
+ tbody,
60
+ tfoot,
61
+ thead,
62
+ tr,
63
+ th,
64
+ td,
65
+ article,
66
+ aside,
67
+ canvas,
68
+ details,
69
+ embed,
70
+ figure,
71
+ figcaption,
72
+ footer,
73
+ header,
74
+ hgroup,
75
+ menu,
76
+ nav,
77
+ output,
78
+ ruby,
79
+ section,
80
+ summary,
81
+ time,
82
+ mark,
83
+ audio,
84
+ video,
85
+ hr {
17
86
  margin: 0;
18
87
  padding: 0;
19
88
  border: 0;
@@ -23,13 +92,29 @@ time, mark, audio, video, hr {
23
92
  :after {
24
93
  box-sizing: border-box;
25
94
  }
26
- article, aside, details, figcaption, figure,
27
- footer, header, hgroup, menu, nav, section, main, form legend {
95
+ article,
96
+ aside,
97
+ details,
98
+ figcaption,
99
+ figure,
100
+ footer,
101
+ header,
102
+ hgroup,
103
+ menu,
104
+ nav,
105
+ section,
106
+ main,
107
+ form legend {
28
108
  display: block;
29
109
  }
30
- blockquote, q { quotes: none; }
31
- blockquote:before, blockquote:after,
32
- q:before, q:after {
110
+ blockquote,
111
+ q {
112
+ quotes: none;
113
+ }
114
+ blockquote:before,
115
+ blockquote:after,
116
+ q:before,
117
+ q:after {
33
118
  content: '';
34
119
  content: none;
35
120
  }
@@ -49,25 +134,32 @@ table {
49
134
  border-collapse: collapse;
50
135
  border-spacing: 0;
51
136
  }
52
- video, svg {
137
+ video,
138
+ svg {
53
139
  max-width: 100%;
54
140
  }
55
141
 
56
- h1, h2, h3, h4, h5, h6 {
142
+ h1,
143
+ h2,
144
+ h3,
145
+ h4,
146
+ h5,
147
+ h6 {
57
148
  font-size: rem($px-base);
58
149
  }
59
150
 
60
151
  a {
61
152
  text-decoration: none;
62
- color: $color-link;
153
+ color: currentColor;
63
154
  &:focus,
64
155
  &:hover {
65
- color: $color-link;
156
+ color: currentColor;
66
157
  }
67
158
  }
68
159
 
69
160
  .sprite {
70
- &, svg {
161
+ &,
162
+ svg {
71
163
  display: inline-block;
72
164
  width: 100%;
73
165
  height: 100%;
@@ -82,4 +174,4 @@ a {
82
174
  .sf-dump {
83
175
  position: relative;
84
176
  z-index: 2;
85
- }
177
+ }
@@ -12,4 +12,4 @@
12
12
  bottom: 0;
13
13
  top: auto;
14
14
  }
15
- }
15
+ }