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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -0
  3. data/README.md +48 -0
  4. data/_includes/footer.html +12 -0
  5. data/_includes/head.html +16 -0
  6. data/_includes/header.html +21 -0
  7. data/_includes/modules/card.html +8 -0
  8. data/_includes/modules/heroBanner.html +29 -0
  9. data/_includes/modules/heroSearch.html +11 -0
  10. data/_includes/modules/modal.html +13 -0
  11. data/_includes/modules/navSearch.html +12 -0
  12. data/_includes/modules/spinner.html +5 -0
  13. data/_includes/svg/icon-back.svg +3 -0
  14. data/_includes/svg/icon-chevron-left.svg +3 -0
  15. data/_includes/svg/icon-chevron-right.svg +3 -0
  16. data/_includes/svg/icon-close.svg +3 -0
  17. data/_includes/svg/icon-search.svg +3 -0
  18. data/_includes/svg/logo-smartsparrow.svg +7 -0
  19. data/_includes/typekit.html +13 -0
  20. data/_layouts/404.html +14 -0
  21. data/_layouts/compress.html +9 -0
  22. data/_layouts/default.html +18 -0
  23. data/_layouts/page.html +18 -0
  24. data/_layouts/post.html +5 -0
  25. data/_sass/sparrow-theme/base/_base.scss +226 -0
  26. data/_sass/sparrow-theme/base/_mixins.scss +25 -0
  27. data/_sass/sparrow-theme/base/_variables.scss +62 -0
  28. data/_sass/sparrow-theme/layout/_404.scss +49 -0
  29. data/_sass/sparrow-theme/layout/_catalog.scss +79 -0
  30. data/_sass/sparrow-theme/layout/_component.scss +289 -0
  31. data/_sass/sparrow-theme/layout/_footer.scss +81 -0
  32. data/_sass/sparrow-theme/layout/_header.scss +418 -0
  33. data/_sass/sparrow-theme/layout/_layout.scss +15 -0
  34. data/_sass/sparrow-theme/layout/_page.scss +70 -0
  35. data/_sass/sparrow-theme/modules/_actionPrompt.scss +33 -0
  36. data/_sass/sparrow-theme/modules/_button.scss +107 -0
  37. data/_sass/sparrow-theme/modules/_card.scss +93 -0
  38. data/_sass/sparrow-theme/modules/_carousel.scss +182 -0
  39. data/_sass/sparrow-theme/modules/_componentCard.scss +92 -0
  40. data/_sass/sparrow-theme/modules/_heroBanner.scss +230 -0
  41. data/_sass/sparrow-theme/modules/_modal.scss +122 -0
  42. data/_sass/sparrow-theme/modules/_navSearch.scss +161 -0
  43. data/_sass/sparrow-theme/modules/_preview.scss +99 -0
  44. data/_sass/sparrow-theme/modules/_sideNav.scss +41 -0
  45. data/_sass/sparrow-theme/modules/_spinner.scss +68 -0
  46. data/_sass/sparrow-theme/modules/_stepsList.scss +43 -0
  47. data/_sass/sparrow-theme/modules/_video.scss +13 -0
  48. data/_sass/sparrow-theme/vendor/_normalize.scss +429 -0
  49. data/_sass/sparrow-theme/vendor/_vendor.scss +3 -0
  50. data/assets/css/main.scss +7 -0
  51. data/assets/css/sparrow-theme.scss +38 -0
  52. data/assets/img/404.gif +0 -0
  53. data/assets/img/favicon.png +0 -0
  54. data/assets/img/touch.png +0 -0
  55. data/assets/js/scripts.js +5 -0
  56. data/assets/js/sparrow-theme/_partials/carousel.js +24 -0
  57. data/assets/js/sparrow-theme/_partials/catalog.js +226 -0
  58. data/assets/js/sparrow-theme/_partials/copyInput.js +107 -0
  59. data/assets/js/sparrow-theme/_partials/getData.js +23 -0
  60. data/assets/js/sparrow-theme/_partials/modal.js +51 -0
  61. data/assets/js/sparrow-theme/_partials/navigation.js +29 -0
  62. data/assets/js/sparrow-theme/_partials/scroll.js +102 -0
  63. data/assets/js/sparrow-theme/_partials/search.js +134 -0
  64. data/assets/js/sparrow-theme/_vendor/jquery-3.1.1.min.js +4 -0
  65. data/assets/js/sparrow-theme/_vendor/lunr.min.js +6 -0
  66. data/assets/js/sparrow-theme/_vendor/slick.min.js +18 -0
  67. data/assets/js/sparrow-theme/_vendor/uri.js +56 -0
  68. data/assets/js/sparrow-theme/sparrow-theme.js +23 -0
  69. metadata +71 -3
@@ -0,0 +1,99 @@
1
+ .preview {
2
+ $preview-header-height: 65px;
3
+ @include position(fixed, 0 0 0 0);
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ background: rgba($white, 0);
8
+ overflow: hidden;
9
+ z-index: 9999;
10
+
11
+ &--hidden {
12
+ display: none;
13
+ }
14
+
15
+ &__header {
16
+ @keyframes headerIntro {
17
+ from {
18
+ transform: translate3d(0, -100%, 0);
19
+ opacity: 0;
20
+ }
21
+ to {
22
+ transform: translate3d(0, 0, 0);
23
+ opacity: 1;
24
+ }
25
+ }
26
+
27
+ @include position(absolute, 0 0 null 0);
28
+ height: $preview-header-height;
29
+ background: $charcoal-grey;
30
+ display: flex;
31
+ align-items: center;
32
+ padding: 0 10px;
33
+ border-bottom: 1px solid rgba($white, 0.1);
34
+ animation: headerIntro 0.6s $CurveFastOutSlowIn;
35
+ }
36
+
37
+ &__backButton {
38
+ transition: background 0.2s ease;
39
+ background: none;
40
+ border: 0;
41
+ padding: 10px;
42
+ margin: 0 5px 0 0;
43
+ border-radius: $base-border-radius;
44
+ position: relative;
45
+ left: -3px;
46
+ box-sizing: border-box;
47
+ height: 44px;
48
+
49
+ &:hover,
50
+ &:active,
51
+ &:focus {
52
+ outline: none;
53
+ background: rgba($white, 0.1);
54
+ }
55
+ }
56
+
57
+ &__backIcon {
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ fill: $white;
62
+ }
63
+
64
+ &__title {
65
+ font-size: 16px;
66
+ letter-spacing: normal;
67
+ color: $white;
68
+ margin: 0;
69
+
70
+ @include media($mobile) {
71
+ display: none;
72
+ }
73
+ }
74
+
75
+ &__action {
76
+ margin-left: auto;
77
+ }
78
+
79
+ &__content {
80
+ @include position(absolute, $preview-header-height 0 0 0);
81
+ height: calc(100% - #{$preview-header-height});
82
+ width: 100%;
83
+ background: $charcoal-grey;
84
+
85
+ &--hidden {
86
+ display: none;
87
+ }
88
+ }
89
+
90
+ &__iframe {
91
+ width: 100%;
92
+ height: 100%;
93
+ border: 0;
94
+
95
+ &--hidden {
96
+ display: none;
97
+ }
98
+ }
99
+ }
@@ -0,0 +1,41 @@
1
+ .sideNav {
2
+ &--fixed {
3
+ transform: translateZ(0);
4
+ position: fixed;
5
+ top: 100px;
6
+ }
7
+
8
+ &__list {
9
+ list-style-type: none;
10
+ margin-bottom: 26px;
11
+ }
12
+
13
+ &__title {
14
+ color: $heading-color;
15
+ font-size: 16px;
16
+ font-weight: 600;
17
+ margin-bottom: 5px;
18
+ }
19
+
20
+ &__listItem {
21
+ margin: 0;
22
+ line-height: 14px;
23
+ }
24
+
25
+ &__link {
26
+ color: $text-color;
27
+ font-size: 14px;
28
+ border: 0;
29
+ padding: 8px 0;
30
+ display: block;
31
+
32
+ &:hover,
33
+ &:focus,
34
+ &:active,
35
+ &--active {
36
+ color: $primary-color;
37
+ border: 0;
38
+ outline: none;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,68 @@
1
+ .spinner {
2
+ $spinner-size: 80px;
3
+
4
+ position: relative;
5
+ margin: 0 auto;
6
+ width: $spinner-size;
7
+
8
+ &:before {
9
+ content: '';
10
+ display: block;
11
+ padding-top: 100%;
12
+ }
13
+
14
+ &--hidden {
15
+ display: none;
16
+ }
17
+
18
+ &--small {
19
+ width: $spinner-size / 2;
20
+ }
21
+
22
+ &--small &__path {
23
+ stroke-width: 3;
24
+ }
25
+
26
+ &__wrapper {
27
+ animation: spinner--rotate 2s linear infinite;
28
+ height: 100%;
29
+ transform-origin: center center;
30
+ width: 100%;
31
+ position: absolute;
32
+ top: 0;
33
+ bottom: 0;
34
+ left: 0;
35
+ right: 0;
36
+ margin: auto;
37
+ }
38
+
39
+ &__path {
40
+ transform: translateZ(0);
41
+ stroke-dasharray: 1, 200;
42
+ stroke-dashoffset: 0;
43
+ stroke: $primary-color;
44
+ animation: spinner--dash 1.5s ease-in-out infinite;
45
+ stroke-linecap: round;
46
+ }
47
+ }
48
+
49
+ @keyframes spinner--rotate {
50
+ 100% {
51
+ transform: rotate(360deg);
52
+ }
53
+ }
54
+
55
+ @keyframes spinner--dash {
56
+ 0% {
57
+ stroke-dasharray: 1, 200;
58
+ stroke-dashoffset: 0;
59
+ }
60
+ 50% {
61
+ stroke-dasharray: 89, 200;
62
+ stroke-dashoffset: -35px;
63
+ }
64
+ 100% {
65
+ stroke-dasharray: 89, 200;
66
+ stroke-dashoffset: -124px;
67
+ }
68
+ }
@@ -0,0 +1,43 @@
1
+ .stepsList {
2
+ list-style-type: none;
3
+ margin: 0;
4
+
5
+ &:first-child {
6
+ counter-reset: listCounter;
7
+ }
8
+
9
+ &__item {
10
+ counter-increment: listCounter;
11
+ display: flex;
12
+ align-items: center;
13
+ font-size: 16px;
14
+ color: $text-color;
15
+ line-height: 1.4;
16
+ margin: 0 0 20px;
17
+
18
+ &:last-child {
19
+ margin: 0;
20
+ }
21
+ }
22
+
23
+ &__item:before {
24
+ @include size(32px);
25
+ content: counter(listCounter) " ";
26
+ font-weight: bold;
27
+ font-size: 18px;
28
+ line-height: 18px;
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ flex-shrink: 0;
33
+ margin-right: 15px;
34
+ border-radius: 50%;
35
+ text-align: center;
36
+ color: $primary-color;
37
+ background: rgba($primary-color, 0.2);
38
+ }
39
+
40
+ &__link {
41
+ font-size: 16px;
42
+ }
43
+ }
@@ -0,0 +1,13 @@
1
+ .video {
2
+ height: 0;
3
+ overflow: hidden;
4
+ padding-bottom: 56.25%; // For ratio 16:9. 75% if ratio is 4:3
5
+ position: relative;
6
+
7
+ embed,
8
+ object,
9
+ iframe {
10
+ @include position(absolute, 0px null null 0px);
11
+ @include size(100%);
12
+ }
13
+ }
@@ -0,0 +1,429 @@
1
+ /* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
2
+ *! normalize.css v3.0.2 | MIT License | git.io/normalize
3
+ –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
4
+
5
+ /**
6
+ * 1. Set default font family to sans-serif.
7
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
8
+ * user zoom.
9
+ */
10
+
11
+ html {
12
+ font-family: sans-serif; /* 1 */
13
+ -ms-text-size-adjust: 100%; /* 2 */
14
+ -webkit-text-size-adjust: 100%; /* 2 */
15
+ }
16
+
17
+ /**
18
+ * Remove default margin.
19
+ */
20
+
21
+ body {
22
+ margin: 0;
23
+ }
24
+
25
+ /* HTML5 display definitions
26
+ ========================================================================== */
27
+
28
+ /**
29
+ * Correct `block` display not defined for any HTML5 element in IE 8/9.
30
+ * Correct `block` display not defined for `details` or `summary` in IE 10/11
31
+ * and Firefox.
32
+ * Correct `block` display not defined for `main` in IE 11.
33
+ */
34
+
35
+ article,
36
+ aside,
37
+ details,
38
+ figcaption,
39
+ figure,
40
+ footer,
41
+ header,
42
+ hgroup,
43
+ main,
44
+ menu,
45
+ nav,
46
+ section,
47
+ summary {
48
+ display: block;
49
+ }
50
+
51
+ /**
52
+ * 1. Correct `inline-block` display not defined in IE 8/9.
53
+ * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
54
+ */
55
+
56
+ audio,
57
+ canvas,
58
+ progress,
59
+ video {
60
+ display: inline-block; /* 1 */
61
+ vertical-align: baseline; /* 2 */
62
+ }
63
+
64
+ /**
65
+ * Prevent modern browsers from displaying `audio` without controls.
66
+ * Remove excess height in iOS 5 devices.
67
+ */
68
+
69
+ audio:not([controls]) {
70
+ display: none;
71
+ height: 0;
72
+ }
73
+
74
+ /**
75
+ * Address `[hidden]` styling not present in IE 8/9/10.
76
+ * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
77
+ */
78
+
79
+ [hidden],
80
+ template {
81
+ display: none;
82
+ }
83
+
84
+ /* Links
85
+ ========================================================================== */
86
+
87
+ /**
88
+ * Remove the gray background color from active links in IE 10.
89
+ */
90
+
91
+ a {
92
+ background-color: transparent;
93
+ }
94
+
95
+ /**
96
+ * Improve readability when focused and also mouse hovered in all browsers.
97
+ */
98
+
99
+ a:active,
100
+ a:hover {
101
+ outline: 0;
102
+ }
103
+
104
+ /* Text-level semantics
105
+ ========================================================================== */
106
+
107
+ /**
108
+ * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
109
+ */
110
+
111
+ abbr[title] {
112
+ border-bottom: 1px dotted;
113
+ }
114
+
115
+ /**
116
+ * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
117
+ */
118
+
119
+ b,
120
+ strong {
121
+ font-weight: bold;
122
+ }
123
+
124
+ /**
125
+ * Address styling not present in Safari and Chrome.
126
+ */
127
+
128
+ dfn {
129
+ font-style: italic;
130
+ }
131
+
132
+ /**
133
+ * Address variable `h1` font-size and margin within `section` and `article`
134
+ * contexts in Firefox 4+, Safari, and Chrome.
135
+ */
136
+
137
+ h1 {
138
+ font-size: 2em;
139
+ margin: 0.67em 0;
140
+ }
141
+
142
+ /**
143
+ * Address styling not present in IE 8/9.
144
+ */
145
+
146
+ mark {
147
+ background: #ff0;
148
+ color: #000;
149
+ }
150
+
151
+ /**
152
+ * Address inconsistent and variable font size in all browsers.
153
+ */
154
+
155
+ small {
156
+ font-size: 80%;
157
+ }
158
+
159
+ /**
160
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
161
+ */
162
+
163
+ sub,
164
+ sup {
165
+ font-size: 75%;
166
+ line-height: 0;
167
+ position: relative;
168
+ vertical-align: baseline;
169
+ }
170
+
171
+ sup {
172
+ top: -0.5em;
173
+ }
174
+
175
+ sub {
176
+ bottom: -0.25em;
177
+ }
178
+
179
+ /* Embedded content
180
+ ========================================================================== */
181
+
182
+ /**
183
+ * Remove border when inside `a` element in IE 8/9/10.
184
+ */
185
+
186
+ img {
187
+ border: 0;
188
+ }
189
+
190
+ /**
191
+ * Correct overflow not hidden in IE 9/10/11.
192
+ */
193
+
194
+ svg:not(:root) {
195
+ overflow: hidden;
196
+ }
197
+
198
+ /* Grouping content
199
+ ========================================================================== */
200
+
201
+ /**
202
+ * Address margin not present in IE 8/9 and Safari.
203
+ */
204
+
205
+ figure {
206
+ margin: 1em 40px;
207
+ }
208
+
209
+ /**
210
+ * Address differences between Firefox and other browsers.
211
+ */
212
+
213
+ hr {
214
+ -moz-box-sizing: content-box;
215
+ box-sizing: content-box;
216
+ height: 0;
217
+ }
218
+
219
+ /**
220
+ * Contain overflow in all browsers.
221
+ */
222
+
223
+ pre {
224
+ overflow: auto;
225
+ }
226
+
227
+ /**
228
+ * Address odd `em`-unit font size rendering in all browsers.
229
+ */
230
+
231
+ code,
232
+ kbd,
233
+ pre,
234
+ samp {
235
+ font-family: monospace, monospace;
236
+ font-size: 1em;
237
+ }
238
+
239
+ /* Forms
240
+ ========================================================================== */
241
+
242
+ /**
243
+ * Known limitation: by default, Chrome and Safari on OS X allow very limited
244
+ * styling of `select`, unless a `border` property is set.
245
+ */
246
+
247
+ /**
248
+ * 1. Correct color not being inherited.
249
+ * Known issue: affects color of disabled elements.
250
+ * 2. Correct font properties not being inherited.
251
+ * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
252
+ */
253
+
254
+ button,
255
+ input,
256
+ optgroup,
257
+ select,
258
+ textarea {
259
+ color: inherit; /* 1 */
260
+ font: inherit; /* 2 */
261
+ margin: 0; /* 3 */
262
+ }
263
+
264
+ /**
265
+ * Address `overflow` set to `hidden` in IE 8/9/10/11.
266
+ */
267
+
268
+ button {
269
+ overflow: visible;
270
+ }
271
+
272
+ /**
273
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
274
+ * All other form control elements do not inherit `text-transform` values.
275
+ * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
276
+ * Correct `select` style inheritance in Firefox.
277
+ */
278
+
279
+ button,
280
+ select {
281
+ text-transform: none;
282
+ }
283
+
284
+ /**
285
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
286
+ * and `video` controls.
287
+ * 2. Correct inability to style clickable `input` types in iOS.
288
+ * 3. Improve usability and consistency of cursor style between image-type
289
+ * `input` and others.
290
+ */
291
+
292
+ button,
293
+ html input[type="button"], /* 1 */
294
+ input[type="reset"],
295
+ input[type="submit"] {
296
+ -webkit-appearance: button; /* 2 */
297
+ cursor: pointer; /* 3 */
298
+ }
299
+
300
+ /**
301
+ * Re-set default cursor for disabled elements.
302
+ */
303
+
304
+ button[disabled],
305
+ html input[disabled] {
306
+ cursor: default;
307
+ }
308
+
309
+ /**
310
+ * Remove inner padding and border in Firefox 4+.
311
+ */
312
+
313
+ button::-moz-focus-inner,
314
+ input::-moz-focus-inner {
315
+ border: 0;
316
+ padding: 0;
317
+ }
318
+
319
+ /**
320
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
321
+ * the UA stylesheet.
322
+ */
323
+
324
+ input {
325
+ line-height: normal;
326
+ }
327
+
328
+ /**
329
+ * It's recommended that you don't attempt to style these elements.
330
+ * Firefox's implementation doesn't respect box-sizing, padding, or width.
331
+ *
332
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
333
+ * 2. Remove excess padding in IE 8/9/10.
334
+ */
335
+
336
+ input[type="checkbox"],
337
+ input[type="radio"] {
338
+ box-sizing: border-box; /* 1 */
339
+ padding: 0; /* 2 */
340
+ }
341
+
342
+ /**
343
+ * Fix the cursor style for Chrome's increment/decrement buttons. For certain
344
+ * `font-size` values of the `input`, it causes the cursor style of the
345
+ * decrement button to change from `default` to `text`.
346
+ */
347
+
348
+ input[type="number"]::-webkit-inner-spin-button,
349
+ input[type="number"]::-webkit-outer-spin-button {
350
+ height: auto;
351
+ }
352
+
353
+ /**
354
+ * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
355
+ * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
356
+ * (include `-moz` to future-proof).
357
+ */
358
+
359
+ input[type="search"] {
360
+ -webkit-appearance: textfield; /* 1 */
361
+ -moz-box-sizing: content-box;
362
+ -webkit-box-sizing: content-box; /* 2 */
363
+ box-sizing: content-box;
364
+ }
365
+
366
+ /**
367
+ * Remove inner padding and search cancel button in Safari and Chrome on OS X.
368
+ * Safari (but not Chrome) clips the cancel button when the search input has
369
+ * padding (and `textfield` appearance).
370
+ */
371
+
372
+ input[type="search"]::-webkit-search-cancel-button,
373
+ input[type="search"]::-webkit-search-decoration {
374
+ -webkit-appearance: none;
375
+ }
376
+
377
+ /**
378
+ * Define consistent border, margin, and padding.
379
+ */
380
+
381
+ fieldset {
382
+ border: 1px solid #c0c0c0;
383
+ margin: 0 2px;
384
+ padding: 0.35em 0.625em 0.75em;
385
+ }
386
+
387
+ /**
388
+ * 1. Correct `color` not being inherited in IE 8/9/10/11.
389
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
390
+ */
391
+
392
+ legend {
393
+ border: 0; /* 1 */
394
+ padding: 0; /* 2 */
395
+ }
396
+
397
+ /**
398
+ * Remove default vertical scrollbar in IE 8/9/10/11.
399
+ */
400
+
401
+ textarea {
402
+ overflow: auto;
403
+ }
404
+
405
+ /**
406
+ * Don't inherit the `font-weight` (applied by a rule above).
407
+ * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
408
+ */
409
+
410
+ optgroup {
411
+ font-weight: bold;
412
+ }
413
+
414
+ /* Tables
415
+ ========================================================================== */
416
+
417
+ /**
418
+ * Remove most spacing between table cells.
419
+ */
420
+
421
+ table {
422
+ border-collapse: collapse;
423
+ border-spacing: 0;
424
+ }
425
+
426
+ td,
427
+ th {
428
+ padding: 0;
429
+ }