foundation-rails 5.0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +29 -0
  6. data/Rakefile +1 -0
  7. data/app/controllers/foundation/rails/styleguide_controller.rb +10 -0
  8. data/app/views/foundation/rails/styleguide/show.html.erb +134 -0
  9. data/config/routes.rb +3 -0
  10. data/foundation-rails.gemspec +25 -0
  11. data/lib/foundation-rails.rb +1 -0
  12. data/lib/foundation/rails.rb +3 -0
  13. data/lib/foundation/rails/engine.rb +7 -0
  14. data/lib/foundation/rails/generators/install_generator.rb +56 -0
  15. data/lib/foundation/rails/templates/application.html.erb +19 -0
  16. data/lib/foundation/rails/templates/application.html.haml +18 -0
  17. data/lib/foundation/rails/templates/application.html.slim +17 -0
  18. data/lib/foundation/rails/version.rb +5 -0
  19. data/test/dummy/.gitignore +16 -0
  20. data/test/dummy/Gemfile +47 -0
  21. data/test/dummy/README.rdoc +28 -0
  22. data/test/dummy/Rakefile +6 -0
  23. data/test/dummy/app/assets/images/.keep +0 -0
  24. data/test/dummy/app/assets/javascripts/application.js +8 -0
  25. data/test/dummy/app/assets/stylesheets/application.css +4 -0
  26. data/test/dummy/app/assets/stylesheets/foundation_and_overrides.scss +4 -0
  27. data/test/dummy/app/controllers/application_controller.rb +5 -0
  28. data/test/dummy/app/controllers/concerns/.keep +0 -0
  29. data/test/dummy/app/controllers/styleguide_controller.rb +4 -0
  30. data/test/dummy/app/helpers/application_helper.rb +2 -0
  31. data/test/dummy/app/helpers/styleguide_helper.rb +2 -0
  32. data/test/dummy/app/mailers/.keep +0 -0
  33. data/test/dummy/app/models/.keep +0 -0
  34. data/test/dummy/app/models/concerns/.keep +0 -0
  35. data/test/dummy/app/views/layouts/application.html.erb +19 -0
  36. data/test/dummy/app/views/styleguide/show.html.erb +109 -0
  37. data/test/dummy/bin/bundle +3 -0
  38. data/test/dummy/bin/rails +4 -0
  39. data/test/dummy/bin/rake +4 -0
  40. data/test/dummy/config.ru +4 -0
  41. data/test/dummy/config/application.rb +23 -0
  42. data/test/dummy/config/boot.rb +4 -0
  43. data/test/dummy/config/database.yml +25 -0
  44. data/test/dummy/config/environment.rb +5 -0
  45. data/test/dummy/config/environments/development.rb +29 -0
  46. data/test/dummy/config/environments/production.rb +80 -0
  47. data/test/dummy/config/environments/test.rb +36 -0
  48. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  49. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  50. data/test/dummy/config/initializers/inflections.rb +16 -0
  51. data/test/dummy/config/initializers/mime_types.rb +5 -0
  52. data/test/dummy/config/initializers/secret_token.rb +12 -0
  53. data/test/dummy/config/initializers/session_store.rb +3 -0
  54. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  55. data/test/dummy/config/locales/en.yml +23 -0
  56. data/test/dummy/config/routes.rb +3 -0
  57. data/test/dummy/db/seeds.rb +7 -0
  58. data/test/dummy/lib/assets/.keep +0 -0
  59. data/test/dummy/lib/tasks/.keep +0 -0
  60. data/test/dummy/log/.keep +0 -0
  61. data/test/dummy/public/404.html +58 -0
  62. data/test/dummy/public/422.html +58 -0
  63. data/test/dummy/public/500.html +57 -0
  64. data/test/dummy/public/favicon.ico +0 -0
  65. data/test/dummy/public/robots.txt +5 -0
  66. data/test/dummy/test/controllers/.keep +0 -0
  67. data/test/dummy/test/controllers/styleguide_controller_test.rb +9 -0
  68. data/test/dummy/test/fixtures/.keep +0 -0
  69. data/test/dummy/test/helpers/.keep +0 -0
  70. data/test/dummy/test/helpers/styleguide_helper_test.rb +4 -0
  71. data/test/dummy/test/integration/.keep +0 -0
  72. data/test/dummy/test/mailers/.keep +0 -0
  73. data/test/dummy/test/models/.keep +0 -0
  74. data/test/dummy/test/test_helper.rb +15 -0
  75. data/test/dummy/vendor/assets/javascripts/.keep +0 -0
  76. data/test/dummy/vendor/assets/stylesheets/.keep +0 -0
  77. data/vendor/_settings.scss +992 -0
  78. data/vendor/assets/javascripts/foundation.js +15 -0
  79. data/vendor/assets/javascripts/foundation/foundation.abide.js +201 -0
  80. data/vendor/assets/javascripts/foundation/foundation.accordion.js +41 -0
  81. data/vendor/assets/javascripts/foundation/foundation.alert.js +34 -0
  82. data/vendor/assets/javascripts/foundation/foundation.clearing.js +450 -0
  83. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +184 -0
  84. data/vendor/assets/javascripts/foundation/foundation.interchange.js +304 -0
  85. data/vendor/assets/javascripts/foundation/foundation.joyride.js +839 -0
  86. data/vendor/assets/javascripts/foundation/foundation.js +416 -0
  87. data/vendor/assets/javascripts/foundation/foundation.magellan.js +118 -0
  88. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +37 -0
  89. data/vendor/assets/javascripts/foundation/foundation.orbit.js +434 -0
  90. data/vendor/assets/javascripts/foundation/foundation.reveal.js +347 -0
  91. data/vendor/assets/javascripts/foundation/foundation.tab.js +37 -0
  92. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +202 -0
  93. data/vendor/assets/javascripts/foundation/foundation.topbar.js +380 -0
  94. data/vendor/assets/javascripts/vendor/modernizr.js +4 -0
  95. data/vendor/assets/stylesheets/foundation.scss +38 -0
  96. data/vendor/assets/stylesheets/foundation/_functions.scss +75 -0
  97. data/vendor/assets/stylesheets/foundation/_settings.scss +992 -0
  98. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +49 -0
  99. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +113 -0
  100. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +83 -0
  101. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +123 -0
  102. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +97 -0
  103. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +234 -0
  104. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +233 -0
  105. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +125 -0
  106. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +159 -0
  107. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +47 -0
  108. data/vendor/assets/stylesheets/foundation/components/_forms.scss +472 -0
  109. data/vendor/assets/stylesheets/foundation/components/_functions.scss +70 -0
  110. data/vendor/assets/stylesheets/foundation/components/_global.scss +387 -0
  111. data/vendor/assets/stylesheets/foundation/components/_grid.scss +234 -0
  112. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +52 -0
  113. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +220 -0
  114. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +57 -0
  115. data/vendor/assets/stylesheets/foundation/components/_labels.scss +100 -0
  116. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +30 -0
  117. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +360 -0
  118. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +353 -0
  119. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +145 -0
  120. data/vendor/assets/stylesheets/foundation/components/_panels.scss +87 -0
  121. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +146 -0
  122. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +75 -0
  123. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +165 -0
  124. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +83 -0
  125. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +187 -0
  126. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +118 -0
  127. data/vendor/assets/stylesheets/foundation/components/_switch.scss +314 -0
  128. data/vendor/assets/stylesheets/foundation/components/_tables.scss +93 -0
  129. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +95 -0
  130. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +71 -0
  131. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +121 -0
  132. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +590 -0
  133. data/vendor/assets/stylesheets/foundation/components/_type.scss +447 -0
  134. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +661 -0
  135. data/vendor/assets/stylesheets/normalize.scss +410 -0
  136. metadata +292 -0
@@ -0,0 +1,70 @@
1
+ $modules: () !default;
2
+ @mixin exports($name) {
3
+ @if (index($modules, $name) == false) {
4
+ $modules: append($modules, $name);
5
+ @content;
6
+ }
7
+ }
8
+
9
+ //
10
+ // @functions
11
+ //
12
+
13
+ @function lower-bound($range){
14
+ @if length($range) <= 0 {
15
+ @return 0;
16
+ }
17
+ @return nth($range,1);
18
+ }
19
+
20
+ @function upper-bound($range) {
21
+ @if length($range) < 2 {
22
+ @return 999999999999;
23
+ }
24
+ @return nth($range, 2);
25
+ }
26
+
27
+
28
+ // It strips the unit of measure and returns it
29
+ @function strip-unit($num) {
30
+ @return $num / ($num * 0 + 1);
31
+ }
32
+
33
+ // New Syntax, allows to optionally calculate on a different base value to counter compounding effect of rem's.
34
+ // Call with 1, 2, 3 or 4 parameters, 'px' is not required but supported
35
+ // rem-calc(10 20 30px 40);
36
+ // Space delimited, if you want to delimit using comma's, wrap it in another pair of brackets
37
+ // rem-calc((10, 20, 30, 40px));
38
+ // Optionally call with a different base (eg: 8px) to calculate rem.
39
+ // rem-calc(16px 32px 48px, 8px);
40
+ // If you require to comma separate your list
41
+ // rem-calc((16px, 32px, 48), 8px);
42
+
43
+ @function convert-to-rem($value, $base-value: $rem-base) {
44
+ $value: strip-unit($value) / strip-unit($base-value) * 1rem;
45
+ @if ($value == 0rem) { $value: 0; } // Turn 0rem into 0
46
+ @return $value;
47
+ }
48
+
49
+ @function rem-calc($values, $base-value: $rem-base) {
50
+ $max: length($values);
51
+
52
+ @if $max == 1 { @return convert-to-rem(nth($values, 1), $base-value); }
53
+
54
+ $remValues: ();
55
+ @for $i from 1 through $max {
56
+ $remValues: append($remValues, convert-to-rem(nth($values, $i), $base-value));
57
+ }
58
+ @return $remValues;
59
+ }
60
+
61
+ // Deprecated: We'll drop support for this in 5.1.0, use rem-calc()
62
+ @function emCalc($values){
63
+ @return rem-calc($values);
64
+ }
65
+
66
+ // Maybe you want to create rems with pixels
67
+ // $rem-base: 0.625 !default; //Set the value corresponding to body font size. In this case, you should set as: body {font-size: 62.5%;}
68
+ // @function remCalc($pxWidth) {
69
+ // @return $pxWidth / $rem-base * 1rem;
70
+ // }
@@ -0,0 +1,387 @@
1
+ @import "../functions";
2
+ //
3
+ // Foundation Variables
4
+ //
5
+
6
+
7
+ $experimental: true !default;
8
+
9
+ // The default font-size is set to 100% of the browser style sheet (usually 16px)
10
+ // for compatibility with brower-based text zoom or user-set defaults.
11
+
12
+ // Since the typical default browser font-size is 16px, that makes the calculation for grid size.
13
+ // If you want your base font-size to be different and not have it affect the grid breakpoints,
14
+ // set $rem-base to $base-font-size and make sure $base-font-size is a px value.
15
+ $base-font-size: 100% !default;
16
+
17
+ // $base-line-height is 24px while $base-font-size is 16px
18
+ $base-line-height: 150% !default;
19
+
20
+ // This is the default html and body font-size for the base rem value.
21
+ $rem-base: 16px !default;
22
+
23
+ // Use Open Sans font
24
+ $include-open-sans: true !default;
25
+
26
+ //
27
+ // Global Foundation Mixins
28
+ //
29
+
30
+ // @mixins
31
+ //
32
+ // We use this to control border radius.
33
+ // $radius - Default: $global-radius || 4px
34
+ @mixin radius($radius:$global-radius) {
35
+ @if $radius {
36
+ @if $experimental {
37
+ -webkit-border-radius: $radius;
38
+ }
39
+ border-radius: $radius;
40
+ }
41
+ }
42
+
43
+ // @mixins
44
+ //
45
+ // We use this to create equal side border radius on elements.
46
+ // $side - Options: left, right, top, bottom
47
+ @mixin side-radius($side, $radius:$global-radius) {
48
+ @if $side == left {
49
+ @if $experimental {
50
+ -moz-border-radius-bottomleft: $radius;
51
+ -moz-border-radius-topleft: $radius;
52
+ -webkit-border-bottom-left-radius: $radius;
53
+ -webkit-border-top-left-radius: $radius;
54
+ }
55
+ border-bottom-left-radius: $radius;
56
+ border-top-left-radius: $radius;
57
+ }
58
+ @else if $side == right {
59
+ @if $experimental {
60
+ -moz-border-radius-topright: $radius;
61
+ -moz-border-radius-bottomright: $radius;
62
+ -webkit-border-top-right-radius: $radius;
63
+ -webkit-border-bottom-right-radius: $radius;
64
+ }
65
+ border-top-right-radius: $radius;
66
+ border-bottom-right-radius: $radius;
67
+ }
68
+ @else if $side == top {
69
+ @if $experimental {
70
+ -moz-border-radius-topright: $radius;
71
+ -moz-border-radius-topleft: $radius;
72
+ -webkit-border-top-right-radius: $radius;
73
+ -webkit-border-top-left-radius: $radius;
74
+ }
75
+ border-top-right-radius: $radius;
76
+ border-top-left-radius: $radius;
77
+ }
78
+ @else if $side == bottom {
79
+ @if $experimental {
80
+ -moz-border-radius-bottomright: $radius;
81
+ -moz-border-radius-bottomleft: $radius;
82
+ -webkit-border-bottom-right-radius: $radius;
83
+ -webkit-border-bottom-left-radius: $radius;
84
+ }
85
+ border-bottom-right-radius: $radius;
86
+ border-bottom-left-radius: $radius;
87
+ }
88
+ }
89
+
90
+ // @mixins
91
+ //
92
+ // We can control whether or not we have inset shadows edges.
93
+ // $active - Default: true, Options: false
94
+ @mixin inset-shadow($active:true) {
95
+ @if $experimental {
96
+ -webkit-box-shadow: $shiny-edge-size $shiny-edge-color inset;
97
+ }
98
+ box-shadow: $shiny-edge-size $shiny-edge-color inset;
99
+
100
+ @if $active { &:active {
101
+ @if $experimental {
102
+ -webkit-box-shadow: $shiny-edge-size $shiny-edge-active-color inset;
103
+ }
104
+ box-shadow: $shiny-edge-size $shiny-edge-active-color inset; } }
105
+ }
106
+
107
+ // @mixins
108
+ //
109
+ // We use this to add transitions to elements
110
+ // $property - Default: all, Options: http://www.w3.org/TR/css3-transitions/#animatable-properties
111
+ // $speed - Default: 300ms
112
+ // $ease - Default:ease-out, Options: http://css-tricks.com/almanac/properties/t/transition-timing-function/
113
+ @mixin single-transition($property:all, $speed:300ms, $ease:ease-out) {
114
+ @if $experimental {
115
+ -webkit-transition: $property $speed $ease;
116
+ -moz-transition: $property $speed $ease;
117
+ }
118
+ transition: $property $speed $ease;
119
+ }
120
+
121
+ // @mixins
122
+ //
123
+ // We use this to add box-sizing across browser prefixes
124
+ @mixin box-sizing($type:border-box) {
125
+ @if $experimental {
126
+ -moz-box-sizing: $type;
127
+ -webkit-box-sizing: $type;
128
+ }
129
+ box-sizing: $type;
130
+ }
131
+
132
+ // @mixins
133
+ //
134
+ // We use this to create equilateral triangles
135
+ // $triangle-size - Used to set border-size. No default, set a px or em size.
136
+ // $triangle-color - Used to set border-color which makes up triangle. No default
137
+ // $triangle-direction - Used to determine which direction triangle points. Options: top, bottom, left, right
138
+ @mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) {
139
+ content: "";
140
+ display: block;
141
+ width: 0;
142
+ height: 0;
143
+ border: inset $triangle-size;
144
+ @if ($triangle-direction == top) {
145
+ border-color: $triangle-color transparent transparent transparent;
146
+ border-top-style: solid;
147
+ }
148
+ @if ($triangle-direction == bottom) {
149
+ border-color: transparent transparent $triangle-color transparent;
150
+ border-bottom-style: solid;
151
+ }
152
+ @if ($triangle-direction == left) {
153
+ border-color: transparent transparent transparent $triangle-color;
154
+ border-left-style: solid;
155
+ }
156
+ @if ($triangle-direction == right) {
157
+ border-color: transparent $triangle-color transparent transparent;
158
+ border-right-style: solid;
159
+ }
160
+ }
161
+
162
+ // We use this to do clear floats
163
+ @mixin clearfix {
164
+ *zoom:1;
165
+ &:before, &:after { content: " "; display: table; }
166
+ &:after { clear: both; }
167
+ }
168
+
169
+ // @mixins
170
+ //
171
+ // We use this to add a glowing effect to block elements
172
+ // $selector - Used for selector state. Default: focus, Options: hover, active, visited
173
+ // $fade-time - Default: 300ms
174
+ // $glowing-effect-color - Default: fade-out($primary-color, .25)
175
+ @mixin block-glowing-effect($selector:focus, $fade-time:300ms, $glowing-effect-color:fade-out($primary-color, .25)) {
176
+ @if $experimental {
177
+ -webkit-transition: -webkit-box-shadow $fade-time, border-color $fade-time ease-in-out;
178
+ -moz-transition: -moz-box-shadow $fade-time, border-color $fade-time ease-in-out;
179
+ }
180
+ transition: box-shadow $fade-time, border-color $fade-time ease-in-out;
181
+
182
+ &:#{$selector} {
183
+ @if $experimental {
184
+ -webkit-box-shadow: 0 0 5px $glowing-effect-color;
185
+ -moz-box-shadow: 0 0 5px $glowing-effect-color;
186
+ }
187
+ box-shadow: 0 0 5px $glowing-effect-color;
188
+ border-color: $glowing-effect-color;
189
+ }
190
+ }
191
+
192
+ // We use these to control various global styles
193
+ $body-bg: #fff !default;
194
+ $body-font-color: #222 !default;
195
+ $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
196
+ $body-font-weight: normal !default;
197
+ $body-font-style: normal !default;
198
+
199
+ // We use this to control font-smoothing
200
+ $font-smoothing: antialiased !default;
201
+
202
+ // We use these to control text direction settings
203
+ $text-direction: ltr !default;
204
+
205
+ // NOTE: No need to change this conditional statement, $text-direction variable controls it all.
206
+ $default-float: left !default;
207
+ $opposite-direction: right !default;
208
+ @if $text-direction == ltr {
209
+ $default-float: left;
210
+ $opposite-direction: right;
211
+ } @else {
212
+ $default-float: right;
213
+ $opposite-direction: left;
214
+ }
215
+
216
+ // We use these as default colors throughout
217
+ $primary-color: #008CBA !default;
218
+ $secondary-color: #e7e7e7 !default;
219
+ $alert-color: #f04124 !default;
220
+ $success-color: #43AC6A !default;
221
+
222
+ // We use these to make sure border radius matches unless we want it different.
223
+ $global-radius: 3px !default;
224
+ $global-rounded: 1000px !default;
225
+
226
+ // We use these to control inset shadow shiny edges and depressions.
227
+ $shiny-edge-size: 0 1px 0 !default;
228
+ $shiny-edge-color: rgba(#fff, .5) !default;
229
+ $shiny-edge-active-color: rgba(#000, .2) !default;
230
+
231
+ // We use this to control whether or not CSS classes come through in the gem files.
232
+ $include-html-classes: true !default;
233
+ $include-print-styles: true !default;
234
+ $include-html-global-classes: $include-html-classes !default;
235
+
236
+
237
+ // Media Query Ranges
238
+ $small-range: (0em, 40em);
239
+ $medium-range: (40.063em, 64em);
240
+ $large-range: (64.063em, 90em);
241
+ $xlarge-range: (90.063em, 120em);
242
+ $xxlarge-range: (120.063em);
243
+
244
+
245
+ $screen: "only screen" !default;
246
+
247
+ $landscape: "#{$screen} and (orientation: landscape)" !default;
248
+ $portrait: "#{$screen} and (orientation: portrait)" !default;
249
+
250
+ $small-up: $screen !default;
251
+ $small-only: "#{$screen} and (max-width: #{upper-bound($small-range)})" !default;
252
+
253
+ $medium-up: "#{$screen} and (min-width:#{lower-bound($medium-range)})" !default;
254
+ $medium-only: "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})" !default;
255
+
256
+ $large-up: "#{$screen} and (min-width:#{lower-bound($large-range)})" !default;
257
+ $large-only: "#{$screen} and (min-width:#{lower-bound($large-range)}) and (max-width:#{upper-bound($large-range)})" !default;
258
+
259
+ $xlarge-up: "#{$screen} and (min-width:#{lower-bound($xlarge-range)})" !default;
260
+ $xlarge-only: "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max-width:#{upper-bound($xlarge-range)})" !default;
261
+
262
+ $xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})" !default;
263
+ $xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})" !default;
264
+
265
+ // Legacy
266
+ $small: $medium-up;
267
+ $medium: $medium-up;
268
+ $large: $large-up;
269
+
270
+
271
+ //We use this as cursors values for enabling the option of having custom cursors in the whole site's stylesheet
272
+ $cursor-crosshair-value: crosshair !default;
273
+ $cursor-default-value: default !default;
274
+ $cursor-pointer-value: pointer !default;
275
+ $cursor-help-value: help !default;
276
+ $cursor-text-value: text !default;
277
+
278
+
279
+ @include exports("global") {
280
+ @if $include-open-sans {
281
+ @import url("//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700");
282
+ }
283
+ // Used to provide media query values for javascript components.
284
+ // Forward slash placed around everything to convince PhantomJS to read the value.
285
+ meta.foundation-mq-small {
286
+ font-family: "/" + unquote($small-only) + "/";
287
+ width: lower-bound($small-range);
288
+ }
289
+
290
+ meta.foundation-mq-medium {
291
+ font-family: "/" + unquote($medium-only) + "/";
292
+ width: lower-bound($medium-range);
293
+ }
294
+
295
+ meta.foundation-mq-large {
296
+ font-family: "/" + unquote($large-up) + "/";
297
+ width: lower-bound($large-range);
298
+ }
299
+
300
+ meta.foundation-mq-xlarge {
301
+ font-family: "/" + unquote($xlarge-up) + "/";
302
+ width: lower-bound($xlarge-range);
303
+ }
304
+
305
+ meta.foundation-mq-xxlarge {
306
+ font-family: "/" + unquote($xxlarge-up) + "/";
307
+ width: lower-bound($xxlarge-range);
308
+ }
309
+
310
+ @if $include-html-global-classes {
311
+
312
+ // Set box-sizing globally to handle padding and border widths
313
+ *,
314
+ *:before,
315
+ *:after {
316
+ @include box-sizing(border-box);
317
+ }
318
+
319
+ html,
320
+ body { font-size: $base-font-size; }
321
+
322
+ // Default body styles
323
+ body {
324
+ background: $body-bg;
325
+ color: $body-font-color;
326
+ padding: 0;
327
+ margin: 0;
328
+ font-family: $body-font-family;
329
+ font-weight: $body-font-weight;
330
+ font-style: $body-font-style;
331
+ line-height: 1; // Set to $base-line-height to take on browser default of 150%
332
+ position: relative;
333
+ cursor: $cursor-default-value;
334
+ }
335
+
336
+ a:hover { cursor: $cursor-pointer-value; }
337
+
338
+ // Grid Defaults to get images and embeds to work properly
339
+ img,
340
+ object,
341
+ embed { max-width: 100%; height: auto; }
342
+
343
+ object,
344
+ embed { height: 100%; }
345
+ img { -ms-interpolation-mode: bicubic; }
346
+
347
+ #map_canvas,
348
+ .map_canvas {
349
+ img,
350
+ embed,
351
+ object { max-width: none !important;
352
+ }
353
+ }
354
+
355
+ // Miscellaneous useful HTML classes
356
+ .left { float: left !important; }
357
+ .right { float: right !important; }
358
+ .clearfix { @include clearfix; }
359
+ .text-left { text-align: left !important; }
360
+ .text-right { text-align: right !important; }
361
+ .text-center { text-align: center !important; }
362
+ .text-justify { text-align: justify !important; }
363
+ .hide { display: none; }
364
+
365
+ // Font smoothing
366
+ // Antialiased font smoothing works best for light text on a dark background.
367
+ // Apply to single elements instead of globally to body.
368
+ // Note this only applies to webkit-based desktop browsers on the Mac.
369
+ .antialiased { -webkit-font-smoothing: antialiased; }
370
+
371
+ // Get rid of gap under images by making them display: inline-block; by default
372
+ img {
373
+ display: inline-block;
374
+ vertical-align: middle;
375
+ }
376
+
377
+ //
378
+ // Global resets for forms
379
+ //
380
+
381
+ // Make sure textarea takes on height automatically
382
+ textarea { height: auto; min-height: 50px; }
383
+
384
+ // Make select elements 100% width by default
385
+ select { width: 100%; }
386
+ }
387
+ }