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,25 @@
|
|
1
|
+
@mixin ellipsis {
|
2
|
+
white-space: nowrap;
|
3
|
+
overflow: hidden;
|
4
|
+
text-overflow: ellipsis;
|
5
|
+
}
|
6
|
+
|
7
|
+
@mixin omega-reset($nth) {
|
8
|
+
&:nth-child(#{$nth}) { margin-right: flex-gutter(); }
|
9
|
+
&:nth-child(#{$nth}+1) { clear: none }
|
10
|
+
}
|
11
|
+
|
12
|
+
@mixin hyphenate {
|
13
|
+
@include hyphens(auto);
|
14
|
+
word-wrap: break-word;
|
15
|
+
-webkit-hyphenate-limit-before: 2;
|
16
|
+
-webkit-hyphenate-limit-after: 3;
|
17
|
+
-webkit-hyphenate-limit-lines: 2;
|
18
|
+
}
|
19
|
+
|
20
|
+
@mixin placeholder($color) {
|
21
|
+
&::-webkit-input-placeholder { color: $color; }
|
22
|
+
&::-moz-placeholder { color: $color; }
|
23
|
+
&:-ms-input-placeholder { color: $color; }
|
24
|
+
&:-moz-placeholder { color: $color; }
|
25
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
@import "neat-helpers";
|
2
|
+
|
3
|
+
// Image assets
|
4
|
+
$assets: "{{ site.baseurl }}/assets/img";
|
5
|
+
|
6
|
+
// Grid Settings
|
7
|
+
$disable-warnings: true;
|
8
|
+
$border-box-sizing: true;
|
9
|
+
$section-pad: 100px;
|
10
|
+
$outer-pad: 20px;
|
11
|
+
$header-height: 65px;
|
12
|
+
$base-border-radius: 4px;
|
13
|
+
$max-width: 1100px + $outer-pad * 2;
|
14
|
+
|
15
|
+
// Breakpoints
|
16
|
+
$desktop-hd: new-breakpoint(min-width 1140px 12);
|
17
|
+
$desktop: new-breakpoint(min-width 900px 12);
|
18
|
+
$tablet: new-breakpoint(max-width 900px 12);
|
19
|
+
$mobile: new-breakpoint(max-width 700px 12);
|
20
|
+
|
21
|
+
// Fonts
|
22
|
+
$base-font-family: "adelle-sans", sans-serif;
|
23
|
+
$serif-font-family: "adelle-sans", sans-serif;
|
24
|
+
$base-font-size: 1em;
|
25
|
+
$base-line-height: 1.6;
|
26
|
+
$heading-line-height: 1.4;
|
27
|
+
$base-spacing: $base-line-height * 1em;
|
28
|
+
$small-spacing: $base-spacing / 2;
|
29
|
+
|
30
|
+
// Colors
|
31
|
+
$background-color: #F9F9F9;
|
32
|
+
$background-color-grey: #f1f1f0;
|
33
|
+
$base-border-color: #d9d9de;
|
34
|
+
$base-border: 1px solid $base-border-color;
|
35
|
+
|
36
|
+
$primary-color: #2E9FFF;
|
37
|
+
$primary-color-light: lighten($primary-color, 20%);
|
38
|
+
$primary-color-dark: darken($primary-color, 10%);
|
39
|
+
|
40
|
+
$charcoal-grey: #232c39;
|
41
|
+
$white: #ffffff;
|
42
|
+
$black: #000000;
|
43
|
+
|
44
|
+
$green: #2dd7aa;
|
45
|
+
$purple: #8030e1;
|
46
|
+
$orange: #ffbb24;
|
47
|
+
$orange-red: #ff6f42;
|
48
|
+
$red: #ef3e4d;
|
49
|
+
$green-dark: darken($green, 10%);
|
50
|
+
$purple-dark: darken($purple, 10%);
|
51
|
+
$orange-dark: darken($orange, 10%);
|
52
|
+
$orange-red-dark: darken($orange-red, 10%);
|
53
|
+
$red-dark: darken($red, 10%);
|
54
|
+
|
55
|
+
// Font colors
|
56
|
+
$text-color: rgba($black, 0.6);
|
57
|
+
$heading-color: rgba($black, 0.7);
|
58
|
+
|
59
|
+
// Animation curves
|
60
|
+
$CurveFastOutSlowIn: cubic-bezier(0.4, 0.0, 0.2, 1);
|
61
|
+
$CurveLinearOutSlowIn: cubic-bezier(0.0, 0.0, 0.2, 1);
|
62
|
+
$CurveFastOutLinearIn: cubic-bezier(0.4, 0.0, 1, 1);
|
@@ -0,0 +1,49 @@
|
|
1
|
+
.notFound {
|
2
|
+
height: 100vh;
|
3
|
+
|
4
|
+
&__wrapper {
|
5
|
+
background-repeat: no-repeat;
|
6
|
+
display: flex;
|
7
|
+
align-items: center;
|
8
|
+
justify-content: center;
|
9
|
+
background-size: cover;
|
10
|
+
height: 100vh;
|
11
|
+
|
12
|
+
&:before {
|
13
|
+
@include position(absolute, 0 0 0 0);
|
14
|
+
content: '';
|
15
|
+
background: linear-gradient(45deg, rgba(#a177ff, 0.5), rgba(#02CEFF, 0.5));
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
&__content {
|
20
|
+
text-align: center;
|
21
|
+
max-width: 500px;
|
22
|
+
position: relative;
|
23
|
+
}
|
24
|
+
|
25
|
+
&__title {
|
26
|
+
color: rgba($white, 0.95);
|
27
|
+
margin-bottom: 40px;
|
28
|
+
|
29
|
+
&:after {
|
30
|
+
content: '';
|
31
|
+
display: block;
|
32
|
+
margin: 40px auto 0;
|
33
|
+
border-top: 1px solid rgba($white, 0.3);
|
34
|
+
max-width: 160px;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
&__description {
|
39
|
+
color: rgba($white, 0.8);
|
40
|
+
}
|
41
|
+
|
42
|
+
&__contextHeading {
|
43
|
+
text-transform: uppercase;
|
44
|
+
font-size: 14px;
|
45
|
+
font-weight: 600;
|
46
|
+
letter-spacing: 0.025em;
|
47
|
+
color: rgba($white, 0.6);
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
.catalog {
|
2
|
+
$catalog-bottom-padding: 300px;
|
3
|
+
@include outer-container;
|
4
|
+
@include pad($section-pad $outer-pad $catalog-bottom-padding);
|
5
|
+
display: flex;
|
6
|
+
|
7
|
+
@include media($mobile) {
|
8
|
+
@include pad($section-pad/2 $outer-pad $catalog-bottom-padding);
|
9
|
+
}
|
10
|
+
|
11
|
+
&__nav {
|
12
|
+
@include span-columns(3);
|
13
|
+
|
14
|
+
@include media($mobile) {
|
15
|
+
display: none;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
&__items {
|
20
|
+
@include span-columns(9);
|
21
|
+
display: flex;
|
22
|
+
flex-direction: column;
|
23
|
+
|
24
|
+
&--centered {
|
25
|
+
@include shift(1.5);
|
26
|
+
}
|
27
|
+
|
28
|
+
@include media($mobile) {
|
29
|
+
@include span-columns(12);
|
30
|
+
@include shift(0);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
&__header {
|
35
|
+
display: flex;
|
36
|
+
align-items: center;
|
37
|
+
justify-content: space-between;
|
38
|
+
padding: 30px 0 20px;
|
39
|
+
min-height: 60px;
|
40
|
+
|
41
|
+
&--top {
|
42
|
+
padding-top: 0;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
&__title {
|
47
|
+
font-size: 22px;
|
48
|
+
font-weight: normal;
|
49
|
+
color: $heading-color;
|
50
|
+
margin: 0;
|
51
|
+
|
52
|
+
@include media($mobile) {
|
53
|
+
font-size: 18px;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
&__action {
|
58
|
+
margin: 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
&__section {
|
62
|
+
@keyframes fadeIn {
|
63
|
+
from {
|
64
|
+
opacity: 0;
|
65
|
+
}
|
66
|
+
to {
|
67
|
+
opacity: 1;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
&--fadeIn {
|
72
|
+
animation: fadeIn 0.4s $CurveFastOutSlowIn forwards;
|
73
|
+
}
|
74
|
+
|
75
|
+
&--hidden {
|
76
|
+
visibility: hidden;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,289 @@
|
|
1
|
+
.component {
|
2
|
+
@include outer-container;
|
3
|
+
@include pad($section-pad + 80 $outer-pad);
|
4
|
+
transition: transform 0.6s $CurveFastOutSlowIn, opacity 0.6s $CurveFastOutSlowIn;
|
5
|
+
|
6
|
+
@include media($mobile) {
|
7
|
+
@include pad($section-pad / 2 $outer-pad $section-pad);
|
8
|
+
}
|
9
|
+
|
10
|
+
&--previewOpen {
|
11
|
+
transform: translate3d(0, 60px, 0);
|
12
|
+
opacity: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
&__meta {
|
16
|
+
@include span-columns(4);
|
17
|
+
|
18
|
+
@include media($mobile) {
|
19
|
+
@include span-columns(12);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
&__details {
|
24
|
+
@include span-columns(8);
|
25
|
+
padding-left: 20px;
|
26
|
+
|
27
|
+
@include media($mobile) {
|
28
|
+
@include span-columns(12);
|
29
|
+
padding-left: 0;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
&__content {
|
34
|
+
h2 {
|
35
|
+
font-size: 24px;
|
36
|
+
}
|
37
|
+
|
38
|
+
h3 {
|
39
|
+
font-size: 20px;
|
40
|
+
}
|
41
|
+
|
42
|
+
h4 {
|
43
|
+
font-size: 18px;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
&__metaCard {
|
48
|
+
margin-bottom: 30px;
|
49
|
+
|
50
|
+
&--mobile {
|
51
|
+
display: none;
|
52
|
+
|
53
|
+
@include media($mobile) {
|
54
|
+
display: block;
|
55
|
+
margin-top: 50px;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
&--desktop {
|
60
|
+
display: block;
|
61
|
+
|
62
|
+
@include media($mobile) {
|
63
|
+
display: none;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
&__metaCardHeading {
|
69
|
+
margin-bottom: 10px;
|
70
|
+
font-size: 12px;
|
71
|
+
letter-spacing: 0.08em;
|
72
|
+
color: rgba($black, 0.4);
|
73
|
+
text-transform: uppercase;
|
74
|
+
font-weight: 600;
|
75
|
+
}
|
76
|
+
|
77
|
+
&__metaCardContent {
|
78
|
+
background: $white;
|
79
|
+
border: $base-border;
|
80
|
+
border-radius: $base-border-radius;
|
81
|
+
}
|
82
|
+
|
83
|
+
&__metaCardThumbnail {
|
84
|
+
height: 220px;
|
85
|
+
border-bottom: $base-border;
|
86
|
+
display: flex;
|
87
|
+
background-size: cover;
|
88
|
+
background-position: center;
|
89
|
+
background-repeat: no-repeat;
|
90
|
+
border-radius: $base-border-radius $base-border-radius 0 0;
|
91
|
+
overflow: hidden;
|
92
|
+
|
93
|
+
@include media($mobile) {
|
94
|
+
border: 0;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
&__metaCard--mobile &__metaCardThumbnail {
|
99
|
+
border-radius: $base-border-radius;
|
100
|
+
}
|
101
|
+
|
102
|
+
&__metaCardLinkList {
|
103
|
+
list-style-type: none;
|
104
|
+
margin: 0;
|
105
|
+
padding: 10px 0;
|
106
|
+
}
|
107
|
+
|
108
|
+
&__metaCardLinkItem {
|
109
|
+
margin: 0;
|
110
|
+
padding: 0;
|
111
|
+
}
|
112
|
+
|
113
|
+
&__metaCardLink {
|
114
|
+
display: block;
|
115
|
+
color: $text-color;
|
116
|
+
padding: 10px 20px;
|
117
|
+
margin: 0;
|
118
|
+
border: 0;
|
119
|
+
font-size: 16px;
|
120
|
+
|
121
|
+
&:hover {
|
122
|
+
border: 0;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
&__metaCardRelatedList {
|
127
|
+
list-style-type: none;
|
128
|
+
margin: 0;
|
129
|
+
}
|
130
|
+
|
131
|
+
&__metaCardRelatedItem {
|
132
|
+
margin: 0;
|
133
|
+
padding: 0;
|
134
|
+
border-bottom: $base-border;
|
135
|
+
|
136
|
+
&:last-child {
|
137
|
+
border-bottom: 0;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
&__metaCardRelatedLink {
|
142
|
+
display: flex;
|
143
|
+
flex-direction: row;
|
144
|
+
align-items: center;
|
145
|
+
color: $heading-color;
|
146
|
+
padding: 10px;
|
147
|
+
margin: 0;
|
148
|
+
border: 0;
|
149
|
+
font-size: 16px;
|
150
|
+
|
151
|
+
&:hover {
|
152
|
+
border: 0;
|
153
|
+
color: $primary-color;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
&__metaCardRelatedThumbnail {
|
158
|
+
width: 68px;
|
159
|
+
height: 46px;
|
160
|
+
border: $base-border;
|
161
|
+
border-radius: $base-border-radius;
|
162
|
+
background-size: cover;
|
163
|
+
background-position: center;
|
164
|
+
background-repeat: no-repeat;
|
165
|
+
margin-right: 15px;
|
166
|
+
}
|
167
|
+
|
168
|
+
&__metaCardRelatedTitle {
|
169
|
+
font-size: 16px;
|
170
|
+
line-height: 20px;
|
171
|
+
font-weight: 600;
|
172
|
+
white-space: nowrap;
|
173
|
+
overflow: hidden;
|
174
|
+
text-overflow: ellipsis;
|
175
|
+
}
|
176
|
+
|
177
|
+
&__summaryHeader {
|
178
|
+
display: flex;
|
179
|
+
flex-direction: column;
|
180
|
+
|
181
|
+
@include media($mobile) {
|
182
|
+
align-items: center;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
|
186
|
+
&__summaryAuthor {
|
187
|
+
border: 0;
|
188
|
+
display: flex;
|
189
|
+
align-items: center;
|
190
|
+
margin-bottom: 10px;
|
191
|
+
align-self: flex-start;
|
192
|
+
|
193
|
+
@include media($mobile) {
|
194
|
+
align-self: center;
|
195
|
+
}
|
196
|
+
|
197
|
+
&:hover {
|
198
|
+
border: 0;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
&__summaryAuthorAvatar {
|
203
|
+
width: 25px;
|
204
|
+
height: 25px;
|
205
|
+
border-radius: 50%;
|
206
|
+
margin-right: 10px;
|
207
|
+
}
|
208
|
+
|
209
|
+
&__summaryAuthorName {
|
210
|
+
font-size: 16px;
|
211
|
+
color: $text-color;
|
212
|
+
}
|
213
|
+
|
214
|
+
&__summaryDetails {
|
215
|
+
display: flex;
|
216
|
+
margin-bottom: 30px;
|
217
|
+
|
218
|
+
@include media($mobile) {
|
219
|
+
flex-direction: column;
|
220
|
+
align-items: center;
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
&__summaryTitle {
|
225
|
+
font-size: 32px;
|
226
|
+
margin: 0;
|
227
|
+
white-space: nowrap;
|
228
|
+
overflow: hidden;
|
229
|
+
text-overflow: ellipsis;
|
230
|
+
|
231
|
+
@include media($mobile) {
|
232
|
+
margin-bottom: 30px;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
&__summaryActions {
|
237
|
+
margin-left: auto;
|
238
|
+
align-self: flex-end;
|
239
|
+
flex-shrink: 0;
|
240
|
+
display: flex;
|
241
|
+
|
242
|
+
@include media($mobile) {
|
243
|
+
margin-left: 0;
|
244
|
+
align-self: center;
|
245
|
+
}
|
246
|
+
}
|
247
|
+
|
248
|
+
&__summaryAction {
|
249
|
+
margin-right: 10px;
|
250
|
+
margin-bottom: 0;
|
251
|
+
|
252
|
+
&:last-child {
|
253
|
+
margin-right: 0;
|
254
|
+
}
|
255
|
+
}
|
256
|
+
|
257
|
+
&__tag {
|
258
|
+
display: flex;
|
259
|
+
flex-wrap: wrap;
|
260
|
+
margin: 30px 0 20px;
|
261
|
+
}
|
262
|
+
|
263
|
+
&__tagItem {
|
264
|
+
$tagColor: #E7E7E7;
|
265
|
+
background: $tagColor;
|
266
|
+
font-size: 16px;
|
267
|
+
color: $text-color;
|
268
|
+
height: 40px;
|
269
|
+
padding: 0 15px;
|
270
|
+
display: flex;
|
271
|
+
align-items: center;
|
272
|
+
justify-content: center;
|
273
|
+
border-radius: $base-border-radius;
|
274
|
+
margin-right: 15px;
|
275
|
+
text-transform: capitalize;
|
276
|
+
line-height: 40px;
|
277
|
+
margin-bottom: 15px;
|
278
|
+
transition: all 0.2s ease;
|
279
|
+
border: 0;
|
280
|
+
|
281
|
+
&:hover,
|
282
|
+
&:focus,
|
283
|
+
&:active {
|
284
|
+
border: 0;
|
285
|
+
color: $text-color;
|
286
|
+
background: darken($tagColor, 10%);
|
287
|
+
}
|
288
|
+
}
|
289
|
+
}
|