foundation-rails 5.2.3.0 → 5.3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/bower.json +2 -2
  3. data/lib/foundation/rails/version.rb +1 -1
  4. data/test/dummy/.ruby-version +1 -0
  5. data/vendor/assets/_settings.scss +1298 -0
  6. data/vendor/assets/javascripts/foundation/foundation.abide.js +4 -4
  7. data/vendor/assets/javascripts/foundation/foundation.accordion.js +7 -1
  8. data/vendor/assets/javascripts/foundation/foundation.alert.js +3 -3
  9. data/vendor/assets/javascripts/foundation/foundation.clearing.js +17 -9
  10. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +7 -5
  11. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +2 -2
  12. data/vendor/assets/javascripts/foundation/foundation.interchange.js +24 -11
  13. data/vendor/assets/javascripts/foundation/foundation.joyride.js +14 -11
  14. data/vendor/assets/javascripts/foundation/foundation.js +6 -4
  15. data/vendor/assets/javascripts/foundation/foundation.magellan.js +5 -3
  16. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +2 -2
  17. data/vendor/assets/javascripts/foundation/foundation.orbit.js +123 -261
  18. data/vendor/assets/javascripts/foundation/foundation.reveal.js +15 -15
  19. data/vendor/assets/javascripts/foundation/foundation.slider.js +51 -24
  20. data/vendor/assets/javascripts/foundation/foundation.topbar.js +13 -12
  21. data/vendor/assets/javascripts/vendor/modernizr.js +3 -3
  22. data/vendor/assets/stylesheets/foundation.scss +2 -1
  23. data/vendor/assets/stylesheets/foundation/_settings.scss +19 -10
  24. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +115 -1
  25. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +2 -2
  26. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +9 -1
  27. data/vendor/assets/stylesheets/foundation/components/_forms.scss +8 -6
  28. data/vendor/assets/stylesheets/foundation/components/_global.scss +12 -7
  29. data/vendor/assets/stylesheets/foundation/components/_grid.scss +17 -4
  30. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +229 -0
  31. data/vendor/assets/stylesheets/foundation/components/_iconbar.scss +67 -0
  32. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +18 -16
  33. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +84 -139
  34. data/vendor/assets/stylesheets/foundation/components/_panels.scss +6 -3
  35. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +20 -5
  36. data/vendor/assets/stylesheets/foundation/components/_reveal-new.scss +0 -0
  37. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +1 -1
  38. data/vendor/assets/stylesheets/foundation/components/_switches.scss +215 -0
  39. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +1 -1
  40. data/vendor/assets/stylesheets/foundation/components/_toolbar.scss +67 -0
  41. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +2 -1
  42. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +26 -11
  43. data/vendor/assets/stylesheets/foundation/components/_type.scss +2 -0
  44. metadata +10 -3
  45. data/vendor/assets/stylesheets/foundation/components/_switch.scss +0 -294
@@ -7,7 +7,7 @@
7
7
  //
8
8
  // Block Grid Variables
9
9
  //
10
- $include-html-grid-classes: $include-html-classes !default;
10
+ $include-html-block-grid-classes: $include-html-classes !default;
11
11
  $include-xl-html-block-grid-classes: false !default;
12
12
 
13
13
  // We use this to control the maximum number of block grid elements per row
@@ -101,7 +101,7 @@ $block-grid-media-queries: true !default;
101
101
  }
102
102
 
103
103
  @include exports("block-grid") {
104
- @if $include-html-grid-classes {
104
+ @if $include-html-block-grid-classes {
105
105
 
106
106
  [class*="block-grid-"] { @include block-grid; }
107
107
 
@@ -58,6 +58,10 @@ $button-group-border-width: 1px !default;
58
58
 
59
59
  // We use these to control left and right radius on first/last buttons in the group.
60
60
  @if $radius == true {
61
+ &,
62
+ & > a,
63
+ & > button,
64
+ & > .button { @include radius(0); }
61
65
  &:first-child,
62
66
  &:first-child > a,
63
67
  &:first-child > button,
@@ -68,6 +72,10 @@ $button-group-border-width: 1px !default;
68
72
  &:last-child > .button { @include side-radius($opposite-direction, $button-radius); }
69
73
  }
70
74
  @else if $radius {
75
+ &,
76
+ & > a,
77
+ & > button,
78
+ & > .button { @include radius(0); }
71
79
  &:first-child,
72
80
  &:first-child > a,
73
81
  &:first-child > button,
@@ -105,4 +113,4 @@ $button-group-border-width: 1px !default;
105
113
  .button-group { @include button-group-container($styles:false,$float:true); }
106
114
  }
107
115
  }
108
- }
116
+ }
@@ -306,9 +306,15 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
306
306
  @mixin form-select {
307
307
  -webkit-appearance: none !important;
308
308
  background-color: $select-bg-color;
309
- background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==');
309
+
310
+ // The custom arrow have some fake horizontal padding so we can align it
311
+ // from the right side of the element without relying on CSS3
312
+ background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+);
313
+
314
+ // We can safely use leftmost and rightmost now
315
+ background-position: if($text-direction == 'rtl', 0%, 100%) center;
316
+
310
317
  background-repeat: no-repeat;
311
- background-position: if($text-direction == 'rtl', 3%, 97%) center;
312
318
  border: $input-border-width $input-border-style $input-border-color;
313
319
  padding: $form-spacing / 2;
314
320
  font-size: $input-font-size;
@@ -345,10 +351,6 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
345
351
  display:none;
346
352
  }
347
353
 
348
- @-moz-document url-prefix() {
349
- select { background: $select-bg-color; }
350
- select:hover { background: $select-hover-bg-color }
351
- }
352
354
  /* Attach elements to the beginning or end of an input */
353
355
  .prefix,
354
356
  .postfix { @include prefix-postfix-base; }
@@ -31,7 +31,7 @@ $base-line-height: 150% !default;
31
31
 
32
32
  // @mixins
33
33
  //
34
- // We use this to optionally include experimental or
34
+ // We use this to optionally include experimental or
35
35
  // explicitly vendor prefixed properties
36
36
  @mixin experimental() {
37
37
  @if $experimental {
@@ -135,12 +135,12 @@ $base-line-height: 150% !default;
135
135
  // $hover-color - icon color during hover
136
136
  // $offcanvas - Set to true of @include in offcanvas
137
137
  @mixin hamburger($width, $left, $top, $thickness, $gap, $color, $hover-color, $offcanvas) {
138
- span:after {
139
- content: '';
138
+ span::after {
139
+ content: "";
140
140
  position: absolute;
141
141
  display: block;
142
142
  height: 0;
143
-
143
+
144
144
  @if $offcanvas {
145
145
  @if $top {
146
146
  top: $top;
@@ -156,7 +156,12 @@ $base-line-height: 150% !default;
156
156
  left: ($tabbar-menu-icon-width - $width)/2;
157
157
  }
158
158
  }
159
-
159
+ @else {
160
+ top: 50%;
161
+ margin-top: -$width/2;
162
+ #{$opposite-direction}: $topbar-link-padding;
163
+ }
164
+
160
165
  box-shadow:
161
166
  0 0px 0 $thickness $color,
162
167
  0 $gap + $thickness 0 $thickness $color,
@@ -320,11 +325,11 @@ $cursor-text-value: text !default;
320
325
  // Meta styles are included in all builds, as they are a dependancy of the Javascript.
321
326
  // Used to provide media query values for javascript components.
322
327
  // Forward slash placed around everything to convince PhantomJS to read the value.
323
-
328
+
324
329
  meta.foundation-version {
325
330
  font-family: "/5.2.3/";
326
331
  }
327
-
332
+
328
333
  meta.foundation-mq-small {
329
334
  font-family: "/" + unquote($small-up) + "/";
330
335
  width: lower-bound($small-range);
@@ -140,7 +140,7 @@ $total-columns: 12 !default;
140
140
  @if $center {
141
141
  margin-#{$default-float}: auto;
142
142
  margin-#{$opposite-direction}: auto;
143
- float: none !important;
143
+ float: none;
144
144
  }
145
145
 
146
146
  // If offset, calculate appropriate margins
@@ -170,8 +170,6 @@ $total-columns: 12 !default;
170
170
  .#{$size}-#{$i} { @include grid-column($columns:$i,$collapse:null,$float:false); }
171
171
  }
172
172
 
173
- [class*="column"] + [class*="column"]:last-child { float: $opposite-direction; }
174
- [class*="column"] + [class*="column"].end { float: $default-float; }
175
173
 
176
174
 
177
175
  @for $i from 0 through $total-columns - 1 {
@@ -192,7 +190,19 @@ $total-columns: 12 !default;
192
190
  .columns.#{$size}-uncentered {
193
191
  margin-#{$default-float}: 0;
194
192
  margin-#{$opposite-direction}: 0;
195
- float: $default-float !important;
193
+ float: $default-float;
194
+ }
195
+
196
+ // Fighting [class*="column"] + [class*="column"]:last-child
197
+ .column.#{$size}-centered:last-child,
198
+ .columns.#{$size}-centered:last-child{
199
+ float: none;
200
+ }
201
+
202
+ // Fighting .column.<previous-size>-centered:last-child
203
+ .column.#{$size}-uncentered:last-child,
204
+ .columns.#{$size}-uncentered:last-child {
205
+ float: $default-float;
196
206
  }
197
207
 
198
208
  .column.#{$size}-uncentered.opposite,
@@ -221,6 +231,9 @@ $total-columns: 12 !default;
221
231
  .column,
222
232
  .columns { @include grid-column($columns:$total-columns); }
223
233
 
234
+ [class*="column"] + [class*="column"]:last-child { float: $opposite-direction; }
235
+ [class*="column"] + [class*="column"].end { float: $default-float; }
236
+
224
237
  @media #{$small-up} {
225
238
  @include grid-html-classes($size:small);
226
239
  }
@@ -0,0 +1,229 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+
8
+ // @name
9
+ // @dependencies _global.scss
10
+
11
+
12
+
13
+ // @variables
14
+
15
+ // We use these to style the icon-bar and items
16
+ $icon-bar-bg: #333 !default;
17
+ $icon-bar-font-color: #fff !default;
18
+ $icon-bar-font-size: 1rem !default;
19
+ $icon-bar-hover-color: $primary-color !default;
20
+ $icon-bar-icon-color: #fff !default;
21
+ $icon-bar-icon-size: 1.875rem !default;
22
+ $icon-bar-image-width: 1.875rem !default;
23
+ $icon-bar-image-height: 1.875rem !default;
24
+ $icon-bar-active-color: $primary-color !default;
25
+ $icon-bar-item-padding: 1.25rem !default;
26
+
27
+ //
28
+ // @mixins
29
+ //
30
+
31
+ // We use this mixin to create the base styles for our switch element.
32
+ //
33
+ // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
34
+ // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
35
+ @mixin icon-bar-base() {
36
+
37
+ width: 100%;
38
+ font-size: 0;
39
+ display: inline-block;
40
+
41
+ & > * {
42
+ text-align: center;
43
+ font-size: $icon-bar-font-size;
44
+ width: 25%;
45
+ margin: 0 auto;
46
+ display: block;
47
+ padding: $icon-bar-item-padding;
48
+ float: left;
49
+
50
+ i, img {
51
+ display: block;
52
+ margin: 0 auto;
53
+
54
+ & + label {
55
+ margin-top: .0625rem;
56
+ }
57
+ }
58
+
59
+ i {
60
+ font-size: $icon-bar-icon-size;
61
+ vertical-align: middle;
62
+ }
63
+
64
+ img {
65
+ width: $icon-bar-image-width;
66
+ height: $icon-bar-image-height;
67
+ }
68
+ }
69
+
70
+ &.label-right > * {
71
+
72
+ i, img {
73
+ margin: 0 .0625rem 0 0;
74
+ display: inline-block;
75
+
76
+ & + label {
77
+ margin-top: 0;
78
+ }
79
+ }
80
+
81
+ label { display: inline-block; }
82
+ }
83
+
84
+ &.vertical.label-right > * {
85
+ text-align: left;
86
+ }
87
+
88
+ &.vertical {
89
+ height: 100%;
90
+ width: auto;
91
+
92
+ .item {
93
+ width: auto;
94
+ margin: auto;
95
+ float: none;
96
+ }
97
+ }
98
+ }
99
+
100
+ // We use this mixin to create the size styles for icon bars.
101
+ //
102
+ // $height - Height (in px) of the switch. Default: $switch-height-med.
103
+ // $font-size - Font size of text in switch. Default: $switch-font-size-med.
104
+ @mixin icon-bar-size(
105
+ $padding: $icon-bar-item-padding,
106
+ $font-size: $icon-bar-font-size,
107
+ $icon-size: $icon-bar-icon-size,
108
+ $image-width: $icon-bar-image-width,
109
+ $image-height: $icon-bar-image-height) {
110
+
111
+ & > * {
112
+ font-size: $icon-bar-font-size;
113
+ padding: $icon-bar-item-padding;
114
+
115
+ i, img {
116
+
117
+ & + label {
118
+ margin-top: .0625rem;
119
+ }
120
+ }
121
+
122
+ i {
123
+ font-size: $icon-bar-icon-size;
124
+ }
125
+
126
+ img {
127
+ width: $icon-bar-image-width;
128
+ height: $icon-bar-image-height;
129
+ }
130
+ }
131
+
132
+ }
133
+
134
+ // We use this mixin to add color and other fanciness to the switches.
135
+ //
136
+ // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
137
+ // $active-color - Background color of positive side of switch. Default: $switch-positive-color.
138
+ // $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
139
+ // $radius - Radius to apply to switch. Default: false.
140
+ // $base-style - Apply base styles? Default: true.
141
+ @mixin icon-bar-style(
142
+ $bar-bg:$icon-bar-bg,
143
+ $bar-font-color:$icon-bar-font-color,
144
+ $bar-hover-color:$icon-bar-hover-color,
145
+ $bar-icon-color:$icon-bar-icon-color,
146
+ $bar-active-color:$icon-bar-active-color,
147
+ $base-style:true) {
148
+
149
+ @if $base-style {
150
+
151
+ background: $bar-bg;
152
+
153
+ & > * {
154
+
155
+ &:hover { background: $bar-hover-color; }
156
+
157
+ label { color: $bar-font-color; }
158
+
159
+ i {
160
+ color: $bar-icon-color;
161
+ }
162
+ }
163
+ }
164
+
165
+ }
166
+
167
+ // We use this to quickly create icon bars with a single mixin
168
+ //
169
+ // $height – The overall calculated height of the icon bar (horizontal)
170
+ // $bar-bg – the background color of the bar
171
+ // $bar-font-color – the font color
172
+ // $bar-hover-color – okay these are pretty obvious variables
173
+ // $bar-icon-color – maybe we could skip explaining them all? Okay this one does change icon color if you use an icon font
174
+ // $bar-active-color – the color of an active / hover state
175
+ // $base-style - Apply base styles? Default: true.
176
+
177
+ @mixin icon-bar(
178
+ $bar-bg:$icon-bar-bg,
179
+ $bar-font-color:$icon-bar-font-color,
180
+ $bar-hover-color:$icon-bar-hover-color,
181
+ $bar-icon-color:$icon-bar-icon-color,
182
+ $bar-active-color:$icon-bar-active-color,
183
+ $padding: $icon-bar-item-padding,
184
+ $font-size: $icon-bar-font-size,
185
+ $icon-size: $icon-bar-icon-size,
186
+ $image-width: $icon-bar-image-width,
187
+ $image-height: $icon-bar-image-height,
188
+ $base-style:true) {
189
+ @include icon-bar-base();
190
+ @include icon-bar-size($padding, $font-size, $icon-size, $image-width, $image-height);
191
+ @include icon-bar-style($bar-bg, $bar-font-color, $bar-hover-color, $bar-icon-color, $bar-active-color, $base-style: true);
192
+ }
193
+
194
+ @include exports("icon-bar") {
195
+ @if $include-html-form-classes {
196
+ div.icon-bar {
197
+ @include icon-bar;
198
+ }
199
+ }
200
+ }
201
+
202
+
203
+ /* toolbar styles */
204
+
205
+ .icon-bar {
206
+
207
+ // Counts
208
+
209
+ &.two-up {
210
+ .item { width: 50%; }
211
+ &.vertical .item { width: auto; }
212
+ }
213
+ &.three-up {
214
+ .item { width: 33.3333%; }
215
+ &.vertical .item { width: auto; }
216
+ }
217
+ &.four-up {
218
+ .item { width: 25%; }
219
+ &.vertical .item { width: auto; }
220
+ }
221
+ &.five-up {
222
+ .item { width: 20%; }
223
+ &.vertical .item { width: auto; }
224
+ }
225
+ &.six-up {
226
+ .item { width: 16.66667%; }
227
+ &.vertical .item { width: auto; }
228
+ }
229
+ }
@@ -0,0 +1,67 @@
1
+ /* toolbar styles */
2
+
3
+ .iconbar {
4
+ background: #333;
5
+ width: 100%;
6
+ font-size: 0;
7
+ display: inline-block;
8
+
9
+ &.label-bottom .tab .tab-content {
10
+ i, img { margin-bottom: 10px; }
11
+ }
12
+
13
+ &.label-right .tab .tab-content {
14
+ i, img { margin-right: 10px; display: inline-block;}
15
+ label { display: inline-block; }
16
+ }
17
+
18
+ &.vertical.label-right .tab .tab-content {
19
+ text-align: left;
20
+ }
21
+
22
+ &.vertical {
23
+ height: 100%;
24
+ width: auto;
25
+
26
+ .tab {
27
+ width: auto;
28
+ margin: auto;
29
+ float: none;
30
+ }
31
+ }
32
+
33
+ .tab {
34
+ text-align: center;
35
+ width: 25%;
36
+ margin: 0 auto;
37
+ display: block;
38
+ padding: 20px;
39
+ float: left;
40
+
41
+ &:hover {
42
+ background: rgba(#fff, 0.1);
43
+ }
44
+ }
45
+ }
46
+
47
+ .toolbar .tab-content {
48
+ font-size: 16px;
49
+ text-align: center;
50
+
51
+ label { color: #ccc; }
52
+
53
+ i {
54
+ font-size: 30px;
55
+ display: block;
56
+ margin: 0 auto;
57
+ color: #ccc;
58
+ vertical-align: middle;
59
+ }
60
+
61
+ img {
62
+ width: 30px;
63
+ height: 30px;
64
+ display: block;
65
+ margin: 0 auto;
66
+ }
67
+ }