sparrow-theme 0.1.1 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/_includes/footer.html +12 -0
- data/_includes/head.html +16 -0
- data/_includes/header.html +21 -0
- data/_includes/modules/card.html +8 -0
- data/_includes/modules/heroBanner.html +29 -0
- data/_includes/modules/heroSearch.html +11 -0
- data/_includes/modules/modal.html +13 -0
- data/_includes/modules/navSearch.html +12 -0
- data/_includes/modules/spinner.html +5 -0
- data/_includes/svg/icon-back.svg +3 -0
- data/_includes/svg/icon-chevron-left.svg +3 -0
- data/_includes/svg/icon-chevron-right.svg +3 -0
- data/_includes/svg/icon-close.svg +3 -0
- data/_includes/svg/icon-search.svg +3 -0
- data/_includes/svg/logo-smartsparrow.svg +7 -0
- data/_includes/typekit.html +13 -0
- data/_layouts/404.html +14 -0
- data/_layouts/compress.html +9 -0
- data/_layouts/default.html +18 -0
- data/_layouts/page.html +18 -0
- data/_layouts/post.html +5 -0
- data/_sass/sparrow-theme/base/_base.scss +226 -0
- data/_sass/sparrow-theme/base/_mixins.scss +25 -0
- data/_sass/sparrow-theme/base/_variables.scss +62 -0
- data/_sass/sparrow-theme/layout/_404.scss +49 -0
- data/_sass/sparrow-theme/layout/_catalog.scss +79 -0
- data/_sass/sparrow-theme/layout/_component.scss +289 -0
- data/_sass/sparrow-theme/layout/_footer.scss +81 -0
- data/_sass/sparrow-theme/layout/_header.scss +418 -0
- data/_sass/sparrow-theme/layout/_layout.scss +15 -0
- data/_sass/sparrow-theme/layout/_page.scss +70 -0
- data/_sass/sparrow-theme/modules/_actionPrompt.scss +33 -0
- data/_sass/sparrow-theme/modules/_button.scss +107 -0
- data/_sass/sparrow-theme/modules/_card.scss +93 -0
- data/_sass/sparrow-theme/modules/_carousel.scss +182 -0
- data/_sass/sparrow-theme/modules/_componentCard.scss +92 -0
- data/_sass/sparrow-theme/modules/_heroBanner.scss +230 -0
- data/_sass/sparrow-theme/modules/_modal.scss +122 -0
- data/_sass/sparrow-theme/modules/_navSearch.scss +161 -0
- data/_sass/sparrow-theme/modules/_preview.scss +99 -0
- data/_sass/sparrow-theme/modules/_sideNav.scss +41 -0
- data/_sass/sparrow-theme/modules/_spinner.scss +68 -0
- data/_sass/sparrow-theme/modules/_stepsList.scss +43 -0
- data/_sass/sparrow-theme/modules/_video.scss +13 -0
- data/_sass/sparrow-theme/vendor/_normalize.scss +429 -0
- data/_sass/sparrow-theme/vendor/_vendor.scss +3 -0
- data/assets/css/main.scss +7 -0
- data/assets/css/sparrow-theme.scss +38 -0
- data/assets/img/404.gif +0 -0
- data/assets/img/favicon.png +0 -0
- data/assets/img/touch.png +0 -0
- data/assets/js/scripts.js +5 -0
- data/assets/js/sparrow-theme/_partials/carousel.js +24 -0
- data/assets/js/sparrow-theme/_partials/catalog.js +226 -0
- data/assets/js/sparrow-theme/_partials/copyInput.js +107 -0
- data/assets/js/sparrow-theme/_partials/getData.js +23 -0
- data/assets/js/sparrow-theme/_partials/modal.js +51 -0
- data/assets/js/sparrow-theme/_partials/navigation.js +29 -0
- data/assets/js/sparrow-theme/_partials/scroll.js +102 -0
- data/assets/js/sparrow-theme/_partials/search.js +134 -0
- data/assets/js/sparrow-theme/_vendor/jquery-3.1.1.min.js +4 -0
- data/assets/js/sparrow-theme/_vendor/lunr.min.js +6 -0
- data/assets/js/sparrow-theme/_vendor/slick.min.js +18 -0
- data/assets/js/sparrow-theme/_vendor/uri.js +56 -0
- data/assets/js/sparrow-theme/sparrow-theme.js +23 -0
- metadata +71 -3
@@ -0,0 +1,81 @@
|
|
1
|
+
.footer {
|
2
|
+
background-color: $charcoal-grey;
|
3
|
+
|
4
|
+
&__wrapper {
|
5
|
+
@include outer-container;
|
6
|
+
@include pad(rem(40) $outer-pad);
|
7
|
+
display: flex;
|
8
|
+
align-items: center;
|
9
|
+
|
10
|
+
@include media($mobile) {
|
11
|
+
flex-direction: column;
|
12
|
+
align-items: center;
|
13
|
+
justify-content: center;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
&__list {
|
18
|
+
display: flex;
|
19
|
+
align-items: center;
|
20
|
+
flex-direction: row;
|
21
|
+
margin: 0;
|
22
|
+
list-style-type: none;
|
23
|
+
|
24
|
+
@include media($mobile) {
|
25
|
+
flex-direction: column;
|
26
|
+
align-items: center;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
&__listItem {
|
31
|
+
margin: 0;
|
32
|
+
margin-right: 30px;
|
33
|
+
display: flex;
|
34
|
+
|
35
|
+
&:last-child {
|
36
|
+
margin-right: 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
@include media($mobile) {
|
40
|
+
margin-right: 0;
|
41
|
+
margin-bottom: 20px;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
&__link {
|
46
|
+
font-size: 12px;
|
47
|
+
letter-spacing: 0.08em;
|
48
|
+
color: rgba($white, 0.9);
|
49
|
+
font-weight: 600;
|
50
|
+
text-transform: uppercase;
|
51
|
+
|
52
|
+
&:hover {
|
53
|
+
color: $white;
|
54
|
+
border-color: $white;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
&__legal {
|
59
|
+
margin: 0;
|
60
|
+
margin-left: auto;
|
61
|
+
display: flex;
|
62
|
+
align-items: center;
|
63
|
+
flex-direction: row;
|
64
|
+
list-style-type: none;
|
65
|
+
|
66
|
+
@include media($mobile) {
|
67
|
+
margin: 0;
|
68
|
+
flex-direction: column;
|
69
|
+
justify-content: center;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
&__text {
|
74
|
+
color: rgba($white, 0.5);
|
75
|
+
margin: 0;
|
76
|
+
font-size: 12px;
|
77
|
+
letter-spacing: 0.08em;
|
78
|
+
font-weight: 600;
|
79
|
+
text-transform: uppercase;
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1,418 @@
|
|
1
|
+
.header {
|
2
|
+
@include position(fixed, 0 0 null 0);
|
3
|
+
display: flex;
|
4
|
+
flex-direction: row;
|
5
|
+
align-items: center;
|
6
|
+
height: $header-height;
|
7
|
+
padding: 0 $outer-pad;
|
8
|
+
background: rgba($white, 1);
|
9
|
+
color: $text-color;
|
10
|
+
box-shadow: 0 1px 1px rgba($black, 0.1);
|
11
|
+
transition: background 0.3s ease, transform 0.6s $CurveFastOutSlowIn, opacity 0.6s $CurveFastOutSlowIn;
|
12
|
+
z-index: 1024;
|
13
|
+
transform: translateZ(0);
|
14
|
+
|
15
|
+
@include media($tablet) {
|
16
|
+
transform: none;
|
17
|
+
}
|
18
|
+
|
19
|
+
&--previewOpen {
|
20
|
+
transform: translate3d(0, -100%, 0);
|
21
|
+
opacity: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
&--transparent {
|
25
|
+
background: transparent;
|
26
|
+
box-shadow: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
&--scrolled {
|
30
|
+
background: rgba($white, 1);
|
31
|
+
color: $text-color;
|
32
|
+
box-shadow: 0 1px 1px rgba($black, 0.1);
|
33
|
+
}
|
34
|
+
|
35
|
+
&__title {
|
36
|
+
display: flex;
|
37
|
+
align-items: center;
|
38
|
+
position: relative;
|
39
|
+
z-index: 20;
|
40
|
+
}
|
41
|
+
|
42
|
+
&__titleLink {
|
43
|
+
display: flex;
|
44
|
+
align-items: center;
|
45
|
+
border: 0;
|
46
|
+
|
47
|
+
&:hover {
|
48
|
+
border: 0;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
&__logoContainer {
|
53
|
+
height: 34px;
|
54
|
+
width: 25px;
|
55
|
+
}
|
56
|
+
|
57
|
+
&__logo {
|
58
|
+
height: 34px;
|
59
|
+
width: 25px;
|
60
|
+
}
|
61
|
+
|
62
|
+
&__logoColour,
|
63
|
+
&__logoSolid {
|
64
|
+
transition: all 0.3s ease;
|
65
|
+
}
|
66
|
+
|
67
|
+
&__logoColour {
|
68
|
+
opacity: 1;
|
69
|
+
|
70
|
+
.header--transparent & {
|
71
|
+
opacity: 0;
|
72
|
+
}
|
73
|
+
|
74
|
+
.header--scrolled &,
|
75
|
+
.header--navOpen & {
|
76
|
+
opacity: 1;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
&__logoSolid {
|
81
|
+
opacity: 0;
|
82
|
+
|
83
|
+
.header--transparent & {
|
84
|
+
opacity: 1;
|
85
|
+
}
|
86
|
+
|
87
|
+
.header--scrolled &,
|
88
|
+
.header--navOpen & {
|
89
|
+
opacity: 0;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
&__titleText {
|
94
|
+
font-size: 12px;
|
95
|
+
letter-spacing: 0.08em;
|
96
|
+
font-weight: 600;
|
97
|
+
text-transform: uppercase;
|
98
|
+
margin-left: 15px;
|
99
|
+
padding-left: 20px;
|
100
|
+
border-left: $base-border;
|
101
|
+
transition: color 0.3s ease;
|
102
|
+
color: $text-color;
|
103
|
+
|
104
|
+
.header--transparent & {
|
105
|
+
color: $white;
|
106
|
+
border-left: 1px solid rgba($white, 0.3);
|
107
|
+
}
|
108
|
+
|
109
|
+
.header--scrolled & {
|
110
|
+
color: $text-color;
|
111
|
+
border-left: $base-border;
|
112
|
+
}
|
113
|
+
|
114
|
+
@include media($tablet) {
|
115
|
+
.header--navOpen & {
|
116
|
+
color: $text-color;
|
117
|
+
border-left: $base-border;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
&__nav {
|
123
|
+
display: flex;
|
124
|
+
align-items: center;
|
125
|
+
margin-left: auto;
|
126
|
+
height: 100%;
|
127
|
+
position: relative;
|
128
|
+
}
|
129
|
+
|
130
|
+
&__navList {
|
131
|
+
list-style-type: none;
|
132
|
+
display: flex;
|
133
|
+
flex-direction: row;
|
134
|
+
align-items: center;
|
135
|
+
margin: 0;
|
136
|
+
height: 100%;
|
137
|
+
|
138
|
+
@include media($tablet) {
|
139
|
+
@include position(fixed, 0 0 0 0);
|
140
|
+
background: rgba($white, 0);
|
141
|
+
padding-top: 40px;
|
142
|
+
visibility: hidden;
|
143
|
+
pointer-events: none;
|
144
|
+
flex-direction: column;
|
145
|
+
justify-content: center;
|
146
|
+
transition: all 0.4s 0.2s $CurveFastOutSlowIn;
|
147
|
+
|
148
|
+
.header--navOpen & {
|
149
|
+
transition: all 0.4s $CurveFastOutSlowIn;
|
150
|
+
visibility: visible;
|
151
|
+
pointer-events: auto;
|
152
|
+
background: rgba($white, 0.95);
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
&__toggleButton {
|
158
|
+
display: none;
|
159
|
+
border: 0;
|
160
|
+
padding: 0;
|
161
|
+
font-size: 12px;
|
162
|
+
letter-spacing: 0.08em;
|
163
|
+
font-weight: 600;
|
164
|
+
background: none;
|
165
|
+
text-transform: uppercase;
|
166
|
+
position: relative;
|
167
|
+
z-index: 20;
|
168
|
+
border-radius: $base-border-radius;
|
169
|
+
transition: all 0.3s ease;
|
170
|
+
padding: 10px;
|
171
|
+
right: -10px;
|
172
|
+
position: relative;
|
173
|
+
align-items: center;
|
174
|
+
margin: 0;
|
175
|
+
|
176
|
+
&:focus,
|
177
|
+
&:hover,
|
178
|
+
&:active {
|
179
|
+
background: rgba($black, 0.1);
|
180
|
+
outline: none;
|
181
|
+
}
|
182
|
+
|
183
|
+
.header--navOpen & { color: $text-color; }
|
184
|
+
|
185
|
+
.header--transparent & {
|
186
|
+
color: $white;
|
187
|
+
&--navOpen { color: $text-color; }
|
188
|
+
}
|
189
|
+
|
190
|
+
.header--scrolled &,
|
191
|
+
.header--navOpen & {
|
192
|
+
color: $text-color;
|
193
|
+
}
|
194
|
+
|
195
|
+
@include media($tablet) {
|
196
|
+
display: flex;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
&__toggleButtonInner {
|
201
|
+
display: flex;
|
202
|
+
align-items: center;
|
203
|
+
}
|
204
|
+
|
205
|
+
&__toggleIcon {
|
206
|
+
$bar-width: 18px;
|
207
|
+
$bar-height: 2px;
|
208
|
+
$bar-spacing: 5px;
|
209
|
+
$bar-color: lighten($black, 60%);
|
210
|
+
$bar-color-light: $white;
|
211
|
+
$bar-anim-duration: 0.5s;
|
212
|
+
$bar-anim-curve: cubic-bezier(0.23, 1, 0.32, 1);
|
213
|
+
|
214
|
+
position: relative;
|
215
|
+
background: rgba($bar-color, 1);
|
216
|
+
transition: all 0.2s 0s;
|
217
|
+
width: $bar-width;
|
218
|
+
height: $bar-height;
|
219
|
+
margin-right: 8px;
|
220
|
+
|
221
|
+
.header--navOpen & {
|
222
|
+
transition: all 0s 0.2s;
|
223
|
+
}
|
224
|
+
|
225
|
+
.header--transparent & {
|
226
|
+
background: rgba($bar-color-light, 1);
|
227
|
+
}
|
228
|
+
|
229
|
+
.header--scrolled & {
|
230
|
+
transition: all 0.2s 0s;
|
231
|
+
background: rgba($bar-color, 1);
|
232
|
+
}
|
233
|
+
|
234
|
+
.header--navOpen & {
|
235
|
+
background: rgba($bar-color, 0);
|
236
|
+
}
|
237
|
+
|
238
|
+
@keyframes barTop {
|
239
|
+
0% { transform: translateY(-$bar-spacing) rotate(0deg);}
|
240
|
+
40% { transform: translateY(0) rotate(0deg);}
|
241
|
+
100% { transform: translateY(0) rotate(-45deg);}
|
242
|
+
}
|
243
|
+
|
244
|
+
@keyframes barBottom {
|
245
|
+
0% { transform: translateY($bar-spacing) rotate(0deg);}
|
246
|
+
40% { transform: translateY(0) rotate(0deg);}
|
247
|
+
100% { transform: translateY(0) rotate(45deg);}
|
248
|
+
}
|
249
|
+
|
250
|
+
@keyframes barTopClose {
|
251
|
+
0% { transform: translateY(0) rotate(-45deg); }
|
252
|
+
40% { transform: translateY(0) rotate(0deg); }
|
253
|
+
100% { transform: translateY(-$bar-spacing) rotate(0deg); }
|
254
|
+
}
|
255
|
+
|
256
|
+
@keyframes barBottomClose {
|
257
|
+
0% { transform: translateY(0) rotate(45deg); }
|
258
|
+
40% { transform: translateY(0) rotate(0deg); }
|
259
|
+
100% { transform: translateY($bar-spacing) rotate(0deg); }
|
260
|
+
}
|
261
|
+
|
262
|
+
&:before {
|
263
|
+
content: "";
|
264
|
+
position: absolute;
|
265
|
+
left: 0;
|
266
|
+
transition: all 0.2s 0s;
|
267
|
+
transform: translateY(-$bar-spacing);
|
268
|
+
background: rgba($bar-color, 1);
|
269
|
+
width: $bar-width;
|
270
|
+
height: $bar-height;
|
271
|
+
|
272
|
+
.header--navOpen & {
|
273
|
+
transition: all 0s 0.2s;
|
274
|
+
}
|
275
|
+
|
276
|
+
.header--transparent & {
|
277
|
+
background: rgba($bar-color-light, 1);
|
278
|
+
}
|
279
|
+
|
280
|
+
.header--scrolled & {
|
281
|
+
background: rgba($bar-color, 1);
|
282
|
+
}
|
283
|
+
}
|
284
|
+
|
285
|
+
&:after {
|
286
|
+
content: "";
|
287
|
+
position: absolute;
|
288
|
+
left: 0;
|
289
|
+
transition: all 0.2s 0s;
|
290
|
+
transform: translateY($bar-spacing);
|
291
|
+
background: rgba($bar-color, 1);
|
292
|
+
width: $bar-width;
|
293
|
+
height: $bar-height;
|
294
|
+
|
295
|
+
.header--navOpen & {
|
296
|
+
transition: all 0s 0.2s;
|
297
|
+
}
|
298
|
+
|
299
|
+
.header--transparent & {
|
300
|
+
background: rgba($bar-color-light, 1);
|
301
|
+
}
|
302
|
+
|
303
|
+
.header--scrolled & {
|
304
|
+
transition: all 0.2s 0s;
|
305
|
+
background: rgba($bar-color, 1);
|
306
|
+
}
|
307
|
+
}
|
308
|
+
|
309
|
+
.header--navOpen & {
|
310
|
+
&:before {
|
311
|
+
animation: barTop $bar-anim-duration $bar-anim-curve forwards;
|
312
|
+
background: rgba($bar-color, 1);
|
313
|
+
}
|
314
|
+
}
|
315
|
+
|
316
|
+
.header--navOpen & {
|
317
|
+
&:after {
|
318
|
+
animation: barBottom $bar-anim-duration $bar-anim-curve forwards;
|
319
|
+
background: rgba($bar-color, 1);
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
&--closing:before {
|
324
|
+
animation: barTopClose $bar-anim-duration $bar-anim-curve forwards;
|
325
|
+
}
|
326
|
+
|
327
|
+
&--closing:after {
|
328
|
+
animation: barBottomClose $bar-anim-duration $bar-anim-curve forwards;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
&__navItem {
|
333
|
+
margin: 0;
|
334
|
+
margin-right: 30px;
|
335
|
+
display: flex;
|
336
|
+
align-items: center;
|
337
|
+
height: 100%;
|
338
|
+
|
339
|
+
&:last-child {
|
340
|
+
margin-right: 0;
|
341
|
+
}
|
342
|
+
|
343
|
+
@include media($tablet) {
|
344
|
+
transform: translate3d(0, 50px, 0);
|
345
|
+
transition: all 0.4s $CurveFastOutSlowIn;
|
346
|
+
margin-right: 0;
|
347
|
+
height: auto;
|
348
|
+
opacity: 0;
|
349
|
+
width: 100%;
|
350
|
+
}
|
351
|
+
|
352
|
+
.header--navOpen & {
|
353
|
+
@include media($tablet) {
|
354
|
+
transform: translate3d(0, 0, 0);
|
355
|
+
opacity: 1;
|
356
|
+
}
|
357
|
+
}
|
358
|
+
}
|
359
|
+
|
360
|
+
&__navLink {
|
361
|
+
font-size: 12px;
|
362
|
+
font-weight: 600;
|
363
|
+
text-transform: uppercase;
|
364
|
+
letter-spacing: 0.08em;
|
365
|
+
color: currentColor;
|
366
|
+
border: 0;
|
367
|
+
height: 100%;
|
368
|
+
display: flex;
|
369
|
+
align-items: center;
|
370
|
+
|
371
|
+
.header--transparent & {
|
372
|
+
color: rgba($white, 0.8);
|
373
|
+
}
|
374
|
+
|
375
|
+
.header--scrolled & {
|
376
|
+
color: $text-color;
|
377
|
+
}
|
378
|
+
|
379
|
+
.header & {
|
380
|
+
&--active,
|
381
|
+
&:hover {
|
382
|
+
color: $primary-color;
|
383
|
+
border: 0;
|
384
|
+
}
|
385
|
+
}
|
386
|
+
|
387
|
+
.header--transparent & {
|
388
|
+
&--active,
|
389
|
+
&:hover {
|
390
|
+
color: $white;
|
391
|
+
border: 0;
|
392
|
+
}
|
393
|
+
}
|
394
|
+
|
395
|
+
.header--scrolled & {
|
396
|
+
&--active,
|
397
|
+
&:hover {
|
398
|
+
color: $primary-color;
|
399
|
+
border: 0;
|
400
|
+
}
|
401
|
+
}
|
402
|
+
|
403
|
+
@include media($tablet) {
|
404
|
+
text-transform: none;
|
405
|
+
font-size: 18px;
|
406
|
+
letter-spacing: normal;
|
407
|
+
padding: 25px 0;
|
408
|
+
height: auto;
|
409
|
+
width: 100%;
|
410
|
+
justify-content: center;
|
411
|
+
|
412
|
+
.header & {
|
413
|
+
color: $text-color;
|
414
|
+
&--active, &:hover { color: $primary-color; }
|
415
|
+
}
|
416
|
+
}
|
417
|
+
}
|
418
|
+
}
|