foundation-rails 5.5.2.1 → 5.5.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/bower.json +2 -2
  4. data/lib/foundation/rails/version.rb +1 -1
  5. data/vendor/assets/javascripts/foundation.js +1 -1
  6. data/vendor/assets/javascripts/foundation/foundation.abide.js +42 -24
  7. data/vendor/assets/javascripts/foundation/foundation.accordion.js +39 -2
  8. data/vendor/assets/javascripts/foundation/foundation.alert.js +1 -1
  9. data/vendor/assets/javascripts/foundation/foundation.clearing.js +5 -5
  10. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +17 -12
  11. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +1 -1
  12. data/vendor/assets/javascripts/foundation/foundation.interchange.js +3 -2
  13. data/vendor/assets/javascripts/foundation/foundation.joyride.js +53 -50
  14. data/vendor/assets/javascripts/foundation/foundation.js +24 -17
  15. data/vendor/assets/javascripts/foundation/foundation.magellan.js +4 -5
  16. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +75 -2
  17. data/vendor/assets/javascripts/foundation/foundation.orbit.js +1 -1
  18. data/vendor/assets/javascripts/foundation/foundation.reveal.js +40 -16
  19. data/vendor/assets/javascripts/foundation/foundation.slider.js +21 -6
  20. data/vendor/assets/javascripts/foundation/foundation.tab.js +25 -27
  21. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +24 -15
  22. data/vendor/assets/javascripts/foundation/foundation.topbar.js +11 -11
  23. data/vendor/assets/stylesheets/foundation.scss +0 -2
  24. data/vendor/assets/stylesheets/foundation/_functions.scss +2 -2
  25. data/vendor/assets/stylesheets/foundation/_settings.scss +6 -3
  26. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +6 -2
  27. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +2 -1
  28. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +1 -0
  29. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +18 -13
  30. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +3 -2
  31. data/vendor/assets/stylesheets/foundation/components/_forms.scss +21 -23
  32. data/vendor/assets/stylesheets/foundation/components/_global.scss +73 -9
  33. data/vendor/assets/stylesheets/foundation/components/_grid.scss +15 -15
  34. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +2 -1
  35. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +1 -1
  36. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +92 -4
  37. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +1 -0
  38. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +6 -0
  39. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +2 -2
  40. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +3 -0
  41. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +1 -1
  42. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +1 -1
  43. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +11 -3
  44. data/vendor/assets/stylesheets/foundation/components/_type.scss +73 -12
  45. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +8 -75
  46. metadata +3 -4
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.tooltip = {
5
5
  name : 'tooltip',
6
6
 
7
- version : '5.5.2',
7
+ version : '5.5.3',
8
8
 
9
9
  settings : {
10
10
  additional_inheritable_classes : [],
@@ -13,6 +13,8 @@
13
13
  touch_close_text : 'Tap To Close',
14
14
  disable_for_touch : false,
15
15
  hover_delay : 200,
16
+ fade_in_duration : 150,
17
+ fade_out_duration : 150,
16
18
  show_on : 'all',
17
19
  tip_template : function (selector, content) {
18
20
  return '<span data-selector="' + selector + '" id="' + selector + '" class="'
@@ -208,14 +210,14 @@
208
210
  },
209
211
 
210
212
  reposition : function (target, tip, classes) {
211
- var width, nub, nubHeight, nubWidth, column, objPos;
213
+ var width, nub, nubHeight, nubWidth, objPos;
212
214
 
213
215
  tip.css('visibility', 'hidden').show();
214
216
 
215
217
  width = target.data('width');
216
218
  nub = tip.children('.nub');
217
219
  nubHeight = nub.outerHeight();
218
- nubWidth = nub.outerHeight();
220
+ nubWidth = nub.outerWidth();
219
221
 
220
222
  if (this.small()) {
221
223
  tip.css({'width' : '100%'});
@@ -231,39 +233,46 @@
231
233
  'right' : (right) ? right : 'auto'
232
234
  }).end();
233
235
  };
236
+
237
+ var o_top = target.offset().top;
238
+ var o_left = target.offset().left;
239
+ var outerHeight = target.outerHeight();
234
240
 
235
- objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', target.offset().left);
241
+ objPos(tip, (o_top + outerHeight + 10), 'auto', 'auto', o_left);
236
242
 
237
243
  if (this.small()) {
238
- objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', 12.5, $(this.scope).width());
244
+ objPos(tip, (o_top + outerHeight + 10), 'auto', 'auto', 12.5, $(this.scope).width());
239
245
  tip.addClass('tip-override');
240
- objPos(nub, -nubHeight, 'auto', 'auto', target.offset().left);
246
+ objPos(nub, -nubHeight, 'auto', 'auto', o_left);
241
247
  } else {
242
- var left = target.offset().left;
248
+
243
249
  if (Foundation.rtl) {
244
250
  nub.addClass('rtl');
245
- left = target.offset().left + target.outerWidth() - tip.outerWidth();
251
+ o_left = o_left + target.outerWidth() - tip.outerWidth();
246
252
  }
247
253
 
248
- objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', left);
254
+ objPos(tip, (o_top + outerHeight + 10), 'auto', 'auto', o_left);
249
255
  // reset nub from small styles, if they've been applied
250
256
  if (nub.attr('style')) {
251
257
  nub.removeAttr('style');
252
258
  }
253
259
 
254
260
  tip.removeClass('tip-override');
261
+
262
+ var tip_outerHeight = tip.outerHeight();
263
+
255
264
  if (classes && classes.indexOf('tip-top') > -1) {
256
265
  if (Foundation.rtl) {
257
266
  nub.addClass('rtl');
258
267
  }
259
- objPos(tip, (target.offset().top - tip.outerHeight()), 'auto', 'auto', left)
268
+ objPos(tip, (o_top - tip_outerHeight), 'auto', 'auto', o_left)
260
269
  .removeClass('tip-override');
261
270
  } else if (classes && classes.indexOf('tip-left') > -1) {
262
- objPos(tip, (target.offset().top + (target.outerHeight() / 2) - (tip.outerHeight() / 2)), 'auto', 'auto', (target.offset().left - tip.outerWidth() - nubHeight))
271
+ objPos(tip, (o_top + (outerHeight / 2) - (tip_outerHeight / 2)), 'auto', 'auto', (o_left - tip.outerWidth() - nubHeight))
263
272
  .removeClass('tip-override');
264
273
  nub.removeClass('rtl');
265
274
  } else if (classes && classes.indexOf('tip-right') > -1) {
266
- objPos(tip, (target.offset().top + (target.outerHeight() / 2) - (tip.outerHeight() / 2)), 'auto', 'auto', (target.offset().left + target.outerWidth() + nubHeight))
275
+ objPos(tip, (o_top + (outerHeight / 2) - (tip_outerHeight / 2)), 'auto', 'auto', (o_left + target.outerWidth() + nubHeight))
267
276
  .removeClass('tip-override');
268
277
  nub.removeClass('rtl');
269
278
  }
@@ -307,19 +316,19 @@
307
316
 
308
317
  show : function ($target) {
309
318
  var $tip = this.getTip($target);
310
-
311
319
  if ($target.data('tooltip-open-event-type') == 'touch') {
312
320
  this.convert_to_touch($target);
313
321
  }
314
322
 
315
323
  this.reposition($target, $tip, $target.attr('class'));
316
324
  $target.addClass('open');
317
- $tip.fadeIn(150);
325
+ $tip.fadeIn(this.settings.fade_in_duration);
318
326
  },
319
327
 
320
328
  hide : function ($target) {
321
329
  var $tip = this.getTip($target);
322
- $tip.fadeOut(150, function () {
330
+
331
+ $tip.fadeOut(this.settings.fade_out_duration, function () {
323
332
  $tip.find('.tap-to-close').remove();
324
333
  $tip.off('click.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose');
325
334
  $target.removeClass('open');
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.topbar = {
5
5
  name : 'topbar',
6
6
 
7
- version : '5.5.2',
7
+ version : '5.5.3',
8
8
 
9
9
  settings : {
10
10
  index : 0,
@@ -165,17 +165,17 @@
165
165
  self.toggle(this);
166
166
  })
167
167
  .on('click.fndtn.topbar contextmenu.fndtn.topbar', '.top-bar .top-bar-section li a[href^="#"],[' + this.attr_name() + '] .top-bar-section li a[href^="#"]', function (e) {
168
- var li = $(this).closest('li'),
169
- topbar = li.closest('[' + self.attr_name() + ']'),
170
- settings = topbar.data(self.attr_name(true) + '-init');
168
+ var li = $(this).closest('li'),
169
+ topbar = li.closest('[' + self.attr_name() + ']'),
170
+ settings = topbar.data(self.attr_name(true) + '-init');
171
171
 
172
- if (settings.dropdown_autoclose && settings.is_hover) {
173
- var hoverLi = $(this).closest('.hover');
174
- hoverLi.removeClass('hover');
175
- }
176
- if (self.breakpoint() && !li.hasClass('back') && !li.hasClass('has-dropdown')) {
177
- self.toggle();
178
- }
172
+ if (settings.dropdown_autoclose && settings.is_hover) {
173
+ var hoverLi = $(this).closest('.hover');
174
+ hoverLi.removeClass('hover');
175
+ }
176
+ if (self.breakpoint() && !li.hasClass('back') && !li.hasClass('has-dropdown')) {
177
+ self.toggle();
178
+ }
179
179
 
180
180
  })
181
181
  .on('click.fndtn.topbar', '[' + this.attr_name() + '] li.has-dropdown', function (e) {
@@ -2,8 +2,6 @@
2
2
  // foundation.zurb.com
3
3
  // Licensed under MIT Open Source
4
4
 
5
- // Make sure the charset is set appropriately
6
-
7
5
  // Behold, here are all the Foundation components.
8
6
  @import 'foundation/components/grid';
9
7
  @import 'foundation/components/accordion';
@@ -135,8 +135,8 @@ $modules: () !default;
135
135
  }
136
136
 
137
137
 
138
- @function em-calc($values) {
139
- $remValues: rem-calc($values);
138
+ @function em-calc($values, $base-value: $rem-base) {
139
+ $remValues: rem-calc($values, $base-value: $rem-base);
140
140
 
141
141
  $max: length($remValues);
142
142
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  // Table of Contents
8
8
  // Foundation Settings
9
- //
9
+
10
10
  // a. Base
11
11
  // b. Grid
12
12
  // c. Global
@@ -336,6 +336,7 @@ $include-html-global-classes: $include-html-classes;
336
336
  // $accordion-navigation-bg-color: $silver;
337
337
  // $accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%);
338
338
  // $accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%);
339
+ // $accordion-navigation-active-font-color: $jet;
339
340
  // $accordion-navigation-font-color: $jet;
340
341
  // $accordion-navigation-font-size: rem-calc(16);
341
342
  // $accordion-navigation-font-family: $body-font-family;
@@ -431,6 +432,7 @@ $include-html-global-classes: $include-html-classes;
431
432
  // We use these to control the slash between breadcrumbs
432
433
  // $crumb-slash-color: $base;
433
434
  // $crumb-slash: "/";
435
+ // $crumb-slash-position: 1px;
434
436
 
435
437
  // 05. Buttons
436
438
  // - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -647,6 +649,7 @@ $include-html-global-classes: $include-html-classes;
647
649
  // $input-font-family: inherit;
648
650
  // $input-font-color: rgba(0,0,0,0.75);
649
651
  // $input-font-size: rem-calc(14);
652
+ // $input-placeholder-font-color: #cccccc;
650
653
  // $input-bg-color: $white;
651
654
  // $input-focus-bg-color: scale-color($white, $lightness: -2%);
652
655
  // $input-border-color: scale-color($white, $lightness: -20%);
@@ -1104,7 +1107,7 @@ $include-html-global-classes: $include-html-classes;
1104
1107
  // $range-slider-vertical-bar-width: rem-calc(16);
1105
1108
  // $range-slider-vertical-bar-height: rem-calc(200);
1106
1109
 
1107
- // These variabels define the slider handle styles
1110
+ // These variables define the slider handle styles
1108
1111
  // $range-slider-handle-width: rem-calc(32);
1109
1112
  // $range-slider-handle-height: rem-calc(22);
1110
1113
  // $range-slider-handle-position-top: rem-calc(-5);
@@ -1315,7 +1318,7 @@ $include-html-global-classes: $include-html-classes;
1315
1318
  // $table-foot-padding: $table-head-padding;
1316
1319
 
1317
1320
  // These control the caption
1318
- // table-caption-bg: transparent;
1321
+ // $table-caption-bg: transparent;
1319
1322
  // $table-caption-font-color: $table-head-font-color;
1320
1323
  // $table-caption-font-size: rem-calc(16);
1321
1324
  // $table-caption-font-weight: bold;
@@ -14,6 +14,7 @@ $accordion-navigation-padding: rem-calc(16) !default;
14
14
  $accordion-navigation-bg-color: $silver !default;
15
15
  $accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%) !default;
16
16
  $accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%) !default;
17
+ $accordion-navigation-active-font-color: $jet !default;
17
18
  $accordion-navigation-font-color: $jet !default;
18
19
  $accordion-navigation-font-size: rem-calc(16) !default;
19
20
  $accordion-navigation-font-family: $body-font-family !default;
@@ -40,8 +41,9 @@ $accordion-content-active-bg-color: $white !default;
40
41
  // @params $font-color [ color or string ]: Color of the font for accordion
41
42
  // @params $font-size [ number ]: Specifiy the font-size of the text inside the navigation element
42
43
  // @params $font-family [ string ]: Specify the font family for the text of the navigation of the accorion
44
+ // @params $active-font [ color or string ]: Specify the font color for the navigation element when active.
43
45
 
44
- @mixin accordion-navigation( $bg: $accordion-navigation-bg-color, $hover-bg: $accordion-navigation-hover-bg-color, $active-bg: $accordion-navigation-active-bg-color, $padding: $accordion-navigation-padding, $active_class: 'active', $font-color: $accordion-navigation-font-color, $font-size: $accordion-navigation-font-size, $font-family: $accordion-navigation-font-family ) {
46
+ @mixin accordion-navigation( $bg: $accordion-navigation-bg-color, $hover-bg: $accordion-navigation-hover-bg-color, $active-bg: $accordion-navigation-active-bg-color, $padding: $accordion-navigation-padding, $active_class: 'active', $font-color: $accordion-navigation-font-color, $font-size: $accordion-navigation-font-size, $font-family: $accordion-navigation-font-family, $active-font: $accordion-navigation-active-font-color ) {
45
47
  display: block;
46
48
  margin-bottom: 0 !important;
47
49
  @if type-of($active_class) != "string" {
@@ -50,6 +52,7 @@ $accordion-content-active-bg-color: $white !default;
50
52
  @else {
51
53
  &.#{ $active_class } > a {
52
54
  background: $active-bg;
55
+ color: $active-font;
53
56
  }
54
57
  }
55
58
  > a {
@@ -129,10 +132,11 @@ $accordion-content-active-bg-color: $white !default;
129
132
  .accordion {
130
133
  @include clearfix;
131
134
  margin-bottom: 0;
135
+ margin-left: 0;
132
136
  .accordion-navigation, dd {
133
137
  display: block;
134
138
  margin-bottom: 0 !important;
135
- &.active > a { background: $accordion-navigation-active-bg-color; }
139
+ &.active > a { background: $accordion-navigation-active-bg-color; color: $accordion-navigation-active-font-color; }
136
140
  > a {
137
141
  background: $accordion-navigation-bg-color;
138
142
  color: $accordion-navigation-font-color;
@@ -34,6 +34,7 @@ $crumb-link-decor: underline !default;
34
34
  // We use these to control the slash between breadcrumbs
35
35
  $crumb-slash-color: $base !default;
36
36
  $crumb-slash: "/" !default;
37
+ $crumb-slash-position: 1px !default;
37
38
 
38
39
  //
39
40
  // Breadcrumb Mixins
@@ -104,7 +105,7 @@ $crumb-slash: "/" !default;
104
105
  content: "#{$crumb-slash}";
105
106
  margin: 0 $crumb-side-padding;
106
107
  position: relative;
107
- top: 1px;
108
+ top: $crumb-slash-position;
108
109
  }
109
110
 
110
111
  &:first-child:before {
@@ -172,6 +172,7 @@ $button-group-border-width: 1px !default;
172
172
  @include button-group-style($orientation:horizontal);
173
173
  @media #{$small-only} {
174
174
  @include button-group-style($orientation:vertical);
175
+ width: 100%;
175
176
  }
176
177
  }
177
178
  }
@@ -39,14 +39,19 @@ $button-border-style: solid !default;
39
39
  $button-bg-color: $primary-color !default;
40
40
  $button-bg-hover: scale-color($button-bg-color, $lightness: $button-function-factor) !default;
41
41
  $button-border-color: $button-bg-hover !default;
42
+ $secondary-button-bg-color: $secondary-color !default;
42
43
  $secondary-button-bg-hover: scale-color($secondary-color, $lightness: $button-function-factor) !default;
43
44
  $secondary-button-border-color: $secondary-button-bg-hover !default;
45
+ $success-button-bg-color: $success-color !default;
44
46
  $success-button-bg-hover: scale-color($success-color, $lightness: $button-function-factor) !default;
45
47
  $success-button-border-color: $success-button-bg-hover !default;
48
+ $alert-button-bg-color: $alert-color !default;
46
49
  $alert-button-bg-hover: scale-color($alert-color, $lightness: $button-function-factor) !default;
47
50
  $alert-button-border-color: $alert-button-bg-hover !default;
51
+ $warning-button-bg-color: $warning-color !default;
48
52
  $warning-button-bg-hover: scale-color($warning-color, $lightness: $button-function-factor) !default;
49
53
  $warning-button-border-color: $warning-button-bg-hover !default;
54
+ $info-button-bg-color: $info-color !default;
50
55
  $info-button-bg-hover: scale-color($info-color, $lightness: $button-function-factor) !default;
51
56
  $info-button-border-color: $info-button-bg-hover !default;
52
57
 
@@ -116,8 +121,8 @@ $button-disabled-cursor: $cursor-default-value !default;
116
121
  padding-bottom:0;
117
122
  padding-top:0;
118
123
  }
119
- padding-left: 0;
120
- padding-right: 0;
124
+ padding-left: $button-med;
125
+ padding-right: $button-med;
121
126
  width: 100%;
122
127
  }
123
128
  }
@@ -217,16 +222,16 @@ $button-disabled-cursor: $cursor-default-value !default;
217
222
 
218
223
  @include single-transition(background-color);
219
224
 
220
- &.secondary { @include button-style($bg:$secondary-color, $bg-hover:$secondary-button-bg-hover, $border-color:$secondary-button-border-color); }
221
- &.success { @include button-style($bg:$success-color, $bg-hover:$success-button-bg-hover, $border-color:$success-button-border-color); }
222
- &.alert { @include button-style($bg:$alert-color, $bg-hover:$alert-button-bg-hover, $border-color:$alert-button-border-color); }
223
- &.warning { @include button-style($bg:$warning-color, $bg-hover:$warning-button-bg-hover, $border-color:$warning-button-border-color); }
224
- &.info { @include button-style($bg:$info-color, $bg-hover:$info-button-bg-hover, $border-color:$info-button-border-color); }
225
+ &.secondary { @include button-style($bg:$secondary-button-bg-color, $bg-hover:$secondary-button-bg-hover, $border-color:$secondary-button-border-color); }
226
+ &.success { @include button-style($bg:$success-button-bg-color, $bg-hover:$success-button-bg-hover, $border-color:$success-button-border-color); }
227
+ &.alert { @include button-style($bg:$alert-button-bg-color, $bg-hover:$alert-button-bg-hover, $border-color:$alert-button-border-color); }
228
+ &.warning { @include button-style($bg:$warning-button-bg-color, $bg-hover:$warning-button-bg-hover, $border-color:$warning-button-border-color); }
229
+ &.info { @include button-style($bg:$info-button-bg-color, $bg-hover:$info-button-bg-hover, $border-color:$info-button-border-color); }
225
230
 
226
231
  &.large { @include button-size($padding:$button-lrg); }
227
232
  &.small { @include button-size($padding:$button-sml); }
228
233
  &.tiny { @include button-size($padding:$button-tny); }
229
- &.expand { @include button-size($padding:null, $full-width:true); }
234
+ &.expand { @include button-size($full-width:true); }
230
235
 
231
236
  &.left-align { text-align: left; text-indent: rem-calc(12); }
232
237
  &.right-align { text-align: right; padding-right: rem-calc(12); }
@@ -235,11 +240,11 @@ $button-disabled-cursor: $cursor-default-value !default;
235
240
  &.round { @include button-style($bg:false, $radius:$button-round); }
236
241
 
237
242
  &.disabled, &[disabled] { @include button-style($bg:$button-bg-color, $disabled:true, $bg-hover:$button-bg-hover, $border-color:$button-border-color);
238
- &.secondary { @include button-style($bg:$secondary-color, $disabled:true, $bg-hover:$secondary-button-bg-hover, $border-color:$secondary-button-border-color); }
239
- &.success { @include button-style($bg:$success-color, $disabled:true, $bg-hover:$success-button-bg-hover, $border-color:$success-button-border-color); }
240
- &.alert { @include button-style($bg:$alert-color, $disabled:true, $bg-hover:$alert-button-bg-hover, $border-color:$alert-button-border-color); }
241
- &.warning { @include button-style($bg:$warning-color, $disabled:true, $bg-hover:$warning-button-bg-hover, $border-color:$warning-button-border-color); }
242
- &.info { @include button-style($bg:$info-color, $disabled:true, $bg-hover:$info-button-bg-hover, $border-color:$info-button-border-color); }
243
+ &.secondary { @include button-style($bg:$secondary-button-bg-color, $disabled:true, $bg-hover:$secondary-button-bg-hover, $border-color:$secondary-button-border-color); }
244
+ &.success { @include button-style($bg:$success-button-bg-color, $disabled:true, $bg-hover:$success-button-bg-hover, $border-color:$success-button-border-color); }
245
+ &.alert { @include button-style($bg:$alert-button-bg-color, $disabled:true, $bg-hover:$alert-button-bg-hover, $border-color:$alert-button-border-color); }
246
+ &.warning { @include button-style($bg:$warning-button-bg-color, $disabled:true, $bg-hover:$warning-button-bg-hover, $border-color:$warning-button-border-color); }
247
+ &.info { @include button-style($bg:$info-button-bg-color, $disabled:true, $bg-hover:$info-button-bg-hover, $border-color:$info-button-border-color); }
243
248
  }
244
249
  }
245
250
 
@@ -215,8 +215,6 @@ $f-dropdown-radius: $global-radius !default;
215
215
  &:hover,
216
216
  &:focus { background: $f-dropdown-list-hover-bg; }
217
217
 
218
- &.radius { @include radius($f-dropdown-radius); }
219
-
220
218
  a {
221
219
  display: block;
222
220
  padding: $f-dropdown-list-padding;
@@ -249,6 +247,9 @@ $f-dropdown-radius: $global-radius !default;
249
247
  // You can also put custom content in these dropdowns
250
248
  &.content { @include dropdown-container(content, $triangle:false); }
251
249
 
250
+ // Radius of Dropdown
251
+ &.radius { @include radius($f-dropdown-radius); }
252
+
252
253
  // Sizes
253
254
  &.tiny { max-width: 200px; }
254
255
  &.small { max-width: 300px; }
@@ -23,7 +23,7 @@ $form-label-small-transform: capitalize !default;
23
23
  $form-label-bottom-margin: 0 !default;
24
24
  $input-font-family: inherit !default;
25
25
  $input-font-color: rgba(0,0,0,0.75) !default;
26
- $input-placeholder-font-color: #cccccc !default;
26
+ $input-placeholder-font-color: $steel !default;
27
27
  $input-font-size: rem-calc(14) !default;
28
28
  $input-bg-color: $white !default;
29
29
  $input-focus-bg-color: scale-color($white, $lightness: -2%) !default;
@@ -45,7 +45,6 @@ $fieldset-padding: rem-calc(20) !default;
45
45
  $fieldset-margin: rem-calc(18 0) !default;
46
46
 
47
47
  // We use these to style the legends when you use them
48
- $legend-bg: $white !default;
49
48
  $legend-font-weight: $font-weight-bold !default;
50
49
  $legend-padding: rem-calc(0 3) !default;
51
50
 
@@ -240,7 +239,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
240
239
  // We use this mixin to create postfix label styles
241
240
  // $bg - Default:$input-prefix-bg || scale-color($white, $lightness: -5%) !default;
242
241
  // $is-button - Toggle position settings if prefix is a button. Default: false
243
- @mixin postfix($bg:$input-prefix-bg, $border-left-hidden:false, $border:$input-prefix-border-color, $is-button:false) {
242
+ @mixin postfix($bg:$input-prefix-bg, $border-left-hidden:true, $border:$input-prefix-border-color, $is-button:false) {
244
243
 
245
244
  @if $bg {
246
245
  $bg-lightness: lightness($bg);
@@ -277,10 +276,9 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
277
276
 
278
277
  // and legend styles
279
278
  legend {
280
- background: $legend-bg;
281
279
  font-weight: $legend-font-weight;
282
- margin-#{$default-float}: rem-calc(-3);
283
280
  margin: 0;
281
+ margin-#{$default-float}: rem-calc(-3);
284
282
  padding: $legend-padding;
285
283
  }
286
284
  }
@@ -340,7 +338,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
340
338
 
341
339
  // The custom arrow has some fake horizontal padding so we can align it
342
340
  // from the right side of the element without relying on CSS3
343
- background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+);
341
+ background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+');
344
342
 
345
343
  // We can safely use leftmost and rightmost now
346
344
  background-position: if($text-direction == 'rtl', 0%, 100%) center;
@@ -358,7 +356,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
358
356
  padding: ($form-spacing / 2);
359
357
  @include radius(0);
360
358
  &.radius { @include radius($global-radius); }
361
- &:hover {
359
+ &:focus {
362
360
  background-color: $select-hover-bg-color;
363
361
  border-color: $input-focus-border-color;
364
362
  }
@@ -370,12 +368,12 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
370
368
  }
371
369
 
372
370
  // We use this mixin to turn on/off HTML5 number spinners
373
- @mixin html5number($browser, $on:true) {
374
- @if $on==false {
375
- @if $browser==webkit {
371
+ @mixin html5number($browser, $on: true) {
372
+ @if $on == false {
373
+ @if $browser == webkit {
376
374
  -webkit-appearance: none;
377
375
  margin: 0;
378
- } @else if $browser==moz {
376
+ } @else if $browser == moz {
379
377
  -moz-appearance: textfield;
380
378
  }
381
379
  }
@@ -405,7 +403,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
405
403
  .postfix { @include prefix-postfix-base; }
406
404
 
407
405
  /* Adjust padding, alignment and radius if pre/post element is a button */
408
- .postfix.button { @include button-size(false, false); @include postfix(false, false, true); }
406
+ .postfix.button { @include button-size(false, false); @include postfix(false, false, false, true); }
409
407
  .prefix.button { @include button-size(false, false); @include prefix(false, false, true); }
410
408
 
411
409
  .prefix.button.radius { @include radius(0); @include side-radius($default-float, $button-radius); }
@@ -418,7 +416,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
418
416
  span.postfix, label.postfix { @include postfix(); }
419
417
 
420
418
  /* We use this to get basic styling on all basic form elements */
421
- #{text-inputs(all, 'input')} {
419
+ input:not([type]), #{text-inputs(all, 'input')} {
422
420
  -webkit-appearance: none;
423
421
  -moz-appearance: none;
424
422
  border-radius: 0;
@@ -479,28 +477,28 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
479
477
  height: auto;
480
478
  }
481
479
 
482
- /* Not allow resize out of parent */
483
- textarea {
484
- max-width: 100%;
485
- }
486
-
480
+ /* Not allow resize out of parent */
481
+ textarea {
482
+ max-width: 100%;
483
+ }
484
+
487
485
  // style placeholder text cross browser
488
486
  ::-webkit-input-placeholder {
489
487
  color: $input-placeholder-font-color;
490
488
  }
491
489
 
492
490
  :-moz-placeholder { /* Firefox 18- */
493
- color: $input-placeholder-font-color;
491
+ color: $input-placeholder-font-color;
494
492
  }
495
493
 
496
494
  ::-moz-placeholder { /* Firefox 19+ */
497
- color: $input-placeholder-font-color;
495
+ color: $input-placeholder-font-color;
498
496
  }
499
497
 
500
- :-ms-input-placeholder {
501
- color: $input-placeholder-font-color;
498
+ :-ms-input-placeholder {
499
+ color: $input-placeholder-font-color;
502
500
  }
503
-
501
+
504
502
 
505
503
  /* Add height value for select elements to match text input height */
506
504
  select {