zurb-foundation 4.2.3 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CONTRIBUTING.md +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +8 -0
- data/docs/CHANGELOG.md +17 -0
- data/docs/README.md +3 -1
- data/docs/_sidebar-components.html.erb +2 -1
- data/docs/_sidebar.html.erb +2 -1
- data/docs/compile.rb +8 -1
- data/docs/components/abide.html.erb +371 -0
- data/docs/components/alert-boxes.html.erb +12 -9
- data/docs/components/block-grid.html.erb +1 -1
- data/docs/components/breadcrumbs.html.erb +7 -5
- data/docs/components/button-groups.html.erb +4 -2
- data/docs/components/buttons.html.erb +13 -9
- data/docs/components/clearing.html.erb +2 -0
- data/docs/components/dropdown-buttons.html.erb +59 -55
- data/docs/components/dropdown.html.erb +34 -32
- data/docs/components/flex-video.html.erb +4 -2
- data/docs/components/forms.html.erb +16 -15
- data/docs/components/global.html.erb +27 -4
- data/docs/components/grid.html.erb +21 -3
- data/docs/components/inline-lists.html.erb +8 -3
- data/docs/components/joyride.html.erb +5 -3
- data/docs/components/keystrokes.html.erb +4 -2
- data/docs/components/kitchen-sink.html.erb +15 -40
- data/docs/components/labels.html.erb +4 -2
- data/docs/components/magellan.html.erb +4 -2
- data/docs/components/orbit.html.erb +39 -27
- data/docs/components/pagination.html.erb +10 -8
- data/docs/components/panels.html.erb +7 -3
- data/docs/components/pricing-tables.html.erb +12 -10
- data/docs/components/progress-bars.html.erb +6 -4
- data/docs/components/reveal.html.erb +7 -28
- data/docs/components/section.html.erb +15 -13
- data/docs/components/side-nav.html.erb +5 -3
- data/docs/components/split-buttons.html.erb +45 -43
- data/docs/components/sub-nav.html.erb +7 -5
- data/docs/components/switch.html.erb +3 -1
- data/docs/components/tables.html.erb +8 -6
- data/docs/components/thumbnails.html.erb +2 -0
- data/docs/components/tooltips.html.erb +6 -4
- data/docs/components/top-bar.html.erb +9 -8
- data/docs/components/type.html.erb +20 -18
- data/docs/config.ru +2 -1
- data/docs/css/_footer.scss +420 -0
- data/docs/css/_offcanvas.scss +140 -0
- data/docs/css/docs.scss +10 -1
- data/docs/fonts/ProximaNova-Reg-webfont.eot +0 -0
- data/docs/fonts/ProximaNova-Reg-webfont.svg +244 -0
- data/docs/fonts/ProximaNova-Reg-webfont.ttf +0 -0
- data/docs/fonts/ProximaNova-Reg-webfont.woff +0 -0
- data/docs/fonts/proximanovacond-bold-webfont.eot +0 -0
- data/docs/fonts/proximanovacond-bold-webfont.svg +247 -0
- data/docs/fonts/proximanovacond-bold-webfont.ttf +0 -0
- data/docs/fonts/proximanovacond-bold-webfont.woff +0 -0
- data/docs/img/demos/orbit/demo1.jpg +0 -0
- data/docs/img/demos/orbit/demo2.jpg +0 -0
- data/docs/img/demos/orbit/demo3.jpg +0 -0
- data/docs/img/icons/footer-icons.png +0 -0
- data/docs/img/icons/footer-top-icons.png +0 -0
- data/docs/img/icons/social.png +0 -0
- data/docs/img/offcanvas/footer-icons.png +0 -0
- data/docs/img/offcanvas/menu-wht.png +0 -0
- data/docs/img/offcanvas/search.png +0 -0
- data/docs/img/offcanvas/zurb-logo.png +0 -0
- data/docs/img/offcanvas/zurb-wht.png +0 -0
- data/docs/js/docs.js +1 -0
- data/docs/js/jquery.offcanvas.js +28 -0
- data/docs/layout.html.erb +226 -42
- data/docs/media-queries.html.erb +3 -3
- data/docs/sass.html.erb +142 -142
- data/docs/support.html.erb +1 -1
- data/js/foundation/foundation.abide.js +194 -0
- data/js/foundation/foundation.dropdown.js +8 -9
- data/js/foundation/foundation.forms.js +11 -3
- data/js/foundation/foundation.interchange.js +25 -16
- data/js/foundation/foundation.joyride.js +9 -3
- data/js/foundation/foundation.js +2 -3
- data/js/foundation/foundation.magellan.js +3 -2
- data/js/foundation/foundation.orbit.js +359 -344
- data/js/foundation/foundation.reveal.js +1 -1
- data/js/foundation/foundation.section.js +290 -311
- data/js/foundation/foundation.tooltips.js +2 -2
- data/js/foundation/foundation.topbar.js +20 -23
- data/js/foundation/index.js +1 -0
- data/js/vendor/jquery.js +103 -121
- data/lib/foundation/generators/templates/application.html.slim +15 -8
- data/lib/foundation/version.rb +1 -1
- data/scss/foundation.scss +2 -5
- data/scss/foundation/_variables.scss +326 -295
- data/scss/foundation/components/_alert-boxes.scss +10 -10
- data/scss/foundation/components/_block-grid.scss +1 -1
- data/scss/foundation/components/_breadcrumbs.scss +8 -8
- data/scss/foundation/components/_button-groups.scss +2 -2
- data/scss/foundation/components/_buttons.scss +18 -18
- data/scss/foundation/components/_custom-forms.scss +20 -14
- data/scss/foundation/components/_dropdown-buttons.scss +9 -9
- data/scss/foundation/components/_dropdown.scss +4 -4
- data/scss/foundation/components/_flex-video.scss +3 -3
- data/scss/foundation/components/_forms.scss +54 -24
- data/scss/foundation/components/_global.scss +28 -5
- data/scss/foundation/components/_grid-5.scss +214 -0
- data/scss/foundation/components/_grid.scss +3 -3
- data/scss/foundation/components/_inline-lists.scss +3 -3
- data/scss/foundation/components/_joyride.scss +6 -6
- data/scss/foundation/components/_keystrokes.scss +3 -3
- data/scss/foundation/components/_labels.scss +3 -3
- data/scss/foundation/components/_orbit.scss +34 -9
- data/scss/foundation/components/_pagination.scss +8 -6
- data/scss/foundation/components/_panels.scss +3 -3
- data/scss/foundation/components/_pricing-tables.scss +10 -10
- data/scss/foundation/components/_progress-bars.scss +3 -3
- data/scss/foundation/components/_reveal.scss +7 -7
- data/scss/foundation/components/_section.scss +252 -214
- data/scss/foundation/components/_side-nav.scss +3 -3
- data/scss/foundation/components/_split-buttons.scss +7 -7
- data/scss/foundation/components/_sub-nav.scss +7 -7
- data/scss/foundation/components/_switch.scss +4 -4
- data/scss/foundation/components/_tables.scss +6 -6
- data/scss/foundation/components/_tooltips.scss +4 -4
- data/scss/foundation/components/_top-bar.scss +14 -10
- data/scss/foundation/components/_type.scss +23 -23
- data/templates/project/index.html +4 -4
- data/templates/project/scss/app.scss +8 -0
- metadata +29 -4
@@ -1,17 +1,17 @@
|
|
1
1
|
//
|
2
|
-
// Alert Variables
|
2
|
+
// Alert Box Variables
|
3
3
|
//
|
4
4
|
$include-html-alert-classes: $include-html-classes !default;
|
5
5
|
|
6
6
|
// We use this to control alert padding.
|
7
|
-
$alert-padding-top: emCalc(
|
7
|
+
$alert-padding-top: emCalc(11) !default;
|
8
8
|
$alert-padding-default-float: $alert-padding-top !default;
|
9
|
-
$alert-padding-opposite-direction: $alert-padding-top + emCalc(
|
10
|
-
$alert-padding-bottom: $alert-padding-top + emCalc(
|
9
|
+
$alert-padding-opposite-direction: $alert-padding-top + emCalc(10) !default;
|
10
|
+
$alert-padding-bottom: $alert-padding-top + emCalc(1) !default;
|
11
11
|
|
12
12
|
// We use these to control text style.
|
13
13
|
$alert-font-weight: bold !default;
|
14
|
-
$alert-font-size: emCalc(
|
14
|
+
$alert-font-size: emCalc(14) !default;
|
15
15
|
$alert-font-color: #fff !default;
|
16
16
|
$alert-font-color-alt: darken($secondary-color, 60%) !default;
|
17
17
|
|
@@ -22,12 +22,12 @@ $alert-function-factor: 10% !default;
|
|
22
22
|
$alert-border-style: solid !default;
|
23
23
|
$alert-border-width: 1px !default;
|
24
24
|
$alert-border-color: darken($primary-color, $alert-function-factor) !default;
|
25
|
-
$alert-bottom-margin: emCalc(
|
25
|
+
$alert-bottom-margin: emCalc(20) !default;
|
26
26
|
|
27
27
|
// We use these to style the close buttons
|
28
28
|
$alert-close-color: #333 !default;
|
29
|
-
$alert-close-position: emCalc(
|
30
|
-
$alert-close-font-size: emCalc(
|
29
|
+
$alert-close-position: emCalc(5) !default;
|
30
|
+
$alert-close-font-size: emCalc(22) !default;
|
31
31
|
$alert-close-opacity: 0.3 !default;
|
32
32
|
$alert-close-opacity-hover: 0.5 !default;
|
33
33
|
$alert-close-padding: 5px 4px 4px !default;
|
@@ -73,7 +73,7 @@ $alert-radius: $global-radius !default;
|
|
73
73
|
padding: $alert-close-padding;
|
74
74
|
line-height: 0;
|
75
75
|
position: absolute;
|
76
|
-
top: $alert-close-position + emCalc(
|
76
|
+
top: $alert-close-position + emCalc(2);
|
77
77
|
#{$opposite-direction}: $alert-close-position;
|
78
78
|
color: $alert-close-color;
|
79
79
|
opacity: $alert-close-opacity;
|
@@ -104,4 +104,4 @@ $alert-radius: $global-radius !default;
|
|
104
104
|
&.secondary { @include alert-style($secondary-color); }
|
105
105
|
}
|
106
106
|
|
107
|
-
}
|
107
|
+
}
|
@@ -5,7 +5,7 @@ $include-html-grid-classes: $include-html-classes !default;
|
|
5
5
|
|
6
6
|
// We use this to control the maximum number of block grid elements per row
|
7
7
|
$block-grid-elements: 12 !default;
|
8
|
-
$block-grid-default-spacing: emCalc(
|
8
|
+
$block-grid-default-spacing: emCalc(20) !default;
|
9
9
|
|
10
10
|
// Enables media queries for block-grid classes. Set to false if writing semantic HTML.
|
11
11
|
$block-grid-media-queries: true !default;
|
@@ -7,8 +7,8 @@ $include-html-nav-classes: $include-html-classes !default;
|
|
7
7
|
$crumb-bg: lighten($secondary-color, 5%) !default;
|
8
8
|
|
9
9
|
// We use these to set the padding around the breadcrumbs.
|
10
|
-
$crumb-padding: emCalc(
|
11
|
-
$crumb-side-padding: emCalc(
|
10
|
+
$crumb-padding: emCalc(9, 14, 9) !default;
|
11
|
+
$crumb-side-padding: emCalc(12) !default;
|
12
12
|
|
13
13
|
// We use these to control border styles.
|
14
14
|
$crumb-function-factor: 10% !default;
|
@@ -18,7 +18,7 @@ $crumb-border-color: darken($crumb-bg, $crumb-function-factor) !default;
|
|
18
18
|
$crumb-radius: $global-radius !default;
|
19
19
|
|
20
20
|
// We use these to set various text styles for breadcrumbs.
|
21
|
-
$crumb-font-size: emCalc(
|
21
|
+
$crumb-font-size: emCalc(11) !default;
|
22
22
|
$crumb-font-color: $primary-color !default;
|
23
23
|
$crumb-font-color-current: #333 !default;
|
24
24
|
$crumb-font-color-unavailable: #999 !default;
|
@@ -67,8 +67,8 @@ $crumb-slash: "/" !default;
|
|
67
67
|
|
68
68
|
// Current is for the link of the current page
|
69
69
|
&.current {
|
70
|
-
|
71
|
-
|
70
|
+
cursor: $cursor-default-value;
|
71
|
+
color: $crumb-font-color-current;
|
72
72
|
a {
|
73
73
|
cursor: $cursor-default-value;
|
74
74
|
color: $crumb-font-color-current;
|
@@ -80,7 +80,7 @@ $crumb-slash: "/" !default;
|
|
80
80
|
|
81
81
|
// Unavailable removed color and link styles so it looks inactive.
|
82
82
|
&.unavailable {
|
83
|
-
|
83
|
+
color: $crumb-font-color-unavailable;
|
84
84
|
a { color: $crumb-font-color-unavailable; }
|
85
85
|
|
86
86
|
&:hover,
|
@@ -102,8 +102,8 @@ $crumb-slash: "/" !default;
|
|
102
102
|
}
|
103
103
|
|
104
104
|
&:first-child:before {
|
105
|
-
|
106
|
-
|
105
|
+
content: " ";
|
106
|
+
margin: 0;
|
107
107
|
}
|
108
108
|
|
109
109
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
$include-html-button-classes: $include-html-classes !default;
|
5
5
|
|
6
6
|
// Sets the margin for the right side by default, and the left margin if right-to-left direction is used
|
7
|
-
$button-bar-margin-opposite: emCalc(
|
7
|
+
$button-bar-margin-opposite: emCalc(10) !default;
|
8
8
|
|
9
9
|
//
|
10
10
|
// Button Group Mixins
|
@@ -86,4 +86,4 @@ $button-bar-margin-opposite: emCalc(10px) !default;
|
|
86
86
|
.button-group { @include button-group-container($styles:false,$float:true); }
|
87
87
|
}
|
88
88
|
|
89
|
-
}
|
89
|
+
}
|
@@ -4,23 +4,23 @@
|
|
4
4
|
$include-html-button-classes: $include-html-classes !default;
|
5
5
|
|
6
6
|
// We use these to build padding for buttons.
|
7
|
-
$button-med: emCalc(
|
8
|
-
$button-tny: emCalc(
|
9
|
-
$button-sml: emCalc(
|
10
|
-
$button-lrg: emCalc(
|
7
|
+
$button-med: emCalc(12) !default;
|
8
|
+
$button-tny: emCalc(7) !default;
|
9
|
+
$button-sml: emCalc(9) !default;
|
10
|
+
$button-lrg: emCalc(16) !default;
|
11
11
|
|
12
12
|
// We use this to control the display property.
|
13
13
|
$button-display: inline-block !default;
|
14
|
-
$button-margin-bottom: emCalc(
|
14
|
+
$button-margin-bottom: emCalc(20) !default;
|
15
15
|
|
16
16
|
// We use these to control button text styles.
|
17
17
|
$button-font-family: inherit !default;
|
18
18
|
$button-font-color: #fff !default;
|
19
19
|
$button-font-color-alt: #333 !default;
|
20
|
-
$button-font-med: emCalc(
|
21
|
-
$button-font-tny: emCalc(
|
22
|
-
$button-font-sml: emCalc(
|
23
|
-
$button-font-lrg: emCalc(
|
20
|
+
$button-font-med: emCalc(16) !default;
|
21
|
+
$button-font-tny: emCalc(11) !default;
|
22
|
+
$button-font-sml: emCalc(13) !default;
|
23
|
+
$button-font-lrg: emCalc(20) !default;
|
24
24
|
$button-font-weight: bold !default;
|
25
25
|
$button-font-align: center !default;
|
26
26
|
|
@@ -69,7 +69,7 @@ $button-disabled-opacity: 0.6 !default;
|
|
69
69
|
@if $padding {
|
70
70
|
padding-top: $padding;
|
71
71
|
padding-#{$opposite-direction}: $padding * 2;
|
72
|
-
padding-bottom: $padding + emCalc(
|
72
|
+
padding-bottom: $padding + emCalc(1);
|
73
73
|
padding-#{$default-float}: $padding * 2;
|
74
74
|
|
75
75
|
// We control the font-size based on mixin input.
|
@@ -77,15 +77,15 @@ $button-disabled-opacity: 0.6 !default;
|
|
77
77
|
@else if $padding == $button-tny { font-size: $button-font-tny; }
|
78
78
|
@else if $padding == $button-sml { font-size: $button-font-sml; }
|
79
79
|
@else if $padding == $button-lrg { font-size: $button-font-lrg; }
|
80
|
-
@else
|
80
|
+
@else { font-size: $padding - emCalc(2); }
|
81
81
|
}
|
82
82
|
|
83
83
|
// We can set $full-width:true to remove side padding extend width.
|
84
84
|
@if $full-width {
|
85
85
|
// We still need to check if $padding is set.
|
86
86
|
@if $padding {
|
87
|
-
|
88
|
-
|
87
|
+
padding-top: $padding;
|
88
|
+
padding-bottom: $padding + emCalc(1);
|
89
89
|
} @else if $padding == false {
|
90
90
|
padding-top:0;
|
91
91
|
padding-bottom:0;
|
@@ -97,12 +97,12 @@ $button-disabled-opacity: 0.6 !default;
|
|
97
97
|
|
98
98
|
// <input>'s and <button>'s take on strange padding. We added this to help fix that.
|
99
99
|
@if $is-input == $button-lrg {
|
100
|
-
padding-top: $is-input + emCalc(.
|
101
|
-
padding-bottom: $is-input + emCalc(.
|
100
|
+
padding-top: $is-input + emCalc(.5);
|
101
|
+
padding-bottom: $is-input + emCalc(.5);
|
102
102
|
-webkit-appearance: none;
|
103
103
|
}
|
104
104
|
@else if $is-input {
|
105
|
-
padding-top: $is-input + emCalc(
|
105
|
+
padding-top: $is-input + emCalc(1);
|
106
106
|
padding-bottom: $is-input;
|
107
107
|
-webkit-appearance: none;
|
108
108
|
}
|
@@ -183,8 +183,8 @@ $button-disabled-opacity: 0.6 !default;
|
|
183
183
|
&.tiny { @include button-size($padding:$button-tny); }
|
184
184
|
&.expand { @include button-size($padding:null,$full-width:true); }
|
185
185
|
|
186
|
-
&.left-align { text-align: left; text-indent: emCalc(
|
187
|
-
&.right-align { text-align: right; padding-right: emCalc(
|
186
|
+
&.left-align { text-align: left; text-indent: emCalc(12); }
|
187
|
+
&.right-align { text-align: right; padding-right: emCalc(12); }
|
188
188
|
|
189
189
|
&.disabled, &[disabled] { @include button-style($bg:$primary-color, $disabled:true);
|
190
190
|
&.secondary { @include button-style($bg:$secondary-color, $disabled:true); }
|
@@ -1,8 +1,3 @@
|
|
1
|
-
//
|
2
|
-
// FIX THE "X" ON CUSTOM FORMS
|
3
|
-
//
|
4
|
-
|
5
|
-
|
6
1
|
//
|
7
2
|
// Custom Form Variables
|
8
3
|
//
|
@@ -25,8 +20,8 @@ $custom-select-fade-to-color: #f3f3f3 !default;
|
|
25
20
|
$custom-select-border-color: #ddd !default;
|
26
21
|
$custom-select-triangle-color: #aaa !default;
|
27
22
|
$custom-select-triangle-color-open: #222 !default;
|
28
|
-
$custom-select-height: emCalc(
|
29
|
-
$custom-select-margin-bottom: emCalc(
|
23
|
+
$custom-select-height: emCalc(13) + ($form-spacing * 1.5) !default;
|
24
|
+
$custom-select-margin-bottom: emCalc(20) !default;
|
30
25
|
$custom-select-font-color-selected: #141414 !default;
|
31
26
|
$custom-select-disabled-color: #888 !default;
|
32
27
|
|
@@ -37,15 +32,15 @@ $custom-dropdown-border-color: darken(#fff, 20%) !default;
|
|
37
32
|
$custom-dropdown-border-width: 1px !default;
|
38
33
|
$custom-dropdown-border-style: solid !default;
|
39
34
|
$custom-dropdown-font-color: #555 !default;
|
40
|
-
$custom-dropdown-font-size: emCalc(
|
35
|
+
$custom-dropdown-font-size: emCalc(14) !default;
|
41
36
|
$custom-dropdown-color-selected: #eeeeee !default;
|
42
37
|
$custom-dropdown-font-color-selected: #000 !default;
|
43
38
|
$custom-dropdown-shadow: 0 2px 2px 0px rgba(0,0,0,0.1) !default;
|
44
39
|
$custom-dropdown-offset-top: auto !default;
|
45
|
-
$custom-dropdown-list-padding: emCalc(
|
46
|
-
$custom-dropdown-default-float-padding: emCalc(
|
47
|
-
$custom-dropdown-opposite-padding: emCalc(
|
48
|
-
$custom-dropdown-list-item-min-height: emCalc(
|
40
|
+
$custom-dropdown-list-padding: emCalc(4) !default;
|
41
|
+
$custom-dropdown-default-float-padding: emCalc(6) !default;
|
42
|
+
$custom-dropdown-opposite-padding: emCalc(38) !default;
|
43
|
+
$custom-dropdown-list-item-min-height: emCalc(24) !default;
|
49
44
|
$custom-dropdown-width-small: 134px !default;
|
50
45
|
$custom-dropdown-width-medium: 254px !default;
|
51
46
|
$custom-dropdown-width-large: 434px !default;
|
@@ -75,6 +70,7 @@ $custom-dropdown-width-large: 434px !default;
|
|
75
70
|
width: $custom-form-input-size;
|
76
71
|
height: $custom-form-input-size;
|
77
72
|
position: relative;
|
73
|
+
top:-1px; /* fix centering issue */
|
78
74
|
vertical-align: middle;
|
79
75
|
border: solid $custom-form-border-size $custom-form-border-color;
|
80
76
|
background: $custom-form-bg;
|
@@ -152,7 +148,7 @@ $custom-dropdown-width-large: 434px !default;
|
|
152
148
|
.current {
|
153
149
|
cursor:default;
|
154
150
|
white-space: nowrap;
|
155
|
-
line-height: $custom-select-height - emCalc(
|
151
|
+
line-height: $custom-select-height - emCalc(1);
|
156
152
|
color: $input-font-color;
|
157
153
|
text-decoration: none;
|
158
154
|
overflow: hidden;
|
@@ -174,7 +170,7 @@ $custom-dropdown-width-large: 434px !default;
|
|
174
170
|
display: block;
|
175
171
|
@include css-triangle(5px, $custom-select-triangle-color, top);
|
176
172
|
position: absolute;
|
177
|
-
#{$default-float}: ($form-spacing * 2.5) / 2 - emCalc(
|
173
|
+
#{$default-float}: ($form-spacing * 2.5) / 2 - emCalc(5);
|
178
174
|
top: 50%;
|
179
175
|
margin-top: -3px;
|
180
176
|
}
|
@@ -212,6 +208,16 @@ $custom-dropdown-width-large: 434px !default;
|
|
212
208
|
&.open.large ul { min-width: $custom-dropdown-width-large; @include box-sizing(border-box); }
|
213
209
|
}
|
214
210
|
|
211
|
+
.error .custom.dropdown {
|
212
|
+
@include form-error-color;
|
213
|
+
background: rgba($alert-color, 0.1);
|
214
|
+
margin-bottom: 0;
|
215
|
+
}
|
216
|
+
|
217
|
+
.error .custom.dropdown + small.error {
|
218
|
+
margin-top: 0;
|
219
|
+
}
|
220
|
+
|
215
221
|
.custom.dropdown ul {
|
216
222
|
position: absolute;
|
217
223
|
width: auto;
|
@@ -11,25 +11,25 @@ $dropdown-button-pip-color-alt: #333 !default;
|
|
11
11
|
$dropdown-button-padding-tny: $button-tny * 5 !default;
|
12
12
|
$dropdown-button-pip-size-tny: $button-tny !default;
|
13
13
|
$dropdown-button-pip-opposite-tny: $button-tny * 2 !default;
|
14
|
-
$dropdown-button-pip-top-tny: -$button-tny / 2 + emCalc(
|
14
|
+
$dropdown-button-pip-top-tny: -$button-tny / 2 + emCalc(1) !default;
|
15
15
|
|
16
16
|
// We use these to style small dropdown buttons
|
17
17
|
$dropdown-button-padding-sml: $button-sml * 5 !default;
|
18
18
|
$dropdown-button-pip-size-sml: $button-sml !default;
|
19
19
|
$dropdown-button-pip-opposite-sml: $button-sml * 2 !default;
|
20
|
-
$dropdown-button-pip-top-sml: -$button-sml / 2 + emCalc(
|
20
|
+
$dropdown-button-pip-top-sml: -$button-sml / 2 + emCalc(1) !default;
|
21
21
|
|
22
22
|
// We use these to style medium dropdown buttons
|
23
|
-
$dropdown-button-padding-med: $button-med * 4 + emCalc(
|
24
|
-
$dropdown-button-pip-size-med: $button-med - emCalc(
|
23
|
+
$dropdown-button-padding-med: $button-med * 4 + emCalc(3) !default;
|
24
|
+
$dropdown-button-pip-size-med: $button-med - emCalc(3) !default;
|
25
25
|
$dropdown-button-pip-opposite-med: $button-med * 2 !default;
|
26
|
-
$dropdown-button-pip-top-med: -$button-med / 2 + emCalc(
|
26
|
+
$dropdown-button-pip-top-med: -$button-med / 2 + emCalc(2) !default;
|
27
27
|
|
28
28
|
// We use these to style large dropdown buttons
|
29
29
|
$dropdown-button-padding-lrg: $button-lrg * 4 !default;
|
30
|
-
$dropdown-button-pip-size-lrg: $button-lrg - emCalc(
|
31
|
-
$dropdown-button-pip-opposite-lrg: $button-lrg + emCalc(
|
32
|
-
$dropdown-button-pip-top-lrg: -$button-lrg / 2 + emCalc(
|
30
|
+
$dropdown-button-pip-size-lrg: $button-lrg - emCalc(6) !default;
|
31
|
+
$dropdown-button-pip-opposite-lrg: $button-lrg + emCalc(12) !default;
|
32
|
+
$dropdown-button-pip-top-lrg: -$button-lrg / 2 + emCalc(3) !default;
|
33
33
|
|
34
34
|
//
|
35
35
|
// Dropdown Button Mixin
|
@@ -112,4 +112,4 @@ $dropdown-button-pip-top-lrg: -$button-lrg / 2 + emCalc(3px) !default;
|
|
112
112
|
&.secondary:before { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; }
|
113
113
|
}
|
114
114
|
|
115
|
-
}
|
115
|
+
}
|
@@ -25,14 +25,14 @@ $f-dropdown-triangle-side-offset: 10px !default;
|
|
25
25
|
// We use these to control styles for the list elements.
|
26
26
|
$f-dropdown-list-style: none !default;
|
27
27
|
$f-dropdown-font-color: #555 !default;
|
28
|
-
$f-dropdown-font-size: emCalc(
|
29
|
-
$f-dropdown-list-padding: emCalc(
|
30
|
-
$f-dropdown-line-height: emCalc(
|
28
|
+
$f-dropdown-font-size: emCalc(14) !default;
|
29
|
+
$f-dropdown-list-padding: emCalc(5, 10) !default;
|
30
|
+
$f-dropdown-line-height: emCalc(18) !default;
|
31
31
|
$f-dropdown-list-hover-bg: #eeeeee !default;
|
32
32
|
$dropdown-mobile-default-float: 0 !default;
|
33
33
|
|
34
34
|
// We use this to control the styles for when the dropdown has custom content.
|
35
|
-
$f-dropdown-content-padding: emCalc(
|
35
|
+
$f-dropdown-content-padding: emCalc(20) !default;
|
36
36
|
|
37
37
|
//
|
38
38
|
// Dropdown Mixins
|
@@ -4,9 +4,9 @@
|
|
4
4
|
$include-html-media-classes: $include-html-classes !default;
|
5
5
|
|
6
6
|
// We use these to control video container padding and margins
|
7
|
-
$flex-video-padding-top: emCalc(
|
7
|
+
$flex-video-padding-top: emCalc(25) !default;
|
8
8
|
$flex-video-padding-bottom: 67.5% !default;
|
9
|
-
$flex-video-margin-bottom: emCalc(
|
9
|
+
$flex-video-margin-bottom: emCalc(16) !default;
|
10
10
|
|
11
11
|
// We use this to control widescreen bottom padding
|
12
12
|
$flex-video-widescreen-padding-bottom: 57.25% !default;
|
@@ -43,4 +43,4 @@ $flex-video-widescreen-padding-bottom: 57.25% !default;
|
|
43
43
|
/* Flex Video */
|
44
44
|
.flex-video { @include flex-video-container; }
|
45
45
|
|
46
|
-
}
|
46
|
+
}
|
@@ -4,17 +4,17 @@
|
|
4
4
|
$include-html-form-classes: $include-html-classes !default;
|
5
5
|
|
6
6
|
// We use this to set the base for lots of form spacing and positioning styles
|
7
|
-
$form-spacing: emCalc(
|
7
|
+
$form-spacing: emCalc(16) !default;
|
8
8
|
|
9
9
|
// We use these to style the labels in different ways
|
10
10
|
$form-label-pointer: pointer !default;
|
11
|
-
$form-label-font-size: emCalc(
|
11
|
+
$form-label-font-size: emCalc(14) !default;
|
12
12
|
$form-label-font-weight: 500 !default;
|
13
13
|
$form-label-font-color: lighten(#000, 30%) !default;
|
14
|
-
$form-label-bottom-margin: emCalc(
|
14
|
+
$form-label-bottom-margin: emCalc(3) !default;
|
15
15
|
$input-font-family: inherit !default;
|
16
16
|
$input-font-color: rgba(0,0,0,0.75) !default;
|
17
|
-
$input-font-size: emCalc(
|
17
|
+
$input-font-size: emCalc(14) !default;
|
18
18
|
$input-bg-color: #fff !default;
|
19
19
|
$input-focus-bg-color: darken(#fff, 2%) !default;
|
20
20
|
$input-border-color: darken(#fff, 20%) !default;
|
@@ -29,13 +29,13 @@ $input-include-glowing-effect: true !default;
|
|
29
29
|
$fieldset-border-style: solid !default;
|
30
30
|
$fieldset-border-width: 1px !default;
|
31
31
|
$fieldset-border-color: #ddd !default;
|
32
|
-
$fieldset-padding: emCalc(
|
33
|
-
$fieldset-margin: emCalc(
|
32
|
+
$fieldset-padding: emCalc(20) !default;
|
33
|
+
$fieldset-margin: emCalc(18, 0) !default;
|
34
34
|
|
35
35
|
// We use these to style the legends when you use them
|
36
36
|
$legend-bg: #fff !default;
|
37
37
|
$legend-font-weight: bold !default;
|
38
|
-
$legend-padding: 0
|
38
|
+
$legend-padding: emCalc(0, 3) !default;
|
39
39
|
|
40
40
|
// We use these to style the prefix and postfix input elements
|
41
41
|
$input-prefix-bg: darken(#fff, 5%) !default;
|
@@ -47,9 +47,9 @@ $input-prefix-font-color: #333 !default;
|
|
47
47
|
$input-prefix-font-color-alt: #fff !default;
|
48
48
|
|
49
49
|
// We use these to style the error states for inputs and labels
|
50
|
-
$input-error-message-padding: emCalc(
|
51
|
-
$input-error-message-top:
|
52
|
-
$input-error-message-font-size: emCalc(
|
50
|
+
$input-error-message-padding: emCalc(6, 4) !default;
|
51
|
+
$input-error-message-top: 0 !default;
|
52
|
+
$input-error-message-font-size: emCalc(12) !default;
|
53
53
|
$input-error-message-font-weight: bold !default;
|
54
54
|
$input-error-message-font-color: #fff !default;
|
55
55
|
$input-error-message-font-color-alt: #333 !default;
|
@@ -97,7 +97,7 @@ $glowing-effect-color: $input-focus-border-color !default;
|
|
97
97
|
font-size: $input-font-size;
|
98
98
|
margin: 0 0 $form-spacing 0;
|
99
99
|
padding: $form-spacing / 2;
|
100
|
-
height: emCalc(
|
100
|
+
height: emCalc(13) + ($form-spacing * 1.5);
|
101
101
|
width: 100%;
|
102
102
|
@include box-sizing(border-box);
|
103
103
|
@if $input-include-glowing-effect {
|
@@ -151,8 +151,8 @@ $glowing-effect-color: $input-focus-border-color !default;
|
|
151
151
|
border-width: $input-prefix-border-size;
|
152
152
|
overflow: $input-prefix-overflow;
|
153
153
|
font-size: $form-label-font-size;
|
154
|
-
height: ($form-label-font-size + ($form-spacing * 1.5) - emCalc(
|
155
|
-
line-height: ($form-label-font-size + ($form-spacing * 1.5) - emCalc(
|
154
|
+
height: ($form-label-font-size + ($form-spacing * 1.5) - emCalc(1));
|
155
|
+
line-height: ($form-label-font-size + ($form-spacing * 1.5) - emCalc(1));
|
156
156
|
}
|
157
157
|
|
158
158
|
// We use this mixin to create prefix label styles
|
@@ -175,7 +175,7 @@ $glowing-effect-color: $input-focus-border-color !default;
|
|
175
175
|
padding-top: 0;
|
176
176
|
padding-bottom: 0;
|
177
177
|
text-align: center;
|
178
|
-
line-height: emCalc(
|
178
|
+
line-height: emCalc(34);
|
179
179
|
}
|
180
180
|
|
181
181
|
}
|
@@ -200,7 +200,7 @@ $glowing-effect-color: $input-focus-border-color !default;
|
|
200
200
|
padding-top: 0;
|
201
201
|
padding-bottom: 0;
|
202
202
|
text-align: center;
|
203
|
-
line-height: emCalc(
|
203
|
+
line-height: emCalc(34);
|
204
204
|
}
|
205
205
|
|
206
206
|
}
|
@@ -217,7 +217,7 @@ $glowing-effect-color: $input-focus-border-color !default;
|
|
217
217
|
background: $legend-bg;
|
218
218
|
padding: $legend-padding;
|
219
219
|
margin: 0;
|
220
|
-
margin-#{$default-float}: emCalc(-
|
220
|
+
margin-#{$default-float}: emCalc(-3);
|
221
221
|
}
|
222
222
|
}
|
223
223
|
|
@@ -254,7 +254,7 @@ $glowing-effect-color: $input-focus-border-color !default;
|
|
254
254
|
|
255
255
|
// Only include these classes if the variable is true, otherwise they'll be left out.
|
256
256
|
@if $include-html-form-classes != false {
|
257
|
-
|
257
|
+
/* Standard Forms */
|
258
258
|
form { margin: 0 0 $form-spacing; }
|
259
259
|
|
260
260
|
/* Using forms within rows, we need to set some defaults */
|
@@ -264,6 +264,11 @@ $glowing-effect-color: $input-focus-border-color !default;
|
|
264
264
|
label { @include form-label;
|
265
265
|
&.right { @include form-label(right,false); }
|
266
266
|
&.inline { @include form-label(inline,false); }
|
267
|
+
/* Styles for required inputs */
|
268
|
+
small {
|
269
|
+
text-transform: capitalize;
|
270
|
+
color: lighten($form-label-font-color, 10%);
|
271
|
+
}
|
267
272
|
}
|
268
273
|
|
269
274
|
/* Attach elements to the beginning or end of an input */
|
@@ -347,18 +352,43 @@ $glowing-effect-color: $input-focus-border-color !default;
|
|
347
352
|
}
|
348
353
|
|
349
354
|
/* Error Handling */
|
350
|
-
|
355
|
+
|
356
|
+
span.error, small.error {
|
357
|
+
@include form-error-message;
|
358
|
+
display: none;
|
359
|
+
}
|
360
|
+
|
361
|
+
.error {
|
362
|
+
input,
|
363
|
+
textarea,
|
364
|
+
select {
|
365
|
+
@include form-error-color;
|
366
|
+
margin-bottom: 0;
|
367
|
+
}
|
368
|
+
|
369
|
+
label,
|
370
|
+
label.error {
|
371
|
+
@include form-label-error-color;
|
372
|
+
}
|
373
|
+
|
374
|
+
small.error {
|
375
|
+
@include form-error-message;
|
376
|
+
}
|
377
|
+
|
378
|
+
span.error-message {
|
379
|
+
display: block;
|
380
|
+
}
|
381
|
+
}
|
382
|
+
|
351
383
|
input.error,
|
352
|
-
.error textarea,
|
353
384
|
textarea.error {
|
354
385
|
@include form-error-color;
|
355
386
|
}
|
356
387
|
|
357
|
-
.error
|
388
|
+
.error select {
|
389
|
+
@include form-error-color;
|
390
|
+
}
|
391
|
+
|
358
392
|
label.error { @include form-label-error-color; }
|
359
393
|
|
360
|
-
.error small,
|
361
|
-
small.error {
|
362
|
-
@include form-error-message;
|
363
|
-
}
|
364
394
|
}
|