foundation-rails 5.5.3.2 → 6.1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +2 -8
  4. data/Rakefile +23 -0
  5. data/app/views/foundation/rails/styleguide/show.html.erb +2 -5
  6. data/bower.json +2 -2
  7. data/lib/foundation/rails/version.rb +1 -1
  8. data/lib/generators/foundation/install_generator.rb +6 -3
  9. data/lib/generators/foundation/templates/_settings.scss +546 -0
  10. data/lib/generators/foundation/templates/application.html.erb +0 -1
  11. data/lib/generators/foundation/templates/application.html.haml +0 -2
  12. data/lib/generators/foundation/templates/application.html.slim +0 -2
  13. data/lib/generators/foundation/templates/foundation_and_overrides.scss +51 -0
  14. data/vendor/assets/js/foundation.abide.js +418 -0
  15. data/vendor/assets/js/foundation.accordion.js +229 -0
  16. data/vendor/assets/js/foundation.accordionMenu.js +262 -0
  17. data/vendor/assets/js/foundation.core.js +378 -0
  18. data/vendor/assets/js/foundation.drilldown.js +321 -0
  19. data/vendor/assets/js/foundation.dropdown.js +390 -0
  20. data/vendor/assets/js/foundation.dropdownMenu.js +391 -0
  21. data/vendor/assets/js/foundation.equalizer.js +274 -0
  22. data/vendor/assets/js/foundation.interchange.js +184 -0
  23. data/vendor/assets/js/foundation.js +28 -0
  24. data/vendor/assets/js/foundation.magellan.js +212 -0
  25. data/vendor/assets/js/foundation.offcanvas.js +371 -0
  26. data/vendor/assets/js/foundation.orbit.js +419 -0
  27. data/vendor/assets/js/foundation.responsiveMenu.js +145 -0
  28. data/vendor/assets/js/foundation.responsiveToggle.js +106 -0
  29. data/vendor/assets/js/foundation.reveal.js +478 -0
  30. data/vendor/assets/js/foundation.slider.js +484 -0
  31. data/vendor/assets/js/foundation.sticky.js +436 -0
  32. data/vendor/assets/js/foundation.tabs.js +306 -0
  33. data/vendor/assets/js/foundation.toggler.js +147 -0
  34. data/vendor/assets/js/foundation.tooltip.js +429 -0
  35. data/vendor/assets/js/foundation.util.box.js +169 -0
  36. data/vendor/assets/js/foundation.util.keyboard.js +115 -0
  37. data/vendor/assets/js/foundation.util.mediaQuery.js +210 -0
  38. data/vendor/assets/js/foundation.util.motion.js +89 -0
  39. data/vendor/assets/js/foundation.util.nest.js +64 -0
  40. data/vendor/assets/js/foundation.util.timerAndImageLoader.js +78 -0
  41. data/vendor/assets/js/foundation.util.touch.js +339 -0
  42. data/vendor/assets/js/foundation.util.triggers.js +222 -0
  43. data/vendor/assets/scss/_global.scss +626 -0
  44. data/vendor/assets/scss/components/_accordion-menu.scss +32 -0
  45. data/vendor/assets/scss/components/_accordion.scss +113 -0
  46. data/vendor/assets/scss/components/_badge.scss +55 -0
  47. data/vendor/assets/scss/components/_breadcrumbs.scss +94 -0
  48. data/vendor/assets/scss/components/_button-group.scss +130 -0
  49. data/vendor/assets/scss/components/_button.scss +265 -0
  50. data/vendor/assets/scss/components/_callout.scss +105 -0
  51. data/vendor/assets/scss/components/_close-button.scss +61 -0
  52. data/vendor/assets/scss/components/_drilldown.scss +75 -0
  53. data/vendor/assets/scss/components/_dropdown-menu.scss +148 -0
  54. data/vendor/assets/scss/components/_dropdown.scss +64 -0
  55. data/vendor/assets/scss/components/_flex-video.scss +63 -0
  56. data/vendor/assets/scss/components/_float.scss +27 -0
  57. data/vendor/assets/scss/components/_label.scss +56 -0
  58. data/vendor/assets/scss/components/_media-object.scss +74 -0
  59. data/vendor/assets/scss/components/_menu.scss +209 -0
  60. data/vendor/assets/scss/components/_off-canvas.scss +180 -0
  61. data/vendor/assets/scss/components/_orbit.scss +193 -0
  62. data/vendor/assets/scss/components/_pagination.scss +158 -0
  63. data/vendor/assets/scss/components/_progress-bar.scss +83 -0
  64. data/vendor/assets/scss/components/_reveal.scss +156 -0
  65. data/vendor/assets/scss/components/_slider.scss +158 -0
  66. data/vendor/assets/scss/components/_sticky.scss +38 -0
  67. data/vendor/assets/scss/components/_switch.scss +232 -0
  68. data/vendor/assets/scss/components/_table.scss +213 -0
  69. data/vendor/assets/scss/components/_tabs.scss +170 -0
  70. data/vendor/assets/scss/components/_thumbnail.scss +54 -0
  71. data/vendor/assets/scss/components/_title-bar.scss +68 -0
  72. data/vendor/assets/scss/components/_tooltip.scss +100 -0
  73. data/vendor/assets/scss/components/_top-bar.scss +89 -0
  74. data/vendor/assets/scss/components/_visibility.scss +131 -0
  75. data/vendor/assets/scss/forms/_checkbox.scss +36 -0
  76. data/vendor/assets/scss/forms/_error.scss +82 -0
  77. data/vendor/assets/scss/forms/_fieldset.scss +53 -0
  78. data/vendor/assets/scss/forms/_forms.scss +32 -0
  79. data/vendor/assets/scss/forms/_help-text.scss +30 -0
  80. data/vendor/assets/scss/forms/_input-group.scss +91 -0
  81. data/vendor/assets/scss/forms/_label.scss +48 -0
  82. data/vendor/assets/scss/forms/_select.scss +63 -0
  83. data/vendor/assets/scss/forms/_text.scss +154 -0
  84. data/vendor/assets/scss/foundation.scss +91 -0
  85. data/vendor/assets/scss/grid/_classes.scss +153 -0
  86. data/vendor/assets/scss/grid/_column.scss +124 -0
  87. data/vendor/assets/scss/grid/_flex-grid.scss +281 -0
  88. data/vendor/assets/scss/grid/_grid.scss +48 -0
  89. data/vendor/assets/scss/grid/_gutter.scss +34 -0
  90. data/vendor/assets/scss/grid/_layout.scss +33 -0
  91. data/vendor/assets/scss/grid/_position.scss +72 -0
  92. data/vendor/assets/scss/grid/_row.scss +97 -0
  93. data/vendor/assets/scss/grid/_size.scss +24 -0
  94. data/vendor/assets/scss/settings/_settings.scss +547 -0
  95. data/vendor/assets/scss/typography/_alignment.scss +22 -0
  96. data/vendor/assets/scss/typography/_base.scss +439 -0
  97. data/vendor/assets/scss/typography/_helpers.scss +77 -0
  98. data/vendor/assets/scss/typography/_print.scss +73 -0
  99. data/vendor/assets/scss/typography/_typography.scss +28 -0
  100. data/vendor/assets/scss/util/_breakpoint.scss +266 -0
  101. data/vendor/assets/scss/util/_color.scss +41 -0
  102. data/vendor/assets/scss/util/_mixins.scss +223 -0
  103. data/vendor/assets/scss/util/_selector.scss +40 -0
  104. data/vendor/assets/scss/util/_unit.scss +90 -0
  105. data/vendor/assets/scss/util/_util.scss +15 -0
  106. data/vendor/assets/scss/util/_value.scss +126 -0
  107. metadata +97 -64
  108. data/update-gem.sh +0 -20
  109. data/vendor/assets/javascripts/foundation.js +0 -17
  110. data/vendor/assets/javascripts/foundation/foundation.abide.js +0 -426
  111. data/vendor/assets/javascripts/foundation/foundation.accordion.js +0 -125
  112. data/vendor/assets/javascripts/foundation/foundation.alert.js +0 -43
  113. data/vendor/assets/javascripts/foundation/foundation.clearing.js +0 -586
  114. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +0 -468
  115. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +0 -104
  116. data/vendor/assets/javascripts/foundation/foundation.interchange.js +0 -360
  117. data/vendor/assets/javascripts/foundation/foundation.joyride.js +0 -935
  118. data/vendor/assets/javascripts/foundation/foundation.js +0 -732
  119. data/vendor/assets/javascripts/foundation/foundation.magellan.js +0 -214
  120. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +0 -225
  121. data/vendor/assets/javascripts/foundation/foundation.orbit.js +0 -476
  122. data/vendor/assets/javascripts/foundation/foundation.reveal.js +0 -522
  123. data/vendor/assets/javascripts/foundation/foundation.slider.js +0 -296
  124. data/vendor/assets/javascripts/foundation/foundation.tab.js +0 -247
  125. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +0 -348
  126. data/vendor/assets/javascripts/foundation/foundation.topbar.js +0 -458
  127. data/vendor/assets/javascripts/vendor/modernizr.js +0 -1406
  128. data/vendor/assets/stylesheets/foundation.scss +0 -42
  129. data/vendor/assets/stylesheets/foundation/_functions.scss +0 -156
  130. data/vendor/assets/stylesheets/foundation/_settings.scss +0 -1489
  131. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +0 -161
  132. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +0 -128
  133. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +0 -133
  134. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
  135. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +0 -208
  136. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +0 -261
  137. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +0 -260
  138. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
  139. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +0 -269
  140. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +0 -51
  141. data/vendor/assets/stylesheets/foundation/components/_forms.scss +0 -607
  142. data/vendor/assets/stylesheets/foundation/components/_global.scss +0 -566
  143. data/vendor/assets/stylesheets/foundation/components/_grid.scss +0 -292
  144. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +0 -460
  145. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +0 -58
  146. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +0 -220
  147. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +0 -60
  148. data/vendor/assets/stylesheets/foundation/components/_labels.scss +0 -106
  149. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +0 -34
  150. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +0 -606
  151. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +0 -388
  152. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +0 -163
  153. data/vendor/assets/stylesheets/foundation/components/_panels.scss +0 -107
  154. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -150
  155. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +0 -85
  156. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +0 -177
  157. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +0 -212
  158. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +0 -120
  159. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +0 -203
  160. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +0 -125
  161. data/vendor/assets/stylesheets/foundation/components/_switches.scss +0 -241
  162. data/vendor/assets/stylesheets/foundation/components/_tables.scss +0 -135
  163. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +0 -142
  164. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +0 -66
  165. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +0 -142
  166. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +0 -745
  167. data/vendor/assets/stylesheets/foundation/components/_type.scss +0 -525
  168. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +0 -425
  169. data/vendor/assets/stylesheets/normalize.scss +0 -424
@@ -1,566 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import '../functions';
6
- //
7
- // Foundation Variables
8
- //
9
-
10
- // Data attribute namespace
11
- // styles get applied to [data-mysite-plugin], etc
12
- $namespace: false !default;
13
-
14
- // The default font-size is set to 100% of the browser style sheet (usually 16px)
15
- // for compatibility with browser-based text zoom or user-set defaults.
16
-
17
- // Since the typical default browser font-size is 16px, that makes the calculation for grid size.
18
- // If you want your base font-size to be different and not have it affect the grid breakpoints,
19
- // set $rem-base to $base-font-size and make sure $base-font-size is a px value.
20
- $base-font-size: 100% !default;
21
-
22
- // $base-line-height is 24px while $base-font-size is 16px
23
- $base-line-height: 1.5 !default;
24
-
25
- //
26
- // Global Foundation Mixins
27
- //
28
-
29
- // @mixins
30
- //
31
- // We use this to control border radius.
32
- // $radius - Default: $global-radius || 4px
33
- @mixin radius($radius:$global-radius) {
34
- @if $radius {
35
- border-radius: $radius;
36
- }
37
- }
38
-
39
- // @mixins
40
- //
41
- // We use this to create equal side border radius on elements.
42
- // $side - Options: left, right, top, bottom
43
- @mixin side-radius($side, $radius:$global-radius) {
44
- @if ($side == left or $side == right) {
45
- -webkit-border-bottom-#{$side}-radius: $radius;
46
- -webkit-border-top-#{$side}-radius: $radius;
47
- border-bottom-#{$side}-radius: $radius;
48
- border-top-#{$side}-radius: $radius;
49
- } @else {
50
- -webkit-#{$side}-left-radius: $radius;
51
- -webkit-#{$side}-right-radius: $radius;
52
- border-#{$side}-left-radius: $radius;
53
- border-#{$side}-right-radius: $radius;
54
- }
55
- }
56
-
57
- // @mixins
58
- //
59
- // We can control whether or not we have inset shadows edges.
60
- // $active - Default: true, Options: false
61
- @mixin inset-shadow($active:true) {
62
- box-shadow: $shiny-edge-size $shiny-edge-color inset;
63
-
64
- @if $active { &:active {
65
- box-shadow: $shiny-edge-size $shiny-edge-active-color inset; } }
66
- }
67
-
68
- // @mixins
69
- //
70
- // We use this to add transitions to elements
71
- // $property - Default: all, Options: http://www.w3.org/TR/css3-transitions/#animatable-properties
72
- // $speed - Default: 300ms
73
- // $ease - Default: ease-out, Options: http://css-tricks.com/almanac/properties/t/transition-timing-function/
74
- @mixin single-transition($property:all, $speed:300ms, $ease:ease-out) {
75
- @include transition($property, $speed, $ease);
76
- }
77
-
78
- // @mixins
79
- //
80
- // We use this to add single or multiple transitions to elements
81
- // $property - Default: all, Options: http://www.w3.org/TR/css3-transitions/#animatable-properties
82
- // $speed - Default: 300ms
83
- // $ease - Default: ease-out, Options: http://css-tricks.com/almanac/properties/t/transition-timing-function/
84
- // $delay - Default: null (0s)
85
- @mixin transition($property:all, $speed:300ms, $ease:ease-out, $delay:null) {
86
- $transition: none;
87
-
88
- @if length($property) > 1 {
89
-
90
- @each $transition_list in $property {
91
-
92
- @for $i from 1 through length($transition_list) {
93
-
94
- @if $i == 1 {
95
- $_property: nth($transition_list, $i);
96
- }
97
-
98
- @if length($transition_list) > 1 {
99
- @if $i == 2 {
100
- $_speed: nth($transition_list, $i);
101
- }
102
- } @else {
103
- $_speed: $speed;
104
- }
105
-
106
- @if length($transition_list) > 2 {
107
- @if $i == 3 {
108
- $_ease: nth($transition_list, $i);
109
- }
110
- } @else {
111
- $_ease: $ease;
112
- }
113
-
114
- @if length($transition_list) > 3 {
115
- @if $i == 4 {
116
- $_delay: nth($transition_list, $i);
117
- }
118
- } @else {
119
- $_delay: $delay;
120
- }
121
- }
122
-
123
- @if $transition == none {
124
- $transition: $_property $_speed $_ease $_delay;
125
- } @else {
126
- $transition: $transition, $_property $_speed $_ease $_delay;
127
- }
128
- }
129
- }
130
- @else {
131
-
132
- @each $prop in $property {
133
-
134
- @if $transition == none {
135
- $transition: $prop $speed $ease $delay;
136
- } @else {
137
- $transition: $transition, $prop $speed $ease $delay;
138
- }
139
- }
140
- }
141
-
142
- transition: $transition;
143
- }
144
-
145
- // @mixins
146
- //
147
- // We use this to add box-sizing across browser prefixes
148
- @mixin box-sizing($type:border-box) {
149
- -webkit-box-sizing: $type; // Android < 2.3, iOS < 4
150
- -moz-box-sizing: $type; // Firefox < 29
151
- box-sizing: $type; // Chrome, IE 8+, Opera, Safari 5.1
152
- }
153
-
154
- // @mixins
155
- //
156
- // We use this to create isosceles triangles
157
- // $triangle-size - Used to set border-size. No default, set a px or em size.
158
- // $triangle-color - Used to set border-color which makes up triangle. No default
159
- // $triangle-direction - Used to determine which direction triangle points. Options: top, bottom, left, right
160
- @mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) {
161
- border: inset $triangle-size;
162
- content: "";
163
- display: block;
164
- height: 0;
165
- width: 0;
166
- @if ($triangle-direction == top) {
167
- border-color: $triangle-color transparent transparent transparent;
168
- border-top-style: solid;
169
- }
170
- @if ($triangle-direction == bottom) {
171
- border-color: transparent transparent $triangle-color transparent;
172
- border-bottom-style: solid;
173
- }
174
- @if ($triangle-direction == left) {
175
- border-color: transparent transparent transparent $triangle-color;
176
- border-left-style: solid;
177
- }
178
- @if ($triangle-direction == right) {
179
- border-color: transparent $triangle-color transparent transparent;
180
- border-right-style: solid;
181
- }
182
- }
183
-
184
- // @mixins
185
- //
186
- // We use this to create the icon with three lines aka the hamburger icon, the menu-icon or the navicon
187
- // $width - Width of hamburger icon in rem
188
- // $left - If false, icon will be centered horizontally || explicitly set value in rem
189
- // $top - If false, icon will be centered vertically || explicitly set value in rem
190
- // $thickness - thickness of lines in hamburger icon, set value in px
191
- // $gap - spacing between the lines in hamburger icon, set value in px
192
- // $color - icon color
193
- // $hover-color - icon color during hover
194
- // $offcanvas - Set to true of @include in offcanvas
195
- @mixin hamburger($width, $left, $top, $thickness, $gap, $color, $hover-color, $offcanvas) {
196
- span::after {
197
- content: "";
198
- display: block;
199
- height: 0;
200
- position: absolute;
201
-
202
- @if $offcanvas {
203
- @if $top {
204
- top: $top;
205
- }
206
- @else {
207
- top: 50%;
208
- margin-top: (-$width/2);
209
- }
210
- @if $left {
211
- left: $left;
212
- }
213
- @else {
214
- left: ($tabbar-menu-icon-width - $width)/2;
215
- }
216
- }
217
- @else {
218
- margin-top: -($width/2);
219
- top: 50%;
220
- #{$opposite-direction}: $topbar-link-padding;
221
- }
222
-
223
- box-shadow:
224
- 0 0 0 $thickness $color,
225
- 0 $gap + $thickness 0 $thickness $color,
226
- 0 (2 * $gap + 2*$thickness) 0 $thickness $color;
227
- width: $width;
228
- }
229
- span:hover:after {
230
- box-shadow:
231
- 0 0 0 $thickness $hover-color,
232
- 0 $gap + $thickness 0 $thickness $hover-color,
233
- 0 (2 * $gap + 2*$thickness) 0 $thickness $hover-color;
234
- }
235
- }
236
-
237
- // We use this to do clear floats
238
- @mixin clearfix {
239
- &:before, &:after { content: " "; display: table; }
240
- &:after { clear: both; }
241
- }
242
-
243
- // @mixins
244
- //
245
- // We use this to add a glowing effect to block elements
246
- // $selector - Used for selector state. Default: focus, Options: hover, active, visited
247
- // $fade-time - Default: 300ms
248
- // $glowing-effect-color - Default: fade-out($primary-color, .25)
249
- @mixin block-glowing-effect($selector:focus, $fade-time:300ms, $glowing-effect-color:fade-out($primary-color, .25)) {
250
- transition: box-shadow $fade-time, border-color $fade-time ease-in-out;
251
-
252
- &:#{$selector} {
253
- border-color: $glowing-effect-color;
254
- box-shadow: 0 0 5px $glowing-effect-color;
255
- }
256
- }
257
-
258
- // @mixins
259
- //
260
- // We use this to translate elements in 2D
261
- // $horizontal: Default: 0
262
- // $vertical: Default: 0
263
- @mixin translate2d($horizontal:0, $vertical:0) {
264
- transform: translate($horizontal, $vertical)
265
- }
266
-
267
- // @mixins
268
- //
269
- // Makes an element visually hidden, but accessible.
270
- // @see http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
271
- @mixin element-invisible {
272
- clip: rect(1px, 1px, 1px, 1px);
273
- height: 1px;
274
- overflow: hidden;
275
- position: absolute !important;
276
- width: 1px;
277
- }
278
-
279
- // @mixins
280
- //
281
- // Turns off the element-invisible effect.
282
- @mixin element-invisible-off {
283
- position: static !important;
284
- height: auto;
285
- width: auto;
286
- overflow: visible;
287
- clip: auto;
288
- }
289
-
290
- $white : #FFFFFF !default;
291
- $ghost : #FAFAFA !default;
292
- $snow : #F9F9F9 !default;
293
- $vapor : #F6F6F6 !default;
294
- $white-smoke : #F5F5F5 !default;
295
- $silver : #EFEFEF !default;
296
- $smoke : #EEEEEE !default;
297
- $gainsboro : #DDDDDD !default;
298
- $iron : #CCCCCC !default;
299
- $base : #AAAAAA !default;
300
- $aluminum : #999999 !default;
301
- $jumbo : #888888 !default;
302
- $monsoon : #777777 !default;
303
- $steel : #666666 !default;
304
- $charcoal : #555555 !default;
305
- $tuatara : #444444 !default;
306
- $oil : #333333 !default;
307
- $jet : #222222 !default;
308
- $black : #000000 !default;
309
-
310
- // We use these as default colors throughout
311
- $primary-color: #008CBA !default; // bondi-blue
312
- $secondary-color: #e7e7e7 !default; // white-lilac
313
- $alert-color: #f04124 !default; // cinnabar
314
- $success-color: #43AC6A !default; // sea-green
315
- $warning-color: #f08a24 !default; // carrot
316
- $info-color: #a0d3e8 !default; // cornflower
317
-
318
- // We use these to define default font stacks
319
- $font-family-sans-serif: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif !default;
320
- $font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif !default;
321
- $font-family-monospace: Consolas, "Liberation Mono", Courier, monospace !default;
322
-
323
- // We use these to define default font weights
324
- $font-weight-normal: normal !default;
325
- $font-weight-bold: bold !default;
326
-
327
- // We use these to control various global styles
328
- $body-bg: #fff !default;
329
- $body-font-color: #222 !default;
330
- $body-font-family: $font-family-sans-serif !default;
331
- $body-font-weight: $font-weight-normal !default;
332
- $body-font-style: normal !default;
333
-
334
- // We use this to control font-smoothing
335
- $font-smoothing: antialiased !default;
336
-
337
- // We use these to control text direction settings
338
- $text-direction: ltr !default;
339
- $default-float: left !default;
340
- $opposite-direction: right !default;
341
- @if $text-direction == ltr {
342
- $default-float: left;
343
- $opposite-direction: right;
344
- } @else {
345
- $default-float: right;
346
- $opposite-direction: left;
347
- }
348
-
349
- // We use these to make sure border radius matches unless we want it different.
350
- $global-radius: 3px !default;
351
- $global-rounded: 1000px !default;
352
-
353
- // We use these to control inset shadow shiny edges and depressions.
354
- $shiny-edge-size: 0 1px 0 !default;
355
- $shiny-edge-color: rgba(#fff, .5) !default;
356
- $shiny-edge-active-color: rgba(#000, .2) !default;
357
-
358
- // We use this to control whether or not CSS classes come through in the gem files.
359
- $include-html-classes: true !default;
360
- $include-print-styles: true !default;
361
- $include-js-meta-styles: true !default; // Warning! Meta styles are a dependancy of the Javascript.
362
- $include-html-global-classes: $include-html-classes !default;
363
-
364
- $column-gutter: rem-calc(30) !default;
365
-
366
- // Media Query Ranges
367
- $small-breakpoint: em-calc(640) !default;
368
- $medium-breakpoint: em-calc(1024) !default;
369
- $large-breakpoint: em-calc(1440) !default;
370
- $xlarge-breakpoint: em-calc(1920) !default;
371
-
372
- $small-range: (0, $small-breakpoint) !default;
373
- $medium-range: ($small-breakpoint + em-calc(1), $medium-breakpoint) !default;
374
- $large-range: ($medium-breakpoint + em-calc(1), $large-breakpoint) !default;
375
- $xlarge-range: ($large-breakpoint + em-calc(1), $xlarge-breakpoint) !default;
376
- $xxlarge-range: ($xlarge-breakpoint + em-calc(1), em-calc(99999999)) !default;
377
-
378
- $screen: "only screen" !default;
379
-
380
- $landscape: "#{$screen} and (orientation: landscape)" !default;
381
- $portrait: "#{$screen} and (orientation: portrait)" !default;
382
-
383
- $small-up: $screen !default;
384
- $small-only: "#{$screen} and (max-width: #{upper-bound($small-range)})" !default;
385
-
386
- $medium-up: "#{$screen} and (min-width:#{lower-bound($medium-range)})" !default;
387
- $medium-only: "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})" !default;
388
-
389
- $large-up: "#{$screen} and (min-width:#{lower-bound($large-range)})" !default;
390
- $large-only: "#{$screen} and (min-width:#{lower-bound($large-range)}) and (max-width:#{upper-bound($large-range)})" !default;
391
-
392
- $xlarge-up: "#{$screen} and (min-width:#{lower-bound($xlarge-range)})" !default;
393
- $xlarge-only: "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max-width:#{upper-bound($xlarge-range)})" !default;
394
-
395
- $xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})" !default;
396
- $xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})" !default;
397
-
398
- $retina: (
399
- "#{$screen} and (-webkit-min-device-pixel-ratio: 2)",
400
- "#{$screen} and (min--moz-device-pixel-ratio: 2)",
401
- "#{$screen} and (-o-min-device-pixel-ratio: 2/1)",
402
- "#{$screen} and (min-device-pixel-ratio: 2)",
403
- "#{$screen} and (min-resolution: 192dpi)",
404
- "#{$screen} and (min-resolution: 2dppx)"
405
- );
406
-
407
- // Legacy
408
- $small: $small-up;
409
- $medium: $medium-up;
410
- $large: $large-up;
411
-
412
-
413
- //We use this as cursors values for enabling the option of having custom cursors in the whole site's stylesheet
414
- $cursor-auto-value: auto !default;
415
- $cursor-crosshair-value: crosshair !default;
416
- $cursor-default-value: default !default;
417
- $cursor-disabled-value: not-allowed !default;
418
- $cursor-pointer-value: pointer !default;
419
- $cursor-help-value: help !default;
420
- $cursor-text-value: text !default;
421
-
422
-
423
- @include exports("global") {
424
-
425
- // Meta styles are a dependancy of the Javascript.
426
- // Used to provide media query values for javascript components.
427
- // Forward slash placed around everything to convince PhantomJS to read the value.
428
-
429
- @if $include-js-meta-styles {
430
-
431
- meta.foundation-version {
432
- font-family: "/5.5.3/";
433
- }
434
-
435
- meta.foundation-mq-small {
436
- font-family: "/" + unquote($small-up) + "/";
437
- width: lower-bound($small-range);
438
- }
439
-
440
- meta.foundation-mq-small-only {
441
- font-family: "/" + unquote($small-only) + "/";
442
- width: lower-bound($small-range);
443
- }
444
-
445
- meta.foundation-mq-medium {
446
- font-family: "/" + unquote($medium-up) + "/";
447
- width: lower-bound($medium-range);
448
- }
449
-
450
- meta.foundation-mq-medium-only {
451
- font-family: "/" + unquote($medium-only) + "/";
452
- width: lower-bound($medium-range);
453
- }
454
-
455
- meta.foundation-mq-large {
456
- font-family: "/" + unquote($large-up) + "/";
457
- width: lower-bound($large-range);
458
- }
459
-
460
- meta.foundation-mq-large-only {
461
- font-family: "/" + unquote($large-only) + "/";
462
- width: lower-bound($large-range);
463
- }
464
-
465
- meta.foundation-mq-xlarge {
466
- font-family: "/" + unquote($xlarge-up) + "/";
467
- width: lower-bound($xlarge-range);
468
- }
469
-
470
- meta.foundation-mq-xlarge-only {
471
- font-family: "/" + unquote($xlarge-only) + "/";
472
- width: lower-bound($xlarge-range);
473
- }
474
-
475
- meta.foundation-mq-xxlarge {
476
- font-family: "/" + unquote($xxlarge-up) + "/";
477
- width: lower-bound($xxlarge-range);
478
- }
479
-
480
- meta.foundation-data-attribute-namespace {
481
- font-family: #{$namespace};
482
- }
483
-
484
- }
485
-
486
- @if $include-html-global-classes {
487
-
488
- // Must be 100% for off canvas to work
489
- html, body { height: 100%; }
490
-
491
- // Set box-sizing globally to handle padding and border widths
492
- *,
493
- *:before,
494
- *:after {
495
- @include box-sizing(border-box);
496
- }
497
-
498
- html,
499
- body { font-size: $base-font-size; }
500
-
501
- // Default body styles
502
- body {
503
- background: $body-bg;
504
- color: $body-font-color;
505
- cursor: $cursor-auto-value;
506
- font-family: $body-font-family;
507
- font-style: $body-font-style;
508
- font-weight: $body-font-weight;
509
- line-height: $base-line-height; // Set to $base-line-height to take on browser default of 150%
510
- margin: 0;
511
- padding: 0;
512
- position: relative;
513
- }
514
-
515
- a:hover { cursor: $cursor-pointer-value; }
516
-
517
- // Grid Defaults to get images and embeds to work properly
518
- img { max-width: 100%; height: auto; }
519
-
520
- img { -ms-interpolation-mode: bicubic; }
521
-
522
- #map_canvas,
523
- .map_canvas,
524
- .mqa-display {
525
- img,
526
- embed,
527
- object { max-width: none !important;
528
- }
529
- }
530
-
531
- // Miscellaneous useful HTML classes
532
- .left { float: left !important; }
533
- .right { float: right !important; }
534
- .clearfix { @include clearfix; }
535
-
536
- // Hide visually and from screen readers
537
- .hide {
538
- display: none;
539
- }
540
-
541
- // Hide visually and from screen readers, but maintain layout
542
- .invisible { visibility: hidden; }
543
-
544
- // Font smoothing
545
- // Antialiased font smoothing works best for light text on a dark background.
546
- // Apply to single elements instead of globally to body.
547
- // Note this only applies to webkit-based desktop browsers and Firefox 25 (and later) on the Mac.
548
- .antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
549
-
550
- // Get rid of gap under images by making them display: inline-block; by default
551
- img {
552
- display: inline-block;
553
- vertical-align: middle;
554
- }
555
-
556
- //
557
- // Global resets for forms
558
- //
559
-
560
- // Make sure textarea takes on height automatically
561
- textarea { height: auto; min-height: 50px; }
562
-
563
- // Make select elements 100% width by default
564
- select { width: 100%; }
565
- }
566
- }