foundation-rails 5.0.2.0 → 5.0.3.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/lib/foundation/rails/version.rb +1 -1
- data/vendor/assets/javascripts/foundation/foundation.abide.js +27 -6
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +1 -1
- data/vendor/assets/javascripts/foundation/foundation.alert.js +3 -3
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +25 -12
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +25 -7
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +6 -5
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +19 -16
- data/vendor/assets/javascripts/foundation/foundation.js +12 -9
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +13 -1
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +2 -2
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +42 -20
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +80 -36
- data/vendor/assets/javascripts/foundation/foundation.tab.js +14 -5
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +9 -8
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +5 -4
- data/vendor/assets/javascripts/vendor/modernizr.js +1405 -3
- data/vendor/assets/stylesheets/foundation.scss +2 -0
- data/vendor/assets/stylesheets/foundation/_functions.scss +3 -0
- data/vendor/assets/stylesheets/foundation/_settings.scss +244 -50
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +15 -15
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +4 -4
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +3 -2
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +3 -3
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +10 -4
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +8 -6
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +5 -5
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +43 -19
- data/vendor/assets/stylesheets/foundation/components/_global.scss +29 -18
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +41 -25
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +5 -5
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +110 -98
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +12 -10
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +6 -6
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +4 -4
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +9 -9
- data/vendor/assets/stylesheets/foundation/components/_switch.scss +30 -28
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +75 -73
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +1 -2
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +61 -47
- data/vendor/assets/stylesheets/foundation/components/_type.scss +13 -14
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +23 -8
- data/vendor/assets/stylesheets/normalize.scss +0 -0
- metadata +3 -5
- data/vendor/_settings.scss +0 -992
- data/vendor/assets/stylesheets/foundation/components/_functions.scss +0 -70
@@ -9,8 +9,8 @@ $include-html-accordion-classes: $include-html-classes !default;
|
|
9
9
|
|
10
10
|
$accordion-navigation-padding: rem-calc(16) !default;
|
11
11
|
$accordion-navigation-bg-color: #efefef !default;
|
12
|
-
$accordion-navigation-hover-bg-color:
|
13
|
-
$accordion-navigation-active-bg-color:
|
12
|
+
$accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%) !default;
|
13
|
+
$accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%) !default;
|
14
14
|
$accordion-navigation-font-color: #222 !default;
|
15
15
|
$accordion-navigation-font-size: rem-calc(16) !default;
|
16
16
|
$accordion-navigation-font-family: $body-font-family !default;
|
@@ -20,24 +20,24 @@ $accordion-content-active-bg-color: #fff !default;
|
|
20
20
|
|
21
21
|
@include exports("accordion") {
|
22
22
|
@if $include-html-accordion-classes {
|
23
|
-
.accordion {
|
23
|
+
.accordion {
|
24
24
|
@include clearfix; margin-bottom: 0;
|
25
|
-
dd {
|
26
|
-
display: block;
|
27
|
-
margin-bottom: 0 !important;
|
25
|
+
dd {
|
26
|
+
display: block;
|
27
|
+
margin-bottom: 0 !important;
|
28
28
|
&.active a { background: $accordion-navigation-active-bg-color; }
|
29
|
-
> a {
|
30
|
-
background: $accordion-navigation-bg-color;
|
31
|
-
color: $accordion-navigation-font-color;
|
32
|
-
padding: $accordion-navigation-padding;
|
33
|
-
display: block;
|
34
|
-
font-family: $
|
29
|
+
> a {
|
30
|
+
background: $accordion-navigation-bg-color;
|
31
|
+
color: $accordion-navigation-font-color;
|
32
|
+
padding: $accordion-navigation-padding;
|
33
|
+
display: block;
|
34
|
+
font-family: $accordion-navigation-font-family;
|
35
35
|
font-size: $accordion-navigation-font-size;
|
36
36
|
&:hover { background: $accordion-navigation-hover-bg-color; }
|
37
37
|
}
|
38
38
|
}
|
39
|
-
.content {
|
40
|
-
display: none;
|
39
|
+
.content {
|
40
|
+
display: none;
|
41
41
|
padding: $accordion-content-padding;
|
42
42
|
&.active {
|
43
43
|
display: block;
|
@@ -46,4 +46,4 @@ $accordion-content-active-bg-color: #fff !default;
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
}
|
49
|
-
}
|
49
|
+
}
|
@@ -15,15 +15,15 @@ $alert-padding-bottom: $alert-padding-top !default;
|
|
15
15
|
$alert-font-weight: normal !default;
|
16
16
|
$alert-font-size: rem-calc(13) !default;
|
17
17
|
$alert-font-color: #fff !default;
|
18
|
-
$alert-font-color-alt:
|
18
|
+
$alert-font-color-alt: scale-color($secondary-color, $lightness: -66%) !default;
|
19
19
|
|
20
20
|
// We use this for close hover effect.
|
21
|
-
$alert-function-factor:
|
21
|
+
$alert-function-factor: -14% !default;
|
22
22
|
|
23
23
|
// We use these to control border styles.
|
24
24
|
$alert-border-style: solid !default;
|
25
25
|
$alert-border-width: 1px !default;
|
26
|
-
$alert-border-color:
|
26
|
+
$alert-border-color: scale-color($primary-color, $lightness: $alert-function-factor) !default;
|
27
27
|
$alert-bottom-margin: rem-calc(20) !default;
|
28
28
|
|
29
29
|
// We use these to style the close buttons
|
@@ -64,7 +64,7 @@ $alert-radius: $global-radius !default;
|
|
64
64
|
|
65
65
|
// We control which background color and border come through.
|
66
66
|
background-color: $bg;
|
67
|
-
border-color:
|
67
|
+
border-color: scale-color($bg, $lightness: $alert-function-factor);
|
68
68
|
|
69
69
|
// We control the text color for you based on the background color.
|
70
70
|
@if $bg-lightness > 70% { color: $alert-font-color-alt; }
|
@@ -29,7 +29,7 @@ $block-grid-media-queries: true !default;
|
|
29
29
|
@if $base-style {
|
30
30
|
display: block;
|
31
31
|
padding: 0;
|
32
|
-
margin: 0 (-$spacing/2);
|
32
|
+
margin: 0 0 0 (-$spacing/2);
|
33
33
|
@include clearfix;
|
34
34
|
|
35
35
|
&>li {
|
@@ -44,6 +44,7 @@ $block-grid-media-queries: true !default;
|
|
44
44
|
&>li {
|
45
45
|
width: 100%/$per-row;
|
46
46
|
padding: 0 ($spacing/2) $spacing;
|
47
|
+
list-style: none;
|
47
48
|
|
48
49
|
&:nth-of-type(n) { clear: none; }
|
49
50
|
&:nth-of-type(#{$per-row}n+1) { clear: both; }
|
@@ -80,4 +81,4 @@ $block-grid-media-queries: true !default;
|
|
80
81
|
@include block-grid-html-classes($size:large);
|
81
82
|
}
|
82
83
|
}
|
83
|
-
}
|
84
|
+
}
|
@@ -6,17 +6,17 @@
|
|
6
6
|
$include-html-nav-classes: $include-html-classes !default;
|
7
7
|
|
8
8
|
// We use this to set the background color for the breadcrumb container.
|
9
|
-
$crumb-bg:
|
9
|
+
$crumb-bg: scale-color($secondary-color, $lightness: 55%) !default;
|
10
10
|
|
11
11
|
// We use these to set the padding around the breadcrumbs.
|
12
12
|
$crumb-padding: rem-calc(9 14 9) !default;
|
13
13
|
$crumb-side-padding: rem-calc(12) !default;
|
14
14
|
|
15
15
|
// We use these to control border styles.
|
16
|
-
$crumb-function-factor: 10% !default;
|
16
|
+
$crumb-function-factor: -10% !default;
|
17
17
|
$crumb-border-size: 1px !default;
|
18
18
|
$crumb-border-style: solid !default;
|
19
|
-
$crumb-border-color:
|
19
|
+
$crumb-border-color: scale-color($crumb-bg, $lightness: $crumb-function-factor) !default;
|
20
20
|
$crumb-radius: $global-radius !default;
|
21
21
|
|
22
22
|
// We use these to set various text styles for breadcrumbs.
|
@@ -32,10 +32,16 @@ $button-group-border-width: 1px !default;
|
|
32
32
|
// We use this to control styles for button groups
|
33
33
|
@mixin button-group-style($radius:false, $even:false, $float:$default-float) {
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
> button, .button {
|
36
|
+
border-#{$opposite-direction}: $button-group-border-width solid;
|
37
|
+
border-color: rgba(255, 255, 255, 0.5);
|
38
|
+
}
|
39
|
+
|
40
|
+
&:last-child {
|
41
|
+
button, .button {
|
42
|
+
border-#{$opposite-direction}: 0;
|
43
|
+
}
|
44
|
+
}
|
39
45
|
|
40
46
|
// We use this to control the flow, or remove those styles completely.
|
41
47
|
@if $float {
|
@@ -27,10 +27,10 @@ $button-font-weight: normal !default;
|
|
27
27
|
$button-font-align: center !default;
|
28
28
|
|
29
29
|
// We use these to control various hover effects.
|
30
|
-
$button-function-factor:
|
30
|
+
$button-function-factor: -20% !default;
|
31
31
|
|
32
32
|
// We use these to control button border styles.
|
33
|
-
$button-border-width:
|
33
|
+
$button-border-width: 0px !default;
|
34
34
|
$button-border-style: solid !default;
|
35
35
|
|
36
36
|
// We use this to set the default radius used throughout the core.
|
@@ -51,6 +51,8 @@ $button-disabled-opacity: 0.7 !default;
|
|
51
51
|
|
52
52
|
@mixin button-base($style:true, $display:$button-display) {
|
53
53
|
@if $style {
|
54
|
+
border-style: $button-border-style;
|
55
|
+
border-width: $button-border-width;
|
54
56
|
cursor: $cursor-pointer-value;
|
55
57
|
font-family: $button-font-family;
|
56
58
|
font-weight: $button-font-weight;
|
@@ -109,14 +111,14 @@ $button-disabled-opacity: 0.7 !default;
|
|
109
111
|
padding-top: $is-input + rem-calc(.5);
|
110
112
|
padding-bottom: $is-input + rem-calc(.5);
|
111
113
|
-webkit-appearance: none;
|
112
|
-
border: none;
|
114
|
+
border: none;
|
113
115
|
font-weight: $button-font-weight !important;
|
114
116
|
}
|
115
117
|
@else if $is-input {
|
116
118
|
padding-top: $is-input + rem-calc(1);
|
117
119
|
padding-bottom: $is-input;
|
118
120
|
-webkit-appearance: none;
|
119
|
-
border: none;
|
121
|
+
border: none;
|
120
122
|
font-weight: $button-font-weight !important;
|
121
123
|
}
|
122
124
|
}
|
@@ -137,9 +139,9 @@ $button-disabled-opacity: 0.7 !default;
|
|
137
139
|
$bg-lightness: lightness($bg);
|
138
140
|
|
139
141
|
background-color: $bg;
|
140
|
-
border-color:
|
142
|
+
border-color: scale-color($bg, $lightness: $button-function-factor);
|
141
143
|
&:hover,
|
142
|
-
&:focus { background-color:
|
144
|
+
&:focus { background-color: scale-color($bg, $lightness: $button-function-factor); }
|
143
145
|
|
144
146
|
// We control the text color for you based on the background color.
|
145
147
|
@if $bg-lightness > 70% {
|
File without changes
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//
|
4
4
|
// @variables
|
5
5
|
//
|
6
|
-
$include-html-
|
6
|
+
$include-html-dropdown-classes: $include-html-classes !default;
|
7
7
|
|
8
8
|
// We use these to controls height and width styles.
|
9
9
|
$f-dropdown-max-width: 200px !default;
|
@@ -17,7 +17,7 @@ $f-dropdown-bg: #fff !default;
|
|
17
17
|
// We use this to set the border styles for dropdowns.
|
18
18
|
$f-dropdown-border-style: solid !default;
|
19
19
|
$f-dropdown-border-width: 1px !default;
|
20
|
-
$f-dropdown-border-color:
|
20
|
+
$f-dropdown-border-color: scale-color(#fff, $lightness: -20%) !default;
|
21
21
|
|
22
22
|
// We use these to style the triangle pip.
|
23
23
|
$f-dropdown-triangle-size: 6px !default;
|
@@ -47,7 +47,7 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
47
47
|
// $max-width - Default: $f-dropdown-max-width || 200px.
|
48
48
|
@mixin dropdown-container($content:list, $triangle:true, $max-width:$f-dropdown-max-width) {
|
49
49
|
position: absolute;
|
50
|
-
|
50
|
+
left: -9999px;
|
51
51
|
list-style: $f-dropdown-list-style;
|
52
52
|
margin-#{$default-float}: 0;
|
53
53
|
|
@@ -129,7 +129,7 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
129
129
|
}
|
130
130
|
|
131
131
|
@include exports("dropdown") {
|
132
|
-
@if $include-html-
|
132
|
+
@if $include-html-dropdown-classes {
|
133
133
|
|
134
134
|
@media #{$small-only} {
|
135
135
|
.f-dropdown {
|
@@ -156,4 +156,4 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
156
156
|
}
|
157
157
|
|
158
158
|
}
|
159
|
-
}
|
159
|
+
}
|
File without changes
|
@@ -13,17 +13,18 @@ $form-spacing: rem-calc(16) !default;
|
|
13
13
|
$form-label-pointer: pointer !default;
|
14
14
|
$form-label-font-size: rem-calc(14) !default;
|
15
15
|
$form-label-font-weight: normal !default;
|
16
|
-
$form-label-font-color:
|
16
|
+
$form-label-font-color: scale-color(#000, $lightness: 30%) !default;
|
17
17
|
$form-label-bottom-margin: rem-calc(8) !default;
|
18
18
|
$input-font-family: inherit !default;
|
19
19
|
$input-font-color: rgba(0,0,0,0.75) !default;
|
20
20
|
$input-font-size: rem-calc(14) !default;
|
21
21
|
$input-bg-color: #fff !default;
|
22
|
-
$input-focus-bg-color:
|
23
|
-
$input-border-color:
|
24
|
-
$input-focus-border-color:
|
22
|
+
$input-focus-bg-color: scale-color(#fff, $lightness: -2%) !default;
|
23
|
+
$input-border-color: scale-color(#fff, $lightness: -20%) !default;
|
24
|
+
$input-focus-border-color: scale-color(#fff, $lightness: -40%) !default;
|
25
25
|
$input-border-style: solid !default;
|
26
26
|
$input-border-width: 1px !default;
|
27
|
+
$input-border-radius: 0 !default;
|
27
28
|
$input-disabled-bg: #ddd !default;
|
28
29
|
$input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !default;
|
29
30
|
$input-include-glowing-effect: true !default;
|
@@ -41,8 +42,8 @@ $legend-font-weight: bold !default;
|
|
41
42
|
$legend-padding: rem-calc(0 3) !default;
|
42
43
|
|
43
44
|
// We use these to style the prefix and postfix input elements
|
44
|
-
$input-prefix-bg:
|
45
|
-
$input-prefix-border-color:
|
45
|
+
$input-prefix-bg: scale-color(#fff, $lightness: -5%) !default;
|
46
|
+
$input-prefix-border-color: scale-color(#fff, $lightness: -20%) !default;
|
46
47
|
$input-prefix-border-size: 1px !default;
|
47
48
|
$input-prefix-border-type: solid !default;
|
48
49
|
$input-prefix-overflow: hidden !default;
|
@@ -63,7 +64,7 @@ $glowing-effect-fade-time: 0.45s !default;
|
|
63
64
|
$glowing-effect-color: $input-focus-border-color !default;
|
64
65
|
|
65
66
|
// Select variables
|
66
|
-
$select-bg-color: #fafafa;
|
67
|
+
$select-bg-color: #fafafa !default;
|
67
68
|
|
68
69
|
|
69
70
|
//
|
@@ -179,7 +180,7 @@ $select-bg-color: #fafafa;
|
|
179
180
|
// @MIXIN
|
180
181
|
//
|
181
182
|
// We use this mixin to create prefix label styles
|
182
|
-
// $bg - Default:$input-prefix-bg ||
|
183
|
+
// $bg - Default:$input-prefix-bg || scale-color(#fff, $lightness: -5%) !default;
|
183
184
|
// $is-button - Toggle position settings if prefix is a button. Default:false
|
184
185
|
//
|
185
186
|
@mixin prefix($bg:$input-prefix-bg,$is-button:false) {
|
@@ -187,7 +188,7 @@ $select-bg-color: #fafafa;
|
|
187
188
|
@if $bg {
|
188
189
|
$bg-lightness: lightness($bg);
|
189
190
|
background: $bg;
|
190
|
-
border-color:
|
191
|
+
border-color: scale-color($bg, $lightness: -11%);
|
191
192
|
border-#{$opposite-direction}: none;
|
192
193
|
|
193
194
|
// Control the font color based on background brightness
|
@@ -210,14 +211,14 @@ $select-bg-color: #fafafa;
|
|
210
211
|
// @MIXIN
|
211
212
|
//
|
212
213
|
// We use this mixin to create postfix label styles
|
213
|
-
// $bg - Default:$input-prefix-bg ||
|
214
|
+
// $bg - Default:$input-prefix-bg || scale-color(#fff, $lightness: -5%) !default;
|
214
215
|
// $is-button - Toggle position settings if prefix is a button. Default: false
|
215
216
|
@mixin postfix($bg:$input-prefix-bg, $is-button:false) {
|
216
217
|
|
217
218
|
@if $bg {
|
218
219
|
$bg-lightness: lightness($bg);
|
219
220
|
background: $bg;
|
220
|
-
border-color:
|
221
|
+
border-color: scale-color($bg, $lightness: -16%);
|
221
222
|
border-#{$default-float}: none;
|
222
223
|
|
223
224
|
// Control the font color based on background brightness
|
@@ -309,14 +310,14 @@ $select-bg-color: #fafafa;
|
|
309
310
|
/* Styles for required inputs */
|
310
311
|
small {
|
311
312
|
text-transform: capitalize;
|
312
|
-
color:
|
313
|
+
color: scale-color($form-label-font-color, $lightness: 15%);
|
313
314
|
}
|
314
315
|
}
|
315
316
|
|
316
317
|
select {
|
317
318
|
-webkit-appearance: none !important;
|
318
|
-
background:
|
319
|
-
$select-bg-color
|
319
|
+
background:
|
320
|
+
$select-bg-color
|
320
321
|
url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==') no-repeat;
|
321
322
|
background-position-x: 97%;
|
322
323
|
background-position-y: center;
|
@@ -326,17 +327,22 @@ $select-bg-color: #fafafa;
|
|
326
327
|
@include radius(0);
|
327
328
|
&.radius { @include radius($global-radius); }
|
328
329
|
&:hover {
|
329
|
-
background:
|
330
|
-
|
330
|
+
background:
|
331
|
+
scale-color($select-bg-color, $lightness: -3%)
|
331
332
|
url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==') no-repeat;
|
332
333
|
background-position-x: 97%;
|
333
334
|
background-position-y: center;
|
334
335
|
border-color: $input-focus-border-color;
|
335
336
|
}
|
336
337
|
}
|
338
|
+
|
339
|
+
select::-ms-expand {
|
340
|
+
display:none;
|
341
|
+
}
|
342
|
+
|
337
343
|
@-moz-document url-prefix() {
|
338
344
|
select { background: $select-bg-color; }
|
339
|
-
select:hover { background:
|
345
|
+
select:hover { background: scale-color($select-bg-color, $lightness: -3%); }
|
340
346
|
}
|
341
347
|
/* Attach elements to the beginning or end of an input */
|
342
348
|
.prefix,
|
@@ -395,13 +401,18 @@ $select-bg-color: #fafafa;
|
|
395
401
|
input[type="url"],
|
396
402
|
textarea {
|
397
403
|
-webkit-appearance: none;
|
398
|
-
-webkit-border-radius:
|
399
|
-
border-radius:
|
404
|
+
-webkit-border-radius: $input-border-radius;
|
405
|
+
border-radius: $input-border-radius;
|
400
406
|
@include form-element;
|
401
407
|
@if not $input-include-glowing-effect {
|
402
408
|
@include single-transition(all, 0.15s, linear);
|
403
409
|
}
|
404
410
|
}
|
411
|
+
|
412
|
+
/* Add height value for select elements to match text input height */
|
413
|
+
select {
|
414
|
+
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
|
415
|
+
}
|
405
416
|
|
406
417
|
/* Adjust margin for form elements below */
|
407
418
|
input[type="file"],
|
@@ -458,6 +469,19 @@ $select-bg-color: #fafafa;
|
|
458
469
|
@include form-error-message;
|
459
470
|
}
|
460
471
|
|
472
|
+
> label {
|
473
|
+
> small {
|
474
|
+
color: scale-color($form-label-font-color, $lightness: 15%);
|
475
|
+
background: transparent;
|
476
|
+
padding: 0;
|
477
|
+
text-transform: capitalize;
|
478
|
+
font-style: normal;
|
479
|
+
font-size: 60%;
|
480
|
+
margin: 0;
|
481
|
+
display: inline;
|
482
|
+
}
|
483
|
+
}
|
484
|
+
|
461
485
|
span.error-message {
|
462
486
|
display: block;
|
463
487
|
}
|
@@ -17,12 +17,6 @@ $base-font-size: 100% !default;
|
|
17
17
|
// $base-line-height is 24px while $base-font-size is 16px
|
18
18
|
$base-line-height: 150% !default;
|
19
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
20
|
//
|
27
21
|
// Global Foundation Mixins
|
28
22
|
//
|
@@ -189,6 +183,21 @@ $include-open-sans: true !default;
|
|
189
183
|
}
|
190
184
|
}
|
191
185
|
|
186
|
+
// @mixins
|
187
|
+
//
|
188
|
+
// We use this to translate elements in 2D
|
189
|
+
// $horizontal: Default: 0
|
190
|
+
// $vertical: Default: 0
|
191
|
+
@mixin translate2d($horizontal:0, $vertical:0) {
|
192
|
+
@if $experimental {
|
193
|
+
-webkit-transform: translate($horizontal,$vertical);
|
194
|
+
-moz-transform: translate($horizontal,$vertical);
|
195
|
+
-ms-transform: translate($horizontal,$vertical);
|
196
|
+
-o-transform: translate($horizontal,$vertical);
|
197
|
+
}
|
198
|
+
transform: translate($horizontal,$vertical)
|
199
|
+
}
|
200
|
+
|
192
201
|
// We use these to control various global styles
|
193
202
|
$body-bg: #fff !default;
|
194
203
|
$body-font-color: #222 !default;
|
@@ -237,11 +246,11 @@ $include-html-global-classes: $include-html-classes !default;
|
|
237
246
|
|
238
247
|
|
239
248
|
// Media Query Ranges
|
240
|
-
$small-range: (0em, 40em);
|
241
|
-
$medium-range: (40.063em, 64em);
|
242
|
-
$large-range: (64.063em, 90em);
|
243
|
-
$xlarge-range: (90.063em, 120em);
|
244
|
-
$xxlarge-range: (120.063em);
|
249
|
+
$small-range: (0em, 40em) !default;
|
250
|
+
$medium-range: (40.063em, 64em) !default;
|
251
|
+
$large-range: (64.063em, 90em) !default;
|
252
|
+
$xlarge-range: (90.063em, 120em) !default;
|
253
|
+
$xxlarge-range: (120.063em) !default;
|
245
254
|
|
246
255
|
|
247
256
|
$screen: "only screen" !default;
|
@@ -279,9 +288,6 @@ $cursor-text-value: text !default;
|
|
279
288
|
|
280
289
|
|
281
290
|
@include exports("global") {
|
282
|
-
@if $include-open-sans {
|
283
|
-
@import url("//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700");
|
284
|
-
}
|
285
291
|
// Used to provide media query values for javascript components.
|
286
292
|
// Forward slash placed around everything to convince PhantomJS to read the value.
|
287
293
|
meta.foundation-mq-small {
|
@@ -290,7 +296,7 @@ $cursor-text-value: text !default;
|
|
290
296
|
}
|
291
297
|
|
292
298
|
meta.foundation-mq-medium {
|
293
|
-
font-family: "/" + unquote($medium-
|
299
|
+
font-family: "/" + unquote($medium-up) + "/";
|
294
300
|
width: lower-bound($medium-range);
|
295
301
|
}
|
296
302
|
|
@@ -363,12 +369,17 @@ $cursor-text-value: text !default;
|
|
363
369
|
.text-center { text-align: center !important; }
|
364
370
|
.text-justify { text-align: justify !important; }
|
365
371
|
.hide { display: none; }
|
372
|
+
// Bidi counterparts to .left, .right, .text-left, .text-right
|
373
|
+
.start { float: $default-float !important; }
|
374
|
+
.end { float: $opposite-direction !important; }
|
375
|
+
.text-start { text-align: $default-float !important; }
|
376
|
+
.text-end { text-align: $opposite-direction !important; }
|
366
377
|
|
367
378
|
// Font smoothing
|
368
379
|
// Antialiased font smoothing works best for light text on a dark background.
|
369
380
|
// Apply to single elements instead of globally to body.
|
370
|
-
// Note this only applies to webkit-based desktop browsers on the Mac.
|
371
|
-
.antialiased { -webkit-font-smoothing: antialiased; }
|
381
|
+
// Note this only applies to webkit-based desktop browsers and Firefox 25 (and later) on the Mac.
|
382
|
+
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
|
372
383
|
|
373
384
|
// Get rid of gap under images by making them display: inline-block; by default
|
374
385
|
img {
|
@@ -386,4 +397,4 @@ $cursor-text-value: text !default;
|
|
386
397
|
// Make select elements 100% width by default
|
387
398
|
select { width: 100%; }
|
388
399
|
}
|
389
|
-
}
|
400
|
+
}
|