foundation-sass-rails 5.5.3.2
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.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +62 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/foundation-sass-rails.gemspec +29 -0
- data/lib/foundation-sass-rails.rb +8 -0
- data/lib/foundation/version.rb +5 -0
- data/lib/generators/foundation/overrides_generator.rb +39 -0
- data/vendor/assets/stylesheets/foundation.scss +42 -0
- data/vendor/assets/stylesheets/foundation/_functions.scss +156 -0
- data/vendor/assets/stylesheets/foundation/_settings.scss +1489 -0
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +161 -0
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +133 -0
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +132 -0
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +208 -0
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +261 -0
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +260 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +130 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +269 -0
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +51 -0
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +607 -0
- data/vendor/assets/stylesheets/foundation/components/_global.scss +566 -0
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +292 -0
- data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +460 -0
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +58 -0
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +220 -0
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +60 -0
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +106 -0
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +34 -0
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +606 -0
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +388 -0
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +163 -0
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +107 -0
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +150 -0
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +85 -0
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +177 -0
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +212 -0
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +120 -0
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +203 -0
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +125 -0
- data/vendor/assets/stylesheets/foundation/components/_switches.scss +241 -0
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +135 -0
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +142 -0
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +66 -0
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +745 -0
- data/vendor/assets/stylesheets/foundation/components/_type.scss +525 -0
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +425 -0
- data/vendor/assets/stylesheets/normalize.scss +424 -0
- metadata +163 -0
@@ -0,0 +1,566 @@
|
|
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
|
+
}
|