foundation-rails 6.1.2.0 → 6.2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -6
  3. data/README.md +1 -1
  4. data/Rakefile +5 -1
  5. data/bower.json +3 -3
  6. data/foundation-rails.gemspec +1 -0
  7. data/lib/foundation-rails.rb +1 -0
  8. data/lib/foundation/rails/version.rb +1 -1
  9. data/lib/generators/foundation/templates/foundation_and_overrides.scss +2 -2
  10. data/vendor/assets/js/foundation.abide.js.es6 +462 -0
  11. data/vendor/assets/js/{foundation.accordion.js → foundation.accordion.js.es6} +55 -47
  12. data/vendor/assets/js/{foundation.accordionMenu.js → foundation.accordionMenu.js.es6} +46 -35
  13. data/vendor/assets/js/{foundation.core.js → foundation.core.js.es6} +10 -8
  14. data/vendor/assets/js/{foundation.drilldown.js → foundation.drilldown.js.es6} +75 -49
  15. data/vendor/assets/js/{foundation.dropdown.js → foundation.dropdown.js.es6} +100 -88
  16. data/vendor/assets/js/{foundation.dropdownMenu.js → foundation.dropdownMenu.js.es6} +134 -128
  17. data/vendor/assets/js/{foundation.equalizer.js → foundation.equalizer.js.es6} +72 -61
  18. data/vendor/assets/js/{foundation.interchange.js → foundation.interchange.js.es6} +44 -45
  19. data/vendor/assets/js/{foundation.js → foundation.js.es6} +0 -0
  20. data/vendor/assets/js/{foundation.magellan.js → foundation.magellan.js.es6} +80 -83
  21. data/vendor/assets/js/foundation.offcanvas.js.es6 +395 -0
  22. data/vendor/assets/js/foundation.orbit.js.es6 +445 -0
  23. data/vendor/assets/js/{foundation.responsiveMenu.js → foundation.responsiveMenu.js.es6} +37 -31
  24. data/vendor/assets/js/foundation.responsiveToggle.js.es6 +112 -0
  25. data/vendor/assets/js/foundation.reveal.js.es6 +544 -0
  26. data/vendor/assets/js/{foundation.slider.js → foundation.slider.js.es6} +235 -184
  27. data/vendor/assets/js/{foundation.sticky.js → foundation.sticky.js.es6} +177 -166
  28. data/vendor/assets/js/{foundation.tabs.js → foundation.tabs.js.es6} +138 -118
  29. data/vendor/assets/js/{foundation.toggler.js → foundation.toggler.js.es6} +34 -37
  30. data/vendor/assets/js/{foundation.tooltip.js → foundation.tooltip.js.es6} +162 -153
  31. data/vendor/assets/js/foundation.util.box.js.es6 +183 -0
  32. data/vendor/assets/js/{foundation.util.keyboard.js → foundation.util.keyboard.js.es6} +54 -54
  33. data/vendor/assets/js/{foundation.util.mediaQuery.js → foundation.util.mediaQuery.js.es6} +46 -46
  34. data/vendor/assets/js/{foundation.util.motion.js → foundation.util.motion.js.es6} +58 -48
  35. data/vendor/assets/js/foundation.util.nest.js.es6 +76 -0
  36. data/vendor/assets/js/foundation.util.timerAndImageLoader.js.es6 +86 -0
  37. data/vendor/assets/js/{foundation.util.touch.js → foundation.util.touch.js.es6} +2 -2
  38. data/vendor/assets/js/foundation.util.triggers.js.es6 +239 -0
  39. data/vendor/assets/scss/_global.scss +28 -27
  40. data/vendor/assets/scss/components/_badge.scss +1 -1
  41. data/vendor/assets/scss/components/_button-group.scss +77 -26
  42. data/vendor/assets/scss/components/_button.scss +8 -8
  43. data/vendor/assets/scss/components/_callout.scss +2 -2
  44. data/vendor/assets/scss/components/_drilldown.scss +4 -0
  45. data/vendor/assets/scss/components/_dropdown-menu.scss +104 -54
  46. data/vendor/assets/scss/components/_flex.scss +28 -0
  47. data/vendor/assets/scss/components/_label.scss +1 -1
  48. data/vendor/assets/scss/components/_media-object.scss +37 -7
  49. data/vendor/assets/scss/components/_menu-icon.scss +9 -0
  50. data/vendor/assets/scss/components/_menu.scss +127 -29
  51. data/vendor/assets/scss/components/_off-canvas.scss +1 -0
  52. data/vendor/assets/scss/components/_pagination.scss +3 -3
  53. data/vendor/assets/scss/components/_progress-bar.scss +1 -25
  54. data/vendor/assets/scss/components/_reveal.scss +12 -6
  55. data/vendor/assets/scss/components/_slider.scss +3 -35
  56. data/vendor/assets/scss/components/_table.scss +8 -0
  57. data/vendor/assets/scss/components/_tabs.scss +5 -10
  58. data/vendor/assets/scss/components/_title-bar.scss +27 -10
  59. data/vendor/assets/scss/components/_tooltip.scss +0 -4
  60. data/vendor/assets/scss/components/_top-bar.scss +93 -21
  61. data/vendor/assets/scss/components/_visibility.scss +1 -1
  62. data/vendor/assets/scss/forms/_checkbox.scss +1 -1
  63. data/vendor/assets/scss/forms/_error.scss +7 -5
  64. data/vendor/assets/scss/forms/_forms.scss +3 -0
  65. data/vendor/assets/scss/forms/_help-text.scss +1 -1
  66. data/vendor/assets/scss/forms/_input-group.scss +44 -9
  67. data/vendor/assets/scss/forms/_meter.scss +109 -0
  68. data/vendor/assets/scss/forms/_progress.scss +85 -0
  69. data/vendor/assets/scss/forms/_range.scss +144 -0
  70. data/vendor/assets/scss/forms/_select.scss +1 -1
  71. data/vendor/assets/scss/forms/_text.scss +10 -1
  72. data/vendor/assets/scss/foundation.scss +16 -5
  73. data/vendor/assets/scss/grid/_classes.scss +5 -18
  74. data/vendor/assets/scss/grid/_column.scss +13 -11
  75. data/vendor/assets/scss/grid/_flex-grid.scss +54 -80
  76. data/vendor/assets/scss/grid/_grid.scss +22 -10
  77. data/vendor/assets/scss/grid/_layout.scss +18 -0
  78. data/vendor/assets/scss/grid/_row.scss +11 -15
  79. data/vendor/assets/scss/motion-ui/_classes.scss +10 -3
  80. data/vendor/assets/scss/motion-ui/effects/_fade.scss +4 -1
  81. data/vendor/assets/scss/motion-ui/effects/_zoom.scss +1 -1
  82. data/vendor/assets/scss/motion-ui/transitions/_slide.scss +1 -1
  83. data/vendor/assets/scss/motion-ui/util/_transition.scss +1 -1
  84. data/vendor/assets/scss/settings/_settings.scss +64 -47
  85. data/vendor/assets/scss/typography/_base.scss +4 -0
  86. data/vendor/assets/scss/typography/_print.scss +9 -5
  87. data/vendor/assets/scss/util/_breakpoint.scss +31 -25
  88. data/vendor/assets/scss/util/_color.scss +19 -0
  89. data/vendor/assets/scss/util/_flex.scss +68 -0
  90. data/vendor/assets/scss/util/_mixins.scss +13 -7
  91. data/vendor/assets/scss/util/_util.scss +1 -5
  92. data/vendor/assets/scss/util/_value.scss +9 -28
  93. metadata +51 -31
  94. data/vendor/assets/js/foundation.abide.js +0 -418
  95. data/vendor/assets/js/foundation.offcanvas.js +0 -376
  96. data/vendor/assets/js/foundation.orbit.js +0 -421
  97. data/vendor/assets/js/foundation.responsiveToggle.js +0 -106
  98. data/vendor/assets/js/foundation.reveal.js +0 -514
  99. data/vendor/assets/js/foundation.util.box.js +0 -169
  100. data/vendor/assets/js/foundation.util.nest.js +0 -63
  101. data/vendor/assets/js/foundation.util.timerAndImageLoader.js +0 -82
  102. data/vendor/assets/js/foundation.util.triggers.js +0 -224
@@ -0,0 +1,109 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group meter
7
+ ////
8
+
9
+ /// Height of a `<meter>` element.
10
+ /// @type Length
11
+ $meter-height: 1rem !default;
12
+
13
+ /// Border radius of a `<meter>` element.
14
+ /// @type Length
15
+ $meter-radius: $global-radius !default;
16
+
17
+ /// Background color of a `<meter>` element.
18
+ /// @type Color
19
+ $meter-background: $medium-gray !default;
20
+
21
+ /// Meter fill for an optimal value in a `<meter>` element.
22
+ /// @type Color
23
+ $meter-fill-good: $success-color !default;
24
+
25
+ /// Meter fill for an average value in a `<meter>` element.
26
+ /// @type Color
27
+ $meter-fill-medium: $warning-color !default;
28
+
29
+ /// Meter fill for a suboptimal value in a `<meter>` element.
30
+ /// @type Color
31
+ $meter-fill-bad: $alert-color !default;
32
+
33
+ @mixin foundation-meter-element {
34
+ meter {
35
+ -webkit-appearance: none;
36
+ -moz-appearance: none;
37
+ display: block;
38
+ width: 100%;
39
+ height: $meter-height;
40
+ margin-bottom: 1rem;
41
+
42
+ @if has-value($meter-radius) {
43
+ border-radius: $meter-radius;
44
+ }
45
+
46
+ // For Firefox
47
+ background: $meter-background;
48
+ border: 0;
49
+
50
+ // Chrome/Safari
51
+ &::-webkit-meter-bar {
52
+ background: $meter-background;
53
+
54
+ @if has-value($meter-radius) {
55
+ border-radius: $meter-radius;
56
+ }
57
+ }
58
+
59
+ &::-webkit-meter-inner-element {
60
+ @if has-value($meter-radius) {
61
+ border-radius: $meter-radius;
62
+ }
63
+ }
64
+
65
+ &::-webkit-meter-optimum-value {
66
+ background: $meter-fill-good;
67
+
68
+ @if has-value($meter-radius) {
69
+ border-radius: $meter-radius;
70
+ }
71
+ }
72
+
73
+ &::-webkit-meter-suboptimum-value {
74
+ background: $meter-fill-medium;
75
+
76
+ @if has-value($meter-radius) {
77
+ border-radius: $meter-radius;
78
+ }
79
+ }
80
+
81
+ &::-webkit-meter-even-less-good-value {
82
+ background: $meter-fill-bad;
83
+
84
+ @if has-value($meter-radius) {
85
+ border-radius: $meter-radius;
86
+ }
87
+ }
88
+
89
+ &::-moz-meter-bar {
90
+ background: $primary-color;
91
+
92
+ @if has-value($meter-radius) {
93
+ border-radius: $meter-radius;
94
+ }
95
+ }
96
+
97
+ &:-moz-meter-optimum::-moz-meter-bar {
98
+ background: $meter-fill-good;
99
+ }
100
+
101
+ &:-moz-meter-sub-optimum::-moz-meter-bar {
102
+ background: $meter-fill-medium;
103
+ }
104
+
105
+ &:-moz-meter-sub-sub-optimum::-moz-meter-bar {
106
+ background: $meter-fill-bad;
107
+ }
108
+ }
109
+ }
@@ -0,0 +1,85 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group progress-bar
7
+ ////
8
+
9
+ /// Height of a progress bar.
10
+ /// @type Number
11
+ $progress-height: 1rem !default;
12
+
13
+ /// Background color of a progress bar.
14
+ /// @type Color
15
+ $progress-background: $medium-gray !default;
16
+
17
+ /// Bottom margin of a progress bar.
18
+ /// @type Number
19
+ $progress-margin-bottom: $global-margin !default;
20
+
21
+ /// Default color of a progress bar's meter.
22
+ /// @type Color
23
+ $progress-meter-background: $primary-color !default;
24
+
25
+ /// Default radius of a progress bar.
26
+ /// @type Number
27
+ $progress-radius: $global-radius !default;
28
+
29
+ @mixin foundation-progress-element {
30
+ progress {
31
+ -webkit-appearance: none;
32
+ -moz-appearance: none;
33
+ display: block;
34
+ width: 100%;
35
+ height: $progress-height;
36
+ margin-bottom: $progress-margin-bottom;
37
+
38
+ @if hasvalue($progress-radius) {
39
+ border-radius: $progress-radius;
40
+ }
41
+
42
+ // For Firefox
43
+ background: $progress-background;
44
+ border: 0;
45
+
46
+ &::-webkit-progress-bar {
47
+ background: $progress-background;
48
+
49
+ @if hasvalue($progress-radius) {
50
+ border-radius: $progress-radius;
51
+ }
52
+ }
53
+
54
+ &::-webkit-progress-value {
55
+ background: $progress-meter-background;
56
+
57
+ @if hasvalue($progress-radius) {
58
+ border-radius: $progress-radius;
59
+ }
60
+ }
61
+
62
+ &::-moz-progress-bar {
63
+ background: $progress-meter-background;
64
+
65
+ @if hasvalue($progress-radius) {
66
+ border-radius: $progress-radius;
67
+ }
68
+ }
69
+
70
+ @each $name, $color in $foundation-palette {
71
+ &.#{$name} {
72
+ // Internet Explorer sets the fill with color
73
+ color: $color;
74
+
75
+ &::-webkit-progress-value {
76
+ background: $color;
77
+ }
78
+
79
+ &::-moz-progress-bar {
80
+ background: $color;
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
@@ -0,0 +1,144 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group slider
7
+ ////
8
+
9
+ /// Default height of the slider.
10
+ /// @type Number
11
+ $slider-height: 0.5rem !default;
12
+
13
+ /// Default background color of the slider's track.
14
+ /// @type Color
15
+ $slider-background: $light-gray !default;
16
+
17
+ /// Default color of the active fill color of the slider.
18
+ /// @type Color
19
+ $slider-fill-background: $medium-gray !default;
20
+
21
+ /// Default height of the handle of the slider.
22
+ /// @type Number
23
+ $slider-handle-height: 1.4rem !default;
24
+
25
+ /// Default width of the handle of the slider.
26
+ /// @type Number
27
+ $slider-handle-width: 1.4rem !default;
28
+
29
+ /// Default color of the handle for the slider.
30
+ /// @type Color
31
+ $slider-handle-background: $primary-color !default;
32
+
33
+ /// Default fade amount of a disabled slider.
34
+ /// @type Number
35
+ $slider-opacity-disabled: 0.25 !default;
36
+
37
+ /// Default radius for slider.
38
+ /// @type Number
39
+ $slider-radius: $global-radius !default;
40
+
41
+ @mixin foundation-range-input {
42
+ // scss-lint:disable QualifyingElement
43
+ input[type="range"] {
44
+ $margin: ($slider-handle-height - $slider-height) / 2;
45
+
46
+ -webkit-appearance: none;
47
+ -moz-appearance: none;
48
+ display: block;
49
+ width: 100%;
50
+ height: auto;
51
+ cursor: pointer;
52
+ margin-top: $margin;
53
+ margin-bottom: $margin;
54
+ border: 0;
55
+ line-height: 1;
56
+
57
+ @if has-value($slider-radius) {
58
+ border-radius: $slider-radius;
59
+ }
60
+
61
+ &:focus {
62
+ outline: 0;
63
+ }
64
+
65
+ &[disabled] {
66
+ opacity: $slider-opacity-disabled;
67
+ }
68
+
69
+ // Chrome/Safari
70
+ &::-webkit-slider-runnable-track {
71
+ height: $slider-height;
72
+ background: $slider-background;
73
+ }
74
+
75
+ &::-webkit-slider-handle {
76
+ -webkit-appearance: none;
77
+ background: $slider-handle-background;
78
+ width: $slider-handle-width;
79
+ height: $slider-handle-height;
80
+ margin-top: -$margin;
81
+
82
+ @if has-value($slider-radius) {
83
+ border-radius: $slider-radius;
84
+ }
85
+ }
86
+
87
+ // Firefox
88
+ &::-moz-range-track {
89
+ -moz-appearance: none;
90
+ height: $slider-height;
91
+ background: $slider-background;
92
+ }
93
+
94
+ &::-moz-range-thumb {
95
+ -moz-appearance: none;
96
+ background: $slider-handle-background;
97
+ width: $slider-handle-width;
98
+ height: $slider-handle-height;
99
+ margin-top: -$margin;
100
+
101
+ @if has-value($slider-radius) {
102
+ border-radius: $slider-radius;
103
+ }
104
+ }
105
+
106
+ // Internet Explorer
107
+ &::-ms-track {
108
+ height: $slider-height;
109
+ background: $slider-background;
110
+ color: transparent;
111
+ border: 0;
112
+ overflow: visible;
113
+ border-top: $margin solid $body-background;
114
+ border-bottom: $margin solid $body-background;
115
+ }
116
+
117
+ &::-ms-thumb {
118
+ background: $slider-handle-background;
119
+ width: $slider-handle-width;
120
+ height: $slider-handle-height;
121
+ border: 0;
122
+
123
+ @if has-value($slider-radius) {
124
+ border-radius: $slider-radius;
125
+ }
126
+ }
127
+
128
+ &::-ms-fill-lower {
129
+ background: $slider-fill-background;
130
+ }
131
+
132
+ &::-ms-fill-upper {
133
+ background: $slider-background;
134
+ }
135
+
136
+ @at-root {
137
+ output {
138
+ line-height: $slider-handle-height;
139
+ vertical-align: middle;
140
+ margin-left: 0.5em;
141
+ }
142
+ }
143
+ }
144
+ }
@@ -12,7 +12,7 @@ $select-background: $white !default;
12
12
 
13
13
  /// Color of the dropdown triangle inside select menus. Set to `transparent` to remove it entirely.
14
14
  /// @type Color
15
- $select-triangle-color: #333 !default;
15
+ $select-triangle-color: $dark-gray !default;
16
16
 
17
17
  /// Default radius for select menus.
18
18
  /// @type Color
@@ -10,6 +10,10 @@
10
10
  /// @type Color
11
11
  $input-color: $black !default;
12
12
 
13
+ /// Font color of placeholder text within text inputs.
14
+ /// @type Color
15
+ $input-placeholder-color: $medium-gray !default;
16
+
13
17
  /// Font family of text inputs.
14
18
  /// @type Font
15
19
  $input-font-family: inherit !default;
@@ -115,9 +119,14 @@ $input-radius: $global-radius !default;
115
119
  }
116
120
  }
117
121
 
118
- // Disabled/readonly state
119
122
  input,
120
123
  textarea {
124
+ // Placeholder text
125
+ &::placeholder {
126
+ color: $input-placeholder-color;
127
+ }
128
+
129
+ // Disabled/readonly state
121
130
  &:disabled,
122
131
  &[readonly] {
123
132
  background-color: $input-background-disabled;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Foundation for Sites by ZURB
3
- * Version 6.1.2
3
+ * Version 6.2.0
4
4
  * foundation.zurb.com
5
5
  * Licensed under MIT Open Source
6
6
  */
@@ -28,10 +28,12 @@
28
28
  @import 'components/drilldown';
29
29
  @import 'components/dropdown-menu';
30
30
  @import 'components/dropdown';
31
+ @import 'components/flex';
31
32
  @import 'components/flex-video';
32
33
  @import 'components/label';
33
34
  @import 'components/media-object';
34
35
  @import 'components/menu';
36
+ @import 'components/menu-icon';
35
37
  @import 'components/off-canvas';
36
38
  @import 'components/orbit';
37
39
  @import 'components/pagination';
@@ -48,6 +50,10 @@
48
50
  @import 'components/tooltip';
49
51
 
50
52
  @mixin foundation-everything($flex: false) {
53
+ @if $flex {
54
+ $global-flexbox: true !global;
55
+ }
56
+
51
57
  @include foundation-global-styles;
52
58
  @if not $flex {
53
59
  @include foundation-grid;
@@ -56,10 +62,8 @@
56
62
  @include foundation-flex-grid;
57
63
  }
58
64
  @include foundation-typography;
59
- @include foundation-button;
60
65
  @include foundation-forms;
61
- @include foundation-visibility-classes;
62
- @include foundation-float-classes;
66
+ @include foundation-button;
63
67
  @include foundation-accordion;
64
68
  @include foundation-accordion-menu;
65
69
  @include foundation-badge;
@@ -67,13 +71,14 @@
67
71
  @include foundation-button-group;
68
72
  @include foundation-callout;
69
73
  @include foundation-close-button;
74
+ @include foundation-menu;
75
+ @include foundation-menu-icon;
70
76
  @include foundation-drilldown-menu;
71
77
  @include foundation-dropdown;
72
78
  @include foundation-dropdown-menu;
73
79
  @include foundation-flex-video;
74
80
  @include foundation-label;
75
81
  @include foundation-media-object;
76
- @include foundation-menu;
77
82
  @include foundation-off-canvas;
78
83
  @include foundation-orbit;
79
84
  @include foundation-pagination;
@@ -88,4 +93,10 @@
88
93
  @include foundation-title-bar;
89
94
  @include foundation-tooltip;
90
95
  @include foundation-top-bar;
96
+ @include foundation-visibility-classes;
97
+ @include foundation-float-classes;
98
+
99
+ @if $flex {
100
+ @include foundation-flex-classes;
101
+ }
91
102
  }
@@ -28,21 +28,14 @@
28
28
 
29
29
  // Collapsing
30
30
  &.#{$collapse} {
31
- > .#{$column} { @include grid-col-collapse; }
31
+ > .#{$column} {
32
+ @include grid-col-collapse;
33
+ }
32
34
  }
33
35
 
34
36
  // Nesting
35
37
  & & {
36
- @if $grid-column-gutter == null {
37
- @each $breakpoint, $gutter in $grid-column-responsive-gutter {
38
- @include breakpoint($breakpoint) {
39
- @include grid-row-nest($gutter);
40
- }
41
- }
42
- }
43
- @else {
44
- @include grid-row-nest($grid-column-gutter);
45
- }
38
+ @include grid-row-nest($grid-column-gutter);
46
39
 
47
40
  &.#{$collapse} {
48
41
  margin-left: 0;
@@ -130,14 +123,8 @@
130
123
  }
131
124
 
132
125
  .#{$-zf-size}-#{$uncollapse} {
133
- $gutter: null;
126
+ $gutter: -zf-get-bp-val($grid-column-gutter, $-zf-size);
134
127
 
135
- @if $grid-column-gutter {
136
- $gutter: $grid-column-gutter;
137
- }
138
- @else {
139
- $gutter: -zf-get-bp-val($grid-column-responsive-gutter, $-zf-size);
140
- }
141
128
  > .#{$column} { @include grid-col-uncollapse($gutter); }
142
129
  }
143
130