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,543 @@
|
|
1
|
+
$refills-color: lighten(desaturate(teal, 60), 40);
|
2
|
+
$base-background-color: white;
|
3
|
+
$refills-nav-height: 60px;
|
4
|
+
$logo-color: #93E9BE;
|
5
|
+
$refills-anchor-color: #F55481;
|
6
|
+
$hero-background: #E7F1EC;
|
7
|
+
$refills-highlight-color: #BBB295;
|
8
|
+
$narrow-sans: 'Oswald', sans-serif;
|
9
|
+
$white-shadow: 0 1px 1px transparentize(white, .6);
|
10
|
+
|
11
|
+
$refills-serif: 'Lusitana', serif;
|
12
|
+
|
13
|
+
@mixin refills-inset {
|
14
|
+
background: darken($hero-background, 2);
|
15
|
+
box-shadow: inset 0 1px 2px darken($hero-background, 7), $white-shadow;
|
16
|
+
text-shadow: $white-shadow;
|
17
|
+
}
|
18
|
+
|
19
|
+
body {
|
20
|
+
-webkit-backface-visibility: hidden;
|
21
|
+
background-color: $base-background-color;
|
22
|
+
min-width: 320px;
|
23
|
+
}
|
24
|
+
|
25
|
+
// Header & Hero
|
26
|
+
//////////////////////////////////////////////////////////////////
|
27
|
+
|
28
|
+
.refills-header {
|
29
|
+
@include clearfix;
|
30
|
+
background-color: $hero-background;
|
31
|
+
clear: both;
|
32
|
+
margin-bottom: 1em;
|
33
|
+
padding: 5em 0;
|
34
|
+
text-align: center;
|
35
|
+
width: 100%;
|
36
|
+
|
37
|
+
@include media($medium-screen) {
|
38
|
+
margin-bottom: 4em;
|
39
|
+
padding: 6em 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
@include media($large-screen) {
|
43
|
+
margin-bottom: 4em;
|
44
|
+
padding: 6em 0 11em 0;
|
45
|
+
}
|
46
|
+
|
47
|
+
.refills-logo {
|
48
|
+
display: inline-block;
|
49
|
+
margin: 0 auto 1.4em auto;
|
50
|
+
max-width: 5em;
|
51
|
+
|
52
|
+
@include media($medium-screen) {
|
53
|
+
max-width: 8em;
|
54
|
+
}
|
55
|
+
|
56
|
+
img {
|
57
|
+
background: white;
|
58
|
+
border-radius: 50%;
|
59
|
+
padding: .3em;
|
60
|
+
|
61
|
+
@include media($medium-screen) {
|
62
|
+
padding: .5em;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
h2 {
|
68
|
+
font-family: $serif;
|
69
|
+
font-size: 1.4em;
|
70
|
+
font-weight: 100;
|
71
|
+
margin: 0 auto 2em auto;
|
72
|
+
max-width: 90%;
|
73
|
+
text-align: center;
|
74
|
+
|
75
|
+
@include media($medium-screen) {
|
76
|
+
font-size: 3em;
|
77
|
+
margin-bottom: 1em;
|
78
|
+
max-width: 90%;
|
79
|
+
}
|
80
|
+
|
81
|
+
@include media($large-screen) {
|
82
|
+
font-size: 3em;
|
83
|
+
margin-bottom: .8em;
|
84
|
+
max-width: 60%;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
h3 {
|
89
|
+
font-size: 1.3em;
|
90
|
+
font-weight: 200;
|
91
|
+
margin-bottom: 1em;
|
92
|
+
text-align: center;
|
93
|
+
}
|
94
|
+
|
95
|
+
a {
|
96
|
+
color: $refills-anchor-color;
|
97
|
+
|
98
|
+
&:hover {
|
99
|
+
color: lighten($refills-anchor-color, 10);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
p {
|
104
|
+
@include refills-inset;
|
105
|
+
border-radius: $base-border-radius * 10;
|
106
|
+
color: darken(desaturate($logo-color, 50), 15);
|
107
|
+
display: inline;
|
108
|
+
font-family: $narrow-sans;
|
109
|
+
font-size: .8em;
|
110
|
+
font-weight: 400;
|
111
|
+
padding: .5em 1.4em;
|
112
|
+
|
113
|
+
@include media($large-screen) {
|
114
|
+
font-size: .8em;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
.menu-wrapper {
|
120
|
+
@include clearfix;
|
121
|
+
}
|
122
|
+
|
123
|
+
// Refill menu
|
124
|
+
//////////////////////////////////////////////////////////////////
|
125
|
+
|
126
|
+
ul.refills-menu {
|
127
|
+
font-weight: normal;
|
128
|
+
margin-bottom: 5em;
|
129
|
+
margin: -3.3em auto 0 auto;
|
130
|
+
text-align: center;
|
131
|
+
|
132
|
+
@include media($medium-screen) {
|
133
|
+
margin: -6em auto 0 auto;
|
134
|
+
}
|
135
|
+
|
136
|
+
@include media($large-screen) {
|
137
|
+
margin: -6.7em auto 0 auto;
|
138
|
+
}
|
139
|
+
|
140
|
+
.menu-item {
|
141
|
+
display: inline;
|
142
|
+
|
143
|
+
a {
|
144
|
+
border-radius: $base-border-radius;
|
145
|
+
color: darken($hero-background, 20);
|
146
|
+
font-family: 'Lusitana', serif;
|
147
|
+
font-size: .9em;
|
148
|
+
padding: .5em .5em 2em;
|
149
|
+
|
150
|
+
@include media($medium-screen) {
|
151
|
+
font-size: 1.1em;
|
152
|
+
padding: .5em .8em 2em;
|
153
|
+
}
|
154
|
+
|
155
|
+
@include media($large-screen) {
|
156
|
+
font-size: 1.3em;
|
157
|
+
padding: .5em 1.3em 2em;
|
158
|
+
}
|
159
|
+
|
160
|
+
&:hover {
|
161
|
+
color: darken($hero-background, 30);
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
.refills-patterns li.patterns a {
|
168
|
+
background: $base-background-color;
|
169
|
+
|
170
|
+
&:hover {
|
171
|
+
color: darken($hero-background, 20);
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
.refills-components li.components a {
|
176
|
+
background: $base-background-color;
|
177
|
+
|
178
|
+
&:hover {
|
179
|
+
color: darken($hero-background, 20);
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
.refills-type-systems li.type-systems a {
|
184
|
+
background: $base-background-color;
|
185
|
+
|
186
|
+
&:hover {
|
187
|
+
color: darken($hero-background, 20);
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
#example {
|
192
|
+
padding-top: 6em;
|
193
|
+
}
|
194
|
+
|
195
|
+
// Refill section
|
196
|
+
//////////////////////////////////////////////////////////////////
|
197
|
+
|
198
|
+
.refill {
|
199
|
+
@include clearfix;
|
200
|
+
margin-bottom: 2em;
|
201
|
+
padding-bottom: 1em;
|
202
|
+
position: relative;
|
203
|
+
|
204
|
+
> h3 {
|
205
|
+
margin-bottom: 1.3em;
|
206
|
+
margin-top: 1em;
|
207
|
+
padding-top: 0.5em;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
.refills-wrapper {
|
212
|
+
@include outer-container;
|
213
|
+
padding: 1em;
|
214
|
+
|
215
|
+
h1.main-header {
|
216
|
+
background-color: $refills-color;
|
217
|
+
display: inline-block;
|
218
|
+
padding: 0.5em;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
|
222
|
+
// this centers the refill and sets back to text-align left below first object
|
223
|
+
.refill-centering {
|
224
|
+
text-align: center;
|
225
|
+
|
226
|
+
& > * {
|
227
|
+
display: inline-block;
|
228
|
+
|
229
|
+
& > * {
|
230
|
+
text-align: left;
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
script {
|
235
|
+
display: none;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
.line-behind-text {
|
240
|
+
border-bottom: 1px solid #CACACA;
|
241
|
+
text-align: center;
|
242
|
+
margin-bottom: $base-spacing *3;
|
243
|
+
}
|
244
|
+
|
245
|
+
.line-behind-text h6 {
|
246
|
+
background: white;
|
247
|
+
color: gray;
|
248
|
+
display: inline-block;
|
249
|
+
font-family: $narrow-sans;
|
250
|
+
font-size: 1em;
|
251
|
+
font-weight: 500;
|
252
|
+
padding: 0 10px;
|
253
|
+
position: relative;
|
254
|
+
text-transform: uppercase;
|
255
|
+
top: 34px;
|
256
|
+
}
|
257
|
+
|
258
|
+
.refill h6 {
|
259
|
+
margin-bottom: $base-spacing;
|
260
|
+
}
|
261
|
+
|
262
|
+
// Hiding and showing code
|
263
|
+
//////////////////////////////////////////////////////////////////
|
264
|
+
|
265
|
+
.js-hide-code,
|
266
|
+
.js-show-code {
|
267
|
+
border-top: 1px dashed #BEBCBC;
|
268
|
+
color: #7E7A7A;
|
269
|
+
font-size: .8em;
|
270
|
+
text-transform: uppercase;
|
271
|
+
width: 9em;
|
272
|
+
|
273
|
+
&:hover {
|
274
|
+
color: $base-accent-color;
|
275
|
+
}
|
276
|
+
}
|
277
|
+
|
278
|
+
.js-show-code {
|
279
|
+
display: inline-block;
|
280
|
+
padding: 0.5em 1em;
|
281
|
+
}
|
282
|
+
|
283
|
+
.js-hide-code {
|
284
|
+
display: none;
|
285
|
+
padding: 0.5em 1em;
|
286
|
+
}
|
287
|
+
|
288
|
+
.refill-snippet {
|
289
|
+
margin-top: $base-spacing *3;
|
290
|
+
padding: 0 1em;
|
291
|
+
}
|
292
|
+
|
293
|
+
.refill-control {
|
294
|
+
display: block;
|
295
|
+
margin-bottom: 2em;
|
296
|
+
text-align: center;
|
297
|
+
width: 100%;
|
298
|
+
}
|
299
|
+
|
300
|
+
// Snippet
|
301
|
+
//////////////////////////////////////////////////////////////////
|
302
|
+
|
303
|
+
pre[class*="language-"] {
|
304
|
+
background: #F8F8F8;
|
305
|
+
border-top: 2px solid silver;
|
306
|
+
height: 300px;
|
307
|
+
line-height: 1em;
|
308
|
+
}
|
309
|
+
|
310
|
+
.copy-source {
|
311
|
+
background-color: lighten($dark-gray, 20);
|
312
|
+
border-radius: 10px;
|
313
|
+
color: white;
|
314
|
+
font-size: $base-font-size/2;
|
315
|
+
font-weight: 800;
|
316
|
+
padding: 0.4em 1em;
|
317
|
+
text-transform: uppercase;
|
318
|
+
|
319
|
+
&:hover, &:active {
|
320
|
+
background-color: lighten($dark-gray, 20);
|
321
|
+
color: white;
|
322
|
+
}
|
323
|
+
}
|
324
|
+
|
325
|
+
.snippets-table {
|
326
|
+
display: none;
|
327
|
+
|
328
|
+
td {
|
329
|
+
border-bottom: 0;
|
330
|
+
}
|
331
|
+
}
|
332
|
+
|
333
|
+
.snippet {
|
334
|
+
|
335
|
+
@include media($medium-screen) {
|
336
|
+
margin-bottom: 2em;
|
337
|
+
}
|
338
|
+
|
339
|
+
code {
|
340
|
+
font-size: .6em;
|
341
|
+
line-height: 1.4em;
|
342
|
+
max-height: em(400);
|
343
|
+
overflow: scroll;
|
344
|
+
}
|
345
|
+
}
|
346
|
+
|
347
|
+
.token.variable {
|
348
|
+
background-color: transparent;
|
349
|
+
}
|
350
|
+
|
351
|
+
// Footer
|
352
|
+
//////////////////////////////////////////////////////////////////
|
353
|
+
|
354
|
+
footer.refills-footer {
|
355
|
+
color: silver;
|
356
|
+
padding-bottom: 2em;
|
357
|
+
padding-top: 1em;
|
358
|
+
text-align: center;
|
359
|
+
|
360
|
+
a {
|
361
|
+
color: $refills-anchor-color;
|
362
|
+
}
|
363
|
+
|
364
|
+
p {
|
365
|
+
margin-bottom: 0;
|
366
|
+
}
|
367
|
+
|
368
|
+
.refills-footer-logo {
|
369
|
+
margin-bottom: 2em;
|
370
|
+
}
|
371
|
+
|
372
|
+
img {
|
373
|
+
@include clearfix;
|
374
|
+
display: block;
|
375
|
+
height: 60px;
|
376
|
+
margin: auto;
|
377
|
+
}
|
378
|
+
|
379
|
+
.footer-links {
|
380
|
+
background: #F3F3F3;
|
381
|
+
border-radius: 3em;
|
382
|
+
box-shadow: inset 0 1px 2px darken(#F3F3F3, 6);
|
383
|
+
display: inline-block;
|
384
|
+
font-size: .8em;
|
385
|
+
margin-bottom: 2em;
|
386
|
+
padding: .6em;
|
387
|
+
|
388
|
+
@include media($large-screen) {
|
389
|
+
font-size: 1em;
|
390
|
+
padding: 1em;
|
391
|
+
}
|
392
|
+
|
393
|
+
li {
|
394
|
+
display: inline;
|
395
|
+
padding: .4em;
|
396
|
+
|
397
|
+
a {
|
398
|
+
color: #A7A7A7;
|
399
|
+
|
400
|
+
&:hover {
|
401
|
+
color: $refills-anchor-color;
|
402
|
+
}
|
403
|
+
}
|
404
|
+
}
|
405
|
+
}
|
406
|
+
}
|
407
|
+
|
408
|
+
// Adjustments
|
409
|
+
//////////////////////////////////////////////////////////////////
|
410
|
+
|
411
|
+
.refill-smaller {
|
412
|
+
@include media($large-screen) {
|
413
|
+
margin: auto;
|
414
|
+
width: 70%;
|
415
|
+
}
|
416
|
+
}
|
417
|
+
|
418
|
+
// Type Systems
|
419
|
+
//////////////////////////////////////////////////////////////////
|
420
|
+
|
421
|
+
@include keyframes(fadeInAccordionTabsArticles) {
|
422
|
+
0% { opacity: 0; }
|
423
|
+
100% { opacity: 1; }
|
424
|
+
}
|
425
|
+
|
426
|
+
.accordion-tabs-type-systems {
|
427
|
+
$tab-border-color: $base-border-color;
|
428
|
+
$tab-border: 1px solid $tab-border-color;
|
429
|
+
$tab-content-background: lighten($light-gray, 15);
|
430
|
+
$tab-active-background: $tab-content-background;
|
431
|
+
$tab-inactive-color: $base-background-color;
|
432
|
+
$tab-inactive-hover-color: darken($light-gray, 5);
|
433
|
+
$tab-mode: $medium-screen;
|
434
|
+
|
435
|
+
@include clearfix;
|
436
|
+
border-radius: $base-border-radius;
|
437
|
+
border: $tab-border;
|
438
|
+
margin-bottom: $base-spacing;
|
439
|
+
|
440
|
+
@include media($tab-mode) {
|
441
|
+
border: none;
|
442
|
+
}
|
443
|
+
|
444
|
+
.tab {
|
445
|
+
@include media($tab-mode) {
|
446
|
+
display: inline;
|
447
|
+
}
|
448
|
+
|
449
|
+
&:first-child .tab-link {
|
450
|
+
border-top-left-radius: $base-border-radius;
|
451
|
+
border-top-right-radius: $base-border-radius;
|
452
|
+
}
|
453
|
+
|
454
|
+
&:last-child .tab-link {
|
455
|
+
border-bottom-left-radius: $base-border-radius;
|
456
|
+
border-bottom-right-radius: $base-border-radius;
|
457
|
+
|
458
|
+
@include media($tab-mode) {
|
459
|
+
border-bottom-left-radius: 0;
|
460
|
+
border-bottom-right-radius: 0;
|
461
|
+
}
|
462
|
+
}
|
463
|
+
|
464
|
+
.tab-link-type-system {
|
465
|
+
background-color: transparent;
|
466
|
+
border-bottom: 1px solid $tab-border-color;
|
467
|
+
color: $dark-gray;
|
468
|
+
display: block;
|
469
|
+
font-size: .9em;
|
470
|
+
font-weight: 200;
|
471
|
+
letter-spacing: .6px;
|
472
|
+
padding: $base-spacing/2 $gutter/2;
|
473
|
+
text-align: center;
|
474
|
+
|
475
|
+
@include media($tab-mode) {
|
476
|
+
@include inline-block;
|
477
|
+
border-bottom: 0;
|
478
|
+
border-top-left-radius: $base-border-radius;
|
479
|
+
border-top-right-radius: $base-border-radius;
|
480
|
+
}
|
481
|
+
|
482
|
+
&:hover {
|
483
|
+
color: $base-link-color;
|
484
|
+
}
|
485
|
+
|
486
|
+
&:focus {
|
487
|
+
outline: none;
|
488
|
+
}
|
489
|
+
}
|
490
|
+
|
491
|
+
section {
|
492
|
+
padding: $base-spacing $gutter;
|
493
|
+
background: $tab-content-background;
|
494
|
+
display: none;
|
495
|
+
overflow: hidden;
|
496
|
+
padding: $base-line-height $gutter;
|
497
|
+
width: 100%;
|
498
|
+
|
499
|
+
@include media($tab-mode) {
|
500
|
+
border-bottom-left-radius: $base-border-radius;
|
501
|
+
border-bottom-right-radius: $base-border-radius;
|
502
|
+
border-top: $tab-border;
|
503
|
+
float: left;
|
504
|
+
left: 0;
|
505
|
+
padding: $base-spacing/2 $gutter;
|
506
|
+
}
|
507
|
+
|
508
|
+
.tab-content {
|
509
|
+
opacity: 0;
|
510
|
+
}
|
511
|
+
}
|
512
|
+
|
513
|
+
&.js-is-active {
|
514
|
+
border-bottom: $tab-border;
|
515
|
+
|
516
|
+
@include media($tab-mode) {
|
517
|
+
border-bottom: 0;
|
518
|
+
}
|
519
|
+
|
520
|
+
.tab-link-type-system {
|
521
|
+
background-color: $tab-active-background;
|
522
|
+
border-bottom: 0;
|
523
|
+
|
524
|
+
@include media($tab-mode) {
|
525
|
+
background-color: $tab-active-background;
|
526
|
+
border-bottom: 1px solid $tab-active-background;
|
527
|
+
border: $tab-border;
|
528
|
+
margin-bottom: -1px;
|
529
|
+
}
|
530
|
+
}
|
531
|
+
|
532
|
+
section {
|
533
|
+
display: block;
|
534
|
+
|
535
|
+
.tab-content {
|
536
|
+
@include animation-name(fadeInAccordionTabsArticles);
|
537
|
+
@include animation-duration(1s);
|
538
|
+
opacity: 1;
|
539
|
+
}
|
540
|
+
}
|
541
|
+
}
|
542
|
+
}
|
543
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
@import "normalize";
|
2
|
+
@import "bourbon/bourbon";
|
3
|
+
@import "grid-settings";
|
4
|
+
@import "neat/neat";
|
5
|
+
@import "base/base";
|
6
|
+
@import "prism";
|
7
|
+
@import "fixedsticky";
|
8
|
+
|
9
|
+
@import "bourbon-nav";
|
10
|
+
@import "refills-styles";
|
11
|
+
@import "refills-nav";
|
12
|
+
|
13
|
+
@import "refills/accordion";
|
14
|
+
@import "refills/expander";
|
15
|
+
@import "refills/accordion-tabs";
|
16
|
+
@import "refills/accordion-tabs-minimal";
|
17
|
+
@import "refills/badges";
|
18
|
+
@import "refills/breadcrumbs";
|
19
|
+
@import "refills/button-group";
|
20
|
+
@import "refills/cards";
|
21
|
+
@import "refills/footer";
|
22
|
+
@import "refills/footer-2";
|
23
|
+
@import "refills/hero";
|
24
|
+
@import "refills/modal";
|
25
|
+
@import "refills/navigation";
|
26
|
+
@import "refills/image-gradient-dynamic";
|
27
|
+
@import "refills/progress-bar";
|
28
|
+
@import "refills/progress-bar-indication";
|
29
|
+
@import "refills/search-bar";
|
30
|
+
@import "refills/sliding-menu";
|
31
|
+
@import "refills/switch";
|
32
|
+
@import "refills/tables";
|
33
|
+
@import "refills/tables-minimal";
|
34
|
+
@import "refills/tooltip";
|
35
|
+
@import "refills/vertical-tabs";
|
36
|
+
@import "refills/hover-tile-animation";
|
37
|
+
@import "refills/icon-bullet-points";
|
38
|
+
@import "refills/grid-items";
|
39
|
+
@import "refills/grid-items-lines";
|
40
|
+
@import "refills/comment";
|
41
|
+
@import "refills/pagination";
|
42
|
+
@import "refills/browser";
|
43
|
+
@import "refills/side-image";
|
44
|
+
@import "refills/video";
|
45
|
+
@import "refills/centered-navigation";
|
46
|
+
@import "refills/search-tools";
|
47
|
+
@import "refills/device";
|
48
|
+
@import "refills/dropdown";
|
49
|
+
@import "refills/textures";
|
50
|
+
@import "refills/intro-text";
|
51
|
+
@import "refills/flashes";
|
52
|
+
@import "refills/label-alerts";
|
53
|
+
|
54
|
+
@import "refills/type-system-slab";
|
55
|
+
@import "refills/type-system-traditional";
|
56
|
+
@import "refills/type-system-geometric";
|
57
|
+
@import "refills/type-system-rounded";
|
58
|
+
@import "refills/type-system-sans";
|
59
|
+
@import "refills/type-system-serif";
|
60
|
+
|
61
|
+
@import "refills/texture-legend";
|
@@ -0,0 +1,60 @@
|
|
1
|
+
.accordion-tabs-minimal {
|
2
|
+
$tab-border-color: $base-border-color;
|
3
|
+
$tab-border: 1px solid $tab-border-color;
|
4
|
+
$tab-content-background: $base-background-color;
|
5
|
+
$tab-active-background: $tab-content-background;
|
6
|
+
$tab-inactive-color: $base-background-color;
|
7
|
+
$tab-inactive-hover-color: darken($light-gray, 5);
|
8
|
+
$tab-mode: $medium-screen;
|
9
|
+
|
10
|
+
@include clearfix;
|
11
|
+
margin-bottom: $base-spacing;
|
12
|
+
|
13
|
+
li.tab-header-and-content {
|
14
|
+
@include media($tab-mode) {
|
15
|
+
display: inline;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
a.tab-link {
|
20
|
+
background-color: $tab-inactive-color;
|
21
|
+
border-top: $tab-border;
|
22
|
+
color: $dark-gray;
|
23
|
+
display: block;
|
24
|
+
font-weight: 400;
|
25
|
+
padding: $base-spacing/2 $gutter;
|
26
|
+
|
27
|
+
@include media($tab-mode) {
|
28
|
+
@include inline-block;
|
29
|
+
border-top: 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
&:hover {
|
33
|
+
color: $base-link-color;
|
34
|
+
}
|
35
|
+
|
36
|
+
&:focus {
|
37
|
+
outline: none;
|
38
|
+
}
|
39
|
+
|
40
|
+
&.is-active {
|
41
|
+
border-bottom: 0;
|
42
|
+
|
43
|
+
@include media($tab-mode) {
|
44
|
+
border: $tab-border;
|
45
|
+
border-bottom-color: $tab-active-background;
|
46
|
+
margin-bottom: -1px;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.tab-content {
|
52
|
+
display: none;
|
53
|
+
padding: $base-spacing $gutter;
|
54
|
+
|
55
|
+
@include media($tab-mode) {
|
56
|
+
border-top: $tab-border;
|
57
|
+
float: left;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|