foundation-rails 5.4.3.1 → 5.4.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/bower.json +2 -2
  2. data/lib/foundation/rails/version.rb +1 -1
  3. data/vendor/assets/_settings.scss +33 -34
  4. data/vendor/assets/javascripts/foundation/foundation.abide.js +18 -13
  5. data/vendor/assets/javascripts/foundation/foundation.accordion.js +1 -1
  6. data/vendor/assets/javascripts/foundation/foundation.alert.js +1 -1
  7. data/vendor/assets/javascripts/foundation/foundation.clearing.js +1 -1
  8. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +30 -27
  9. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +1 -1
  10. data/vendor/assets/javascripts/foundation/foundation.interchange.js +1 -1
  11. data/vendor/assets/javascripts/foundation/foundation.joyride.js +1 -1
  12. data/vendor/assets/javascripts/foundation/foundation.js +1 -1
  13. data/vendor/assets/javascripts/foundation/foundation.magellan.js +5 -5
  14. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +1 -1
  15. data/vendor/assets/javascripts/foundation/foundation.orbit.js +1 -1
  16. data/vendor/assets/javascripts/foundation/foundation.reveal.js +2 -1
  17. data/vendor/assets/javascripts/foundation/foundation.slider.js +10 -11
  18. data/vendor/assets/javascripts/foundation/foundation.tab.js +16 -22
  19. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +1 -1
  20. data/vendor/assets/javascripts/foundation/foundation.topbar.js +1 -1
  21. data/vendor/assets/stylesheets/foundation/_functions.scss +3 -3
  22. data/vendor/assets/stylesheets/foundation/_settings.scss +33 -34
  23. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +6 -5
  24. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +21 -23
  25. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +8 -0
  26. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +23 -10
  27. data/vendor/assets/stylesheets/foundation/components/_global.scss +8 -3
  28. data/vendor/assets/stylesheets/foundation/components/_labels.scss +2 -1
  29. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +22 -19
  30. data/vendor/assets/stylesheets/foundation/components/_panels.scss +2 -0
  31. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +2 -2
  32. data/vendor/assets/stylesheets/foundation/components/_switches.scss +1 -1
  33. data/vendor/assets/stylesheets/foundation/components/_tables.scss +3 -3
  34. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +1 -1
  35. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +2 -1
  36. data/vendor/assets/stylesheets/foundation/components/_type.scss +1 -1
  37. metadata +4 -4
@@ -5,7 +5,6 @@
5
5
  @import "global";
6
6
  @import "buttons";
7
7
 
8
-
9
8
  //
10
9
  // Button Group Variables
11
10
  //
@@ -58,7 +57,7 @@ $button-group-border-width: 1px !default;
58
57
  }
59
58
  @else {
60
59
  margin: 0 -2px;
61
- float: none;
60
+ float: $default-float;
62
61
  display: inline-block;
63
62
  }
64
63
 
@@ -66,11 +65,11 @@ $button-group-border-width: 1px !default;
66
65
  display:block;
67
66
  margin:0;
68
67
  > button, .button {
69
- border-top: $button-group-border-width solid;
70
- border-color: rgba(255, 255, 255, 0.5);
71
- border-left-width: 0px;
72
- margin:0;
73
- display: block;
68
+ border-top: $button-group-border-width solid;
69
+ border-color: rgba(255, 255, 255, 0.5);
70
+ border-left-width: 0px;
71
+ margin:0;
72
+ display: block;
74
73
  }
75
74
 
76
75
  &:first-child {
@@ -89,7 +88,7 @@ $button-group-border-width: 1px !default;
89
88
  &:first-child,
90
89
  &:first-child > a,
91
90
  &:first-child > button,
92
- &:first-child > .button {
91
+ &:first-child > .button {
93
92
  @if $orientation == vertical {
94
93
  @include side-radius(top, $button-radius);
95
94
  }
@@ -100,12 +99,12 @@ $button-group-border-width: 1px !default;
100
99
  &:last-child,
101
100
  &:last-child > a,
102
101
  &:last-child > button,
103
- &:last-child > .button {
102
+ &:last-child > .button {
104
103
  @if $orientation == vertical {
105
104
  @include side-radius(bottom, $button-radius);
106
105
  }
107
106
  @else {
108
- @include side-radius($opposite-direction, $button-radius);
107
+ @include side-radius($opposite-direction, $button-radius);
109
108
  }
110
109
  }
111
110
  }
@@ -117,24 +116,24 @@ $button-group-border-width: 1px !default;
117
116
  &:first-child,
118
117
  &:first-child > a,
119
118
  &:first-child > button,
120
- &:first-child > .button {
119
+ &:first-child > .button {
121
120
  @if $orientation == vertical {
122
121
  @include side-radius(top, $radius);
123
122
  }
124
123
  @else {
125
124
  @include side-radius($default-float, $radius);
126
- }
125
+ }
127
126
  }
128
127
  &:last-child,
129
128
  &:last-child > a,
130
129
  &:last-child > button,
131
- &:last-child > .button {
130
+ &:last-child > .button {
132
131
  @if $orientation == vertical {
133
132
  @include side-radius(bottom, $radius);
134
133
  }
135
134
  @else {
136
- @include side-radius($opposite-direction, $radius);
137
- }
135
+ @include side-radius($opposite-direction, $radius);
136
+ }
138
137
  }
139
138
  }
140
139
 
@@ -143,7 +142,6 @@ $button-group-border-width: 1px !default;
143
142
  width: percentage((100/$even) / 100);
144
143
  button, .button { width: 100%; }
145
144
  }
146
-
147
145
  }
148
146
 
149
147
  @include exports("button-group") {
@@ -153,13 +151,13 @@ $button-group-border-width: 1px !default;
153
151
  & > li { @include button-group-style(); }
154
152
 
155
153
  &.stack {
156
- & > li { @include button-group-style($orientation:vertical); }
154
+ & > li { @include button-group-style($orientation:vertical); float: none; }
157
155
  }
158
156
 
159
157
  &.stack-for-small {
160
158
  & > li {
161
159
  @include button-group-style($orientation:horizontal);
162
- @media #{$small-only} {
160
+ @media #{$small-only} {
163
161
  @include button-group-style($orientation:vertical);
164
162
  }
165
163
  }
@@ -167,22 +165,22 @@ $button-group-border-width: 1px !default;
167
165
 
168
166
  &.radius > * { @include button-group-style($radius:$button-radius, $float:null); }
169
167
  &.radius.stack > * { @include button-group-style($radius:$button-radius, $float:null, $orientation:vertical); }
170
- &.radius.stack-for-small > * {
168
+ &.radius.stack-for-small > * {
171
169
  @media #{$medium-up} {
172
170
  @include button-group-style($radius:$button-radius, $orientation:horizontal);
173
171
  }
174
- @media #{$small-only} {
172
+ @media #{$small-only} {
175
173
  @include button-group-style($radius:$button-radius, $orientation:vertical);
176
174
  }
177
175
  }
178
176
 
179
177
  &.round > * { @include button-group-style($radius:$button-round, $float:null); }
180
178
  &.round.stack > * { @include button-group-style($radius:$button-med, $float:null, $orientation:vertical); }
181
- &.round.stack-for-small > * {
179
+ &.round.stack-for-small > * {
182
180
  @media #{$medium-up} {
183
181
  @include button-group-style($radius:$button-round, $orientation:horizontal);
184
182
  }
185
- @media #{$small-only} {
183
+ @media #{$small-only} {
186
184
  @include button-group-style($radius:$button-med, $orientation:vertical);
187
185
  }
188
186
  }
@@ -194,7 +192,7 @@ $button-group-border-width: 1px !default;
194
192
 
195
193
  .button-bar {
196
194
  @include clearfix;
197
- .button-group { @include button-group-container($styles:false,$float:true); }
195
+ .button-group { @include button-group-container($styles:false, $float:true); }
198
196
  }
199
197
  }
200
198
  }
@@ -45,6 +45,10 @@ $success-button-bg-hover: scale-color($success-color, $lightness: $button-functi
45
45
  $success-button-border-color: $success-button-bg-hover !default;
46
46
  $alert-button-bg-hover: scale-color($alert-color, $lightness: $button-function-factor) !default;
47
47
  $alert-button-border-color: $alert-button-bg-hover !default;
48
+ $warning-button-bg-hover: scale-color($warning-color, $lightness: $button-function-factor) !default;
49
+ $warning-button-border-color: $warning-button-bg-hover !default;
50
+ $info-button-bg-hover: scale-color($info-color, $lightness: $button-function-factor) !default;
51
+ $info-button-border-color: $info-button-bg-hover !default;
48
52
 
49
53
  // We use this to set the default radius used throughout the core.
50
54
  $button-radius: $global-radius !default;
@@ -220,6 +224,8 @@ $button-disabled-cursor: $cursor-default-value !default;
220
224
  &.secondary { @include button-style($bg:$secondary-color, $bg-hover:$secondary-button-bg-hover, $border-color:$secondary-button-border-color); }
221
225
  &.success { @include button-style($bg:$success-color, $bg-hover:$success-button-bg-hover, $border-color:$success-button-border-color); }
222
226
  &.alert { @include button-style($bg:$alert-color, $bg-hover:$alert-button-bg-hover, $border-color:$alert-button-border-color); }
227
+ &.warning { @include button-style($bg:$warning-color, $bg-hover:$warning-button-bg-hover, $border-color:$warning-button-border-color); }
228
+ &.info { @include button-style($bg:$info-color, $bg-hover:$info-button-bg-hover, $border-color:$info-button-border-color); }
223
229
 
224
230
  &.large { @include button-size($padding:$button-lrg); }
225
231
  &.small { @include button-size($padding:$button-sml); }
@@ -236,6 +242,8 @@ $button-disabled-cursor: $cursor-default-value !default;
236
242
  &.secondary { @include button-style($bg:$secondary-color, $disabled:true, $bg-hover:$secondary-button-bg-hover, $border-color:$secondary-button-border-color); }
237
243
  &.success { @include button-style($bg:$success-color, $disabled:true, $bg-hover:$success-button-bg-hover, $border-color:$success-button-border-color); }
238
244
  &.alert { @include button-style($bg:$alert-color, $disabled:true, $bg-hover:$alert-button-bg-hover, $border-color:$alert-button-border-color); }
245
+ &.warning { @include button-style($bg:$warning-color, $disabled:true, $bg-hover:$warning-button-bg-hover, $border-color:$warning-button-border-color); }
246
+ &.info { @include button-style($bg:$info-color, $disabled:true, $bg-hover:$info-button-bg-hover, $border-color:$info-button-border-color); }
239
247
  }
240
248
  }
241
249
 
@@ -51,6 +51,9 @@ $dropdown-mobile-default-float: 0 !default;
51
51
  // We use this to control the styles for when the dropdown has custom content.
52
52
  $f-dropdown-content-padding: rem-calc(20) !default;
53
53
 
54
+ // Default radius for dropdown.
55
+ $f-dropdown-radius: $global-radius !default;
56
+
54
57
  //
55
58
  // @mixins
56
59
  //
@@ -76,7 +79,7 @@ $f-dropdown-content-padding: rem-calc(20) !default;
76
79
  background: $f-dropdown-bg;
77
80
  border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
78
81
  font-size: $f-dropdown-font-size;
79
- z-index: 99;
82
+ z-index: 89;
80
83
  }
81
84
  @else if $content == content {
82
85
  padding: $f-dropdown-content-padding;
@@ -86,7 +89,7 @@ $f-dropdown-content-padding: rem-calc(20) !default;
86
89
  background: $f-dropdown-bg;
87
90
  border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
88
91
  font-size: $f-dropdown-font-size;
89
- z-index: 99;
92
+ z-index: 89;
90
93
  }
91
94
 
92
95
  @if $triangle == bottom {
@@ -97,14 +100,14 @@ $f-dropdown-content-padding: rem-calc(20) !default;
97
100
  position: absolute;
98
101
  top: -($f-dropdown-triangle-size * 2);
99
102
  #{$default-float}: $f-dropdown-triangle-side-offset;
100
- z-index: 99;
103
+ z-index: 89;
101
104
  }
102
105
  &:after {
103
106
  @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom);
104
107
  position: absolute;
105
108
  top: -(($f-dropdown-triangle-size + 1) * 2);
106
109
  #{$default-float}: $f-dropdown-triangle-side-offset - 1;
107
- z-index: 98;
110
+ z-index: 88;
108
111
  }
109
112
 
110
113
  &.right:before {
@@ -126,14 +129,14 @@ $f-dropdown-content-padding: rem-calc(20) !default;
126
129
  position: absolute;
127
130
  top: $f-dropdown-triangle-side-offset;
128
131
  #{$default-float}: -($f-dropdown-triangle-size * 2);
129
- z-index: 99;
132
+ z-index: 89;
130
133
  }
131
134
  &:after {
132
135
  @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, #{$opposite-direction});
133
136
  position: absolute;
134
137
  top: $f-dropdown-triangle-side-offset - 1;
135
138
  #{$default-float}: -($f-dropdown-triangle-size * 2) - 2;
136
- z-index: 98;
139
+ z-index: 88;
137
140
  }
138
141
 
139
142
  }
@@ -148,7 +151,7 @@ $f-dropdown-content-padding: rem-calc(20) !default;
148
151
  top: $f-dropdown-triangle-side-offset;
149
152
  #{$opposite-direction}: -($f-dropdown-triangle-size * 2);
150
153
  #{$default-float}: auto;
151
- z-index: 99;
154
+ z-index: 89;
152
155
  }
153
156
  &:after {
154
157
  @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, #{$default-float});
@@ -156,7 +159,7 @@ $f-dropdown-content-padding: rem-calc(20) !default;
156
159
  top: $f-dropdown-triangle-side-offset - 1;
157
160
  #{$opposite-direction}: -($f-dropdown-triangle-size * 2) - 2;
158
161
  #{$default-float}: auto;
159
- z-index: 98;
162
+ z-index: 88;
160
163
  }
161
164
 
162
165
  }
@@ -172,7 +175,7 @@ $f-dropdown-content-padding: rem-calc(20) !default;
172
175
  bottom: -($f-dropdown-triangle-size * 2);
173
176
  #{$default-float}: $f-dropdown-triangle-side-offset;
174
177
  #{$opposite-direction}: auto;
175
- z-index: 99;
178
+ z-index: 89;
176
179
  }
177
180
  &:after {
178
181
  @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, top);
@@ -181,7 +184,7 @@ $f-dropdown-content-padding: rem-calc(20) !default;
181
184
  bottom: -($f-dropdown-triangle-size * 2) - 2;
182
185
  #{$default-float}: $f-dropdown-triangle-side-offset - 1;
183
186
  #{$opposite-direction}: auto;
184
- z-index: 98;
187
+ z-index: 88;
185
188
  }
186
189
 
187
190
  }
@@ -205,6 +208,8 @@ $f-dropdown-content-padding: rem-calc(20) !default;
205
208
  &:hover,
206
209
  &:focus { background: $f-dropdown-list-hover-bg; }
207
210
 
211
+ &.radius { @include radius($f-dropdown-radius); }
212
+
208
213
  a {
209
214
  display: block;
210
215
  padding: $f-dropdown-list-padding;
@@ -242,6 +247,14 @@ $f-dropdown-content-padding: rem-calc(20) !default;
242
247
  &.small { max-width: 300px; }
243
248
  &.medium { max-width: 500px; }
244
249
  &.large { max-width: 800px; }
250
+ &.mega {
251
+ width:100%!important;
252
+ max-width:100%!important;
253
+
254
+ &.open{
255
+ left:0!important;
256
+ }
257
+ }
245
258
  }
246
259
 
247
260
  }
@@ -20,7 +20,7 @@ $namespace: false !default;
20
20
  $base-font-size: 100% !default;
21
21
 
22
22
  // $base-line-height is 24px while $base-font-size is 16px
23
- $base-line-height: 150% !default;
23
+ $base-line-height: 1.5 !default;
24
24
 
25
25
  //
26
26
  // Global Foundation Mixins
@@ -248,6 +248,11 @@ $oil : #333333 !default;
248
248
  $jet : #222222 !default;
249
249
  $black : #000000 !default;
250
250
 
251
+ // We use these to define default font stacks
252
+ $font-family-sans-serif: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif !default;
253
+ $font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif !default;
254
+ $font-family-monospace: Consolas, "Liberation Mono", Courier, monospace !default;
255
+
251
256
  // We use these to define default font weights
252
257
  $font-weight-normal: normal !default;
253
258
  $font-weight-bold: bold !default;
@@ -255,7 +260,7 @@ $font-weight-bold: bold !default;
255
260
  // We use these to control various global styles
256
261
  $body-bg: #fff !default;
257
262
  $body-font-color: #222 !default;
258
- $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
263
+ $body-font-family: $font-family-sans-serif !default;
259
264
  $body-font-weight: $font-weight-normal !default;
260
265
  $body-font-style: normal !default;
261
266
 
@@ -340,7 +345,7 @@ $cursor-text-value: text !default;
340
345
  // Forward slash placed around everything to convince PhantomJS to read the value.
341
346
 
342
347
  meta.foundation-version {
343
- font-family: "/5.4.2/";
348
+ font-family: "/5.4.3/";
344
349
  }
345
350
 
346
351
  meta.foundation-mq-small {
@@ -10,7 +10,7 @@
10
10
  $include-html-label-classes: $include-html-classes !default;
11
11
 
12
12
  // We use these to style the labels
13
- $label-padding: rem-calc(4 8 6) !default;
13
+ $label-padding: rem-calc(4 8 4) !default;
14
14
  $label-radius: $global-radius !default;
15
15
 
16
16
  // We use these to style the label text
@@ -100,6 +100,7 @@ $label-font-family: $body-font-family !default;
100
100
  &.warning { @include label-style($warning-color); }
101
101
  &.success { @include label-style($success-color); }
102
102
  &.secondary { @include label-style($secondary-color); }
103
+ &.info { @include label-style($info-color); }
103
104
  }
104
105
  }
105
106
  }
@@ -29,6 +29,7 @@ $tabbar-header-margin: 0 !default;
29
29
  // Off Canvas Menu Variables
30
30
  $off-canvas-width: rem-calc(250) !default;
31
31
  $off-canvas-bg: $oil !default;
32
+ $off-canvas-bg-hover: scale-color($tabbar-bg, $lightness: -30%) !default;
32
33
 
33
34
  // Off Canvas Menu List Variables
34
35
  $off-canvas-label-padding: 0.3rem rem-calc(15) !default;
@@ -107,7 +108,7 @@ $menu-slide: "transform 500ms ease" !default;
107
108
  bottom: 0;
108
109
  position: absolute;
109
110
  overflow-x: hidden;
110
- overflow-y: auto;
111
+ overflow-y: auto;
111
112
  background: $off-canvas-bg;
112
113
  z-index: 1001;
113
114
  box-sizing: content-box;
@@ -198,7 +199,7 @@ $menu-slide: "transform 500ms ease" !default;
198
199
  text-align: center;
199
200
  height: $tabbar-height;
200
201
  top: 0;
201
- @media #{$medium-up} {
202
+ @media #{$medium-up} {
202
203
  &.left, &.right { text-align: left; }
203
204
  }
204
205
 
@@ -242,8 +243,10 @@ $menu-slide: "transform 500ms ease" !default;
242
243
  padding: $off-canvas-link-padding;
243
244
  color: $off-canvas-link-color;
244
245
  border-bottom: $off-canvas-link-border-bottom;
245
- &:hover { background: scale-color($tabbar-bg, $lightness: -30%); }
246
246
  transition: background 300ms ease;
247
+ &:hover {
248
+ background: $off-canvas-bg-hover;
249
+ }
247
250
  }
248
251
  }
249
252
 
@@ -398,7 +401,7 @@ $menu-slide: "transform 500ms ease" !default;
398
401
  position: absolute;
399
402
  margin: 0;
400
403
  overflow-x: hidden;
401
- overflow-y: auto;
404
+ overflow-y: auto;
402
405
  background: $off-canvas-bg;
403
406
  z-index: 1002;
404
407
  box-sizing: content-box;
@@ -416,7 +419,7 @@ $menu-slide: "transform 500ms ease" !default;
416
419
  -ms-transition: -ms-#{$menu-slide};
417
420
  -o-transition: -o-#{$menu-slide};
418
421
  transition: #{$menu-slide};
419
-
422
+
420
423
  //back button style like label
421
424
  .back > a {
422
425
  padding: $off-canvas-label-padding;
@@ -435,18 +438,18 @@ $menu-slide: "transform 500ms ease" !default;
435
438
  @if $position == right {
436
439
  @if $text-direction == rtl {
437
440
  &:before {
438
- @include icon-double-arrows($position: left);
441
+ @include icon-double-arrows($position: left);
439
442
  }
440
443
  } @else {
441
444
  &:after {
442
- @include icon-double-arrows($position: right);
445
+ @include icon-double-arrows($position: right);
443
446
  }
444
- }
447
+ }
445
448
  }
446
449
  @if $position == left {
447
450
  @if $text-direction == rtl {
448
451
  &:after {
449
- @include icon-double-arrows($position: right);
452
+ @include icon-double-arrows($position: right);
450
453
  }
451
454
  } @else {
452
455
  &:before {
@@ -465,7 +468,7 @@ $menu-slide: "transform 500ms ease" !default;
465
468
  } @else {
466
469
  margin-right: 0.5rem;
467
470
  }
468
- }
471
+ }
469
472
  @if $position == right {
470
473
  content: "\BB";
471
474
  @if $text-direction == rtl {
@@ -479,31 +482,31 @@ $menu-slide: "transform 500ms ease" !default;
479
482
 
480
483
  @if $include-html-off-canvas-classes {
481
484
  .left-submenu {
482
- @include off-canvas-submenu($position: left);
485
+ @include off-canvas-submenu($position: left);
483
486
  &.move-right {
484
487
  @include translate3d(0%,0,0);
485
488
  }
486
489
  }
487
-
488
- .right-submenu {
489
- @include off-canvas-submenu($position: right);
490
+
491
+ .right-submenu {
492
+ @include off-canvas-submenu($position: right);
490
493
  &.move-left {
491
494
  @include translate3d(0%,0,0);
492
495
  }
493
496
  }
494
-
497
+
495
498
  @if $text-direction == rtl {
496
- .left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
499
+ .left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
497
500
  @include icon-double-arrows($position: left);
498
501
  }
499
- .right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
502
+ .right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
500
503
  @include icon-double-arrows($position: right);
501
504
  }
502
505
  } @else {
503
- .left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
506
+ .left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
504
507
  @include icon-double-arrows($position: right);
505
508
  }
506
- .right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
509
+ .right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
507
510
  @include icon-double-arrows($position: left);
508
511
  }
509
512
  }