foundation-rails 6.2.4.0 → 6.3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/Rakefile +2 -0
  4. data/bower.json +2 -2
  5. data/lib/foundation/rails/version.rb +1 -1
  6. data/lib/generators/foundation/templates/_settings.scss +117 -70
  7. data/lib/generators/foundation/templates/foundation_and_overrides.scss +2 -1
  8. data/vendor/assets/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  9. data/vendor/assets/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  10. data/vendor/assets/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  11. data/vendor/assets/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  12. data/vendor/assets/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  13. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  14. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  15. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  16. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  17. data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  18. data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  19. data/vendor/assets/js/foundation.abide.js.es6 +28 -0
  20. data/vendor/assets/js/foundation.accordion.js.es6 +1 -1
  21. data/vendor/assets/js/foundation.accordionMenu.js.es6 +9 -1
  22. data/vendor/assets/js/foundation.core.js.es6 +4 -4
  23. data/vendor/assets/js/foundation.drilldown.js.es6 +128 -14
  24. data/vendor/assets/js/foundation.dropdown.js.es6 +48 -42
  25. data/vendor/assets/js/foundation.dropdownMenu.js.es6 +20 -18
  26. data/vendor/assets/js/foundation.equalizer.js.es6 +12 -6
  27. data/vendor/assets/js/foundation.interchange.js.es6 +3 -2
  28. data/vendor/assets/js/foundation.js.es6 +2 -1
  29. data/vendor/assets/js/foundation.magellan.js.es6 +28 -9
  30. data/vendor/assets/js/foundation.offcanvas.js.es6 +90 -123
  31. data/vendor/assets/js/foundation.orbit.js.es6 +61 -10
  32. data/vendor/assets/js/foundation.responsiveMenu.js.es6 +2 -0
  33. data/vendor/assets/js/foundation.responsiveToggle.js.es6 +52 -12
  34. data/vendor/assets/js/foundation.reveal.js.es6 +48 -48
  35. data/vendor/assets/js/foundation.slider.js.es6 +124 -42
  36. data/vendor/assets/js/foundation.sticky.js.es6 +11 -9
  37. data/vendor/assets/js/foundation.tabs.js.es6 +164 -35
  38. data/vendor/assets/js/foundation.toggler.js.es6 +3 -0
  39. data/vendor/assets/js/foundation.tooltip.js.es6 +20 -10
  40. data/vendor/assets/js/foundation.util.box.js.es6 +2 -2
  41. data/vendor/assets/js/foundation.util.keyboard.js.es6 +37 -0
  42. data/vendor/assets/js/foundation.util.mediaQuery.js.es6 +16 -0
  43. data/vendor/assets/js/foundation.util.motion.js.es6 +7 -1
  44. data/vendor/assets/js/foundation.util.nest.js.es6 +10 -5
  45. data/vendor/assets/js/foundation.util.timerAndImageLoader.js.es6 +6 -4
  46. data/vendor/assets/js/foundation.util.triggers.js.es6 +54 -36
  47. data/vendor/assets/js/foundation.zf.responsiveAccordionTabs.js.es6 +240 -0
  48. data/vendor/assets/scss/_global.scss +25 -450
  49. data/vendor/assets/scss/components/_accordion-menu.scss +8 -4
  50. data/vendor/assets/scss/components/_accordion.scss +43 -22
  51. data/vendor/assets/scss/components/_badge.scss +17 -9
  52. data/vendor/assets/scss/components/_breadcrumbs.scss +7 -5
  53. data/vendor/assets/scss/components/_button-group.scss +54 -6
  54. data/vendor/assets/scss/components/_button.scss +27 -16
  55. data/vendor/assets/scss/components/_callout.scss +3 -2
  56. data/vendor/assets/scss/components/_card.scss +121 -0
  57. data/vendor/assets/scss/components/_close-button.scss +54 -13
  58. data/vendor/assets/scss/components/_drilldown.scss +19 -5
  59. data/vendor/assets/scss/components/_dropdown-menu.scss +23 -18
  60. data/vendor/assets/scss/components/_dropdown.scss +14 -7
  61. data/vendor/assets/scss/components/_flex-video.scss +1 -63
  62. data/vendor/assets/scss/components/_float.scss +1 -1
  63. data/vendor/assets/scss/components/_label.scss +16 -8
  64. data/vendor/assets/scss/components/_media-object.scss +2 -3
  65. data/vendor/assets/scss/components/_menu.scss +68 -33
  66. data/vendor/assets/scss/components/_off-canvas.scss +231 -80
  67. data/vendor/assets/scss/components/_orbit.scss +8 -6
  68. data/vendor/assets/scss/components/_pagination.scss +42 -22
  69. data/vendor/assets/scss/components/_progress-bar.scss +1 -1
  70. data/vendor/assets/scss/components/_responsive-embed.scss +66 -0
  71. data/vendor/assets/scss/components/_reveal.scss +17 -11
  72. data/vendor/assets/scss/components/_slider.scss +6 -1
  73. data/vendor/assets/scss/components/_sticky.scss +3 -3
  74. data/vendor/assets/scss/components/_switch.scss +47 -36
  75. data/vendor/assets/scss/components/_table.scss +83 -23
  76. data/vendor/assets/scss/components/_tabs.scss +54 -23
  77. data/vendor/assets/scss/components/_thumbnail.scss +17 -4
  78. data/vendor/assets/scss/components/_title-bar.scss +5 -6
  79. data/vendor/assets/scss/components/_tooltip.scss +15 -12
  80. data/vendor/assets/scss/components/_top-bar.scss +11 -8
  81. data/vendor/assets/scss/forms/_checkbox.scss +2 -1
  82. data/vendor/assets/scss/forms/_error.scss +10 -6
  83. data/vendor/assets/scss/forms/_fieldset.scss +7 -7
  84. data/vendor/assets/scss/forms/_input-group.scss +17 -11
  85. data/vendor/assets/scss/forms/_label.scss +2 -0
  86. data/vendor/assets/scss/forms/_meter.scss +9 -10
  87. data/vendor/assets/scss/forms/_progress.scss +9 -9
  88. data/vendor/assets/scss/forms/_range.scss +20 -15
  89. data/vendor/assets/scss/forms/_select.scss +26 -8
  90. data/vendor/assets/scss/forms/_text.scss +19 -16
  91. data/vendor/assets/scss/foundation.scss +19 -3
  92. data/vendor/assets/scss/grid/_classes.scss +31 -14
  93. data/vendor/assets/scss/grid/_column.scss +10 -24
  94. data/vendor/assets/scss/grid/_flex-grid.scss +84 -76
  95. data/vendor/assets/scss/grid/_grid.scss +0 -16
  96. data/vendor/assets/scss/grid/_gutter.scss +53 -5
  97. data/vendor/assets/scss/grid/_layout.scss +3 -3
  98. data/vendor/assets/scss/grid/_position.scss +3 -3
  99. data/vendor/assets/scss/grid/_row.scss +24 -19
  100. data/vendor/assets/scss/settings/_settings.scss +117 -70
  101. data/vendor/assets/scss/typography/_base.scss +110 -44
  102. data/vendor/assets/scss/typography/_helpers.scss +1 -0
  103. data/vendor/assets/scss/typography/_print.scss +7 -3
  104. data/vendor/assets/scss/typography/_typography.scss +0 -2
  105. data/vendor/assets/scss/util/_breakpoint.scss +28 -19
  106. data/vendor/assets/scss/util/_color.scss +69 -16
  107. data/vendor/assets/scss/util/_flex.scss +20 -3
  108. data/vendor/assets/scss/util/_math.scss +72 -0
  109. data/vendor/assets/scss/util/_mixins.scss +63 -26
  110. data/vendor/assets/scss/util/_selector.scss +3 -2
  111. data/vendor/assets/scss/util/_unit.scss +61 -4
  112. data/vendor/assets/scss/util/_util.scss +1 -0
  113. data/vendor/assets/scss/util/_value.scss +33 -0
  114. metadata +17 -2
@@ -2,7 +2,7 @@
2
2
  // foundation.zurb.com
3
3
  // Licensed under MIT Open Source
4
4
 
5
- // scss-lint:disable ColorVariable, QualifyingElement, VendorPrefix
5
+ // sass-lint:disable force-attribute-nesting, force-pseudo-nesting, no-color-literals, no-qualifying-elements
6
6
 
7
7
  ////
8
8
  /// @group global
@@ -23,11 +23,11 @@ $global-lineheight: 1.5 !default;
23
23
  /// Colors used for buttons, callouts, links, etc. There must always be a color called `primary`.
24
24
  /// @type Map
25
25
  $foundation-palette: (
26
- primary: #2199e8,
27
- secondary: #777,
26
+ primary: #1779ba,
27
+ secondary: #767676,
28
28
  success: #3adb76,
29
29
  warning: #ffae00,
30
- alert: #ec5840,
30
+ alert: #cc4b37,
31
31
  ) !default;
32
32
 
33
33
  /// Color used for light gray UI items.
@@ -103,15 +103,11 @@ $global-left: if($global-text-direction == rtl, right, left);
103
103
  $global-right: if($global-text-direction == rtl, left, right);
104
104
 
105
105
  // Internal variables used for colors
106
- $primary-color: map-get($foundation-palette, primary);
107
- $secondary-color: map-get($foundation-palette, secondary);
108
- $success-color: map-get($foundation-palette, success);
109
- $warning-color: map-get($foundation-palette, warning);
110
- $alert-color: map-get($foundation-palette, alert);
111
-
112
- // Remove this in 6.3
113
- $-zf-menu-icon-imported: false;
114
- $-zf-flex-classes-imported: false;
106
+ $primary-color: get-color(primary);
107
+ $secondary-color: get-color(secondary);
108
+ $success-color: get-color(success);
109
+ $warning-color: get-color(warning);
110
+ $alert-color: get-color(alert);
115
111
 
116
112
  @mixin foundation-global-styles {
117
113
  @include -zf-normalize;
@@ -122,8 +118,8 @@ $-zf-flex-classes-imported: false;
122
118
  }
123
119
 
124
120
  html {
125
- font-size: $global-font-size;
126
121
  box-sizing: border-box;
122
+ font-size: $global-font-size;
127
123
  }
128
124
 
129
125
  // Set box-sizing globally to handle padding and border widths
@@ -135,13 +131,15 @@ $-zf-flex-classes-imported: false;
135
131
 
136
132
  // Default body styles
137
133
  body {
138
- padding: 0;
139
134
  margin: 0;
135
+ padding: 0;
136
+
137
+ background: $body-background;
138
+
140
139
  font-family: $body-font-family;
141
140
  font-weight: $global-weight-normal;
142
141
  line-height: $global-lineheight;
143
142
  color: $body-font-color;
144
- background: $body-background;
145
143
 
146
144
  @if ($body-antialiased) {
147
145
  -webkit-font-smoothing: antialiased;
@@ -150,14 +148,14 @@ $-zf-flex-classes-imported: false;
150
148
  }
151
149
 
152
150
  img {
151
+ // Get rid of gap under images by making them display: inline-block; by default
152
+ display: inline-block;
153
+ vertical-align: middle;
154
+
153
155
  // Grid defaults to get images and embeds to work properly
154
156
  max-width: 100%;
155
157
  height: auto;
156
158
  -ms-interpolation-mode: bicubic;
157
-
158
- // Get rid of gap under images by making them display: inline-block; by default
159
- display: inline-block;
160
- vertical-align: middle;
161
159
  }
162
160
 
163
161
  // Make sure textarea takes on height automatically
@@ -174,8 +172,7 @@ $-zf-flex-classes-imported: false;
174
172
  }
175
173
 
176
174
  // Styles Google Maps and MapQuest embeds properly
177
- // scss-lint:disable IdSelector
178
- #map_canvas,
175
+ // sass-lint:disable-line no-ids
179
176
  .map_canvas,
180
177
  .mqa-display {
181
178
  img,
@@ -188,12 +185,14 @@ $-zf-flex-classes-imported: false;
188
185
  // Reset <button> styles created by most browsers
189
186
  button {
190
187
  @include disable-mouse-outline;
191
- -webkit-appearance: none;
192
- -moz-appearance: none;
193
- background: transparent;
188
+
194
189
  padding: 0;
190
+
191
+ appearance: none;
195
192
  border: 0;
196
193
  border-radius: $global-radius;
194
+ background: transparent;
195
+
197
196
  line-height: 1;
198
197
  }
199
198
 
@@ -210,429 +209,5 @@ $-zf-flex-classes-imported: false;
210
209
  /// Loads normalize.css.
211
210
  /// @access private
212
211
  @mixin -zf-normalize {
213
- /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
214
-
215
- /**
216
- * 1. Set default font family to sans-serif.
217
- * 2. Prevent iOS and IE text size adjust after device orientation change,
218
- * without disabling user zoom.
219
- */
220
-
221
- html {
222
- font-family: sans-serif; /* 1 */
223
- -ms-text-size-adjust: 100%; /* 2 */
224
- -webkit-text-size-adjust: 100%; /* 2 */
225
- }
226
-
227
- /**
228
- * Remove default margin.
229
- */
230
-
231
- body {
232
- margin: 0;
233
- }
234
-
235
- /* HTML5 display definitions
236
- ========================================================================== */
237
-
238
- /**
239
- * Correct `block` display not defined for any HTML5 element in IE 8/9.
240
- * Correct `block` display not defined for `details` or `summary` in IE 10/11
241
- * and Firefox.
242
- * Correct `block` display not defined for `main` in IE 11.
243
- */
244
-
245
- article,
246
- aside,
247
- details,
248
- figcaption,
249
- figure,
250
- footer,
251
- header,
252
- hgroup,
253
- main,
254
- menu,
255
- nav,
256
- section,
257
- summary {
258
- display: block;
259
- }
260
-
261
- /**
262
- * 1. Correct `inline-block` display not defined in IE 8/9.
263
- * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
264
- */
265
-
266
- audio,
267
- canvas,
268
- progress,
269
- video {
270
- display: inline-block; /* 1 */
271
- vertical-align: baseline; /* 2 */
272
- }
273
-
274
- /**
275
- * Prevent modern browsers from displaying `audio` without controls.
276
- * Remove excess height in iOS 5 devices.
277
- */
278
-
279
- audio:not([controls]) {
280
- display: none;
281
- height: 0;
282
- }
283
-
284
- /**
285
- * Address `[hidden]` styling not present in IE 8/9/10.
286
- * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
287
- */
288
-
289
- [hidden],
290
- template {
291
- display: none;
292
- }
293
-
294
- /* Links
295
- ========================================================================== */
296
-
297
- /**
298
- * Remove the gray background color from active links in IE 10.
299
- */
300
-
301
- a {
302
- background-color: transparent;
303
- }
304
-
305
- /**
306
- * Improve readability of focused elements when they are also in an
307
- * active/hover state.
308
- */
309
-
310
- a:active,
311
- a:hover {
312
- outline: 0;
313
- }
314
-
315
- /* Text-level semantics
316
- ========================================================================== */
317
-
318
- /**
319
- * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
320
- */
321
-
322
- abbr[title] {
323
- border-bottom: 1px dotted;
324
- }
325
-
326
- /**
327
- * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
328
- */
329
-
330
- b,
331
- strong {
332
- font-weight: bold;
333
- }
334
-
335
- /**
336
- * Address styling not present in Safari and Chrome.
337
- */
338
-
339
- dfn {
340
- font-style: italic;
341
- }
342
-
343
- /**
344
- * Address variable `h1` font-size and margin within `section` and `article`
345
- * contexts in Firefox 4+, Safari, and Chrome.
346
- */
347
-
348
- h1 {
349
- font-size: 2em;
350
- margin: 0.67em 0;
351
- }
352
-
353
- /**
354
- * Address styling not present in IE 8/9.
355
- */
356
-
357
- mark {
358
- background: #ff0;
359
- color: #000;
360
- }
361
-
362
- /**
363
- * Address inconsistent and variable font size in all browsers.
364
- */
365
-
366
- small {
367
- font-size: 80%;
368
- }
369
-
370
- /**
371
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
372
- */
373
-
374
- sub,
375
- sup {
376
- font-size: 75%;
377
- line-height: 0;
378
- position: relative;
379
- vertical-align: baseline;
380
- }
381
-
382
- sup {
383
- top: -0.5em;
384
- }
385
-
386
- sub {
387
- bottom: -0.25em;
388
- }
389
-
390
- /* Embedded content
391
- ========================================================================== */
392
-
393
- /**
394
- * Remove border when inside `a` element in IE 8/9/10.
395
- */
396
-
397
- img {
398
- border: 0;
399
- }
400
-
401
- /**
402
- * Correct overflow not hidden in IE 9/10/11.
403
- */
404
-
405
- svg:not(:root) {
406
- overflow: hidden;
407
- }
408
-
409
- /* Grouping content
410
- ========================================================================== */
411
-
412
- /**
413
- * Address margin not present in IE 8/9 and Safari.
414
- */
415
-
416
- figure {
417
- margin: 1em 40px;
418
- }
419
-
420
- /**
421
- * Address differences between Firefox and other browsers.
422
- */
423
-
424
- hr {
425
- box-sizing: content-box;
426
- height: 0;
427
- }
428
-
429
- /**
430
- * Contain overflow in all browsers.
431
- */
432
-
433
- pre {
434
- overflow: auto;
435
- }
436
-
437
- /**
438
- * Address odd `em`-unit font size rendering in all browsers.
439
- */
440
-
441
- code,
442
- kbd,
443
- pre,
444
- samp {
445
- font-family: monospace, monospace;
446
- font-size: 1em;
447
- }
448
-
449
- /* Forms
450
- ========================================================================== */
451
-
452
- /**
453
- * Known limitation: by default, Chrome and Safari on OS X allow very limited
454
- * styling of `select`, unless a `border` property is set.
455
- */
456
-
457
- /**
458
- * 1. Correct color not being inherited.
459
- * Known issue: affects color of disabled elements.
460
- * 2. Correct font properties not being inherited.
461
- * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
462
- */
463
-
464
- button,
465
- input,
466
- optgroup,
467
- select,
468
- textarea {
469
- color: inherit; /* 1 */
470
- font: inherit; /* 2 */
471
- margin: 0; /* 3 */
472
- }
473
-
474
- /**
475
- * Address `overflow` set to `hidden` in IE 8/9/10/11.
476
- */
477
-
478
- button {
479
- overflow: visible;
480
- }
481
-
482
- /**
483
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
484
- * All other form control elements do not inherit `text-transform` values.
485
- * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
486
- * Correct `select` style inheritance in Firefox.
487
- */
488
-
489
- button,
490
- select {
491
- text-transform: none;
492
- }
493
-
494
- /**
495
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
496
- * and `video` controls.
497
- * 2. Correct inability to style clickable `input` types in iOS.
498
- * 3. Improve usability and consistency of cursor style between image-type
499
- * `input` and others.
500
- */
501
-
502
- button,
503
- html input[type="button"], /* 1 */
504
- input[type="reset"],
505
- input[type="submit"] {
506
- -webkit-appearance: button; /* 2 */
507
- cursor: pointer; /* 3 */
508
- }
509
-
510
- /**
511
- * Re-set default cursor for disabled elements.
512
- */
513
-
514
- button[disabled],
515
- html input[disabled] {
516
- cursor: not-allowed;
517
- }
518
-
519
- /**
520
- * Remove inner padding and border in Firefox 4+.
521
- */
522
-
523
- button::-moz-focus-inner,
524
- input::-moz-focus-inner {
525
- border: 0;
526
- padding: 0;
527
- }
528
-
529
- /**
530
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
531
- * the UA stylesheet.
532
- */
533
-
534
- input {
535
- line-height: normal;
536
- }
537
-
538
- /**
539
- * It's recommended that you don't attempt to style these elements.
540
- * Firefox's implementation doesn't respect box-sizing, padding, or width.
541
- *
542
- * 1. Address box sizing set to `content-box` in IE 8/9/10.
543
- * 2. Remove excess padding in IE 8/9/10.
544
- */
545
-
546
- input[type="checkbox"],
547
- input[type="radio"] {
548
- box-sizing: border-box; /* 1 */
549
- padding: 0; /* 2 */
550
- }
551
-
552
- /**
553
- * Fix the cursor style for Chrome's increment/decrement buttons. For certain
554
- * `font-size` values of the `input`, it causes the cursor style of the
555
- * decrement button to change from `default` to `text`.
556
- */
557
-
558
- input[type="number"]::-webkit-inner-spin-button,
559
- input[type="number"]::-webkit-outer-spin-button {
560
- height: auto;
561
- }
562
-
563
- /**
564
- * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
565
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
566
- */
567
-
568
- input[type="search"] {
569
- -webkit-appearance: textfield; /* 1 */
570
- box-sizing: content-box; /* 2 */
571
- }
572
-
573
- /**
574
- * Remove inner padding and search cancel button in Safari and Chrome on OS X.
575
- * Safari (but not Chrome) clips the cancel button when the search input has
576
- * padding (and `textfield` appearance).
577
- */
578
-
579
- input[type="search"]::-webkit-search-cancel-button,
580
- input[type="search"]::-webkit-search-decoration {
581
- -webkit-appearance: none;
582
- }
583
-
584
- /**
585
- * Define consistent border, margin, and padding.
586
- * [NOTE] We don't enable this ruleset in Foundation, because we want the <fieldset> element to have plain styling.
587
- */
588
-
589
- /* fieldset {
590
- border: 1px solid #c0c0c0;
591
- margin: 0 2px;
592
- padding: 0.35em 0.625em 0.75em;
593
- } */
594
-
595
- /**
596
- * 1. Correct `color` not being inherited in IE 8/9/10/11.
597
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
598
- */
599
-
600
- legend {
601
- border: 0; /* 1 */
602
- padding: 0; /* 2 */
603
- }
604
-
605
- /**
606
- * Remove default vertical scrollbar in IE 8/9/10/11.
607
- */
608
-
609
- textarea {
610
- overflow: auto;
611
- }
612
-
613
- /**
614
- * Don't inherit the `font-weight` (applied by a rule above).
615
- * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
616
- */
617
-
618
- optgroup {
619
- font-weight: bold;
620
- }
621
-
622
- /* Tables
623
- ========================================================================== */
624
-
625
- /**
626
- * Remove most spacing between table cells.
627
- */
628
-
629
- table {
630
- border-collapse: collapse;
631
- border-spacing: 0;
632
- }
633
-
634
- td,
635
- th {
636
- padding: 0;
637
- }
212
+ @include normalize();
638
213
  }