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,70 @@
|
|
1
|
+
// General article styling
|
2
|
+
article {
|
3
|
+
word-wrap: break-word;
|
4
|
+
|
5
|
+
ul li, ol li {
|
6
|
+
list-style-position: outside;
|
7
|
+
margin-left: 1em;
|
8
|
+
}
|
9
|
+
|
10
|
+
figure {
|
11
|
+
@include margin(60px 0);
|
12
|
+
text-align: center;
|
13
|
+
|
14
|
+
@include media($tablet) {
|
15
|
+
@include margin(40px 0);
|
16
|
+
}
|
17
|
+
|
18
|
+
&:first-child {
|
19
|
+
margin-top: 0;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
blockquote {
|
24
|
+
margin: 0;
|
25
|
+
font-style: italic;
|
26
|
+
border-left: 3px solid rgba($black, 0.8);
|
27
|
+
padding-left: 20px;
|
28
|
+
margin-left: -23px;
|
29
|
+
margin-bottom: 30px;
|
30
|
+
padding-bottom: 3px;
|
31
|
+
|
32
|
+
@include media($tablet) {
|
33
|
+
margin-left: -20px;
|
34
|
+
padding-left: 17px;
|
35
|
+
}
|
36
|
+
|
37
|
+
p {
|
38
|
+
margin-bottom: 0;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
figcaption {
|
43
|
+
text-align: center;
|
44
|
+
font-style: italic;
|
45
|
+
font-size: 14px;
|
46
|
+
padding: 10px 10% 0;
|
47
|
+
color: transparentize($text-color, 0.2);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.basicPage {
|
52
|
+
&__wrapper {
|
53
|
+
@include outer-container();
|
54
|
+
@include pad($section-pad $outer-pad);
|
55
|
+
|
56
|
+
@include media($mobile) {
|
57
|
+
@include pad($section-pad / 2 $outer-pad);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
&__content {
|
62
|
+
@include span-columns(8);
|
63
|
+
@include shift(2);
|
64
|
+
|
65
|
+
@include media($mobile) {
|
66
|
+
@include span-columns(12);
|
67
|
+
@include shift(0);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
.actionPrompt {
|
2
|
+
background: $white;
|
3
|
+
border: $base-border;
|
4
|
+
border-radius: $base-border-radius;
|
5
|
+
padding: 10px 20px;
|
6
|
+
font-size: 16px;
|
7
|
+
line-height: 16px;
|
8
|
+
font-weight: 600;
|
9
|
+
display: flex;
|
10
|
+
align-items: center;
|
11
|
+
flex: 1;
|
12
|
+
|
13
|
+
@include media($mobile) {
|
14
|
+
flex-direction: column;
|
15
|
+
justify-content: center;
|
16
|
+
text-align: center;
|
17
|
+
padding: 20px;
|
18
|
+
}
|
19
|
+
|
20
|
+
&__button {
|
21
|
+
margin: 0;
|
22
|
+
margin-left: auto;
|
23
|
+
|
24
|
+
@include media($mobile) {
|
25
|
+
flex-direction: column;
|
26
|
+
justify-content: center;
|
27
|
+
margin-left: 0;
|
28
|
+
left: 0;
|
29
|
+
margin-top: 10px;
|
30
|
+
align-self: center;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,107 @@
|
|
1
|
+
.button {
|
2
|
+
display: inline-block;
|
3
|
+
height: 40px;
|
4
|
+
line-height: 38px;
|
5
|
+
padding: 0 20px;
|
6
|
+
color: #555;
|
7
|
+
text-align: center;
|
8
|
+
font-size: 12px;
|
9
|
+
font-weight: 600;
|
10
|
+
letter-spacing: 1px;
|
11
|
+
text-transform: uppercase;
|
12
|
+
text-decoration: none;
|
13
|
+
white-space: nowrap;
|
14
|
+
background-color: transparent;
|
15
|
+
border-radius: 4px;
|
16
|
+
border: 1px solid #bbb;
|
17
|
+
cursor: pointer;
|
18
|
+
box-sizing: border-box;
|
19
|
+
transition: color 0.3s ease, background 0.3s ease, border 0.3s ease;
|
20
|
+
|
21
|
+
&:hover,
|
22
|
+
&:focus,
|
23
|
+
&:active {
|
24
|
+
color: #333;
|
25
|
+
border-color: #888;
|
26
|
+
outline: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
&--primary {
|
30
|
+
color: $white;
|
31
|
+
background-color: $primary-color;
|
32
|
+
border-color: $primary-color;
|
33
|
+
font-weight: 800;
|
34
|
+
|
35
|
+
&:hover,
|
36
|
+
&:focus,
|
37
|
+
&:active {
|
38
|
+
color: $white;
|
39
|
+
background-color: $primary-color-dark;
|
40
|
+
border-color: $primary-color-dark;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
&--flat {
|
45
|
+
color: $primary-color;
|
46
|
+
text-transform: uppercase;
|
47
|
+
border-color: transparent;
|
48
|
+
letter-spacing: 0.08em;
|
49
|
+
font-weight: 600;
|
50
|
+
font-size: 12px;
|
51
|
+
padding-left: 10px;
|
52
|
+
padding-right: 10px;
|
53
|
+
position: relative;
|
54
|
+
|
55
|
+
&:hover,
|
56
|
+
&:focus,
|
57
|
+
&:active {
|
58
|
+
border-color: transparent;
|
59
|
+
color: $primary-color;
|
60
|
+
background: fade-out($primary-color, 0.8);
|
61
|
+
}
|
62
|
+
|
63
|
+
&.button--left {
|
64
|
+
left: -10px;
|
65
|
+
}
|
66
|
+
|
67
|
+
&.button--right {
|
68
|
+
right: -10px;
|
69
|
+
}
|
70
|
+
|
71
|
+
&.button--bottom {
|
72
|
+
bottom: -10px;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
&--white {
|
77
|
+
color: $primary-color;
|
78
|
+
border: 1px solid $white;
|
79
|
+
background: $white;
|
80
|
+
|
81
|
+
&:hover,
|
82
|
+
&:focus,
|
83
|
+
&:active {
|
84
|
+
background: rgba($white, 0.8);
|
85
|
+
border-color: transparent;
|
86
|
+
color: $primary-color;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
&--left {
|
91
|
+
align-self: flex-start;
|
92
|
+
}
|
93
|
+
|
94
|
+
&--right {
|
95
|
+
align-self: flex-end;
|
96
|
+
margin-left: auto;
|
97
|
+
}
|
98
|
+
|
99
|
+
&--bottom {
|
100
|
+
margin-top: auto;
|
101
|
+
margin-bottom: 0;
|
102
|
+
}
|
103
|
+
|
104
|
+
&--center {
|
105
|
+
align-self: center;
|
106
|
+
}
|
107
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
.card {
|
2
|
+
$card-padding: 20px;
|
3
|
+
|
4
|
+
@include outer-container;
|
5
|
+
@include pad($section-pad $outer-pad);
|
6
|
+
display: flex;
|
7
|
+
flex-wrap: wrap;
|
8
|
+
|
9
|
+
@include media($mobile) {
|
10
|
+
@include pad($section-pad/2 $outer-pad);
|
11
|
+
}
|
12
|
+
|
13
|
+
&__item {
|
14
|
+
opacity: 1;
|
15
|
+
background: $white;
|
16
|
+
margin-bottom: $gutter;
|
17
|
+
transition: opacity 0.4s ease 0s, transform 0.4s ease 0s, box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
18
|
+
display: flex;
|
19
|
+
flex-direction: column;
|
20
|
+
border: 0;
|
21
|
+
border-radius: $base-border-radius;
|
22
|
+
|
23
|
+
&--clickable:focus,
|
24
|
+
&--clickable:hover,
|
25
|
+
&--clickable:active {
|
26
|
+
border: 0;
|
27
|
+
box-shadow: 0 9px 12px -6px rgba($black, 0.15), 0 18px 32px 3px rgba($black, 0.1), 0 8px 49px 7px rgba($black, 0.08);
|
28
|
+
}
|
29
|
+
|
30
|
+
@include media($desktop) {
|
31
|
+
@include span-columns(4);
|
32
|
+
@include omega(3n);
|
33
|
+
display: flex;
|
34
|
+
}
|
35
|
+
|
36
|
+
@include media($tablet) {
|
37
|
+
@include span-columns(6);
|
38
|
+
@include omega(2n);
|
39
|
+
display: flex;
|
40
|
+
}
|
41
|
+
|
42
|
+
@include media($mobile) {
|
43
|
+
@include span-columns(12);
|
44
|
+
@include omega(1n);
|
45
|
+
display: flex;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&__content {
|
50
|
+
border-radius: $base-border-radius;
|
51
|
+
padding: $card-padding;
|
52
|
+
border: $base-border;
|
53
|
+
display: flex;
|
54
|
+
flex: 1 0 auto;
|
55
|
+
flex-direction: column;
|
56
|
+
}
|
57
|
+
|
58
|
+
&__thumbnail {
|
59
|
+
$thumbnail-height: 200px;
|
60
|
+
@include border-top-radius($base-border-radius);
|
61
|
+
display: flex;
|
62
|
+
width: 100%;
|
63
|
+
height: auto;
|
64
|
+
overflow: hidden;
|
65
|
+
border: $base-border;
|
66
|
+
max-height: $thumbnail-height;
|
67
|
+
min-height: $thumbnail-height;
|
68
|
+
|
69
|
+
img {
|
70
|
+
width: 100%;
|
71
|
+
height: auto;
|
72
|
+
object-fit: cover;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
&__thumbnail + &__content {
|
77
|
+
@include border-top-radius(0);
|
78
|
+
border-top: 0;
|
79
|
+
}
|
80
|
+
|
81
|
+
&__title {
|
82
|
+
margin-bottom: 10px;
|
83
|
+
font-size: 22px;
|
84
|
+
color: $heading-color;
|
85
|
+
}
|
86
|
+
|
87
|
+
&__description {
|
88
|
+
margin: 0;
|
89
|
+
line-height: 1.5;
|
90
|
+
font-size: 16px;
|
91
|
+
color: $text-color;
|
92
|
+
}
|
93
|
+
}
|
@@ -0,0 +1,182 @@
|
|
1
|
+
.carousel {
|
2
|
+
display: flex;
|
3
|
+
flex-direction: column;
|
4
|
+
position: relative;
|
5
|
+
border-radius: $base-border-radius;
|
6
|
+
overflow: hidden;
|
7
|
+
transform: translateZ(0);
|
8
|
+
margin-bottom: 30px;
|
9
|
+
|
10
|
+
&__slides {
|
11
|
+
transition: all 0.3s $CurveFastOutSlowIn;
|
12
|
+
overflow: hidden;
|
13
|
+
opacity: 0;
|
14
|
+
min-height: 333px;
|
15
|
+
|
16
|
+
&.slick-initialized {
|
17
|
+
opacity: 1;
|
18
|
+
height: auto;
|
19
|
+
}
|
20
|
+
|
21
|
+
@include media($mobile) {
|
22
|
+
min-height: auto;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
&__item {
|
27
|
+
background-size: cover;
|
28
|
+
background-repeat: no-repeat;
|
29
|
+
background-position: center;
|
30
|
+
border: 0;
|
31
|
+
display: none;
|
32
|
+
align-items: center;
|
33
|
+
justify-content: center;
|
34
|
+
flex-direction: column;
|
35
|
+
padding: 100px 20px;
|
36
|
+
|
37
|
+
&:focus,
|
38
|
+
&:hover,
|
39
|
+
&:active {
|
40
|
+
outline: none;
|
41
|
+
border: 0;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.slick-initialized &__item {
|
46
|
+
display: flex;
|
47
|
+
}
|
48
|
+
|
49
|
+
&__control {
|
50
|
+
$outer-margin: 10px;
|
51
|
+
|
52
|
+
position: absolute;
|
53
|
+
top: 50%;
|
54
|
+
transform: translateY(-50%);
|
55
|
+
background: rgba($black, 0.4);
|
56
|
+
margin: 0;
|
57
|
+
border: 0;
|
58
|
+
padding: 25px 15px;
|
59
|
+
border-radius: $base-border-radius;
|
60
|
+
transition: all 0.3s ease;
|
61
|
+
|
62
|
+
&:hover,
|
63
|
+
&:active,
|
64
|
+
&:focus {
|
65
|
+
outline: none;
|
66
|
+
background: $primary-color;
|
67
|
+
}
|
68
|
+
|
69
|
+
&--prev {
|
70
|
+
left: $outer-margin;
|
71
|
+
}
|
72
|
+
|
73
|
+
&--next {
|
74
|
+
right: $outer-margin;
|
75
|
+
}
|
76
|
+
|
77
|
+
@include media($mobile) {
|
78
|
+
display: none;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
&__chevron {
|
83
|
+
display: flex;
|
84
|
+
align-items: center;
|
85
|
+
justify-content: center;
|
86
|
+
position: relative;
|
87
|
+
}
|
88
|
+
|
89
|
+
&__control--next &__chevron {
|
90
|
+
left: 2px;
|
91
|
+
}
|
92
|
+
|
93
|
+
&__control--prev &__chevron {
|
94
|
+
left: -2px;
|
95
|
+
}
|
96
|
+
|
97
|
+
&__dots {
|
98
|
+
position: absolute;
|
99
|
+
left: 0;
|
100
|
+
right: 0;
|
101
|
+
bottom: 20px;
|
102
|
+
display: flex;
|
103
|
+
align-items: center;
|
104
|
+
justify-content: center;
|
105
|
+
list-style-type: none;
|
106
|
+
margin: 0;
|
107
|
+
|
108
|
+
li {
|
109
|
+
margin: 0;
|
110
|
+
height: auto;
|
111
|
+
padding: 0 5px;
|
112
|
+
display: flex;
|
113
|
+
}
|
114
|
+
|
115
|
+
button {
|
116
|
+
@include size(10px);
|
117
|
+
color: transparent;
|
118
|
+
font-size: 0;
|
119
|
+
border: 0;
|
120
|
+
margin: 0;
|
121
|
+
padding: 0;
|
122
|
+
background: none;
|
123
|
+
border-radius: 50%;
|
124
|
+
background: rgba($white, 0.4);
|
125
|
+
transition: all 0.3s ease;
|
126
|
+
|
127
|
+
&:hover,
|
128
|
+
&:focus,
|
129
|
+
&:active {
|
130
|
+
outline: none;
|
131
|
+
background: rgba($white, 0.9);
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
.slick-active button {
|
136
|
+
background: rgba($white, 0.9);
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
&__author {
|
141
|
+
display: flex;
|
142
|
+
align-items: center;
|
143
|
+
|
144
|
+
@include media($mobile) {
|
145
|
+
display: none;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
&__authorImage {
|
150
|
+
@include size(25px);
|
151
|
+
border-radius: 50%;
|
152
|
+
margin-right: 8px;
|
153
|
+
}
|
154
|
+
|
155
|
+
&__authorName {
|
156
|
+
font-size: 14px;
|
157
|
+
color: $white;
|
158
|
+
font-weight: 600;
|
159
|
+
}
|
160
|
+
|
161
|
+
&__logo {
|
162
|
+
height: 64px;
|
163
|
+
margin: 15px 0 10px;
|
164
|
+
}
|
165
|
+
|
166
|
+
&__title {
|
167
|
+
font-size: 48px;
|
168
|
+
display: flex;
|
169
|
+
align-items: center;
|
170
|
+
height: 64px;
|
171
|
+
color: $white;
|
172
|
+
margin: 10px 0 15px;
|
173
|
+
}
|
174
|
+
|
175
|
+
&__tag {
|
176
|
+
font-weight: 600;
|
177
|
+
color: rgba($white, 0.8);
|
178
|
+
text-transform: uppercase;
|
179
|
+
letter-spacing: 0.08em;
|
180
|
+
font-size: 12px;
|
181
|
+
}
|
182
|
+
}
|