foundation-rails 5.2.1.0 → 5.2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bower.json +2 -2
- data/lib/foundation/rails/version.rb +1 -1
- data/test/dummy/Gemfile +1 -1
- data/vendor/assets/javascripts/foundation.js +2 -1
- data/vendor/assets/javascripts/foundation/foundation.abide.js +60 -19
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +9 -5
- data/vendor/assets/javascripts/foundation/foundation.alert.js +13 -7
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +19 -9
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +8 -3
- data/vendor/assets/javascripts/foundation/foundation.equalizer.js +7 -3
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +5 -9
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +10 -5
- data/vendor/assets/javascripts/foundation/foundation.js +29 -23
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +15 -12
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +20 -27
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +129 -41
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +1 -1
- data/vendor/assets/javascripts/foundation/foundation.slider.js +27 -14
- data/vendor/assets/javascripts/foundation/foundation.tab.js +19 -8
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +9 -4
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +5 -3
- data/vendor/assets/stylesheets/foundation/_settings.scss +69 -30
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +6 -1
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +19 -8
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +3 -3
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +4 -5
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +2 -4
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +30 -29
- data/vendor/assets/stylesheets/foundation/components/_global.scss +37 -76
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +25 -26
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +0 -4
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +19 -36
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +126 -152
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +31 -14
- data/vendor/assets/stylesheets/foundation/components/_switch.scss +4 -30
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +0 -6
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +39 -45
- data/vendor/assets/stylesheets/foundation/components/_type.scss +37 -125
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +15 -6
- metadata +2 -2
@@ -42,6 +42,9 @@ $alert-close-padding: 9px 6px 4px !default;
|
|
42
42
|
// We use this to control border radius
|
43
43
|
$alert-radius: $global-radius !default;
|
44
44
|
|
45
|
+
$alert-transition-speed: 300ms !default;
|
46
|
+
$alert-transition-ease: ease-out !default;
|
47
|
+
|
45
48
|
//
|
46
49
|
// Alert Mixins
|
47
50
|
//
|
@@ -56,6 +59,7 @@ $alert-radius: $global-radius !default;
|
|
56
59
|
position: relative;
|
57
60
|
padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float;
|
58
61
|
font-size: $alert-font-size;
|
62
|
+
@include single-transition(opacity, $alert-transition-speed, $alert-transition-ease)
|
59
63
|
}
|
60
64
|
|
61
65
|
// We use this mixin to add alert styles
|
@@ -116,6 +120,7 @@ $alert-radius: $global-radius !default;
|
|
116
120
|
&.secondary { @include alert-style($secondary-color); }
|
117
121
|
&.warning { @include alert-style($warning-color); }
|
118
122
|
&.info { @include alert-style($info-color); }
|
123
|
+
&.alert-close { opacity: 0}
|
119
124
|
}
|
120
125
|
}
|
121
|
-
}
|
126
|
+
}
|
@@ -8,12 +8,13 @@
|
|
8
8
|
// Block Grid Variables
|
9
9
|
//
|
10
10
|
$include-html-grid-classes: $include-html-classes !default;
|
11
|
+
$include-xl-html-block-grid-classes: false !default;
|
11
12
|
|
12
13
|
// We use this to control the maximum number of block grid elements per row
|
13
14
|
$block-grid-elements: 12 !default;
|
14
15
|
$block-grid-default-spacing: rem-calc(20) !default;
|
15
16
|
|
16
|
-
$align-block-grid-to-grid:
|
17
|
+
$align-block-grid-to-grid: false !default;
|
17
18
|
@if $align-block-grid-to-grid {
|
18
19
|
$block-grid-default-spacing: $column-gutter;
|
19
20
|
}
|
@@ -31,8 +32,8 @@ $block-grid-media-queries: true !default;
|
|
31
32
|
// $spacing - # of ems to use as padding on each block item. Default: rem-calc(20).
|
32
33
|
// $base-style - Apply a base style to block grid. Default: true.
|
33
34
|
@mixin block-grid(
|
34
|
-
$per-row:false,
|
35
|
-
$spacing:$block-grid-default-spacing,
|
35
|
+
$per-row:false,
|
36
|
+
$spacing:$block-grid-default-spacing,
|
36
37
|
$include-spacing:true,
|
37
38
|
$base-style:true) {
|
38
39
|
|
@@ -80,7 +81,7 @@ $block-grid-media-queries: true !default;
|
|
80
81
|
@if $per-row == $i {
|
81
82
|
$grid-column: '';
|
82
83
|
}
|
83
|
-
&:nth-
|
84
|
+
&:nth-of-type(#{$per-row}n#{unquote($grid-column)}) {
|
84
85
|
padding-left: ($spacing - (($spacing / $per-row) * ($per-row - ($i - 1))));
|
85
86
|
padding-right: ($spacing - (($spacing / $per-row) * $i));
|
86
87
|
}
|
@@ -101,21 +102,31 @@ $block-grid-media-queries: true !default;
|
|
101
102
|
|
102
103
|
@include exports("block-grid") {
|
103
104
|
@if $include-html-grid-classes {
|
104
|
-
|
105
|
+
|
105
106
|
[class*="block-grid-"] { @include block-grid; }
|
106
|
-
|
107
|
+
|
107
108
|
@if $block-grid-media-queries {
|
108
109
|
@media #{$small-up} {
|
109
110
|
@include block-grid-html-classes($size:small,$include-spacing:false);
|
110
111
|
}
|
111
|
-
|
112
|
+
|
112
113
|
@media #{$medium-up} {
|
113
114
|
@include block-grid-html-classes($size:medium,$include-spacing:false);
|
114
115
|
}
|
115
|
-
|
116
|
+
|
116
117
|
@media #{$large-up} {
|
117
118
|
@include block-grid-html-classes($size:large,$include-spacing:false);
|
118
119
|
}
|
120
|
+
|
121
|
+
@if $include-xl-html-block-grid-classes {
|
122
|
+
@media #{$xlarge-up} {
|
123
|
+
@include block-grid-html-classes($size:xlarge,$include-spacing:false);
|
124
|
+
}
|
125
|
+
|
126
|
+
@media #{$xxlarge-up} {
|
127
|
+
@include block-grid-html-classes($size:xxlarge,$include-spacing:false);
|
128
|
+
}
|
129
|
+
}
|
119
130
|
}
|
120
131
|
}
|
121
132
|
}
|
@@ -61,13 +61,13 @@ $crumb-slash: "/" !default;
|
|
61
61
|
margin: 0;
|
62
62
|
float: $default-float;
|
63
63
|
font-size: $crumb-font-size;
|
64
|
+
line-height: $crumb-font-size;
|
64
65
|
text-transform: $crumb-font-transform;
|
66
|
+
color: $crumb-font-color;
|
65
67
|
|
66
68
|
&:hover a, &:focus a { text-decoration: $crumb-link-decor; }
|
67
69
|
|
68
|
-
a
|
69
|
-
span {
|
70
|
-
text-transform: $crumb-font-transform;
|
70
|
+
a {
|
71
71
|
color: $crumb-font-color;
|
72
72
|
}
|
73
73
|
|
@@ -36,6 +36,8 @@ $button-function-factor: -20% !default;
|
|
36
36
|
// We use these to control button border styles.
|
37
37
|
$button-border-width: 0px !default;
|
38
38
|
$button-border-style: solid !default;
|
39
|
+
$bg: $primary-color !default;
|
40
|
+
$button-border-color: scale-color($bg, $lightness: $button-function-factor) !default;
|
39
41
|
|
40
42
|
// We use this to set the default radius used throughout the core.
|
41
43
|
$button-radius: $global-radius !default;
|
@@ -65,6 +67,8 @@ $button-disabled-opacity: 0.7 !default;
|
|
65
67
|
position: relative;
|
66
68
|
text-decoration: none;
|
67
69
|
text-align: $button-font-align;
|
70
|
+
-webkit-appearance: none;
|
71
|
+
-webkit-border-radius:0;
|
68
72
|
}
|
69
73
|
@if $display { display: $display; }
|
70
74
|
}
|
@@ -91,7 +95,6 @@ $button-disabled-opacity: 0.7 !default;
|
|
91
95
|
@else if $padding == $button-tny { font-size: $button-font-tny; }
|
92
96
|
@else if $padding == $button-sml { font-size: $button-font-sml; }
|
93
97
|
@else if $padding == $button-lrg { font-size: $button-font-lrg; }
|
94
|
-
/* @else { font-size: $padding - rem-calc(2); } */
|
95
98
|
}
|
96
99
|
|
97
100
|
// We can set $full-width:true to remove side padding extend width.
|
@@ -147,9 +150,6 @@ $button-disabled-opacity: 0.7 !default;
|
|
147
150
|
@if $disabled {
|
148
151
|
cursor: $cursor-default-value;
|
149
152
|
opacity: $button-disabled-opacity;
|
150
|
-
@if $experimental {
|
151
|
-
-webkit-box-shadow: none;
|
152
|
-
}
|
153
153
|
box-shadow: none;
|
154
154
|
&:hover,
|
155
155
|
&:focus { background-color: $bg; }
|
@@ -189,7 +189,6 @@ $button-disabled-opacity: 0.7 !default;
|
|
189
189
|
@include button-style;
|
190
190
|
|
191
191
|
@include single-transition(background-color);
|
192
|
-
@include button-size($padding:$button-med, $full-width:false);
|
193
192
|
|
194
193
|
&.secondary { @include button-style($bg:$secondary-color); }
|
195
194
|
&.success { @include button-style($bg:$success-color); }
|
@@ -201,6 +201,7 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
|
|
201
201
|
position: relative;
|
202
202
|
cursor: $cursor-pointer-value;
|
203
203
|
opacity: 0.4;
|
204
|
+
clear: none;
|
204
205
|
|
205
206
|
&.fix-height {
|
206
207
|
img {
|
@@ -211,10 +212,7 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
|
|
211
212
|
|
212
213
|
a.th {
|
213
214
|
border: none;
|
214
|
-
|
215
|
-
-webkit-box-shadow: none;
|
216
|
-
}
|
217
|
-
box-shadow: none;
|
215
|
+
box-shadow: none;
|
218
216
|
display: block;
|
219
217
|
}
|
220
218
|
|
@@ -19,6 +19,7 @@ $form-label-font-size: rem-calc(14) !default;
|
|
19
19
|
$form-label-font-weight: normal !default;
|
20
20
|
$form-label-line-height: 1.5 !default;
|
21
21
|
$form-label-font-color: scale-color(#000, $lightness: 30%) !default;
|
22
|
+
$form-label-small-transform: capitalize !default;
|
22
23
|
$form-label-bottom-margin: 0 !default;
|
23
24
|
$input-font-family: inherit !default;
|
24
25
|
$input-font-color: rgba(0,0,0,0.75) !default;
|
@@ -89,10 +90,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
89
90
|
.column,
|
90
91
|
.columns { padding: 0; }
|
91
92
|
input {
|
92
|
-
-
|
93
|
-
-moz-border-radius-top#{$opposite-direction}: 0;
|
94
|
-
-webkit-border-bottom-#{$opposite-direction}-radius: 0;
|
95
|
-
-webkit-border-top-#{$opposite-direction}-radius: 0;
|
93
|
+
@include side-radius($opposite-direction, 0);
|
96
94
|
}
|
97
95
|
|
98
96
|
}
|
@@ -110,9 +108,6 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
110
108
|
background-color: $input-bg-color;
|
111
109
|
font-family: $input-font-family;
|
112
110
|
border: $input-border-width $input-border-style $input-border-color;
|
113
|
-
@if $experimental {
|
114
|
-
-webkit-box-shadow: $input-box-shadow;
|
115
|
-
}
|
116
111
|
box-shadow: $input-box-shadow;
|
117
112
|
color: $input-font-color;
|
118
113
|
display: block;
|
@@ -162,7 +157,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
162
157
|
}
|
163
158
|
@else if $alignment == inline {
|
164
159
|
margin: 0 0 $form-spacing 0;
|
165
|
-
padding: $form-spacing / 2 + rem-calc($input-border-width
|
160
|
+
padding: $form-spacing / 2 + rem-calc($input-border-width) 0;
|
166
161
|
}
|
167
162
|
}
|
168
163
|
|
@@ -307,6 +302,24 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
307
302
|
@else { color: $input-error-message-font-color-alt; }
|
308
303
|
}
|
309
304
|
|
305
|
+
// We use this mixin to style select elements
|
306
|
+
@mixin form-select {
|
307
|
+
-webkit-appearance: none !important;
|
308
|
+
background-color: $select-bg-color;
|
309
|
+
background-image: url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==');
|
310
|
+
background-repeat: no-repeat;
|
311
|
+
background-position: if($text-direction == 'rtl', 3%, 97%) center;
|
312
|
+
border: $input-border-width $input-border-style $input-border-color;
|
313
|
+
padding: $form-spacing / 2;
|
314
|
+
font-size: $input-font-size;
|
315
|
+
@include radius(0);
|
316
|
+
&.radius { @include radius($global-radius); }
|
317
|
+
&:hover {
|
318
|
+
background-color: $select-hover-bg-color;
|
319
|
+
border-color: $input-focus-border-color;
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
310
323
|
@include exports("form") {
|
311
324
|
@if $include-html-form-classes {
|
312
325
|
/* Standard Forms */
|
@@ -321,28 +334,11 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
321
334
|
&.inline { @include form-label(inline,false); }
|
322
335
|
/* Styles for required inputs */
|
323
336
|
small {
|
324
|
-
text-transform:
|
337
|
+
text-transform: $form-label-small-transform;
|
325
338
|
color: scale-color($form-label-font-color, $lightness: 15%);
|
326
339
|
}
|
327
340
|
}
|
328
341
|
|
329
|
-
select {
|
330
|
-
-webkit-appearance: none !important;
|
331
|
-
background-color: $select-bg-color;
|
332
|
-
background-image: url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==');
|
333
|
-
background-repeat: no-repeat;
|
334
|
-
background-position: if($text-direction == 'rtl', 3%, 97%) center;
|
335
|
-
border: $input-border-width $input-border-style $input-border-color;
|
336
|
-
padding: $form-spacing / 2;
|
337
|
-
font-size: $input-font-size;
|
338
|
-
@include radius(0);
|
339
|
-
&.radius { @include radius($global-radius); }
|
340
|
-
&:hover {
|
341
|
-
background-color: $select-hover-bg-color;
|
342
|
-
border-color: $input-focus-border-color;
|
343
|
-
}
|
344
|
-
}
|
345
|
-
|
346
342
|
select::-ms-expand {
|
347
343
|
display:none;
|
348
344
|
}
|
@@ -389,14 +385,18 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
389
385
|
textarea {
|
390
386
|
-webkit-appearance: none;
|
391
387
|
@include form-element;
|
392
|
-
@if
|
388
|
+
@if $input-include-glowing-effect == false {
|
393
389
|
@include single-transition(all, 0.15s, linear);
|
394
390
|
}
|
395
391
|
&.radius {
|
396
392
|
@include radius($input-border-radius);
|
397
393
|
}
|
398
394
|
}
|
399
|
-
|
395
|
+
|
396
|
+
input[type="submit"] {
|
397
|
+
-webkit-appearance: none;
|
398
|
+
}
|
399
|
+
|
400
400
|
/* Respect enforced amount of rows for textarea */
|
401
401
|
textarea[rows] {
|
402
402
|
height: auto;
|
@@ -404,6 +404,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
404
404
|
|
405
405
|
/* Add height value for select elements to match text input height */
|
406
406
|
select {
|
407
|
+
@include form-select;
|
407
408
|
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
|
408
409
|
}
|
409
410
|
|
@@ -473,7 +474,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
473
474
|
color: scale-color($form-label-font-color, $lightness: 15%);
|
474
475
|
background: transparent;
|
475
476
|
padding: 0;
|
476
|
-
text-transform:
|
477
|
+
text-transform: $form-label-small-transform;
|
477
478
|
font-style: normal;
|
478
479
|
font-size: 60%;
|
479
480
|
margin: 0;
|
@@ -11,8 +11,6 @@
|
|
11
11
|
// styles get applied to [data-mysite-plugin], etc
|
12
12
|
$namespace: false !default;
|
13
13
|
|
14
|
-
$experimental: true !default;
|
15
|
-
|
16
14
|
// The default font-size is set to 100% of the browser style sheet (usually 16px)
|
17
15
|
// for compatibility with browser-based text zoom or user-set defaults.
|
18
16
|
|
@@ -34,9 +32,6 @@ $base-line-height: 150% !default;
|
|
34
32
|
// $radius - Default: $global-radius || 4px
|
35
33
|
@mixin radius($radius:$global-radius) {
|
36
34
|
@if $radius {
|
37
|
-
@if $experimental {
|
38
|
-
-webkit-border-radius: $radius;
|
39
|
-
}
|
40
35
|
border-radius: $radius;
|
41
36
|
}
|
42
37
|
}
|
@@ -47,21 +42,9 @@ $base-line-height: 150% !default;
|
|
47
42
|
// $side - Options: left, right, top, bottom
|
48
43
|
@mixin side-radius($side, $radius:$global-radius) {
|
49
44
|
@if ($side == left or $side == right) {
|
50
|
-
@if $experimental {
|
51
|
-
-moz-border-radius-bottom#{$side}: $radius;
|
52
|
-
-moz-border-radius-top#{$side}: $radius;
|
53
|
-
-webkit-border-bottom-#{$side}-radius: $radius;
|
54
|
-
-webkit-border-top-#{$side}-radius: $radius;
|
55
|
-
}
|
56
45
|
border-bottom-#{$side}-radius: $radius;
|
57
46
|
border-top-#{$side}-radius: $radius;
|
58
47
|
} @else {
|
59
|
-
@if $experimental {
|
60
|
-
-moz-border-radius-#{$side}left: $radius;
|
61
|
-
-moz-border-radius-#{$side}right: $radius;
|
62
|
-
-webkit-border-#{$side}-left-radius: $radius;
|
63
|
-
-webkit-border-#{$side}-right-radius: $radius;
|
64
|
-
}
|
65
48
|
border-#{$side}-left-radius: $radius;
|
66
49
|
border-#{$side}-right-radius: $radius;
|
67
50
|
}
|
@@ -72,15 +55,9 @@ $base-line-height: 150% !default;
|
|
72
55
|
// We can control whether or not we have inset shadows edges.
|
73
56
|
// $active - Default: true, Options: false
|
74
57
|
@mixin inset-shadow($active:true) {
|
75
|
-
@if $experimental {
|
76
|
-
-webkit-box-shadow: $shiny-edge-size $shiny-edge-color inset;
|
77
|
-
}
|
78
58
|
box-shadow: $shiny-edge-size $shiny-edge-color inset;
|
79
59
|
|
80
60
|
@if $active { &:active {
|
81
|
-
@if $experimental {
|
82
|
-
-webkit-box-shadow: $shiny-edge-size $shiny-edge-active-color inset;
|
83
|
-
}
|
84
61
|
box-shadow: $shiny-edge-size $shiny-edge-active-color inset; } }
|
85
62
|
}
|
86
63
|
|
@@ -91,10 +68,6 @@ $base-line-height: 150% !default;
|
|
91
68
|
// $speed - Default: 300ms
|
92
69
|
// $ease - Default:ease-out, Options: http://css-tricks.com/almanac/properties/t/transition-timing-function/
|
93
70
|
@mixin single-transition($property:all, $speed:300ms, $ease:ease-out) {
|
94
|
-
@if $experimental {
|
95
|
-
-webkit-transition: $property $speed $ease;
|
96
|
-
-moz-transition: $property $speed $ease;
|
97
|
-
}
|
98
71
|
transition: $property $speed $ease;
|
99
72
|
}
|
100
73
|
|
@@ -102,16 +75,14 @@ $base-line-height: 150% !default;
|
|
102
75
|
//
|
103
76
|
// We use this to add box-sizing across browser prefixes
|
104
77
|
@mixin box-sizing($type:border-box) {
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
}
|
109
|
-
box-sizing: $type;
|
78
|
+
-webkit-box-sizing: $type; // Android < 2.3, iOS < 4
|
79
|
+
-moz-box-sizing: $type; // Firefox < 29
|
80
|
+
box-sizing: $type; // Chrome, IE 8+, Opera, Safari 5.1
|
110
81
|
}
|
111
82
|
|
112
83
|
// @mixins
|
113
84
|
//
|
114
|
-
// We use this to create
|
85
|
+
// We use this to create isosceles triangles
|
115
86
|
// $triangle-size - Used to set border-size. No default, set a px or em size.
|
116
87
|
// $triangle-color - Used to set border-color which makes up triangle. No default
|
117
88
|
// $triangle-direction - Used to determine which direction triangle points. Options: top, bottom, left, right
|
@@ -153,17 +124,9 @@ $base-line-height: 150% !default;
|
|
153
124
|
// $fade-time - Default: 300ms
|
154
125
|
// $glowing-effect-color - Default: fade-out($primary-color, .25)
|
155
126
|
@mixin block-glowing-effect($selector:focus, $fade-time:300ms, $glowing-effect-color:fade-out($primary-color, .25)) {
|
156
|
-
@if $experimental {
|
157
|
-
-webkit-transition: -webkit-box-shadow $fade-time, border-color $fade-time ease-in-out;
|
158
|
-
-moz-transition: -moz-box-shadow $fade-time, border-color $fade-time ease-in-out;
|
159
|
-
}
|
160
127
|
transition: box-shadow $fade-time, border-color $fade-time ease-in-out;
|
161
128
|
|
162
129
|
&:#{$selector} {
|
163
|
-
@if $experimental {
|
164
|
-
-webkit-box-shadow: 0 0 5px $glowing-effect-color;
|
165
|
-
-moz-box-shadow: 0 0 5px $glowing-effect-color;
|
166
|
-
}
|
167
130
|
box-shadow: 0 0 5px $glowing-effect-color;
|
168
131
|
border-color: $glowing-effect-color;
|
169
132
|
}
|
@@ -175,12 +138,6 @@ $base-line-height: 150% !default;
|
|
175
138
|
// $horizontal: Default: 0
|
176
139
|
// $vertical: Default: 0
|
177
140
|
@mixin translate2d($horizontal:0, $vertical:0) {
|
178
|
-
@if $experimental {
|
179
|
-
-webkit-transform: translate($horizontal,$vertical);
|
180
|
-
-moz-transform: translate($horizontal,$vertical);
|
181
|
-
-ms-transform: translate($horizontal,$vertical);
|
182
|
-
-o-transform: translate($horizontal,$vertical);
|
183
|
-
}
|
184
141
|
transform: translate($horizontal,$vertical)
|
185
142
|
}
|
186
143
|
|
@@ -250,6 +207,7 @@ $include-html-classes: true !default;
|
|
250
207
|
$include-print-styles: true !default;
|
251
208
|
$include-html-global-classes: $include-html-classes !default;
|
252
209
|
|
210
|
+
$column-gutter: rem-calc(30) !default;
|
253
211
|
|
254
212
|
// Media Query Ranges
|
255
213
|
$small-range: (0em, 40em) !default;
|
@@ -295,41 +253,44 @@ $cursor-text-value: text !default;
|
|
295
253
|
|
296
254
|
@include exports("global") {
|
297
255
|
|
298
|
-
|
256
|
+
// Meta styles are included in all builds, as they are a dependancy of the Javascript.
|
257
|
+
// Used to provide media query values for javascript components.
|
258
|
+
// Forward slash placed around everything to convince PhantomJS to read the value.
|
259
|
+
|
260
|
+
meta.foundation-version {
|
261
|
+
font-family: "/5.2.2/";
|
262
|
+
}
|
263
|
+
|
264
|
+
meta.foundation-mq-small {
|
265
|
+
font-family: "/" + unquote($small-up) + "/";
|
266
|
+
width: lower-bound($small-range);
|
267
|
+
}
|
299
268
|
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
// Forward slash placed around everything to convince PhantomJS to read the value.
|
305
|
-
meta.foundation-mq-small {
|
306
|
-
font-family: "/" + unquote($small-only) + "/";
|
307
|
-
width: lower-bound($small-range);
|
308
|
-
}
|
269
|
+
meta.foundation-mq-medium {
|
270
|
+
font-family: "/" + unquote($medium-up) + "/";
|
271
|
+
width: lower-bound($medium-range);
|
272
|
+
}
|
309
273
|
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
274
|
+
meta.foundation-mq-large {
|
275
|
+
font-family: "/" + unquote($large-up) + "/";
|
276
|
+
width: lower-bound($large-range);
|
277
|
+
}
|
314
278
|
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
279
|
+
meta.foundation-mq-xlarge {
|
280
|
+
font-family: "/" + unquote($xlarge-up) + "/";
|
281
|
+
width: lower-bound($xlarge-range);
|
282
|
+
}
|
319
283
|
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
284
|
+
meta.foundation-mq-xxlarge {
|
285
|
+
font-family: "/" + unquote($xxlarge-up) + "/";
|
286
|
+
width: lower-bound($xxlarge-range);
|
287
|
+
}
|
324
288
|
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
}
|
289
|
+
meta.foundation-data-attribute-namespace {
|
290
|
+
font-family: #{$namespace};
|
291
|
+
}
|
329
292
|
|
330
|
-
|
331
|
-
font-family: #{$namespace};
|
332
|
-
}
|
293
|
+
@if $include-html-global-classes {
|
333
294
|
|
334
295
|
// Must be 100% for off canvas to work
|
335
296
|
html, body { height: 100%; }
|