foundation-rails 5.5.1.2 → 5.5.2.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 (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
  //
8
8
  // @variables
@@ -53,23 +53,22 @@ $dropdown-button-pip-top-lrg: (-$button-pip-lrg / 2) + rem-calc(3) !default;
53
53
  // $pip-color - Color of the little triangle that points to the dropdown. Default: $white.
54
54
  // $base-style - Add in base-styles. This can be set to false. Default:true
55
55
 
56
- @mixin dropdown-button($padding:medium, $pip-color:$white, $base-style:true) {
56
+ @mixin dropdown-button($padding:medium, $pip-color:$dropdown-button-pip-color, $base-style:true) {
57
57
 
58
58
  // We add in base styles, but they can be negated by setting to 'false'.
59
59
  @if $base-style {
60
60
  position: relative;
61
- outline: none;
62
61
 
63
62
  // This creates the base styles for the triangle pip
64
63
  &::after {
65
- position: absolute;
64
+ border-color: $dropdown-button-pip-color transparent transparent transparent;
65
+ border-style: solid;
66
66
  content: "";
67
- width: 0;
68
- height: 0;
69
67
  display: block;
70
- border-style: solid;
71
- border-color: $dropdown-button-pip-color transparent transparent transparent;
68
+ height: 0;
69
+ position: absolute;
72
70
  top: 50%;
71
+ width: 0;
73
72
  }
74
73
  }
75
74
 
@@ -122,9 +121,9 @@ $dropdown-button-pip-top-lrg: (-$button-pip-lrg / 2) + rem-calc(3) !default;
122
121
  @include exports("dropdown-button") {
123
122
  @if $include-html-button-classes {
124
123
  .dropdown.button, button.dropdown { @include dropdown-button;
125
- &.tiny { @include dropdown-button(tiny,$base-style:false); }
126
- &.small { @include dropdown-button(small,$base-style:false); }
127
- &.large { @include dropdown-button(large,$base-style:false); }
124
+ &.tiny { @include dropdown-button(tiny, $base-style:false); }
125
+ &.small { @include dropdown-button(small, $base-style:false); }
126
+ &.large { @include dropdown-button(large, $base-style:false); }
128
127
  &.secondary:after { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; }
129
128
  }
130
129
  }
@@ -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
@@ -64,60 +64,67 @@ $f-dropdown-radius: $global-radius !default;
64
64
  // $triangle - Sets if dropdown has triangle. Default:true.
65
65
  // $max-width - Default: $f-dropdown-max-width || 200px.
66
66
  @mixin dropdown-container($content:list, $triangle:true, $max-width:$f-dropdown-max-width) {
67
- position: absolute;
67
+ display: none;
68
68
  left: -9999px;
69
69
  list-style: $f-dropdown-list-style;
70
70
  margin-#{$default-float}: 0;
71
- outline: none;
71
+ position: absolute;
72
+
73
+ &.open {
74
+ display: block;
75
+ }
72
76
 
73
77
  > *:first-child { margin-top: 0; }
74
78
  > *:last-child { margin-bottom: 0; }
75
79
 
76
80
  @if $content == list {
77
- width: 100%;
78
- max-height: $f-dropdown-max-height;
79
- height: $f-dropdown-height;
80
81
  background: $f-dropdown-bg;
81
82
  border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
82
83
  font-size: $f-dropdown-font-size;
84
+ height: $f-dropdown-height;
85
+ max-height: $f-dropdown-max-height;
86
+ width: 100%;
83
87
  z-index: 89;
84
88
  }
85
89
  @else if $content == content {
86
- padding: $f-dropdown-content-padding;
87
- width: 100%;
88
- height: $f-dropdown-height;
89
- max-height: $f-dropdown-max-height;
90
90
  background: $f-dropdown-bg;
91
91
  border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
92
92
  font-size: $f-dropdown-font-size;
93
+ height: $f-dropdown-height;
94
+ max-height: $f-dropdown-max-height;
95
+ padding: $f-dropdown-content-padding;
96
+ width: 100%;
93
97
  z-index: 89;
94
98
  }
95
99
 
96
100
  @if $triangle == bottom {
97
101
  margin-top: $f-dropdown-margin-top;
98
102
 
99
- &:before {
100
- @include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, bottom);
101
- position: absolute;
102
- top: -($f-dropdown-triangle-size * 2);
103
- #{$default-float}: $f-dropdown-triangle-side-offset;
104
- z-index: 89;
105
- }
106
- &:after {
107
- @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom);
108
- position: absolute;
109
- top: -(($f-dropdown-triangle-size + 1) * 2);
110
- #{$default-float}: $f-dropdown-triangle-side-offset - 1;
111
- z-index: 88;
112
- }
103
+ @if $f-dropdown-triangle-size != 0px {
113
104
 
114
- &.right:before {
115
- #{$default-float}: auto;
116
- #{$opposite-direction}: $f-dropdown-triangle-side-offset;
117
- }
118
- &.right:after {
119
- #{$default-float}: auto;
120
- #{$opposite-direction}: $f-dropdown-triangle-side-offset - 1;
105
+ &:before {
106
+ @include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, bottom);
107
+ position: absolute;
108
+ top: -($f-dropdown-triangle-size * 2);
109
+ #{$default-float}: $f-dropdown-triangle-side-offset;
110
+ z-index: 89;
111
+ }
112
+ &:after {
113
+ @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom);
114
+ position: absolute;
115
+ top: -(($f-dropdown-triangle-size + 1) * 2);
116
+ #{$default-float}: $f-dropdown-triangle-side-offset - 1;
117
+ z-index: 88;
118
+ }
119
+
120
+ &.right:before {
121
+ #{$default-float}: auto;
122
+ #{$opposite-direction}: $f-dropdown-triangle-side-offset;
123
+ }
124
+ &.right:after {
125
+ #{$default-float}: auto;
126
+ #{$opposite-direction}: $f-dropdown-triangle-side-offset - 1;
127
+ }
121
128
  }
122
129
  }
123
130
 
@@ -166,23 +173,23 @@ $f-dropdown-radius: $global-radius !default;
166
173
  }
167
174
 
168
175
  @if $triangle == top {
169
- margin-top: -$f-dropdown-margin-bottom;
170
176
  margin-left: 0;
177
+ margin-top: -$f-dropdown-margin-bottom;
171
178
 
172
179
  &:before {
173
180
  @include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, top);
181
+ bottom: -($f-dropdown-triangle-size * 2);
174
182
  position: absolute;
175
183
  top: auto;
176
- bottom: -($f-dropdown-triangle-size * 2);
177
184
  #{$default-float}: $f-dropdown-triangle-side-offset;
178
185
  #{$opposite-direction}: auto;
179
186
  z-index: 89;
180
187
  }
181
188
  &:after {
182
189
  @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, top);
190
+ bottom: -($f-dropdown-triangle-size * 2) - 2;
183
191
  position: absolute;
184
192
  top: auto;
185
- bottom: -($f-dropdown-triangle-size * 2) - 2;
186
193
  #{$default-float}: $f-dropdown-triangle-side-offset - 1;
187
194
  #{$opposite-direction}: auto;
188
195
  z-index: 88;
@@ -200,9 +207,8 @@ $f-dropdown-radius: $global-radius !default;
200
207
  // We use this to style the list elements or content inside the dropdown.
201
208
 
202
209
  @mixin dropdown-style {
203
- font-size: $f-dropdown-font-size;
204
210
  cursor: $cursor-pointer-value;
205
-
211
+ font-size: $f-dropdown-font-size;
206
212
  line-height: $f-dropdown-line-height;
207
213
  margin: 0;
208
214
 
@@ -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
@@ -22,12 +22,12 @@ $flex-video-widescreen-padding-bottom: 56.34% !default;
22
22
  //
23
23
 
24
24
  @mixin flex-video-container {
25
- position: relative;
26
- padding-top: $flex-video-padding-top;
27
- padding-bottom: $flex-video-padding-bottom;
28
25
  height: 0;
29
26
  margin-bottom: $flex-video-margin-bottom;
30
27
  overflow: hidden;
28
+ padding-bottom: $flex-video-padding-bottom;
29
+ padding-top: $flex-video-padding-top;
30
+ position: relative;
31
31
 
32
32
  &.widescreen { padding-bottom: $flex-video-widescreen-padding-bottom; }
33
33
  &.vimeo { padding-top: 0; }
@@ -36,11 +36,11 @@ $flex-video-widescreen-padding-bottom: 56.34% !default;
36
36
  object,
37
37
  embed,
38
38
  video {
39
+ height: 100%;
39
40
  position: absolute;
40
41
  top: 0;
41
- #{$default-float}: 0;
42
42
  width: 100%;
43
- height: 100%;
43
+ #{$default-float}: 0;
44
44
  }
45
45
  }
46
46
 
@@ -48,4 +48,4 @@ $flex-video-widescreen-padding-bottom: 56.34% !default;
48
48
  @if $include-html-media-classes {
49
49
  .flex-video { @include flex-video-container; }
50
50
  }
51
- }
51
+ }
@@ -2,8 +2,8 @@
2
2
  // foundation.zurb.com
3
3
  // Licensed under MIT Open Source
4
4
 
5
- @import "global";
6
- @import "buttons";
5
+ @import 'global';
6
+ @import 'buttons';
7
7
 
8
8
  //
9
9
  // @variables
@@ -23,6 +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
27
  $input-font-size: rem-calc(14) !default;
27
28
  $input-bg-color: $white !default;
28
29
  $input-focus-bg-color: scale-color($white, $lightness: -2%) !default;
@@ -71,9 +72,13 @@ $input-error-message-bg-color: $alert-color !default;
71
72
  $input-error-message-font-color-alt: $oil !default;
72
73
 
73
74
  // We use this to style the glowing effect of inputs when focused
74
- $glowing-effect-fade-time: 0.45s !default;
75
+ $glowing-effect-fade-time: .45s !default;
75
76
  $glowing-effect-color: $input-focus-border-color !default;
76
77
 
78
+ // We use this to style the transition when inputs are focused and when the glowing effect is disabled.
79
+ $input-transition-fade-time: 0.15s !default;
80
+ $input-transition-fade-timing-function: linear !default;
81
+
77
82
  // Select variables
78
83
  $select-bg-color: $ghost !default;
79
84
  $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
@@ -111,7 +116,6 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
111
116
  // We use this mixin to give all basic form elements their style
112
117
  @mixin form-element {
113
118
  background-color: $input-bg-color;
114
- font-family: $input-font-family;
115
119
  border: {
116
120
  style: $input-border-style;
117
121
  width: $input-border-width;
@@ -120,10 +124,11 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
120
124
  box-shadow: $input-box-shadow;
121
125
  color: $input-font-color;
122
126
  display: block;
127
+ font-family: $input-font-family;
123
128
  font-size: $input-font-size;
129
+ height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
124
130
  margin: 0 0 $form-spacing 0;
125
131
  padding: $form-spacing / 2;
126
- height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
127
132
  width: 100%;
128
133
  @include box-sizing(border-box);
129
134
  @if $input-include-glowing-effect {
@@ -135,7 +140,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
135
140
  border-color: $input-focus-border-color;
136
141
  outline: none;
137
142
  }
138
- // Disbaled Styles
143
+ // Disabled Styles
139
144
  &:disabled {
140
145
  background-color: $input-disabled-bg;
141
146
  cursor: $input-disabled-cursor;
@@ -160,10 +165,10 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
160
165
 
161
166
  // Control whether or not the base styles come through.
162
167
  @if $base-style {
163
- font-size: $form-label-font-size;
164
168
  color: $form-label-font-color;
165
169
  cursor: $form-label-pointer;
166
170
  display: block;
171
+ font-size: $form-label-font-size;
167
172
  font-weight: $form-label-font-weight;
168
173
  line-height: $form-label-line-height;
169
174
  margin-bottom: $form-label-bottom-margin;
@@ -182,19 +187,19 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
182
187
 
183
188
  // We use this mixin to create postfix/prefix form Labels
184
189
  @mixin prefix-postfix-base {
185
- display: block;
186
- position: relative;
187
- z-index: 2;
188
- text-align: center;
189
- width: 100%;
190
- padding-top: 0;
191
- padding-bottom: 0;
192
190
  border-style: $input-prefix-border-type;
193
191
  border-width: $input-prefix-border-size;
194
- overflow: $input-prefix-overflow;
192
+ display: block;
195
193
  font-size: $form-label-font-size;
196
194
  height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
197
195
  line-height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
196
+ overflow: $input-prefix-overflow;
197
+ padding-bottom: 0;
198
+ padding-top: 0;
199
+ position: relative;
200
+ text-align: center;
201
+ width: 100%;
202
+ z-index: 2;
198
203
  }
199
204
 
200
205
  // @MIXIN
@@ -220,12 +225,12 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
220
225
  }
221
226
 
222
227
  @if $is-button {
228
+ border: none;
223
229
  padding-#{$default-float}: 0;
224
230
  padding-#{$opposite-direction}: 0;
225
- padding-top: 0;
226
231
  padding-bottom: 0;
232
+ padding-top: 0;
227
233
  text-align: center;
228
- border: none;
229
234
  }
230
235
 
231
236
  }
@@ -235,12 +240,14 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
235
240
  // We use this mixin to create postfix label styles
236
241
  // $bg - Default:$input-prefix-bg || scale-color($white, $lightness: -5%) !default;
237
242
  // $is-button - Toggle position settings if prefix is a button. Default: false
238
- @mixin postfix($bg:$input-prefix-bg, $border:$input-prefix-border-color, $is-button:false) {
243
+ @mixin postfix($bg:$input-prefix-bg, $border-left-hidden:false, $border:$input-prefix-border-color, $is-button:false) {
239
244
 
240
245
  @if $bg {
241
246
  $bg-lightness: lightness($bg);
242
247
  background: $bg;
243
- border-#{$default-float}: none;
248
+ @if $border-left-hidden {
249
+ border-#{$default-float}: none;
250
+ }
244
251
 
245
252
  // Control the font color based on background brightness
246
253
  @if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; }
@@ -252,12 +259,12 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
252
259
  }
253
260
 
254
261
  @if $is-button {
262
+ border: none;
255
263
  padding-#{$default-float}: 0;
256
264
  padding-#{$opposite-direction}: 0;
257
- padding-top: 0;
258
265
  padding-bottom: 0;
266
+ padding-top: 0;
259
267
  text-align: center;
260
- border: none;
261
268
  }
262
269
 
263
270
  }
@@ -265,16 +272,16 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
265
272
  // We use this mixin to style fieldsets
266
273
  @mixin fieldset {
267
274
  border: $fieldset-border-width $fieldset-border-style $fieldset-border-color;
268
- padding: $fieldset-padding;
269
275
  margin: $fieldset-margin;
276
+ padding: $fieldset-padding;
270
277
 
271
278
  // and legend styles
272
279
  legend {
273
- font-weight: $legend-font-weight;
274
280
  background: $legend-bg;
275
- padding: $legend-padding;
276
- margin: 0;
281
+ font-weight: $legend-font-weight;
277
282
  margin-#{$default-float}: rem-calc(-3);
283
+ margin: 0;
284
+ padding: $legend-padding;
278
285
  }
279
286
  }
280
287
 
@@ -283,8 +290,8 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
283
290
  // We use this mixin to control border and background color of error inputs
284
291
  // $color - Default: $alert-color (found in settings file)
285
292
  @mixin form-error-color($color:$alert-color) {
293
+ background-color: rgba($color, .1);
286
294
  border-color: $color;
287
- background-color: rgba($color, 0.1);
288
295
 
289
296
  // Go back to normal on focus
290
297
  &:focus {
@@ -305,12 +312,12 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
305
312
  // $bg - Default: $alert-color (Found in settings file)
306
313
  @mixin form-error-message($bg:$input-error-message-bg-color) {
307
314
  display: block;
308
- padding: $input-error-message-padding;
309
- margin-top: $input-error-message-top;
310
- margin-bottom: $form-spacing;
311
315
  font-size: $input-error-message-font-size;
312
- font-weight: $input-error-message-font-weight;
313
316
  font-style: $input-error-message-font-style;
317
+ font-weight: $input-error-message-font-weight;
318
+ margin-bottom: $form-spacing;
319
+ margin-top: $input-error-message-top;
320
+ padding: $input-error-message-padding;
314
321
 
315
322
  // We can control the text color based on the brightness of the background.
316
323
  $bg-lightness: lightness($bg);
@@ -322,8 +329,9 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
322
329
  // We use this mixin to style select elements
323
330
  @mixin form-select {
324
331
  -webkit-appearance: none !important;
325
- border-radius: 0;
332
+ -moz-appearance: none !important;
326
333
  background-color: $select-bg-color;
334
+ border-radius: 0;
327
335
 
328
336
  // Hide the dropdown arrow shown in newer IE versions
329
337
  &::-ms-expand {
@@ -343,11 +351,11 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
343
351
  width: $input-border-width;
344
352
  color: $input-border-color;
345
353
  }
346
- padding: ($form-spacing / 2);
347
- font-size: $input-font-size;
348
- font-family: $body-font-family;
349
354
  color: $input-font-color;
355
+ font-family: $input-font-family;
356
+ font-size: $input-font-size;
350
357
  line-height: normal;
358
+ padding: ($form-spacing / 2);
351
359
  @include radius(0);
352
360
  &.radius { @include radius($global-radius); }
353
361
  &:hover {
@@ -383,8 +391,8 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
383
391
 
384
392
  /* Label Styles */
385
393
  label { @include form-label;
386
- &.right { @include form-label(right,false); }
387
- &.inline { @include form-label(inline,false); }
394
+ &.right { @include form-label(right, false); }
395
+ &.inline { @include form-label(inline, false); }
388
396
  /* Styles for required inputs */
389
397
  small {
390
398
  text-transform: $form-label-small-transform;
@@ -397,8 +405,8 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
397
405
  .postfix { @include prefix-postfix-base; }
398
406
 
399
407
  /* Adjust padding, alignment and radius if pre/post element is a button */
400
- .postfix.button { @include button-size(false,false); @include postfix(false, false, true); }
401
- .prefix.button { @include button-size(false,false); @include prefix(false, false, true); }
408
+ .postfix.button { @include button-size(false, false); @include postfix(false, false, true); }
409
+ .prefix.button { @include button-size(false, false); @include prefix(false, false, true); }
402
410
 
403
411
  .prefix.button.radius { @include radius(0); @include side-radius($default-float, $button-radius); }
404
412
  .postfix.button.radius { @include radius(0); @include side-radius($opposite-direction, $button-radius); }
@@ -406,16 +414,21 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
406
414
  .postfix.button.round { @include radius(0); @include side-radius($opposite-direction, $button-round); }
407
415
 
408
416
  /* Separate prefix and postfix styles when on span or label so buttons keep their own */
409
- span.prefix,label.prefix { @include prefix(); }
410
- span.postfix,label.postfix { @include postfix(); }
417
+ span.prefix, label.prefix { @include prefix(); }
418
+ span.postfix, label.postfix { @include postfix(); }
411
419
 
412
420
  /* We use this to get basic styling on all basic form elements */
413
421
  #{text-inputs(all, 'input')} {
414
422
  -webkit-appearance: none;
423
+ -moz-appearance: none;
415
424
  border-radius: 0;
416
425
  @include form-element;
417
426
  @if $input-include-glowing-effect == false {
418
- @include single-transition(all, 0.15s, linear);
427
+ -webkit-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
428
+ -moz-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
429
+ -ms-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
430
+ -o-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
431
+ transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
419
432
  }
420
433
  &.radius {
421
434
  @include radius($input-border-radius);
@@ -457,6 +470,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
457
470
 
458
471
  input[type="submit"] {
459
472
  -webkit-appearance: none;
473
+ -moz-appearance: none;
460
474
  border-radius: 0;
461
475
  }
462
476
 
@@ -465,10 +479,28 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
465
479
  height: auto;
466
480
  }
467
481
 
468
- /* Not allow resize out of parent */
469
- textarea {
470
- max-width: 100%;
471
- }
482
+ /* Not allow resize out of parent */
483
+ textarea {
484
+ max-width: 100%;
485
+ }
486
+
487
+ // style placeholder text cross browser
488
+ ::-webkit-input-placeholder {
489
+ color: $input-placeholder-font-color;
490
+ }
491
+
492
+ :-moz-placeholder { /* Firefox 18- */
493
+ color: $input-placeholder-font-color;
494
+ }
495
+
496
+ ::-moz-placeholder { /* Firefox 19+ */
497
+ color: $input-placeholder-font-color;
498
+ }
499
+
500
+ :-ms-input-placeholder {
501
+ color: $input-placeholder-font-color;
502
+ }
503
+
472
504
 
473
505
  /* Add height value for select elements to match text input height */
474
506
  select {
@@ -551,14 +583,14 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
551
583
 
552
584
  > label {
553
585
  > small {
554
- color: scale-color($form-label-font-color, $lightness: 15%);
555
586
  background: transparent;
556
- padding: 0;
557
- text-transform: $form-label-small-transform;
558
- font-style: normal;
587
+ color: scale-color($form-label-font-color, $lightness: 15%);
588
+ display: inline;
559
589
  font-size: 60%;
590
+ font-style: normal;
560
591
  margin: 0;
561
- display: inline;
592
+ padding: 0;
593
+ text-transform: $form-label-small-transform;
562
594
  }
563
595
  }
564
596