staple 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +13 -0
- data/LICENSE.md +23 -0
- data/README.md +51 -0
- data/Rakefile +0 -0
- data/config.rb +24 -0
- data/lib/snippet_helpers.rb +69 -0
- data/lib/staple/import_generator.rb +50 -0
- data/lib/staple/list_generator.rb +22 -0
- data/lib/staple.rb +2 -0
- data/source/CNAME +1 -0
- data/source/_accordion.html.erb +24 -0
- data/source/_accordion_tabs.html.erb +26 -0
- data/source/_accordion_tabs_minimal.html.erb +26 -0
- data/source/_badges.html.erb +7 -0
- data/source/_breadcrumbs.html.erb +7 -0
- data/source/_browser.html.erb +29 -0
- data/source/_button_group.html.erb +18 -0
- data/source/_cards.html.erb +59 -0
- data/source/_centered_navigation.html.erb +38 -0
- data/source/_code.html.erb +10 -0
- data/source/_comment.html.erb +21 -0
- data/source/_device.html.erb +10 -0
- data/source/_dropdown.html.erb +12 -0
- data/source/_expander.html.erb +6 -0
- data/source/_flashes.html.erb +15 -0
- data/source/_footer.html.erb +28 -0
- data/source/_footer_2.html.erb +33 -0
- data/source/_grid_items.html.erb +37 -0
- data/source/_grid_items_lines.html.erb +44 -0
- data/source/_hero.html.erb +11 -0
- data/source/_hover_tile_animation.html.erb +11 -0
- data/source/_icon_bullet_points.html.erb +30 -0
- data/source/_image_gradient_dynamic.html.erb +7 -0
- data/source/_intro_text.html.erb +6 -0
- data/source/_label_alerts.html.erb +5 -0
- data/source/_modal.html.erb +14 -0
- data/source/_navigation.html.erb +44 -0
- data/source/_pagination.html.erb +17 -0
- data/source/_progress_bar.html.erb +3 -0
- data/source/_progress_bar_indication.html.erb +5 -0
- data/source/_search_bar.html.erb +8 -0
- data/source/_search_tools.html.erb +58 -0
- data/source/_side_image.html.erb +10 -0
- data/source/_sliding_menu.html.erb +13 -0
- data/source/_snippet.html.erb +4 -0
- data/source/_switch.html.erb +4 -0
- data/source/_tables.html.erb +31 -0
- data/source/_tables_minimal.html.erb +31 -0
- data/source/_texture-legend.html.erb +24 -0
- data/source/_textures.html.erb +4 -0
- data/source/_tooltip.html.erb +6 -0
- data/source/_type_system_geometric.html.erb +18 -0
- data/source/_type_system_rounded.html.erb +18 -0
- data/source/_type_system_sans.html.erb +18 -0
- data/source/_type_system_serif.html.erb +19 -0
- data/source/_type_system_slab.html.erb +18 -0
- data/source/_type_system_traditional.html.erb +18 -0
- data/source/_vertical_tabs.html.erb +30 -0
- data/source/_video.html.erb +5 -0
- data/source/components.html.erb +174 -0
- data/source/index.html.erb +162 -0
- data/source/javascripts/all.js +11 -0
- data/source/javascripts/jquery.erToc.js +477 -0
- data/source/javascripts/jquery.glide.js +941 -0
- data/source/javascripts/staple/accordion.js +5 -0
- data/source/javascripts/staple/accordion_tabs.js +19 -0
- data/source/javascripts/staple/accordion_tabs_minimal.js +19 -0
- data/source/javascripts/staple/centered_navigation.js +14 -0
- data/source/javascripts/staple/dropdown.js +9 -0
- data/source/javascripts/staple/expander.js +53 -0
- data/source/javascripts/staple/navigation.js +23 -0
- data/source/javascripts/staple/search_tools.js +110 -0
- data/source/javascripts/staple/sliding_menu.js +13 -0
- data/source/javascripts/staple/vertical_tabs.js +32 -0
- data/source/layouts/layout.erb +1 -0
- data/source/refills-hero.html.erb +7 -0
- data/source/refills-menu.html.erb +5 -0
- data/source/refills-page-scripts.html.erb +66 -0
- data/source/stylesheets/_bourbon-nav.scss +86 -0
- data/source/stylesheets/_normalize.scss +425 -0
- data/source/stylesheets/_refills-nav.scss +102 -0
- data/source/stylesheets/_refills-styles.scss +543 -0
- data/source/stylesheets/all.scss +61 -0
- data/source/stylesheets/staple/_accordion-tabs-minimal.scss +60 -0
- data/source/stylesheets/staple/_accordion-tabs.scss +88 -0
- data/source/stylesheets/staple/_accordion.scss +55 -0
- data/source/stylesheets/staple/_badges.scss +44 -0
- data/source/stylesheets/staple/_breadcrumbs.scss +84 -0
- data/source/stylesheets/staple/_browser.scss +141 -0
- data/source/stylesheets/staple/_button-group.scss +81 -0
- data/source/stylesheets/staple/_cards.scss +132 -0
- data/source/stylesheets/staple/_centered-navigation.scss +251 -0
- data/source/stylesheets/staple/_comment.scss +60 -0
- data/source/stylesheets/staple/_device.scss +83 -0
- data/source/stylesheets/staple/_dropdown.scss +127 -0
- data/source/stylesheets/staple/_expander.scss +30 -0
- data/source/stylesheets/staple/_flashes.scss +29 -0
- data/source/stylesheets/staple/_footer-2.scss +117 -0
- data/source/stylesheets/staple/_footer.scss +76 -0
- data/source/stylesheets/staple/_grid-items-lines.scss +86 -0
- data/source/stylesheets/staple/_grid-items.scss +97 -0
- data/source/stylesheets/staple/_hero.scss +54 -0
- data/source/stylesheets/staple/_hover-tile-animation.scss +52 -0
- data/source/stylesheets/staple/_icon-bullet-points.scss +63 -0
- data/source/stylesheets/staple/_image-gradient-dynamic.scss +59 -0
- data/source/stylesheets/staple/_intro-text.scss +67 -0
- data/source/stylesheets/staple/_label-alerts.scss +11 -0
- data/source/stylesheets/staple/_modal.scss +147 -0
- data/source/stylesheets/staple/_navigation.scss +329 -0
- data/source/stylesheets/staple/_pagination.scss +51 -0
- data/source/stylesheets/staple/_progress-bar-indication.scss +39 -0
- data/source/stylesheets/staple/_progress-bar.scss +83 -0
- data/source/stylesheets/staple/_search-bar.scss +40 -0
- data/source/stylesheets/staple/_search-tools.scss +67 -0
- data/source/stylesheets/staple/_side-image.scss +59 -0
- data/source/stylesheets/staple/_sliding-menu.scss +63 -0
- data/source/stylesheets/staple/_switch.scss +77 -0
- data/source/stylesheets/staple/_tables-minimal.scss +60 -0
- data/source/stylesheets/staple/_tables.scss +88 -0
- data/source/stylesheets/staple/_texture-legend.scss +182 -0
- data/source/stylesheets/staple/_textures.scss +119 -0
- data/source/stylesheets/staple/_tooltip.scss +57 -0
- data/source/stylesheets/staple/_type-system-geometric.scss +103 -0
- data/source/stylesheets/staple/_type-system-rounded.scss +107 -0
- data/source/stylesheets/staple/_type-system-sans.scss +110 -0
- data/source/stylesheets/staple/_type-system-serif.scss +111 -0
- data/source/stylesheets/staple/_type-system-slab.scss +107 -0
- data/source/stylesheets/staple/_type-system-traditional.scss +114 -0
- data/source/stylesheets/staple/_vertical-tabs.scss +105 -0
- data/source/stylesheets/staple/_video.scss +21 -0
- data/source/type-systems.html.erb +67 -0
- data/source/vendor/javascripts/ZeroClipboard.min.js +9 -0
- data/source/vendor/javascripts/fixedsticky.js +185 -0
- data/source/vendor/javascripts/prism.js +13 -0
- data/source/vendor/javascripts/smooth-scroll.js +125 -0
- data/source/vendor/stylesheets/fixedsticky.css +22 -0
- data/source/vendor/stylesheets/prism.css +126 -0
- data/staple.gemspec +19 -0
- metadata +184 -0
@@ -0,0 +1,329 @@
|
|
1
|
+
header.navigation {
|
2
|
+
$navigation-padding: 1em;
|
3
|
+
$navigation-background: $dark-gray;
|
4
|
+
$navigation-color: transparentize(white, 0.3);
|
5
|
+
$navigation-color-hover: white;
|
6
|
+
$navigation-height: 60px;
|
7
|
+
$navigation-nav-button-background: $base-accent-color;
|
8
|
+
$navigation-nav-button-background-hover: lighten($navigation-background, 10);
|
9
|
+
$navigation-nav-button-border: 1px solid lighten($navigation-nav-button-background, 20);
|
10
|
+
$navigation-search-background: lighten($navigation-background, 5);
|
11
|
+
$navigation-search-border: 1px solid darken($navigation-background, 5);
|
12
|
+
$navigation-active-link-color: transparentize(white, 0.5);
|
13
|
+
$navigation-submenu-padding: 1em;
|
14
|
+
$navigation-submenu-width: 12em;
|
15
|
+
$horizontal-bar-mode: $large-screen;
|
16
|
+
|
17
|
+
background-color: $navigation-background;
|
18
|
+
border-bottom: 1px solid darken($navigation-background, 10);
|
19
|
+
height: $navigation-height;
|
20
|
+
width: 100%;
|
21
|
+
z-index: 999;
|
22
|
+
|
23
|
+
.navigation-wrapper {
|
24
|
+
@include clearfix;
|
25
|
+
@include outer-container;
|
26
|
+
position: relative;
|
27
|
+
z-index: 9999;
|
28
|
+
}
|
29
|
+
|
30
|
+
.logo {
|
31
|
+
float: left;
|
32
|
+
max-height: $navigation-height;
|
33
|
+
padding-left: $navigation-padding;
|
34
|
+
padding-right: 2em;
|
35
|
+
|
36
|
+
img {
|
37
|
+
max-height: $navigation-height;
|
38
|
+
padding: .8em 0;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// Mobile view
|
43
|
+
|
44
|
+
.navigation-menu-button {
|
45
|
+
color: $navigation-color;
|
46
|
+
display: block;
|
47
|
+
float: right;
|
48
|
+
font-family: $sans-serif;
|
49
|
+
font-weight: 700;
|
50
|
+
line-height: $navigation-height;
|
51
|
+
margin: 0;
|
52
|
+
padding-right: 1em;
|
53
|
+
text-transform: uppercase;
|
54
|
+
|
55
|
+
@include media ($horizontal-bar-mode) {
|
56
|
+
display: none;
|
57
|
+
}
|
58
|
+
|
59
|
+
&:hover {
|
60
|
+
color: $navigation-color-hover;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
// Nav menu
|
65
|
+
|
66
|
+
.nav {
|
67
|
+
z-index: 9999999;
|
68
|
+
float: none;
|
69
|
+
@include media ($horizontal-bar-mode) {
|
70
|
+
float: left;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
ul#navigation-menu {
|
75
|
+
-webkit-transform-style: preserve-3d; // stop webkit flicker
|
76
|
+
clear: both;
|
77
|
+
display: none;
|
78
|
+
margin: 0 auto;
|
79
|
+
overflow: visible;
|
80
|
+
padding: 0;
|
81
|
+
width: 100%;
|
82
|
+
z-index: 9999;
|
83
|
+
|
84
|
+
@include media ($horizontal-bar-mode) {
|
85
|
+
display: inline;
|
86
|
+
margin: 0;
|
87
|
+
padding: 0;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
// The nav items
|
92
|
+
|
93
|
+
ul li.nav-link {
|
94
|
+
background: $navigation-background;
|
95
|
+
display: block;
|
96
|
+
line-height: $navigation-height;
|
97
|
+
overflow: hidden;
|
98
|
+
padding-right: .8em;
|
99
|
+
text-align: right;
|
100
|
+
width: 100%;
|
101
|
+
z-index: 9999;
|
102
|
+
|
103
|
+
@include media ($horizontal-bar-mode) {
|
104
|
+
background: transparent;
|
105
|
+
display: inline;
|
106
|
+
line-height: $navigation-height;
|
107
|
+
text-decoration: none;
|
108
|
+
width: auto;
|
109
|
+
}
|
110
|
+
|
111
|
+
a {
|
112
|
+
color: $navigation-color;
|
113
|
+
display: inline-block;
|
114
|
+
font-weight: 400;
|
115
|
+
|
116
|
+
@include media ($horizontal-bar-mode) {
|
117
|
+
padding-right: 1em;
|
118
|
+
}
|
119
|
+
|
120
|
+
&:hover {
|
121
|
+
color: $navigation-color-hover;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
.active-nav-item a {
|
127
|
+
border-bottom: 1px solid $navigation-active-link-color;
|
128
|
+
padding-bottom: 3px;
|
129
|
+
}
|
130
|
+
|
131
|
+
// Sub menus
|
132
|
+
|
133
|
+
li.more.nav-link {
|
134
|
+
padding-right: 0;
|
135
|
+
|
136
|
+
@include media($large-screen) {
|
137
|
+
padding-right: $navigation-submenu-padding;
|
138
|
+
}
|
139
|
+
|
140
|
+
> ul > li:first-child a {
|
141
|
+
padding-top: 1em;
|
142
|
+
}
|
143
|
+
|
144
|
+
a {
|
145
|
+
margin-right: $navigation-submenu-padding;
|
146
|
+
}
|
147
|
+
|
148
|
+
> a {
|
149
|
+
padding-right: 0.6em;
|
150
|
+
}
|
151
|
+
|
152
|
+
> a:after {
|
153
|
+
@include position(absolute, auto -.4em auto auto);
|
154
|
+
content: '\25BE';
|
155
|
+
color: $navigation-color;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
li.more {
|
160
|
+
overflow: visible;
|
161
|
+
padding-right: 0;
|
162
|
+
|
163
|
+
a {
|
164
|
+
padding-right: .8em;
|
165
|
+
}
|
166
|
+
|
167
|
+
> a {
|
168
|
+
padding-right: 1.6em;
|
169
|
+
position: relative;
|
170
|
+
|
171
|
+
@include media($large-screen) {
|
172
|
+
margin-right: $navigation-submenu-padding;
|
173
|
+
}
|
174
|
+
|
175
|
+
&:after {
|
176
|
+
content: '›';
|
177
|
+
font-size: 1.2em;
|
178
|
+
position: absolute;
|
179
|
+
right: $navigation-submenu-padding / 2;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
&:hover > .submenu {
|
184
|
+
display: block;
|
185
|
+
}
|
186
|
+
|
187
|
+
@include media($horizontal-bar-mode) {
|
188
|
+
padding-right: .8em;
|
189
|
+
position: relative;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
ul.submenu {
|
194
|
+
display: none;
|
195
|
+
padding-left: 0;
|
196
|
+
|
197
|
+
@include media($horizontal-bar-mode) {
|
198
|
+
left: -$navigation-submenu-padding;
|
199
|
+
position: absolute;
|
200
|
+
top: 1.5em;
|
201
|
+
}
|
202
|
+
|
203
|
+
.submenu {
|
204
|
+
@include media($horizontal-bar-mode) {
|
205
|
+
left: $navigation-submenu-width - .2em;
|
206
|
+
top: 0;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
li {
|
211
|
+
display: block;
|
212
|
+
padding-right: 0;
|
213
|
+
|
214
|
+
@include media($horizontal-bar-mode) {
|
215
|
+
line-height: $navigation-height / 1.3;
|
216
|
+
|
217
|
+
&:first-child > a {
|
218
|
+
border-top-left-radius: $base-border-radius;
|
219
|
+
border-top-right-radius: $base-border-radius;
|
220
|
+
}
|
221
|
+
|
222
|
+
&:last-child > a {
|
223
|
+
border-bottom-left-radius: $base-border-radius;
|
224
|
+
border-bottom-right-radius: $base-border-radius;
|
225
|
+
padding-bottom: .7em;
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
a {
|
230
|
+
background-color: darken($navigation-background, 3);
|
231
|
+
display: inline-block;
|
232
|
+
text-align: right;
|
233
|
+
width: 100%;
|
234
|
+
|
235
|
+
@include media($horizontal-bar-mode) {
|
236
|
+
background-color: $navigation-background;
|
237
|
+
padding-left: $navigation-submenu-padding;
|
238
|
+
text-align: left;
|
239
|
+
width: $navigation-submenu-width;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
// Elements on the far right
|
246
|
+
|
247
|
+
.navigation-tools {
|
248
|
+
@include clearfix;
|
249
|
+
display: block;
|
250
|
+
padding-right: $navigation-padding;
|
251
|
+
padding-left: $navigation-padding/2;
|
252
|
+
clear: both;
|
253
|
+
background: #505050;
|
254
|
+
|
255
|
+
@include media($large-screen) {
|
256
|
+
background: transparent;
|
257
|
+
float: right;
|
258
|
+
clear: none;
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
.sign-up {
|
263
|
+
@extend button;
|
264
|
+
margin-top: 1.2em;
|
265
|
+
float: right;
|
266
|
+
display: inline;
|
267
|
+
font-size: .8em;
|
268
|
+
text-transform: uppercase;
|
269
|
+
padding: .75em 1em;
|
270
|
+
}
|
271
|
+
|
272
|
+
// Search bar
|
273
|
+
|
274
|
+
.search-bar {
|
275
|
+
$search-bar-border-color: $base-border-color;
|
276
|
+
$search-bar-border: 1px solid $search-bar-border-color;
|
277
|
+
$search-bar-background: lighten($search-bar-border-color, 10);
|
278
|
+
|
279
|
+
padding: .85em .6em;
|
280
|
+
width: 60%;
|
281
|
+
float: left;
|
282
|
+
|
283
|
+
.search-and-submit {
|
284
|
+
position: relative;
|
285
|
+
|
286
|
+
input[type=search] {
|
287
|
+
background: $navigation-search-background;
|
288
|
+
border: $navigation-search-border;
|
289
|
+
padding: .6em .8em;
|
290
|
+
font-size: .9em;
|
291
|
+
font-style: italic;
|
292
|
+
color: $navigation-color;
|
293
|
+
border-radius: $base-border-radius * 2;
|
294
|
+
margin: 0;
|
295
|
+
|
296
|
+
@include media($large-screen) {
|
297
|
+
width: 100%;
|
298
|
+
}
|
299
|
+
}
|
300
|
+
|
301
|
+
button[type=submit] {
|
302
|
+
@include button(flat, $navigation-search-background);
|
303
|
+
position: absolute;
|
304
|
+
top: 0.3em;
|
305
|
+
right: 0.3em;
|
306
|
+
bottom: 0.3em;
|
307
|
+
left: auto;
|
308
|
+
outline: none;
|
309
|
+
padding: 0 15px;
|
310
|
+
|
311
|
+
img {
|
312
|
+
height: 12px;
|
313
|
+
opacity: .7;
|
314
|
+
}
|
315
|
+
}
|
316
|
+
}
|
317
|
+
|
318
|
+
@include media($horizontal-bar-mode) {
|
319
|
+
width: 16em;
|
320
|
+
position: relative;
|
321
|
+
display: inline-block;
|
322
|
+
|
323
|
+
input {
|
324
|
+
@include box-sizing(border-box);
|
325
|
+
display: block;
|
326
|
+
}
|
327
|
+
}
|
328
|
+
}
|
329
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
.pagination {
|
2
|
+
$pagination-border-color: $base-border-color;
|
3
|
+
$pagination-border: 1px solid $pagination-border-color;
|
4
|
+
$pagination-background: lighten($pagination-border-color, 10);
|
5
|
+
$pagination-hover-background: lighten($pagination-background, 5);
|
6
|
+
$pagination-color: $base-font-color;
|
7
|
+
|
8
|
+
text-align: center;
|
9
|
+
|
10
|
+
ul {
|
11
|
+
display: inline;
|
12
|
+
text-align: center;
|
13
|
+
|
14
|
+
li {
|
15
|
+
display: inline;
|
16
|
+
}
|
17
|
+
|
18
|
+
ul li {
|
19
|
+
display: none;
|
20
|
+
|
21
|
+
&:nth-child(1),
|
22
|
+
&:nth-child(2),
|
23
|
+
&:nth-child(3) {
|
24
|
+
display: inline;
|
25
|
+
}
|
26
|
+
|
27
|
+
@include media($large-screen) {
|
28
|
+
display: inline;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
li a {
|
33
|
+
@include transition (all 0.2s ease-in-out);
|
34
|
+
background: $pagination-background;
|
35
|
+
border-radius: $base-border-radius;
|
36
|
+
border: $pagination-border;
|
37
|
+
color: $pagination-color;
|
38
|
+
padding: $base-spacing/4 $gutter/2;
|
39
|
+
|
40
|
+
&:hover,
|
41
|
+
&:focus {
|
42
|
+
background: $pagination-hover-background;
|
43
|
+
color: $base-link-color;
|
44
|
+
}
|
45
|
+
|
46
|
+
&:active {
|
47
|
+
background: $pagination-background;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.progress-bar-indication {
|
2
|
+
$progress-border-color: $base-border-color;
|
3
|
+
$progress-border: 1px solid $progress-border-color;
|
4
|
+
$progress-meter-border-color: $base-accent-color;
|
5
|
+
$progress-meter-border: 1px solid darken($progress-meter-border-color, 15%);
|
6
|
+
$progress-meter-color: $progress-meter-border-color;
|
7
|
+
$progress-background: darken($base-background-color, 5);
|
8
|
+
$progress-animation-duration: 0.7s;
|
9
|
+
$progress-color: white;
|
10
|
+
|
11
|
+
background-color: $progress-background;
|
12
|
+
border: $progress-border;
|
13
|
+
box-shadow: inset 0 0 3px 0 rgba(darken($progress-background, 50%), 0.15);
|
14
|
+
border-radius: $base-border-radius;
|
15
|
+
margin: 0 auto;
|
16
|
+
width: 50%;
|
17
|
+
|
18
|
+
> span.meter {
|
19
|
+
@include box-sizing(border-box);
|
20
|
+
background-color: $progress-meter-color;
|
21
|
+
background-size: 40px 40px;
|
22
|
+
background-repeat: repeat-x;
|
23
|
+
border: $progress-meter-border;
|
24
|
+
border-radius: $base-border-radius /1.5;
|
25
|
+
border-top-right-radius: 0;
|
26
|
+
border-bottom-right-radius: 0;
|
27
|
+
display: block;
|
28
|
+
height: 100%;
|
29
|
+
width: 60%;
|
30
|
+
}
|
31
|
+
|
32
|
+
p {
|
33
|
+
margin-bottom: 0;
|
34
|
+
padding: .1em .5em;
|
35
|
+
font-weight: 800;
|
36
|
+
color: $progress-color;
|
37
|
+
text-shadow: 0 0 1px black;
|
38
|
+
}
|
39
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
.progress-bar {
|
2
|
+
$progress-border-color: $base-border-color;
|
3
|
+
$progress-border: 1px solid $progress-border-color;
|
4
|
+
$progress-meter-border-color: $base-accent-color;
|
5
|
+
$progress-meter-border: 1px solid darken($progress-meter-border-color, 15%);
|
6
|
+
$progress-meter-color: $progress-meter-border-color;
|
7
|
+
$progress-background: darken($base-background-color, 5);
|
8
|
+
$progress-animation-duration: 0.7s;
|
9
|
+
$progress-height: 30px;
|
10
|
+
|
11
|
+
background-color: $progress-background;
|
12
|
+
border: $progress-border;
|
13
|
+
box-shadow: inset 0 0 3px 0 rgba(darken($progress-background, 50%), 0.15);
|
14
|
+
border-radius: $base-border-radius;
|
15
|
+
height: $progress-height;
|
16
|
+
margin: 0 auto;
|
17
|
+
padding: 2px;
|
18
|
+
width: 50%;
|
19
|
+
|
20
|
+
> span.meter {
|
21
|
+
@include animation(progress $progress-animation-duration linear infinite);
|
22
|
+
@include box-sizing(border-box);
|
23
|
+
background-color: $progress-meter-color;
|
24
|
+
@include background-image(linear-gradient(-45deg, rgba(255,255,255, 0.15) 25%,
|
25
|
+
transparent 25%,
|
26
|
+
transparent 50%,
|
27
|
+
rgba(255,255,255, 0.15) 50%,
|
28
|
+
rgba(255,255,255, 0.15) 75%,
|
29
|
+
transparent 75%));
|
30
|
+
background-size: 40px 40px;
|
31
|
+
background-repeat: repeat-x;
|
32
|
+
border: $progress-meter-border;
|
33
|
+
border-radius: $base-border-radius /1.5;
|
34
|
+
display: block;
|
35
|
+
height: 100%;
|
36
|
+
width: 60%;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
@-webkit-keyframes progress {
|
41
|
+
0% {
|
42
|
+
background-position: 0px 0px;
|
43
|
+
}
|
44
|
+
100% {
|
45
|
+
background-position: 40px 0px;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
@-moz-keyframes progress {
|
50
|
+
0% {
|
51
|
+
background-position: 0px 0px;
|
52
|
+
}
|
53
|
+
100% {
|
54
|
+
background-position: 40px 0px;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
@-ms-keyframes progress {
|
59
|
+
0% {
|
60
|
+
background-position: 0px 0px;
|
61
|
+
}
|
62
|
+
100% {
|
63
|
+
background-position: 40px 0px;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
@-o-keyframes progress {
|
68
|
+
0% {
|
69
|
+
background-position: 0px 0px;
|
70
|
+
}
|
71
|
+
100% {
|
72
|
+
background-position: 40px 0px;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
@keyframes progress {
|
77
|
+
0% {
|
78
|
+
background-position: 0px 0px;
|
79
|
+
}
|
80
|
+
100% {
|
81
|
+
background-position: 40px 0px;
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
.search-bar {
|
2
|
+
$search-bar-border-color: $base-border-color;
|
3
|
+
$search-bar-border: 1px solid $search-bar-border-color;
|
4
|
+
$search-bar-background: lighten($search-bar-border-color, 10);
|
5
|
+
|
6
|
+
position: relative;
|
7
|
+
display: inline-block;
|
8
|
+
|
9
|
+
input {
|
10
|
+
@include box-sizing(border-box);
|
11
|
+
display: block;
|
12
|
+
}
|
13
|
+
|
14
|
+
div.search-and-submit {
|
15
|
+
position: relative;
|
16
|
+
|
17
|
+
input[type=search] {
|
18
|
+
@include appearance(none);
|
19
|
+
width: 100%;
|
20
|
+
padding: .5em .8em;
|
21
|
+
font-size: .9em;
|
22
|
+
font-style: italic;
|
23
|
+
border-radius: $base-border-radius;
|
24
|
+
margin: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
button[type=submit] {
|
28
|
+
@include position(absolute, 0em 0em 0em null);
|
29
|
+
outline: none;
|
30
|
+
border-top-left-radius: 0;
|
31
|
+
border-bottom-left-radius: 0;
|
32
|
+
padding: 5px 10px;
|
33
|
+
|
34
|
+
img {
|
35
|
+
height: 12px;
|
36
|
+
opacity: .7;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
.search-tools {
|
2
|
+
$search-tools-border-color: $base-border-color;
|
3
|
+
$search-tools-background: lighten($search-tools-border-color, 10);
|
4
|
+
|
5
|
+
@include clearfix;
|
6
|
+
border: 1px solid $search-tools-border-color;
|
7
|
+
background: $search-tools-background;
|
8
|
+
padding: $gutter / 2;
|
9
|
+
border-radius: $base-border-radius;
|
10
|
+
|
11
|
+
.filter {
|
12
|
+
margin-bottom: 1em;
|
13
|
+
|
14
|
+
@include media($large-screen) {
|
15
|
+
@include span-columns(3.5);
|
16
|
+
margin-bottom: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
> div {
|
20
|
+
@extend input[type="text"];
|
21
|
+
position: relative;
|
22
|
+
|
23
|
+
label {
|
24
|
+
font-weight: 400;
|
25
|
+
cursor: pointer;
|
26
|
+
margin-bottom: 0;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
ol label {
|
31
|
+
display: inline;
|
32
|
+
}
|
33
|
+
|
34
|
+
button {
|
35
|
+
@include button(simple, lighten($search-tools-background, 10));
|
36
|
+
@include position(absolute, 5px 5px auto auto);
|
37
|
+
font-size: .7em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.hide-options {
|
41
|
+
margin-bottom: 0;
|
42
|
+
|
43
|
+
ol, button {
|
44
|
+
display: none;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.trigger {
|
50
|
+
width: 100%;
|
51
|
+
|
52
|
+
@include media($large-screen) {
|
53
|
+
@include span-columns(1.5);
|
54
|
+
}
|
55
|
+
|
56
|
+
button {
|
57
|
+
width: 100%;
|
58
|
+
margin-top: 1em;
|
59
|
+
padding-top: .7em;
|
60
|
+
padding-bottom: .7em;
|
61
|
+
|
62
|
+
@include media($large-screen) {
|
63
|
+
margin-top: 1.95em;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
$side-image-background-top: #B5EBEB;
|
2
|
+
$side-image-background-bottom: #5DAC5D;
|
3
|
+
$side-image-border: 1px solid darken(transparentize($side-image-background-bottom, .8), 30);
|
4
|
+
|
5
|
+
.side-image {
|
6
|
+
background: #F9F9F9;
|
7
|
+
|
8
|
+
@include media($large-screen) {
|
9
|
+
@include row(table);
|
10
|
+
}
|
11
|
+
|
12
|
+
.images-wrapper {
|
13
|
+
@include background(url('https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/mountains.png'), linear-gradient($side-image-background-top, $side-image-background-bottom), no-repeat $side-image-background-top scroll);
|
14
|
+
background-color: $side-image-background-top;
|
15
|
+
border-bottom: $side-image-border;
|
16
|
+
background-size: cover;
|
17
|
+
display: block;
|
18
|
+
min-height: 12em;
|
19
|
+
padding: 3em;
|
20
|
+
|
21
|
+
@include media($large-screen) {
|
22
|
+
@include span-columns(4);
|
23
|
+
background-position: bottom;
|
24
|
+
background-size: cover;
|
25
|
+
border-right: $side-image-border;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.content {
|
30
|
+
@include span-columns(12);
|
31
|
+
padding: 1em 1em 4em 1em;
|
32
|
+
|
33
|
+
@include media($large-screen) {
|
34
|
+
@include span-columns(8);
|
35
|
+
padding: 4em 4em 8em 4em;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.content h1 {
|
40
|
+
margin-bottom: .9em;
|
41
|
+
}
|
42
|
+
|
43
|
+
.content h4 {
|
44
|
+
background: #BBB;
|
45
|
+
color: white;
|
46
|
+
display: inline-block;
|
47
|
+
font-size: .75em;
|
48
|
+
font-weight: 800;
|
49
|
+
margin-bottom: 1.3em;
|
50
|
+
padding: 3px 8px;
|
51
|
+
text-transform: uppercase;
|
52
|
+
}
|
53
|
+
|
54
|
+
.content p {
|
55
|
+
color: gray;
|
56
|
+
margin-bottom: 3em;
|
57
|
+
}
|
58
|
+
@include reset-display();
|
59
|
+
}
|