zurb-foundation 4.3.1 → 4.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/Gemfile.lock +31 -2
  4. data/Gruntfile.js +54 -10
  5. data/LICENSE +2 -2
  6. data/README.md +11 -2
  7. data/Rakefile +9 -0
  8. data/docs/CHANGELOG.md +9 -0
  9. data/docs/Procfile +2 -2
  10. data/docs/components/abide.html.erb +30 -6
  11. data/docs/components/alert-boxes.html.erb +35 -10
  12. data/docs/components/block-grid.html.erb +1 -1
  13. data/docs/components/breadcrumbs.html.erb +4 -4
  14. data/docs/components/button-groups.html.erb +2 -2
  15. data/docs/components/buttons.html.erb +10 -10
  16. data/docs/components/clearing.html.erb +28 -2
  17. data/docs/components/custom-forms.html.erb +9 -1
  18. data/docs/components/dropdown-buttons.html.erb +36 -11
  19. data/docs/components/dropdown.html.erb +44 -13
  20. data/docs/components/flex-video.html.erb +3 -3
  21. data/docs/components/forms.html.erb +10 -10
  22. data/docs/components/global.html.erb +15 -20
  23. data/docs/components/grid.html.erb +24 -23
  24. data/docs/components/inline-lists.html.erb +3 -3
  25. data/docs/components/interchange.html.erb +28 -2
  26. data/docs/components/joyride.html.erb +34 -10
  27. data/docs/components/keystrokes.html.erb +3 -3
  28. data/docs/components/kitchen-sink.html.erb +1 -1
  29. data/docs/components/labels.html.erb +3 -3
  30. data/docs/components/magellan.html.erb +25 -2
  31. data/docs/components/orbit.html.erb +39 -9
  32. data/docs/components/pagination.html.erb +7 -7
  33. data/docs/components/panels.html.erb +3 -3
  34. data/docs/components/pricing-tables.html.erb +11 -11
  35. data/docs/components/progress-bars.html.erb +5 -5
  36. data/docs/components/reveal.html.erb +31 -8
  37. data/docs/components/section.html.erb +61 -37
  38. data/docs/components/side-nav.html.erb +4 -4
  39. data/docs/components/split-buttons.html.erb +37 -15
  40. data/docs/components/sub-nav.html.erb +10 -6
  41. data/docs/components/switch.html.erb +2 -2
  42. data/docs/components/tables.html.erb +7 -7
  43. data/docs/components/tooltips.html.erb +30 -6
  44. data/docs/components/top-bar.html.erb +101 -13
  45. data/docs/components/type.html.erb +16 -16
  46. data/docs/config.ru +18 -1
  47. data/docs/controller.rb +1 -1
  48. data/docs/css/_coderay.scss +2 -2
  49. data/docs/css/_footer.scss +7 -7
  50. data/docs/css/_offcanvas.scss +16 -16
  51. data/docs/css/docs.scss +1 -3
  52. data/docs/index.html.erb +29 -29
  53. data/docs/layout.html.erb +5 -5
  54. data/docs/media-queries.html.erb +3 -3
  55. data/docs/rails.html.erb +2 -1
  56. data/docs/sass.html.erb +188 -146
  57. data/docs/support.html.erb +2 -2
  58. data/foundation.gemspec +1 -0
  59. data/js/foundation/foundation.abide.js +5 -5
  60. data/js/foundation/foundation.alerts.js +9 -4
  61. data/js/foundation/foundation.clearing.js +2 -2
  62. data/js/foundation/foundation.dropdown.js +11 -5
  63. data/js/foundation/foundation.forms.js +51 -28
  64. data/js/foundation/foundation.joyride.js +7 -5
  65. data/js/foundation/foundation.js +25 -1
  66. data/js/foundation/foundation.magellan.js +3 -2
  67. data/js/foundation/foundation.orbit.js +78 -58
  68. data/js/foundation/foundation.placeholder.js +424 -177
  69. data/js/foundation/foundation.reveal.js +39 -16
  70. data/js/foundation/foundation.section.js +62 -32
  71. data/js/foundation/foundation.tooltips.js +3 -2
  72. data/js/foundation/foundation.topbar.js +139 -69
  73. data/lib/foundation/generators/templates/application.html.erb +2 -1
  74. data/lib/foundation/version.rb +1 -1
  75. data/lib/zurb-foundation.rb +12 -0
  76. data/package.json +4 -3
  77. data/scss/foundation/_variables.scss +183 -159
  78. data/scss/foundation/components/_alert-boxes.scss +8 -8
  79. data/scss/foundation/components/_block-grid.scss +1 -1
  80. data/scss/foundation/components/_breadcrumbs.scss +3 -3
  81. data/scss/foundation/components/_button-groups.scss +2 -2
  82. data/scss/foundation/components/_buttons.scss +20 -20
  83. data/scss/foundation/components/_custom-forms.scss +19 -14
  84. data/scss/foundation/components/_dropdown-buttons.scss +8 -8
  85. data/scss/foundation/components/_dropdown.scss +4 -4
  86. data/scss/foundation/components/_flex-video.scss +2 -2
  87. data/scss/foundation/components/_forms.scss +28 -18
  88. data/scss/foundation/components/_global.scss +43 -18
  89. data/scss/foundation/components/_grid-5.scss +4 -4
  90. data/scss/foundation/components/_grid.scss +6 -4
  91. data/scss/foundation/components/_inline-lists.scss +3 -3
  92. data/scss/foundation/components/_joyride.scss +10 -10
  93. data/scss/foundation/components/_keystrokes.scss +2 -2
  94. data/scss/foundation/components/_labels.scss +2 -2
  95. data/scss/foundation/components/_orbit.scss +58 -44
  96. data/scss/foundation/components/_pagination.scss +6 -6
  97. data/scss/foundation/components/_panels.scss +7 -4
  98. data/scss/foundation/components/_pricing-tables.scss +10 -10
  99. data/scss/foundation/components/_progress-bars.scss +3 -3
  100. data/scss/foundation/components/_reveal.scss +5 -5
  101. data/scss/foundation/components/_section.scss +21 -21
  102. data/scss/foundation/components/_side-nav.scss +3 -3
  103. data/scss/foundation/components/_split-buttons.scss +7 -7
  104. data/scss/foundation/components/_sub-nav.scss +26 -10
  105. data/scss/foundation/components/_switch.scss +15 -11
  106. data/scss/foundation/components/_tables.scss +6 -6
  107. data/scss/foundation/components/_thumbs.scss +2 -4
  108. data/scss/foundation/components/_tooltips.scss +4 -4
  109. data/scss/foundation/components/_top-bar.scss +77 -39
  110. data/scss/foundation/components/_type.scss +25 -23
  111. data/scss/foundation/components/_visibility.scss +28 -28
  112. data/scss/normalize.scss +22 -14
  113. data/spec/js/SectionSpec.js +39 -0
  114. data/spec/js/helpers/SectionSpecHelper.js +22 -0
  115. data/spec/js/helpers/SpecHelper.js +19 -0
  116. metadata +32 -25
  117. data/.rbenv-version +0 -1
@@ -4,14 +4,14 @@
4
4
  $include-html-alert-classes: $include-html-classes !default;
5
5
 
6
6
  // We use this to control alert padding.
7
- $alert-padding-top: emCalc(11) !default;
7
+ $alert-padding-top: em-calc(11) !default;
8
8
  $alert-padding-default-float: $alert-padding-top !default;
9
- $alert-padding-opposite-direction: $alert-padding-top + emCalc(10) !default;
10
- $alert-padding-bottom: $alert-padding-top + emCalc(1) !default;
9
+ $alert-padding-opposite-direction: $alert-padding-top + em-calc(10) !default;
10
+ $alert-padding-bottom: $alert-padding-top + em-calc(1) !default;
11
11
 
12
12
  // We use these to control text style.
13
13
  $alert-font-weight: bold !default;
14
- $alert-font-size: emCalc(14) !default;
14
+ $alert-font-size: em-calc(14) !default;
15
15
  $alert-font-color: #fff !default;
16
16
  $alert-font-color-alt: darken($secondary-color, 60%) !default;
17
17
 
@@ -22,12 +22,12 @@ $alert-function-factor: 10% !default;
22
22
  $alert-border-style: solid !default;
23
23
  $alert-border-width: 1px !default;
24
24
  $alert-border-color: darken($primary-color, $alert-function-factor) !default;
25
- $alert-bottom-margin: emCalc(20) !default;
25
+ $alert-bottom-margin: em-calc(20) !default;
26
26
 
27
27
  // We use these to style the close buttons
28
28
  $alert-close-color: #333 !default;
29
- $alert-close-position: emCalc(5) !default;
30
- $alert-close-font-size: emCalc(22) !default;
29
+ $alert-close-position: em-calc(5) !default;
30
+ $alert-close-font-size: em-calc(22) !default;
31
31
  $alert-close-opacity: 0.3 !default;
32
32
  $alert-close-opacity-hover: 0.5 !default;
33
33
  $alert-close-padding: 5px 4px 4px !default;
@@ -73,7 +73,7 @@ $alert-radius: $global-radius !default;
73
73
  padding: $alert-close-padding;
74
74
  line-height: 0;
75
75
  position: absolute;
76
- top: $alert-close-position + emCalc(2);
76
+ top: $alert-close-position + em-calc(2);
77
77
  #{$opposite-direction}: $alert-close-position;
78
78
  color: $alert-close-color;
79
79
  opacity: $alert-close-opacity;
@@ -5,7 +5,7 @@ $include-html-grid-classes: $include-html-classes !default;
5
5
 
6
6
  // We use this to control the maximum number of block grid elements per row
7
7
  $block-grid-elements: 12 !default;
8
- $block-grid-default-spacing: emCalc(20) !default;
8
+ $block-grid-default-spacing: em-calc(20) !default;
9
9
 
10
10
  // Enables media queries for block-grid classes. Set to false if writing semantic HTML.
11
11
  $block-grid-media-queries: true !default;
@@ -7,8 +7,8 @@ $include-html-nav-classes: $include-html-classes !default;
7
7
  $crumb-bg: lighten($secondary-color, 5%) !default;
8
8
 
9
9
  // We use these to set the padding around the breadcrumbs.
10
- $crumb-padding: emCalc(9, 14, 9) !default;
11
- $crumb-side-padding: emCalc(12) !default;
10
+ $crumb-padding: em-calc(9 14 9) !default;
11
+ $crumb-side-padding: em-calc(12) !default;
12
12
 
13
13
  // We use these to control border styles.
14
14
  $crumb-function-factor: 10% !default;
@@ -18,7 +18,7 @@ $crumb-border-color: darken($crumb-bg, $crumb-function-factor) !default;
18
18
  $crumb-radius: $global-radius !default;
19
19
 
20
20
  // We use these to set various text styles for breadcrumbs.
21
- $crumb-font-size: emCalc(11) !default;
21
+ $crumb-font-size: em-calc(11) !default;
22
22
  $crumb-font-color: $primary-color !default;
23
23
  $crumb-font-color-current: #333 !default;
24
24
  $crumb-font-color-unavailable: #999 !default;
@@ -4,7 +4,7 @@
4
4
  $include-html-button-classes: $include-html-classes !default;
5
5
 
6
6
  // Sets the margin for the right side by default, and the left margin if right-to-left direction is used
7
- $button-bar-margin-opposite: emCalc(10) !default;
7
+ $button-bar-margin-opposite: em-calc(10) !default;
8
8
 
9
9
  //
10
10
  // Button Group Mixins
@@ -29,7 +29,7 @@ $button-bar-margin-opposite: emCalc(10) !default;
29
29
 
30
30
  // We use this to control the flow, or remove those styles completely.
31
31
  @if $float {
32
- margin: 0 0 0 -1px;
32
+ margin: 0 0 0 (-$button-border-width);
33
33
  float: $float;
34
34
  // Make sure the first child doesn't get the negative margin.
35
35
  &:first-child { margin-#{$default-float}: 0; }
@@ -4,23 +4,23 @@
4
4
  $include-html-button-classes: $include-html-classes !default;
5
5
 
6
6
  // We use these to build padding for buttons.
7
- $button-med: emCalc(12) !default;
8
- $button-tny: emCalc(7) !default;
9
- $button-sml: emCalc(9) !default;
10
- $button-lrg: emCalc(16) !default;
7
+ $button-med: em-calc(12) !default;
8
+ $button-tny: em-calc(7) !default;
9
+ $button-sml: em-calc(9) !default;
10
+ $button-lrg: em-calc(16) !default;
11
11
 
12
12
  // We use this to control the display property.
13
13
  $button-display: inline-block !default;
14
- $button-margin-bottom: emCalc(20) !default;
14
+ $button-margin-bottom: em-calc(20) !default;
15
15
 
16
16
  // We use these to control button text styles.
17
17
  $button-font-family: inherit !default;
18
18
  $button-font-color: #fff !default;
19
19
  $button-font-color-alt: #333 !default;
20
- $button-font-med: emCalc(16) !default;
21
- $button-font-tny: emCalc(11) !default;
22
- $button-font-sml: emCalc(13) !default;
23
- $button-font-lrg: emCalc(20) !default;
20
+ $button-font-med: em-calc(16) !default;
21
+ $button-font-tny: em-calc(11) !default;
22
+ $button-font-sml: em-calc(13) !default;
23
+ $button-font-lrg: em-calc(20) !default;
24
24
  $button-font-weight: bold !default;
25
25
  $button-font-align: center !default;
26
26
 
@@ -51,7 +51,7 @@ $button-disabled-opacity: 0.6 !default;
51
51
  cursor: $cursor-pointer-value;
52
52
  font-family: $button-font-family;
53
53
  font-weight: $button-font-weight;
54
- line-height: 1;
54
+ line-height: normal;
55
55
  margin: 0 0 $button-margin-bottom;
56
56
  position: relative;
57
57
  text-decoration: none;
@@ -68,7 +68,7 @@ $button-disabled-opacity: 0.6 !default;
68
68
  @if $padding {
69
69
  padding-top: $padding;
70
70
  padding-#{$opposite-direction}: $padding * 2;
71
- padding-bottom: $padding + emCalc(1);
71
+ padding-bottom: $padding + em-calc(1);
72
72
  padding-#{$default-float}: $padding * 2;
73
73
 
74
74
  // We control the font-size based on mixin input.
@@ -76,7 +76,7 @@ $button-disabled-opacity: 0.6 !default;
76
76
  @else if $padding == $button-tny { font-size: $button-font-tny; }
77
77
  @else if $padding == $button-sml { font-size: $button-font-sml; }
78
78
  @else if $padding == $button-lrg { font-size: $button-font-lrg; }
79
- @else { font-size: $padding - emCalc(2); }
79
+ @else { font-size: $padding - em-calc(2); }
80
80
  }
81
81
 
82
82
  // We can set $full-width:true to remove side padding extend width.
@@ -84,24 +84,24 @@ $button-disabled-opacity: 0.6 !default;
84
84
  // We still need to check if $padding is set.
85
85
  @if $padding {
86
86
  padding-top: $padding;
87
- padding-bottom: $padding + emCalc(1);
87
+ padding-bottom: $padding + em-calc(1);
88
88
  } @else if $padding == false {
89
89
  padding-top:0;
90
90
  padding-bottom:0;
91
91
  }
92
- padding-right: 0px;
93
- padding-left: 0px;
92
+ padding-right: 0;
93
+ padding-left: 0;
94
94
  width: 100%;
95
95
  }
96
96
 
97
97
  // <input>'s and <button>'s take on strange padding. We added this to help fix that.
98
98
  @if $is-input == $button-lrg {
99
- padding-top: $is-input + emCalc(.5);
100
- padding-bottom: $is-input + emCalc(.5);
99
+ padding-top: $is-input + em-calc(.5);
100
+ padding-bottom: $is-input + em-calc(.5);
101
101
  -webkit-appearance: none;
102
102
  }
103
103
  @else if $is-input {
104
- padding-top: $is-input + emCalc(1);
104
+ padding-top: $is-input + em-calc(1);
105
105
  padding-bottom: $is-input;
106
106
  -webkit-appearance: none;
107
107
  }
@@ -182,8 +182,8 @@ $button-disabled-opacity: 0.6 !default;
182
182
  &.tiny { @include button-size($padding:$button-tny); }
183
183
  &.expand { @include button-size($padding:null,$full-width:true); }
184
184
 
185
- &.left-align { text-align: left; text-indent: emCalc(12); }
186
- &.right-align { text-align: right; padding-right: emCalc(12); }
185
+ &.left-align { text-align: left; text-indent: em-calc(12); }
186
+ &.right-align { text-align: right; padding-right: em-calc(12); }
187
187
 
188
188
  &.disabled, &[disabled] { @include button-style($bg:$primary-color, $disabled:true);
189
189
  &.secondary { @include button-style($bg:$secondary-color, $disabled:true); }
@@ -12,7 +12,7 @@ $custom-form-input-size: 16px !default;
12
12
  $custom-form-check-color: #222 !default;
13
13
  $custom-form-check-size: 16px !default;
14
14
  $custom-form-radio-size: 8px !default;
15
- $custom-form-checkbox-radius: 0px !default;
15
+ $custom-form-checkbox-radius: 0 !default;
16
16
 
17
17
  // We use these to style the custom select form element.
18
18
  $custom-select-bg: #fff !default;
@@ -20,8 +20,8 @@ $custom-select-fade-to-color: #f3f3f3 !default;
20
20
  $custom-select-border-color: #ddd !default;
21
21
  $custom-select-triangle-color: #aaa !default;
22
22
  $custom-select-triangle-color-open: #222 !default;
23
- $custom-select-height: emCalc(13) + ($form-spacing * 1.5) !default;
24
- $custom-select-margin-bottom: emCalc(20) !default;
23
+ $custom-select-height: em-calc(13) + ($form-spacing * 1.5) !default;
24
+ $custom-select-margin-bottom: em-calc(20) !default;
25
25
  $custom-select-font-color-selected: #141414 !default;
26
26
  $custom-select-disabled-color: #888 !default;
27
27
 
@@ -32,15 +32,15 @@ $custom-dropdown-border-color: darken(#fff, 20%) !default;
32
32
  $custom-dropdown-border-width: 1px !default;
33
33
  $custom-dropdown-border-style: solid !default;
34
34
  $custom-dropdown-font-color: #555 !default;
35
- $custom-dropdown-font-size: emCalc(14) !default;
35
+ $custom-dropdown-font-size: em-calc(14) !default;
36
36
  $custom-dropdown-color-selected: #eeeeee !default;
37
37
  $custom-dropdown-font-color-selected: #000 !default;
38
- $custom-dropdown-shadow: 0 2px 2px 0px rgba(0,0,0,0.1) !default;
38
+ $custom-dropdown-shadow: 0 2px 2px 0 rgba(0,0,0,0.1) !default;
39
39
  $custom-dropdown-offset-top: auto !default;
40
- $custom-dropdown-list-padding: emCalc(4) !default;
41
- $custom-dropdown-default-float-padding: emCalc(6) !default;
42
- $custom-dropdown-opposite-padding: emCalc(38) !default;
43
- $custom-dropdown-list-item-min-height: emCalc(24) !default;
40
+ $custom-dropdown-list-padding: em-calc(4) !default;
41
+ $custom-dropdown-default-float-padding: em-calc(6) !default;
42
+ $custom-dropdown-opposite-padding: em-calc(38) !default;
43
+ $custom-dropdown-list-item-min-height: em-calc(24) !default;
44
44
  $custom-dropdown-width-small: 134px !default;
45
45
  $custom-dropdown-width-medium: 254px !default;
46
46
  $custom-dropdown-width-large: 434px !default;
@@ -50,7 +50,12 @@ $custom-dropdown-width-large: 434px !default;
50
50
  // We may look at updating this in the future.
51
51
  @mixin custom-form-input($radius:0px, $mark-size:0px) {
52
52
  @include radius($radius);
53
- padding: (($custom-form-input-size - $mark-size) / 2) - $custom-form-border-size;
53
+ $custom-form-input-padding: (($custom-form-input-size - $mark-size) / 2) - $custom-form-border-size;
54
+ @if $custom-form-input-padding >= 0 {
55
+ padding: $custom-form-input-padding;
56
+ } @else {
57
+ padding: 0;
58
+ }
54
59
  }
55
60
 
56
61
  // Only include these classes if the variable is true, otherwise they'll be left out.
@@ -126,8 +131,8 @@ $custom-dropdown-width-large: 434px !default;
126
131
  top: 0;
127
132
  height: $custom-select-height;
128
133
  margin-bottom: $custom-select-margin-bottom;
129
- margin-top: 0px;
130
- padding: 0px;
134
+ margin-top: 0;
135
+ padding: 0;
131
136
  width: 100%;
132
137
  background: $custom-dropdown-bg;
133
138
  @if $experimental {
@@ -148,7 +153,7 @@ $custom-dropdown-width-large: 434px !default;
148
153
  .current {
149
154
  cursor:default;
150
155
  white-space: nowrap;
151
- line-height: $custom-select-height - emCalc(1);
156
+ line-height: $custom-select-height - em-calc(1);
152
157
  color: $input-font-color;
153
158
  text-decoration: none;
154
159
  overflow: hidden;
@@ -170,7 +175,7 @@ $custom-dropdown-width-large: 434px !default;
170
175
  display: block;
171
176
  @include css-triangle(5px, $custom-select-triangle-color, top);
172
177
  position: absolute;
173
- #{$default-float}: ($form-spacing * 2.5) / 2 - emCalc(5);
178
+ #{$default-float}: ($form-spacing * 2.5) / 2 - em-calc(5);
174
179
  top: 50%;
175
180
  margin-top: -3px;
176
181
  }
@@ -11,25 +11,25 @@ $dropdown-button-pip-color-alt: #333 !default;
11
11
  $dropdown-button-padding-tny: $button-tny * 5 !default;
12
12
  $dropdown-button-pip-size-tny: $button-tny !default;
13
13
  $dropdown-button-pip-opposite-tny: $button-tny * 2 !default;
14
- $dropdown-button-pip-top-tny: -$button-tny / 2 + emCalc(1) !default;
14
+ $dropdown-button-pip-top-tny: -$button-tny / 2 + em-calc(1) !default;
15
15
 
16
16
  // We use these to style small dropdown buttons
17
17
  $dropdown-button-padding-sml: $button-sml * 5 !default;
18
18
  $dropdown-button-pip-size-sml: $button-sml !default;
19
19
  $dropdown-button-pip-opposite-sml: $button-sml * 2 !default;
20
- $dropdown-button-pip-top-sml: -$button-sml / 2 + emCalc(1) !default;
20
+ $dropdown-button-pip-top-sml: -$button-sml / 2 + em-calc(1) !default;
21
21
 
22
22
  // We use these to style medium dropdown buttons
23
- $dropdown-button-padding-med: $button-med * 4 + emCalc(3) !default;
24
- $dropdown-button-pip-size-med: $button-med - emCalc(3) !default;
23
+ $dropdown-button-padding-med: $button-med * 4 + em-calc(3) !default;
24
+ $dropdown-button-pip-size-med: $button-med - em-calc(3) !default;
25
25
  $dropdown-button-pip-opposite-med: $button-med * 2 !default;
26
- $dropdown-button-pip-top-med: -$button-med / 2 + emCalc(2) !default;
26
+ $dropdown-button-pip-top-med: -$button-med / 2 + em-calc(2) !default;
27
27
 
28
28
  // We use these to style large dropdown buttons
29
29
  $dropdown-button-padding-lrg: $button-lrg * 4 !default;
30
- $dropdown-button-pip-size-lrg: $button-lrg - emCalc(6) !default;
31
- $dropdown-button-pip-opposite-lrg: $button-lrg + emCalc(12) !default;
32
- $dropdown-button-pip-top-lrg: -$button-lrg / 2 + emCalc(3) !default;
30
+ $dropdown-button-pip-size-lrg: $button-lrg - em-calc(6) !default;
31
+ $dropdown-button-pip-opposite-lrg: $button-lrg + em-calc(12) !default;
32
+ $dropdown-button-pip-top-lrg: -$button-lrg / 2 + em-calc(3) !default;
33
33
 
34
34
  //
35
35
  // Dropdown Button Mixin
@@ -25,14 +25,14 @@ $f-dropdown-triangle-side-offset: 10px !default;
25
25
  // We use these to control styles for the list elements.
26
26
  $f-dropdown-list-style: none !default;
27
27
  $f-dropdown-font-color: #555 !default;
28
- $f-dropdown-font-size: emCalc(14) !default;
29
- $f-dropdown-list-padding: emCalc(5, 10) !default;
30
- $f-dropdown-line-height: emCalc(18) !default;
28
+ $f-dropdown-font-size: em-calc(14) !default;
29
+ $f-dropdown-list-padding: em-calc(5, 10) !default;
30
+ $f-dropdown-line-height: em-calc(18) !default;
31
31
  $f-dropdown-list-hover-bg: #eeeeee !default;
32
32
  $dropdown-mobile-default-float: 0 !default;
33
33
 
34
34
  // We use this to control the styles for when the dropdown has custom content.
35
- $f-dropdown-content-padding: emCalc(20) !default;
35
+ $f-dropdown-content-padding: em-calc(20) !default;
36
36
 
37
37
  //
38
38
  // Dropdown Mixins
@@ -4,9 +4,9 @@
4
4
  $include-html-media-classes: $include-html-classes !default;
5
5
 
6
6
  // We use these to control video container padding and margins
7
- $flex-video-padding-top: emCalc(25) !default;
7
+ $flex-video-padding-top: em-calc(25) !default;
8
8
  $flex-video-padding-bottom: 67.5% !default;
9
- $flex-video-margin-bottom: emCalc(16) !default;
9
+ $flex-video-margin-bottom: em-calc(16) !default;
10
10
 
11
11
  // We use this to control widescreen bottom padding
12
12
  $flex-video-widescreen-padding-bottom: 57.25% !default;
@@ -4,17 +4,17 @@
4
4
  $include-html-form-classes: $include-html-classes !default;
5
5
 
6
6
  // We use this to set the base for lots of form spacing and positioning styles
7
- $form-spacing: emCalc(16) !default;
7
+ $form-spacing: em-calc(16) !default;
8
8
 
9
9
  // We use these to style the labels in different ways
10
10
  $form-label-pointer: pointer !default;
11
- $form-label-font-size: emCalc(14) !default;
11
+ $form-label-font-size: em-calc(14) !default;
12
12
  $form-label-font-weight: 500 !default;
13
13
  $form-label-font-color: lighten(#000, 30%) !default;
14
- $form-label-bottom-margin: emCalc(3) !default;
14
+ $form-label-bottom-margin: em-calc(3) !default;
15
15
  $input-font-family: inherit !default;
16
16
  $input-font-color: rgba(0,0,0,0.75) !default;
17
- $input-font-size: emCalc(14) !default;
17
+ $input-font-size: em-calc(14) !default;
18
18
  $input-bg-color: #fff !default;
19
19
  $input-focus-bg-color: darken(#fff, 2%) !default;
20
20
  $input-border-color: darken(#fff, 20%) !default;
@@ -29,13 +29,13 @@ $input-include-glowing-effect: true !default;
29
29
  $fieldset-border-style: solid !default;
30
30
  $fieldset-border-width: 1px !default;
31
31
  $fieldset-border-color: #ddd !default;
32
- $fieldset-padding: emCalc(20) !default;
33
- $fieldset-margin: emCalc(18, 0) !default;
32
+ $fieldset-padding: em-calc(20) !default;
33
+ $fieldset-margin: em-calc(18 0) !default;
34
34
 
35
35
  // We use these to style the legends when you use them
36
36
  $legend-bg: #fff !default;
37
37
  $legend-font-weight: bold !default;
38
- $legend-padding: emCalc(0, 3) !default;
38
+ $legend-padding: em-calc(0 3) !default;
39
39
 
40
40
  // We use these to style the prefix and postfix input elements
41
41
  $input-prefix-bg: darken(#fff, 5%) !default;
@@ -47,9 +47,9 @@ $input-prefix-font-color: #333 !default;
47
47
  $input-prefix-font-color-alt: #fff !default;
48
48
 
49
49
  // We use these to style the error states for inputs and labels
50
- $input-error-message-padding: emCalc(6, 4) !default;
51
- $input-error-message-top: -($form-spacing) - emCalc(5) !default;
52
- $input-error-message-font-size: emCalc(12) !default;
50
+ $input-error-message-padding: em-calc(6 4) !default;
51
+ $input-error-message-top: 0;
52
+ $input-error-message-font-size: em-calc(12) !default;
53
53
  $input-error-message-font-weight: bold !default;
54
54
  $input-error-message-font-color: #fff !default;
55
55
  $input-error-message-font-color-alt: #333 !default;
@@ -74,6 +74,12 @@ $glowing-effect-color: $input-focus-border-color !default;
74
74
 
75
75
  .column,
76
76
  .columns { padding: 0; }
77
+ input {
78
+ -moz-border-radius-bottom#{$opposite-direction}: 0;
79
+ -moz-border-radius-top#{$opposite-direction}: 0;
80
+ -webkit-border-bottom-#{$opposite-direction}-radius: 0;
81
+ -webkit-border-top-#{$opposite-direction}-radius: 0;
82
+ }
77
83
 
78
84
  }
79
85
  }
@@ -97,7 +103,7 @@ $glowing-effect-color: $input-focus-border-color !default;
97
103
  font-size: $input-font-size;
98
104
  margin: 0 0 $form-spacing 0;
99
105
  padding: $form-spacing / 2;
100
- height: ($input-font-size + ($form-spacing * 1.5) - emCalc(1));
106
+ height: ($input-font-size + ($form-spacing * 1.5) - em-calc(1));
101
107
  width: 100%;
102
108
  @include box-sizing(border-box);
103
109
  @if $input-include-glowing-effect {
@@ -134,7 +140,7 @@ $glowing-effect-color: $input-focus-border-color !default;
134
140
  }
135
141
  @else if $alignment == inline {
136
142
  margin: 0 0 $form-spacing 0;
137
- padding: $form-spacing / 2 + emCalc($input-border-width * 2) 0;
143
+ padding: $form-spacing / 2 + em-calc($input-border-width * 2) 0;
138
144
  }
139
145
  }
140
146
 
@@ -151,8 +157,8 @@ $glowing-effect-color: $input-focus-border-color !default;
151
157
  border-width: $input-prefix-border-size;
152
158
  overflow: $input-prefix-overflow;
153
159
  font-size: $form-label-font-size;
154
- height: ($form-label-font-size + ($form-spacing * 1.5) - emCalc(1));
155
- line-height: ($form-label-font-size + ($form-spacing * 1.5) - emCalc(1));
160
+ height: ($form-label-font-size + ($form-spacing * 1.5) - em-calc(1));
161
+ line-height: ($form-label-font-size + ($form-spacing * 1.5) - em-calc(1));
156
162
  }
157
163
 
158
164
  // We use this mixin to create prefix label styles
@@ -175,7 +181,7 @@ $glowing-effect-color: $input-focus-border-color !default;
175
181
  padding-top: 0;
176
182
  padding-bottom: 0;
177
183
  text-align: center;
178
- line-height: emCalc(34);
184
+ line-height: em-calc(34);
179
185
  }
180
186
 
181
187
  }
@@ -200,7 +206,7 @@ $glowing-effect-color: $input-focus-border-color !default;
200
206
  padding-top: 0;
201
207
  padding-bottom: 0;
202
208
  text-align: center;
203
- line-height: emCalc(34);
209
+ line-height: em-calc(34);
204
210
  }
205
211
 
206
212
  }
@@ -217,7 +223,7 @@ $glowing-effect-color: $input-focus-border-color !default;
217
223
  background: $legend-bg;
218
224
  padding: $legend-padding;
219
225
  margin: 0;
220
- margin-#{$default-float}: emCalc(-3);
226
+ margin-#{$default-float}: em-calc(-3);
221
227
  }
222
228
  }
223
229
 
@@ -327,6 +333,9 @@ $glowing-effect-color: $input-focus-border-color !default;
327
333
  input[type="time"],
328
334
  input[type="url"],
329
335
  textarea {
336
+ -webkit-appearance: none;
337
+ -webkit-border-radius: 0;
338
+ border-radius: 0;
330
339
  @include form-element;
331
340
  @if not $input-include-glowing-effect {
332
341
  @include single-transition(all, 0.15s, linear);
@@ -356,7 +365,6 @@ $glowing-effect-color: $input-focus-border-color !default;
356
365
  [data-abide] {
357
366
  .error small.error, span.error, small.error {
358
367
  @include form-error-message;
359
- margin-top: 0;
360
368
  }
361
369
  span.error, small.error { display: none; }
362
370
  }
@@ -376,6 +384,7 @@ $glowing-effect-color: $input-focus-border-color !default;
376
384
  @include form-label-error-color;
377
385
  }
378
386
 
387
+ > small,
379
388
  small.error {
380
389
  @include form-error-message;
381
390
  }
@@ -388,6 +397,7 @@ $glowing-effect-color: $input-focus-border-color !default;
388
397
  input.error,
389
398
  textarea.error {
390
399
  @include form-error-color;
400
+ margin-bottom: 0;
391
401
  }
392
402
 
393
403
  .error select {