foundation-rails 5.5.1.2 → 5.5.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/bower.json +2 -2
  2. data/lib/foundation/rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/foundation.js +1 -1
  4. data/vendor/assets/javascripts/foundation/foundation.abide.js +96 -28
  5. data/vendor/assets/javascripts/foundation/foundation.accordion.js +28 -7
  6. data/vendor/assets/javascripts/foundation/foundation.alert.js +3 -3
  7. data/vendor/assets/javascripts/foundation/foundation.clearing.js +50 -20
  8. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +26 -11
  9. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +43 -16
  10. data/vendor/assets/javascripts/foundation/foundation.interchange.js +19 -14
  11. data/vendor/assets/javascripts/foundation/foundation.joyride.js +1 -1
  12. data/vendor/assets/javascripts/foundation/foundation.js +51 -29
  13. data/vendor/assets/javascripts/foundation/foundation.magellan.js +40 -28
  14. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +3 -3
  15. data/vendor/assets/javascripts/foundation/foundation.orbit.js +1 -1
  16. data/vendor/assets/javascripts/foundation/foundation.reveal.js +70 -43
  17. data/vendor/assets/javascripts/foundation/foundation.slider.js +23 -5
  18. data/vendor/assets/javascripts/foundation/foundation.tab.js +30 -18
  19. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +47 -15
  20. data/vendor/assets/javascripts/foundation/foundation.topbar.js +31 -25
  21. data/vendor/assets/stylesheets/foundation.scss +37 -38
  22. data/vendor/assets/stylesheets/foundation/_functions.scss +52 -42
  23. data/vendor/assets/stylesheets/foundation/_settings.scss +53 -34
  24. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +7 -7
  25. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +11 -11
  26. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +13 -13
  27. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +17 -18
  28. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +29 -22
  29. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +13 -17
  30. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +51 -47
  31. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +10 -11
  32. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +42 -36
  33. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +7 -7
  34. data/vendor/assets/stylesheets/foundation/components/_forms.scss +82 -50
  35. data/vendor/assets/stylesheets/foundation/components/_global.scss +86 -64
  36. data/vendor/assets/stylesheets/foundation/components/_grid.scss +24 -21
  37. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +335 -234
  38. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +8 -8
  39. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +40 -42
  40. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +2 -3
  41. data/vendor/assets/stylesheets/foundation/components/_labels.scss +6 -6
  42. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +2 -2
  43. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +178 -175
  44. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +82 -62
  45. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +15 -15
  46. data/vendor/assets/stylesheets/foundation/components/_panels.scss +21 -15
  47. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +16 -16
  48. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +4 -4
  49. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +23 -16
  50. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +27 -27
  51. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +15 -11
  52. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +16 -16
  53. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +14 -11
  54. data/vendor/assets/stylesheets/foundation/components/_switches.scss +22 -19
  55. data/vendor/assets/stylesheets/foundation/components/_tables.scss +8 -8
  56. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +49 -32
  57. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +8 -8
  58. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +25 -25
  59. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +163 -122
  60. data/vendor/assets/stylesheets/foundation/components/_type.scss +19 -19
  61. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +23 -5
  62. data/vendor/assets/stylesheets/normalize.scss +8 -11
  63. metadata +28 -20
  64. checksums.yaml +0 -7
  65. data/vendor/assets/stylesheets/foundation/components/_toolbar.scss +0 -72
@@ -2,7 +2,7 @@
2
2
  // foundation.zurb.com
3
3
  // Licensed under MIT Open Source
4
4
 
5
- @import "global";
5
+ @import 'global';
6
6
 
7
7
  // @variables
8
8
  //
@@ -10,7 +10,7 @@ $include-html-orbit-classes: $include-html-classes !default;
10
10
 
11
11
  // We use these to control the caption styles
12
12
  $orbit-container-bg: none !default;
13
- $orbit-caption-bg: rgba(51,51,51, 0.8) !default;
13
+ $orbit-caption-bg: rgba(51,51,51, .8) !default;
14
14
  $orbit-caption-font-color: $white !default;
15
15
  $orbit-caption-font-size: rem-calc(14) !default;
16
16
  $orbit-caption-position: "bottom" !default; // Supported values: "bottom", "under"
@@ -51,20 +51,30 @@ $orbit-timer-hide-for-small: true !default;
51
51
  @if $include-html-orbit-classes {
52
52
 
53
53
  @-webkit-keyframes rotate {
54
- from { -webkit-transform: rotate(0deg); }
55
- to { -webkit-transform: rotate(360deg); }
56
- }
57
- @-moz-keyframes rotate {
58
- from { -moz-transform: rotate(0deg); }
59
- to { -moz-transform: rotate(360deg); }
60
- }
61
- @-o-keyframes rotate {
62
- from { -o-transform: rotate(0deg); }
63
- to { -o-transform: rotate(360deg); }
54
+ from {
55
+ -webkit-transform: rotate(0deg);
56
+ transform: rotate(0deg);
57
+ }
58
+ to {
59
+ -webkit-transform: rotate(360deg);
60
+ transform: rotate(360deg);
61
+ }
64
62
  }
63
+
64
+
65
65
  @keyframes rotate {
66
- from { transform: rotate(0deg); }
67
- to { transform: rotate(360deg); }
66
+ from {
67
+ -webkit-transform: rotate(0deg);
68
+ -moz-transform: rotate(0deg);
69
+ -ms-transform: rotate(0deg);
70
+ transform: rotate(0deg);
71
+ }
72
+ to {
73
+ -webkit-transform: rotate(360deg);
74
+ -moz-transform: rotate(360deg);
75
+ -ms-transform: rotate(360deg);
76
+ transform: rotate(360deg);
77
+ }
68
78
  }
69
79
 
70
80
  /* Orbit Graceful Loading */
@@ -98,30 +108,30 @@ $orbit-timer-hide-for-small: true !default;
98
108
 
99
109
  // Orbit preloader
100
110
  .#{$preloader-class} {
101
- display: block;
102
- width: 40px;
103
- height: 40px;
104
- position: absolute;
105
- top: 50%;
106
- left: 50%;
107
- margin-top: -20px;
108
- margin-left: -20px;
109
- border: solid 3px;
110
- border-color: $charcoal $white;
111
111
  @include radius(1000px);
112
- animation-name: rotate;
113
112
  animation-duration: 1.5s;
114
113
  animation-iteration-count: infinite;
114
+ animation-name: rotate;
115
115
  animation-timing-function: linear;
116
+ border-color: $charcoal $white;
117
+ border: solid 3px;
118
+ display: block;
119
+ height: 40px;
120
+ left: 50%;
121
+ margin-left: -20px;
122
+ margin-top: -20px;
123
+ position: absolute;
124
+ top: 50%;
125
+ width: 40px;
116
126
  }
117
127
  }
118
128
 
119
129
 
120
130
  .orbit-container {
131
+ background: $orbit-container-bg;
121
132
  overflow: hidden;
122
- width: 100%;
123
133
  position: relative;
124
- background: $orbit-container-bg;
134
+ width: 100%;
125
135
 
126
136
  .orbit-slides-container {
127
137
  list-style: none;
@@ -131,10 +141,14 @@ $orbit-timer-hide-for-small: true !default;
131
141
 
132
142
  // Prevents images (and captions) from disappearing after first rotation on Chrome for Android
133
143
  -webkit-transform: translateZ(0);
144
+ -moz-transform: translateZ(0);
145
+ -ms-transform: translateZ(0);
146
+ -o-transform: translateZ(0);
147
+ transform: translateZ(0);
134
148
 
135
149
  img { display: block; max-width: 100%; }
136
150
 
137
- &>* {
151
+ > * {
138
152
  position: absolute;
139
153
  top: 0;
140
154
  width: 100%;
@@ -147,48 +161,51 @@ $orbit-timer-hide-for-small: true !default;
147
161
 
148
162
  &:first-child {
149
163
  @if $text-direction == rtl {
150
- margin-right: 0;
164
+ margin-right: 0;
151
165
  }
152
166
  @else {
153
- margin-left: 0;
167
+ margin-left: 0;
154
168
  }
155
169
  }
156
170
 
157
171
  .orbit-caption {
158
172
  @if $orbit-caption-position == "bottom" {
159
- position: absolute;
160
173
  bottom: 0;
174
+ position: absolute;
161
175
  } @else if $orbit-caption-position == "under" {
162
176
  position: relative;
163
177
  }
164
178
 
165
179
  background-color: $orbit-caption-bg;
166
180
  color: $orbit-caption-font-color;
167
- width: 100%;
168
- padding: $orbit-caption-padding;
169
181
  font-size: $orbit-caption-font-size;
182
+ padding: $orbit-caption-padding;
183
+ width: 100%;
170
184
  }
171
185
  }
172
186
  }
173
187
 
174
188
  .orbit-slide-number {
175
- position: absolute;
176
- top: 10px;
177
189
  #{$default-float}: 10px;
190
+ background: $orbit-slide-number-bg;
191
+ color: $orbit-slide-number-font-color;
178
192
  font-size: 12px;
193
+ position: absolute;
179
194
  span { font-weight: 700; padding: $orbit-slide-number-padding;}
180
- color: $orbit-slide-number-font-color;
181
- background: $orbit-slide-number-bg;
195
+ top: 10px;
182
196
  z-index: 10;
183
197
  }
184
198
 
185
199
  .orbit-timer {
200
+
186
201
  position: absolute;
187
202
  top: 12px;
188
203
  #{$opposite-direction}: 10px;
189
204
  height: 6px;
190
205
  width: 100px;
191
206
  z-index: 10;
207
+
208
+
192
209
  .orbit-progress {
193
210
  @if $orbit-timer-show-progress-bar {
194
211
  height: 3px;
@@ -198,26 +215,26 @@ $orbit-timer-hide-for-small: true !default;
198
215
  position: relative;
199
216
  right: 20px;
200
217
  top: 5px;
218
+
201
219
  }
202
220
  }
203
221
 
204
222
  // Play button
205
223
  & > span {
224
+ border: solid 4px $white;
225
+ border-bottom: none;
226
+ border-top: none;
206
227
  display: none;
228
+ height: 14px;
207
229
  position: absolute;
208
230
  top: 0;
209
- #{$opposite-direction}: 0;
210
231
  width: 11px;
211
- height: 14px;
212
- border: solid 4px $white;
213
- border-top: none;
214
- border-bottom: none;
232
+ #{$opposite-direction}: 0;
215
233
  }
216
234
 
217
235
  // Pause button
218
236
  &.paused {
219
237
  & > span {
220
- #{$opposite-direction}: -4px;
221
238
  top: 0;
222
239
  width: 11px;
223
240
  height: 14px;
@@ -225,6 +242,8 @@ $orbit-timer-hide-for-small: true !default;
225
242
  border-left-style: solid;
226
243
  border-color: transparent;
227
244
  border-left-color: $white;
245
+ #{$opposite-direction}: -4px;
246
+
228
247
  &.dark {
229
248
  border-left-color: $oil;
230
249
  }
@@ -239,15 +258,15 @@ $orbit-timer-hide-for-small: true !default;
239
258
  // Let's get those controls to be right in the center on each side
240
259
  .orbit-prev,
241
260
  .orbit-next {
242
- position: absolute;
243
- top: 45%;
244
- margin-top: -25px;
245
- width: 36px;
261
+ background-color: $orbit-nav-bg;
262
+ color: white;
246
263
  height: 60px;
247
264
  line-height: 50px;
248
- color: white;
249
- background-color: $orbit-nav-bg;
265
+ margin-top: -25px;
266
+ position: absolute;
250
267
  text-indent: -9999px !important;
268
+ top: 45%;
269
+ width: 36px;
251
270
  z-index: 10;
252
271
 
253
272
  &:hover {
@@ -255,13 +274,13 @@ $orbit-timer-hide-for-small: true !default;
255
274
  }
256
275
 
257
276
  & > span {
277
+ border: inset 10px;
278
+ display: block;
279
+ height: 0;
280
+ margin-top: -10px;
258
281
  position: absolute;
259
282
  top: 50%;
260
- margin-top: -10px;
261
- display: block;
262
283
  width: 0;
263
- height: 0;
264
- border: inset 10px;
265
284
  }
266
285
  }
267
286
  .orbit-prev { #{$default-float}: 0;
@@ -290,23 +309,24 @@ $orbit-timer-hide-for-small: true !default;
290
309
 
291
310
  .orbit-bullets-container { text-align: center; }
292
311
  .orbit-bullets {
312
+ display: block;
313
+ float: none;
293
314
  margin: 0 auto 30px auto;
294
315
  overflow: hidden;
295
316
  position: relative;
296
- top: 10px;
297
- float: none;
298
317
  text-align: center;
299
- display: block;
318
+ top: 10px;
300
319
 
301
320
  li {
302
- cursor:pointer;
303
- display: inline-block;
304
- width: $orbit-bullet-radius;
305
- height: $orbit-bullet-radius;
306
321
  background: $orbit-bullet-nav-color;
322
+ cursor: pointer;
323
+ display: inline-block;
307
324
  // float: $default-float;
308
325
  float: none;
326
+ height: $orbit-bullet-radius;
309
327
  margin-#{$opposite-direction}: 6px;
328
+ width: $orbit-bullet-radius;
329
+
310
330
  @include radius(1000px);
311
331
 
312
332
  &.active {
@@ -344,9 +364,9 @@ $orbit-timer-hide-for-small: true !default;
344
364
  .orbit-stack-on-small {
345
365
  .orbit-slides-container {height: auto !important;}
346
366
  .orbit-slides-container > * {
367
+ margin:0 !important;
368
+ opacity: 1 !important;
347
369
  position: relative;
348
- margin:0 !important;
349
- opacity:1 !important;
350
370
  }
351
371
 
352
372
  .orbit-slide-number {
@@ -2,7 +2,7 @@
2
2
  // foundation.zurb.com
3
3
  // Licensed under MIT Open Source
4
4
 
5
- @import "global";
5
+ @import 'global';
6
6
 
7
7
  //
8
8
  // @variables
@@ -68,19 +68,19 @@ $pagination-link-current-active-bg: $primary-color !default;
68
68
  a, button {
69
69
  background: $pagination-link-current-background;
70
70
  color: $pagination-link-current-font-color;
71
- font-weight: $pagination-link-current-font-weight;
72
71
  cursor: $pagination-link-current-cursor;
72
+ font-weight: $pagination-link-current-font-weight;
73
73
 
74
74
  &:hover,
75
75
  &:focus { background: $pagination-link-current-active-bg; }
76
76
  }
77
77
  } @else {
78
- height: auto;
79
- padding: $pagination-link-pad;
80
78
  background: $pagination-link-current-background;
81
79
  color: $pagination-link-current-font-color;
82
- font-weight: $pagination-link-current-font-weight;
83
80
  cursor: $pagination-link-current-cursor;
81
+ font-weight: $pagination-link-current-font-weight;
82
+ height: auto;
83
+ padding: $pagination-link-pad;
84
84
  @include radius;
85
85
 
86
86
  &:hover,
@@ -98,25 +98,25 @@ $pagination-link-current-active-bg: $primary-color !default;
98
98
 
99
99
  @if $base-style {
100
100
  display: block;
101
- min-height: $pagination-height;
102
101
  margin-#{$default-float}: $pagination-margin;
102
+ min-height: $pagination-height;
103
103
 
104
104
  li {
105
- height: $pagination-li-height;
106
105
  color: $pagination-li-font-color;
107
106
  font-size: $pagination-li-font-size;
107
+ height: $pagination-li-height;
108
108
  margin-#{$default-float}: $pagination-li-margin;
109
109
 
110
110
  a, button {
111
- display: block;
112
- padding: $pagination-link-pad;
113
- color: $pagination-link-font-color;
114
- background: none;
115
111
  @include radius;
116
- font-weight: normal;
112
+ @include single-transition(background-color);
113
+ background: none;
114
+ color: $pagination-link-font-color;
115
+ display: block;
117
116
  font-size: 1em;
117
+ font-weight: normal;
118
118
  line-height: inherit;
119
- @include single-transition(background-color);
119
+ padding: $pagination-link-pad;
120
120
  }
121
121
 
122
122
  &:hover a,
@@ -135,11 +135,11 @@ $pagination-link-current-active-bg: $primary-color !default;
135
135
  // Left or center align the li elements
136
136
  li {
137
137
  @if $center {
138
- float: none;
139
138
  display: inline-block;
139
+ float: none;
140
140
  } @else {
141
- float: $pagination-li-float;
142
141
  display: block;
142
+ float: $pagination-li-float;
143
143
  }
144
144
  }
145
145
  }
@@ -2,7 +2,7 @@
2
2
  // foundation.zurb.com
3
3
  // Licensed under MIT Open Source
4
4
 
5
- @import "global";
5
+ @import 'global';
6
6
 
7
7
  //
8
8
  // @variables
@@ -13,10 +13,10 @@ $include-html-panel-classes: $include-html-classes !default;
13
13
  $panel-bg: scale-color($white, $lightness: -5%) !default;
14
14
  $panel-border-style: solid !default;
15
15
  $panel-border-size: 1px !default;
16
+ $callout-panel-bg: scale-color($primary-color, $lightness: 94%) !default;
16
17
 
17
18
  // We use this % to control how much we darken things on hover
18
- $panel-function-factor: -11% !default;
19
- $panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor) !default;
19
+ $panel-border-color: scale-color($panel-bg, $lightness: -11%) !default;
20
20
 
21
21
  // We use these to set default inner padding and bottom margin
22
22
  $panel-margin-bottom: rem-calc(20) !default;
@@ -36,14 +36,20 @@ $callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightne
36
36
  // $bg - Sets the panel background color. Default: $panel-pg || scale-color($white, $lightness: -5%) !default
37
37
  // $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20)
38
38
  // $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true
39
- @mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust) {
39
+ @mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust, $border:true) {
40
40
 
41
41
  @if $bg {
42
42
  $bg-lightness: lightness($bg);
43
43
 
44
- border-style: $panel-border-style;
45
- border-width: $panel-border-size;
46
- border-color: scale-color($bg, $lightness: $panel-function-factor);
44
+ @if $border {
45
+ border-style: $panel-border-style;
46
+ border-width: $panel-border-size;
47
+ border-color: $panel-border-color;
48
+ } @else {
49
+ border-style: none;
50
+ border-width: 0;
51
+ }
52
+
47
53
  margin-bottom: $panel-margin-bottom;
48
54
  padding: $padding;
49
55
 
@@ -52,20 +58,20 @@ $callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightne
52
58
  @else { color: $panel-font-color-alt; }
53
59
 
54
60
  // Respect the padding, fool.
55
- &>:first-child { margin-top: 0; }
56
- &>:last-child { margin-bottom: 0; }
61
+ > :first-child { margin-top: 0; }
62
+ > :last-child { margin-bottom: 0; }
57
63
 
58
64
  @if $adjust {
59
65
  // We set the font color based on the darkness of the bg.
60
- @if $bg-lightness >= 50% {
61
- h1,h2,h3,h4,h5,h6,p,li,dl { color: $panel-font-color; }
66
+ @if $bg-lightness >= 50% {
67
+ h1, h2, h3, h4, h5, h6, p, li, dl { color: $panel-font-color; }
62
68
  }
63
- @else {
64
- h1,h2,h3,h4,h5,h6,p,li,dl { color: $panel-font-color-alt; }
69
+ @else {
70
+ h1, h2, h3, h4, h5, h6, p, li, dl { color: $panel-font-color-alt; }
65
71
  }
66
72
 
67
73
  // reset header line-heights for panels
68
- h1,h2,h3,h4,h5,h6 {
74
+ h1, h2, h3, h4, h5, h6 {
69
75
  line-height: 1; margin-bottom: rem-calc(20) / 2;
70
76
  &.subheader { line-height: 1.4; }
71
77
  }
@@ -80,7 +86,7 @@ $callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightne
80
86
  .panel { @include panel;
81
87
 
82
88
  &.callout {
83
- @include panel(scale-color($primary-color, $lightness: 94%));
89
+ @include panel($callout-panel-bg);
84
90
  a:not(.button) {
85
91
  color: $callout-panel-link-color;
86
92