foundation-sass-rails 5.5.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +6 -0
  6. data/Gemfile.lock +37 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +62 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/foundation-sass-rails.gemspec +29 -0
  13. data/lib/foundation-sass-rails.rb +8 -0
  14. data/lib/foundation/version.rb +5 -0
  15. data/lib/generators/foundation/overrides_generator.rb +39 -0
  16. data/vendor/assets/stylesheets/foundation.scss +42 -0
  17. data/vendor/assets/stylesheets/foundation/_functions.scss +156 -0
  18. data/vendor/assets/stylesheets/foundation/_settings.scss +1489 -0
  19. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +161 -0
  20. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
  21. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +133 -0
  22. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +132 -0
  23. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +208 -0
  24. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +261 -0
  25. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +260 -0
  26. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +130 -0
  27. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +269 -0
  28. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +51 -0
  29. data/vendor/assets/stylesheets/foundation/components/_forms.scss +607 -0
  30. data/vendor/assets/stylesheets/foundation/components/_global.scss +566 -0
  31. data/vendor/assets/stylesheets/foundation/components/_grid.scss +292 -0
  32. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +460 -0
  33. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +58 -0
  34. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +220 -0
  35. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +60 -0
  36. data/vendor/assets/stylesheets/foundation/components/_labels.scss +106 -0
  37. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +34 -0
  38. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +606 -0
  39. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +388 -0
  40. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +163 -0
  41. data/vendor/assets/stylesheets/foundation/components/_panels.scss +107 -0
  42. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +150 -0
  43. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +85 -0
  44. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +177 -0
  45. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +212 -0
  46. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +120 -0
  47. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +203 -0
  48. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +125 -0
  49. data/vendor/assets/stylesheets/foundation/components/_switches.scss +241 -0
  50. data/vendor/assets/stylesheets/foundation/components/_tables.scss +135 -0
  51. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +142 -0
  52. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +66 -0
  53. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
  54. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +745 -0
  55. data/vendor/assets/stylesheets/foundation/components/_type.scss +525 -0
  56. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +425 -0
  57. data/vendor/assets/stylesheets/normalize.scss +424 -0
  58. metadata +163 -0
@@ -0,0 +1,525 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import 'global';
6
+
7
+ $include-html-type-classes: $include-html-classes !default;
8
+
9
+ // We use these to control header font styles
10
+ $header-font-family: $body-font-family !default;
11
+ $header-font-weight: $font-weight-normal !default;
12
+ $header-font-style: normal !default;
13
+ $header-font-color: $jet !default;
14
+ $header-line-height: 1.4 !default;
15
+ $header-top-margin: .2rem !default;
16
+ $header-bottom-margin: .5rem !default;
17
+ $header-text-rendering: optimizeLegibility !default;
18
+
19
+ // We use these to control header font sizes
20
+ $h1-font-size: rem-calc(44) !default;
21
+ $h2-font-size: rem-calc(37) !default;
22
+ $h3-font-size: rem-calc(27) !default;
23
+ $h4-font-size: rem-calc(23) !default;
24
+ $h5-font-size: rem-calc(18) !default;
25
+ $h6-font-size: 1rem !default;
26
+
27
+ // We use these to control header size reduction on small screens
28
+ $h1-font-reduction: rem-calc(10) !default;
29
+ $h2-font-reduction: rem-calc(10) !default;
30
+ $h3-font-reduction: rem-calc(5) !default;
31
+ $h4-font-reduction: rem-calc(5) !default;
32
+ $h5-font-reduction: 0 !default;
33
+ $h6-font-reduction: 0 !default;
34
+
35
+ // These control how subheaders are styled.
36
+ $subheader-line-height: 1.4 !default;
37
+ $subheader-font-color: scale-color($header-font-color, $lightness: 35%) !default;
38
+ $subheader-font-weight: $font-weight-normal !default;
39
+ $subheader-top-margin: .2rem !default;
40
+ $subheader-bottom-margin: .5rem !default;
41
+
42
+ // A general <small> styling
43
+ $small-font-size: 60% !default;
44
+ $small-font-color: scale-color($header-font-color, $lightness: 35%) !default;
45
+
46
+ // We use these to style paragraphs
47
+ $paragraph-font-family: inherit !default;
48
+ $paragraph-font-weight: $font-weight-normal !default;
49
+ $paragraph-font-size: 1rem !default;
50
+ $paragraph-line-height: 1.6 !default;
51
+ $paragraph-margin-bottom: rem-calc(20) !default;
52
+ $paragraph-aside-font-size: rem-calc(14) !default;
53
+ $paragraph-aside-line-height: 1.35 !default;
54
+ $paragraph-aside-font-style: italic !default;
55
+ $paragraph-text-rendering: optimizeLegibility !default;
56
+
57
+ // We use these to style <code> tags
58
+ $code-color: $oil !default;
59
+ $code-font-family: $font-family-monospace !default;
60
+ $code-font-weight: $font-weight-normal !default;
61
+ $code-background-color: scale-color($secondary-color, $lightness: 70%) !default;
62
+ $code-border-size: 1px !default;
63
+ $code-border-style: solid !default;
64
+ $code-border-color: scale-color($code-background-color, $lightness: -10%) !default;
65
+ $code-padding: rem-calc(2) rem-calc(5) rem-calc(1) !default;
66
+
67
+ // We use these to style anchors
68
+ $anchor-text-decoration: none !default;
69
+ $anchor-text-decoration-hover: none !default;
70
+ $anchor-font-color: $primary-color !default;
71
+ $anchor-font-color-hover: scale-color($anchor-font-color, $lightness: -14%) !default;
72
+
73
+ // We use these to style the <hr> element
74
+ $hr-border-width: 1px !default;
75
+ $hr-border-style: solid !default;
76
+ $hr-border-color: $gainsboro !default;
77
+ $hr-margin: rem-calc(20) !default;
78
+
79
+ // We use these to style lists
80
+ $list-font-family: $paragraph-font-family !default;
81
+ $list-font-size: $paragraph-font-size !default;
82
+ $list-line-height: $paragraph-line-height !default;
83
+ $list-margin-bottom: $paragraph-margin-bottom !default;
84
+ $list-style-position: outside !default;
85
+ $list-side-margin: 1.1rem !default;
86
+ $list-ordered-side-margin: 1.4rem !default;
87
+ $list-side-margin-no-bullet: 0 !default;
88
+ $list-nested-margin: rem-calc(20) !default;
89
+ $definition-list-header-weight: $font-weight-bold !default;
90
+ $definition-list-header-margin-bottom: .3rem !default;
91
+ $definition-list-margin-bottom: rem-calc(12) !default;
92
+
93
+ // We use these to style blockquotes
94
+ $blockquote-font-color: scale-color($header-font-color, $lightness: 35%) !default;
95
+ $blockquote-padding: rem-calc(9 20 0 19) !default;
96
+ $blockquote-border: 1px solid $gainsboro !default;
97
+ $blockquote-cite-font-size: rem-calc(13) !default;
98
+ $blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%) !default;
99
+ $blockquote-cite-link-color: $blockquote-cite-font-color !default;
100
+
101
+ // Acronym styles
102
+ $acronym-underline: 1px dotted $gainsboro !default;
103
+
104
+ // We use these to control padding and margin
105
+ $microformat-padding: rem-calc(10 12) !default;
106
+ $microformat-margin: rem-calc(0 0 20 0) !default;
107
+
108
+ // We use these to control the border styles
109
+ $microformat-border-width: 1px !default;
110
+ $microformat-border-style: solid !default;
111
+ $microformat-border-color: $gainsboro !default;
112
+
113
+ // We use these to control full name font styles
114
+ $microformat-fullname-font-weight: $font-weight-bold !default;
115
+ $microformat-fullname-font-size: rem-calc(15) !default;
116
+
117
+ // We use this to control the summary font styles
118
+ $microformat-summary-font-weight: $font-weight-bold !default;
119
+
120
+ // We use this to control abbr padding
121
+ $microformat-abbr-padding: rem-calc(0 1) !default;
122
+
123
+ // We use this to control abbr font styles
124
+ $microformat-abbr-font-weight: $font-weight-bold !default;
125
+ $microformat-abbr-font-decoration: none !default;
126
+
127
+ // Controls the page margin when printing the website
128
+ $print-margin: 0.34in !default;
129
+
130
+ // Text alignment class names
131
+ $align-class-names:
132
+ small-only,
133
+ small,
134
+ medium-only,
135
+ medium,
136
+ large-only,
137
+ large,
138
+ xlarge-only,
139
+ xlarge,
140
+ xxlarge-only,
141
+ xxlarge;
142
+
143
+ // Text alignment breakpoints
144
+ $align-class-breakpoints:
145
+ $small-only,
146
+ $small-up,
147
+ $medium-only,
148
+ $medium-up,
149
+ $large-only,
150
+ $large-up,
151
+ $xlarge-only,
152
+ $xlarge-up,
153
+ $xxlarge-only,
154
+ $xxlarge-up;
155
+
156
+ // Generates text align and justify classes
157
+ @mixin align-classes{
158
+ .text-left { text-align: left !important; }
159
+ .text-right { text-align: right !important; }
160
+ .text-center { text-align: center !important; }
161
+ .text-justify { text-align: justify !important; }
162
+
163
+ @for $i from 1 through length($align-class-names) {
164
+ @media #{(nth($align-class-breakpoints, $i))} {
165
+ .#{(nth($align-class-names, $i))}-text-left { text-align: left !important; }
166
+ .#{(nth($align-class-names, $i))}-text-right { text-align: right !important; }
167
+ .#{(nth($align-class-names, $i))}-text-center { text-align: center !important; }
168
+ .#{(nth($align-class-names, $i))}-text-justify { text-align: justify !important; }
169
+ }
170
+ }
171
+ }
172
+
173
+ //
174
+ // Typography Placeholders
175
+ //
176
+
177
+ // These will throw a deprecation warning if used within a media query.
178
+ @mixin lead {
179
+ font-size: $paragraph-font-size + rem-calc(3.5);
180
+ line-height: 1.6;
181
+ }
182
+
183
+ @mixin subheader {
184
+ line-height: $subheader-line-height;
185
+ color: $subheader-font-color;
186
+ font-weight: $subheader-font-weight;
187
+ margin-top: $subheader-top-margin;
188
+ margin-bottom: $subheader-bottom-margin;
189
+ }
190
+ @include exports("type") {
191
+ @if $include-html-type-classes {
192
+ // Responsive Text alignment
193
+ @include align-classes;
194
+
195
+ /* Typography resets */
196
+ div,
197
+ dl,
198
+ dt,
199
+ dd,
200
+ ul,
201
+ ol,
202
+ li,
203
+ h1,
204
+ h2,
205
+ h3,
206
+ h4,
207
+ h5,
208
+ h6,
209
+ pre,
210
+ form,
211
+ p,
212
+ blockquote,
213
+ th,
214
+ td {
215
+ margin:0;
216
+ padding:0;
217
+ }
218
+
219
+ /* Default Link Styles */
220
+ a {
221
+ color: $anchor-font-color;
222
+ line-height: inherit;
223
+ text-decoration: $anchor-text-decoration;
224
+
225
+ &:hover,
226
+ &:focus {
227
+ color: $anchor-font-color-hover;
228
+ @if $anchor-text-decoration-hover != $anchor-text-decoration {
229
+ text-decoration: $anchor-text-decoration-hover;
230
+ }
231
+ }
232
+
233
+ img { border:none; }
234
+ }
235
+
236
+ /* Default paragraph styles */
237
+ p {
238
+ font-family: $paragraph-font-family;
239
+ font-size: $paragraph-font-size;
240
+ font-weight: $paragraph-font-weight;
241
+ line-height: $paragraph-line-height;
242
+ margin-bottom: $paragraph-margin-bottom;
243
+ text-rendering: $paragraph-text-rendering;
244
+
245
+ &.lead { @include lead; }
246
+
247
+ & aside {
248
+ font-size: $paragraph-aside-font-size;
249
+ font-style: $paragraph-aside-font-style;
250
+ line-height: $paragraph-aside-line-height;
251
+ }
252
+ }
253
+
254
+ /* Default header styles */
255
+ h1, h2, h3, h4, h5, h6 {
256
+ color: $header-font-color;
257
+ font-family: $header-font-family;
258
+ font-style: $header-font-style;
259
+ font-weight: $header-font-weight;
260
+ line-height: $header-line-height;
261
+ margin-bottom: $header-bottom-margin;
262
+ margin-top: $header-top-margin;
263
+ text-rendering: $header-text-rendering;
264
+
265
+ small {
266
+ color: $small-font-color;
267
+ font-size: $small-font-size;
268
+ line-height: 0;
269
+ }
270
+ }
271
+
272
+ h1 { font-size: $h1-font-size - $h1-font-reduction; }
273
+ h2 { font-size: $h2-font-size - $h2-font-reduction; }
274
+ h3 { font-size: $h3-font-size - $h3-font-reduction; }
275
+ h4 { font-size: $h4-font-size - $h4-font-reduction; }
276
+ h5 { font-size: $h5-font-size - $h5-font-reduction; }
277
+ h6 { font-size: $h6-font-size - $h6-font-reduction; }
278
+
279
+ .subheader { @include subheader; }
280
+
281
+ hr {
282
+ border: $hr-border-style $hr-border-color;
283
+ border-width: $hr-border-width 0 0;
284
+ clear: both;
285
+ height: 0;
286
+ margin: $hr-margin 0 ($hr-margin - rem-calc($hr-border-width));
287
+ }
288
+
289
+ /* Helpful Typography Defaults */
290
+ em,
291
+ i {
292
+ font-style: italic;
293
+ line-height: inherit;
294
+ }
295
+
296
+ strong,
297
+ b {
298
+ font-weight: $font-weight-bold;
299
+ line-height: inherit;
300
+ }
301
+
302
+ small {
303
+ font-size: $small-font-size;
304
+ line-height: inherit;
305
+ }
306
+
307
+ code {
308
+ background-color: $code-background-color;
309
+ border-color: $code-border-color;
310
+ border-style: $code-border-style;
311
+ border-width: $code-border-size;
312
+ color: $code-color;
313
+ font-family: $code-font-family;
314
+ font-weight: $code-font-weight;
315
+ padding: $code-padding;
316
+ }
317
+
318
+ /* Lists */
319
+ ul,
320
+ ol,
321
+ dl {
322
+ font-family: $list-font-family;
323
+ font-size: $list-font-size;
324
+ line-height: $list-line-height;
325
+ list-style-position: $list-style-position;
326
+ margin-bottom: $list-margin-bottom;
327
+ }
328
+
329
+ ul {
330
+ margin-#{$default-float}: $list-side-margin;
331
+ }
332
+
333
+ /* Unordered Lists */
334
+ ul {
335
+ li {
336
+ ul,
337
+ ol {
338
+ margin-#{$default-float}: $list-nested-margin;
339
+ margin-bottom: 0;
340
+ }
341
+ }
342
+ &.square,
343
+ &.circle,
344
+ &.disc {
345
+ li ul { list-style: inherit; }
346
+ }
347
+
348
+ &.square { list-style-type: square; margin-#{$default-float}: $list-side-margin;}
349
+ &.circle { list-style-type: circle; margin-#{$default-float}: $list-side-margin;}
350
+ &.disc { list-style-type: disc; margin-#{$default-float}: $list-side-margin;}
351
+ }
352
+
353
+ /* Ordered Lists */
354
+ ol {
355
+ margin-#{$default-float}: $list-ordered-side-margin;
356
+ li {
357
+ ul,
358
+ ol {
359
+ margin-#{$default-float}: $list-nested-margin;
360
+ margin-bottom: 0;
361
+ }
362
+ }
363
+ }
364
+
365
+ // Lists without bullets
366
+ .no-bullet {
367
+ list-style-type: none;
368
+ margin-#{$default-float}: $list-side-margin-no-bullet;
369
+
370
+ li {
371
+ ul,
372
+ ol {
373
+ margin-#{$default-float}: $list-nested-margin;
374
+ margin-bottom: 0;
375
+ list-style: none;
376
+ }
377
+ }
378
+ }
379
+
380
+ /* Definition Lists */
381
+ dl {
382
+ dt {
383
+ margin-bottom: $definition-list-header-margin-bottom;
384
+ font-weight: $definition-list-header-weight;
385
+ }
386
+ dd { margin-bottom: $definition-list-margin-bottom; }
387
+ }
388
+
389
+ /* Abbreviations */
390
+ abbr,
391
+ acronym {
392
+ text-transform: uppercase;
393
+ font-size: 90%;
394
+ color: $body-font-color;
395
+ cursor: $cursor-help-value;
396
+ }
397
+ abbr {
398
+ text-transform: none;
399
+ &[title] {
400
+ border-bottom: $acronym-underline;
401
+ }
402
+ }
403
+
404
+ /* Blockquotes */
405
+ blockquote {
406
+ margin: 0 0 $paragraph-margin-bottom;
407
+ padding: $blockquote-padding;
408
+ border-#{$default-float}: $blockquote-border;
409
+
410
+ cite {
411
+ display: block;
412
+ font-size: $blockquote-cite-font-size;
413
+ color: $blockquote-cite-font-color;
414
+ &:before {
415
+ content: "\2014 \0020";
416
+ }
417
+
418
+ a,
419
+ a:visited {
420
+ color: $blockquote-cite-link-color;
421
+ }
422
+ }
423
+ }
424
+ blockquote,
425
+ blockquote p {
426
+ line-height: $paragraph-line-height;
427
+ color: $blockquote-font-color;
428
+ }
429
+
430
+ /* Microformats */
431
+ .vcard {
432
+ display: inline-block;
433
+ margin: $microformat-margin;
434
+ border: $microformat-border-width $microformat-border-style $microformat-border-color;
435
+ padding: $microformat-padding;
436
+
437
+ li {
438
+ margin: 0;
439
+ display: block;
440
+ }
441
+ .fn {
442
+ font-weight: $microformat-fullname-font-weight;
443
+ font-size: $microformat-fullname-font-size;
444
+ }
445
+ }
446
+
447
+ .vevent {
448
+ .summary { font-weight: $microformat-summary-font-weight; }
449
+
450
+ abbr {
451
+ cursor: $cursor-default-value;
452
+ text-decoration: $microformat-abbr-font-decoration;
453
+ font-weight: $microformat-abbr-font-weight;
454
+ border: none;
455
+ padding: $microformat-abbr-padding;
456
+ }
457
+ }
458
+
459
+
460
+ @media #{$medium-up} {
461
+ h1, h2, h3, h4, h5, h6 { line-height: $header-line-height; }
462
+ h1 { font-size: $h1-font-size; }
463
+ h2 { font-size: $h2-font-size; }
464
+ h3 { font-size: $h3-font-size; }
465
+ h4 { font-size: $h4-font-size; }
466
+ h5 { font-size: $h5-font-size; }
467
+ h6 { font-size: $h6-font-size; }
468
+ }
469
+
470
+ // Only include these styles if you want them.
471
+ @if $include-print-styles {
472
+ /*
473
+ * Print styles.
474
+ *
475
+ * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
476
+ * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
477
+ */
478
+ @media print {
479
+ * {
480
+ background: transparent !important;
481
+ color: $black !important; /* Black prints faster: h5bp.com/s */
482
+ box-shadow: none !important;
483
+ text-shadow: none !important;
484
+ }
485
+
486
+ a,
487
+ a:visited { text-decoration: underline;}
488
+ a[href]:after { content: " (" attr(href) ")"; }
489
+
490
+ abbr[title]:after { content: " (" attr(title) ")"; }
491
+
492
+ // Don't show links for images, or javascript/internal links
493
+ .ir a:after,
494
+ a[href^="javascript:"]:after,
495
+ a[href^="#"]:after { content: ""; }
496
+
497
+ pre,
498
+ blockquote {
499
+ border: 1px solid $aluminum;
500
+ page-break-inside: avoid;
501
+ }
502
+
503
+ thead { display: table-header-group; /* h5bp.com/t */ }
504
+
505
+ tr,
506
+ img { page-break-inside: avoid; }
507
+
508
+ img { max-width: 100% !important; }
509
+
510
+ @page { margin: $print-margin; }
511
+
512
+ p,
513
+ h2,
514
+ h3 {
515
+ orphans: 3;
516
+ widows: 3;
517
+ }
518
+
519
+ h2,
520
+ h3 { page-break-after: avoid; }
521
+ }
522
+ }
523
+
524
+ }
525
+ }