foundation-rails 6.1.2.0 → 6.2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -6
- data/README.md +1 -1
- data/Rakefile +5 -1
- data/bower.json +3 -3
- data/foundation-rails.gemspec +1 -0
- data/lib/foundation-rails.rb +1 -0
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/templates/foundation_and_overrides.scss +2 -2
- data/vendor/assets/js/foundation.abide.js.es6 +462 -0
- data/vendor/assets/js/{foundation.accordion.js → foundation.accordion.js.es6} +55 -47
- data/vendor/assets/js/{foundation.accordionMenu.js → foundation.accordionMenu.js.es6} +46 -35
- data/vendor/assets/js/{foundation.core.js → foundation.core.js.es6} +10 -8
- data/vendor/assets/js/{foundation.drilldown.js → foundation.drilldown.js.es6} +75 -49
- data/vendor/assets/js/{foundation.dropdown.js → foundation.dropdown.js.es6} +100 -88
- data/vendor/assets/js/{foundation.dropdownMenu.js → foundation.dropdownMenu.js.es6} +134 -128
- data/vendor/assets/js/{foundation.equalizer.js → foundation.equalizer.js.es6} +72 -61
- data/vendor/assets/js/{foundation.interchange.js → foundation.interchange.js.es6} +44 -45
- data/vendor/assets/js/{foundation.js → foundation.js.es6} +0 -0
- data/vendor/assets/js/{foundation.magellan.js → foundation.magellan.js.es6} +80 -83
- data/vendor/assets/js/foundation.offcanvas.js.es6 +395 -0
- data/vendor/assets/js/foundation.orbit.js.es6 +445 -0
- data/vendor/assets/js/{foundation.responsiveMenu.js → foundation.responsiveMenu.js.es6} +37 -31
- data/vendor/assets/js/foundation.responsiveToggle.js.es6 +112 -0
- data/vendor/assets/js/foundation.reveal.js.es6 +544 -0
- data/vendor/assets/js/{foundation.slider.js → foundation.slider.js.es6} +235 -184
- data/vendor/assets/js/{foundation.sticky.js → foundation.sticky.js.es6} +177 -166
- data/vendor/assets/js/{foundation.tabs.js → foundation.tabs.js.es6} +138 -118
- data/vendor/assets/js/{foundation.toggler.js → foundation.toggler.js.es6} +34 -37
- data/vendor/assets/js/{foundation.tooltip.js → foundation.tooltip.js.es6} +162 -153
- data/vendor/assets/js/foundation.util.box.js.es6 +183 -0
- data/vendor/assets/js/{foundation.util.keyboard.js → foundation.util.keyboard.js.es6} +54 -54
- data/vendor/assets/js/{foundation.util.mediaQuery.js → foundation.util.mediaQuery.js.es6} +46 -46
- data/vendor/assets/js/{foundation.util.motion.js → foundation.util.motion.js.es6} +58 -48
- data/vendor/assets/js/foundation.util.nest.js.es6 +76 -0
- data/vendor/assets/js/foundation.util.timerAndImageLoader.js.es6 +86 -0
- data/vendor/assets/js/{foundation.util.touch.js → foundation.util.touch.js.es6} +2 -2
- data/vendor/assets/js/foundation.util.triggers.js.es6 +239 -0
- data/vendor/assets/scss/_global.scss +28 -27
- data/vendor/assets/scss/components/_badge.scss +1 -1
- data/vendor/assets/scss/components/_button-group.scss +77 -26
- data/vendor/assets/scss/components/_button.scss +8 -8
- data/vendor/assets/scss/components/_callout.scss +2 -2
- data/vendor/assets/scss/components/_drilldown.scss +4 -0
- data/vendor/assets/scss/components/_dropdown-menu.scss +104 -54
- data/vendor/assets/scss/components/_flex.scss +28 -0
- data/vendor/assets/scss/components/_label.scss +1 -1
- data/vendor/assets/scss/components/_media-object.scss +37 -7
- data/vendor/assets/scss/components/_menu-icon.scss +9 -0
- data/vendor/assets/scss/components/_menu.scss +127 -29
- data/vendor/assets/scss/components/_off-canvas.scss +1 -0
- data/vendor/assets/scss/components/_pagination.scss +3 -3
- data/vendor/assets/scss/components/_progress-bar.scss +1 -25
- data/vendor/assets/scss/components/_reveal.scss +12 -6
- data/vendor/assets/scss/components/_slider.scss +3 -35
- data/vendor/assets/scss/components/_table.scss +8 -0
- data/vendor/assets/scss/components/_tabs.scss +5 -10
- data/vendor/assets/scss/components/_title-bar.scss +27 -10
- data/vendor/assets/scss/components/_tooltip.scss +0 -4
- data/vendor/assets/scss/components/_top-bar.scss +93 -21
- data/vendor/assets/scss/components/_visibility.scss +1 -1
- data/vendor/assets/scss/forms/_checkbox.scss +1 -1
- data/vendor/assets/scss/forms/_error.scss +7 -5
- data/vendor/assets/scss/forms/_forms.scss +3 -0
- data/vendor/assets/scss/forms/_help-text.scss +1 -1
- data/vendor/assets/scss/forms/_input-group.scss +44 -9
- data/vendor/assets/scss/forms/_meter.scss +109 -0
- data/vendor/assets/scss/forms/_progress.scss +85 -0
- data/vendor/assets/scss/forms/_range.scss +144 -0
- data/vendor/assets/scss/forms/_select.scss +1 -1
- data/vendor/assets/scss/forms/_text.scss +10 -1
- data/vendor/assets/scss/foundation.scss +16 -5
- data/vendor/assets/scss/grid/_classes.scss +5 -18
- data/vendor/assets/scss/grid/_column.scss +13 -11
- data/vendor/assets/scss/grid/_flex-grid.scss +54 -80
- data/vendor/assets/scss/grid/_grid.scss +22 -10
- data/vendor/assets/scss/grid/_layout.scss +18 -0
- data/vendor/assets/scss/grid/_row.scss +11 -15
- data/vendor/assets/scss/motion-ui/_classes.scss +10 -3
- data/vendor/assets/scss/motion-ui/effects/_fade.scss +4 -1
- data/vendor/assets/scss/motion-ui/effects/_zoom.scss +1 -1
- data/vendor/assets/scss/motion-ui/transitions/_slide.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_transition.scss +1 -1
- data/vendor/assets/scss/settings/_settings.scss +64 -47
- data/vendor/assets/scss/typography/_base.scss +4 -0
- data/vendor/assets/scss/typography/_print.scss +9 -5
- data/vendor/assets/scss/util/_breakpoint.scss +31 -25
- data/vendor/assets/scss/util/_color.scss +19 -0
- data/vendor/assets/scss/util/_flex.scss +68 -0
- data/vendor/assets/scss/util/_mixins.scss +13 -7
- data/vendor/assets/scss/util/_util.scss +1 -5
- data/vendor/assets/scss/util/_value.scss +9 -28
- metadata +51 -31
- data/vendor/assets/js/foundation.abide.js +0 -418
- data/vendor/assets/js/foundation.offcanvas.js +0 -376
- data/vendor/assets/js/foundation.orbit.js +0 -421
- data/vendor/assets/js/foundation.responsiveToggle.js +0 -106
- data/vendor/assets/js/foundation.reveal.js +0 -514
- data/vendor/assets/js/foundation.util.box.js +0 -169
- data/vendor/assets/js/foundation.util.nest.js +0 -63
- data/vendor/assets/js/foundation.util.timerAndImageLoader.js +0 -82
- data/vendor/assets/js/foundation.util.triggers.js +0 -224
@@ -9,43 +9,11 @@
|
|
9
9
|
/// @group slider
|
10
10
|
////
|
11
11
|
|
12
|
-
/// Default
|
12
|
+
/// Default slider width of a vertical slider. (Doesn't apply to the native slider.)
|
13
13
|
/// @type Number
|
14
|
-
$slider-
|
14
|
+
$slider-width-vertical: 0.5rem !default;
|
15
15
|
|
16
|
-
///
|
17
|
-
/// @type Number
|
18
|
-
$slider-width-vertical: $slider-height !default;
|
19
|
-
|
20
|
-
/// Default background color of the slider's track.
|
21
|
-
/// @type Color
|
22
|
-
$slider-background: $light-gray !default;
|
23
|
-
|
24
|
-
/// Default color of the active fill color of the slider.
|
25
|
-
/// @type Color
|
26
|
-
$slider-fill-background: $medium-gray !default;
|
27
|
-
|
28
|
-
/// Default height of the handle of the slider.
|
29
|
-
/// @type Number
|
30
|
-
$slider-handle-height: 1.4rem !default;
|
31
|
-
|
32
|
-
/// Default width of the handle of the slider.
|
33
|
-
/// @type Number
|
34
|
-
$slider-handle-width: 1.4rem !default;
|
35
|
-
|
36
|
-
/// Default color of the handle for the slider.
|
37
|
-
/// @type Color
|
38
|
-
$slider-handle-background: $primary-color !default;
|
39
|
-
|
40
|
-
/// Default fade amount of a disabled slider.
|
41
|
-
/// @type Number
|
42
|
-
$slider-opacity-disabled: 0.25 !default;
|
43
|
-
|
44
|
-
/// Default radius for slider.
|
45
|
-
/// @type Number
|
46
|
-
$slider-radius: $global-radius !default;
|
47
|
-
|
48
|
-
/// Transition properties to apply to the slider handle and fill.
|
16
|
+
/// Transition properties to apply to the slider handle and fill. (Doesn't apply to the native slider.)
|
49
17
|
/// @type Transition
|
50
18
|
$slider-transition: all 0.2s ease-in-out !default;
|
51
19
|
|
@@ -18,18 +18,14 @@ $tab-background: $white !default;
|
|
18
18
|
/// @type Color
|
19
19
|
$tab-background-active: $light-gray !default;
|
20
20
|
|
21
|
-
///
|
22
|
-
/// @type
|
23
|
-
$tab-
|
24
|
-
|
25
|
-
/// Default text color for items in a Menu.
|
26
|
-
/// @type Color
|
27
|
-
$tab-item-color: foreground($tab-background, $primary-color) !default;
|
21
|
+
/// Font size of tab items.
|
22
|
+
/// @type Number
|
23
|
+
$tab-item-font-size: rem-calc(12) !default;
|
28
24
|
|
29
25
|
/// Default background color on hover for items in a Menu.
|
30
26
|
$tab-item-background-hover: $white !default;
|
31
27
|
|
32
|
-
/// Default padding of a
|
28
|
+
/// Default padding of a tab item.
|
33
29
|
/// @type Number
|
34
30
|
$tab-item-padding: 1.25rem 1.5rem !default;
|
35
31
|
|
@@ -79,8 +75,7 @@ $tab-content-padding: 1rem !default;
|
|
79
75
|
display: block;
|
80
76
|
padding: $tab-item-padding;
|
81
77
|
line-height: 1;
|
82
|
-
font-size:
|
83
|
-
color: $tab-item-color;
|
78
|
+
font-size: $tab-item-font-size;
|
84
79
|
|
85
80
|
&:hover {
|
86
81
|
background: $tab-item-background-hover;
|
@@ -36,24 +36,45 @@ $titlebar-icon-spacing: 0.25rem !default;
|
|
36
36
|
|
37
37
|
@mixin foundation-title-bar {
|
38
38
|
.title-bar {
|
39
|
-
@include clearfix;
|
40
39
|
background: $titlebar-background;
|
41
40
|
color: $titlebar-color;
|
42
41
|
padding: $titlebar-padding;
|
43
42
|
|
43
|
+
@if $global-flexbox {
|
44
|
+
display: flex;
|
45
|
+
align-items: center;
|
46
|
+
justify-content: space-between;
|
47
|
+
}
|
48
|
+
@else {
|
49
|
+
@include clearfix;
|
50
|
+
}
|
51
|
+
|
44
52
|
.menu-icon {
|
45
53
|
margin-#{$global-left}: $titlebar-icon-spacing;
|
46
54
|
margin-#{$global-right}: $titlebar-padding;
|
47
55
|
}
|
48
56
|
}
|
49
57
|
|
50
|
-
|
51
|
-
|
58
|
+
@if $global-flexbox {
|
59
|
+
// scss-lint:disable ZeroUnit
|
60
|
+
.title-bar-left,
|
61
|
+
.title-bar-right {
|
62
|
+
flex: 1 1 0px;
|
63
|
+
}
|
64
|
+
|
65
|
+
.title-bar-right {
|
66
|
+
text-align: right;
|
67
|
+
}
|
52
68
|
}
|
69
|
+
@else {
|
70
|
+
.title-bar-left {
|
71
|
+
float: left;
|
72
|
+
}
|
53
73
|
|
54
|
-
|
55
|
-
|
56
|
-
|
74
|
+
.title-bar-right {
|
75
|
+
float: right;
|
76
|
+
text-align: right;
|
77
|
+
}
|
57
78
|
}
|
58
79
|
|
59
80
|
.title-bar-title {
|
@@ -62,10 +83,6 @@ $titlebar-icon-spacing: 0.25rem !default;
|
|
62
83
|
display: inline-block;
|
63
84
|
}
|
64
85
|
|
65
|
-
.menu-icon {
|
66
|
-
@include hamburger($color: $titlebar-icon-color, $color-hover: $titlebar-icon-color-hover);
|
67
|
-
}
|
68
|
-
|
69
86
|
.menu-icon.dark {
|
70
87
|
@include hamburger;
|
71
88
|
}
|
@@ -38,10 +38,6 @@ $tooltip-pip-width: 0.75rem !default;
|
|
38
38
|
/// @type Number
|
39
39
|
$tooltip-pip-height: $tooltip-pip-width * 0.866 !default;
|
40
40
|
|
41
|
-
/// Default pip offset for tooltips. This controls how far the pip is indented from the left edge of the tooltip.
|
42
|
-
/// @type Number
|
43
|
-
$tooltip-pip-offset: 1.25rem !default;
|
44
|
-
|
45
41
|
/// Default radius for tooltips.
|
46
42
|
/// @type Number
|
47
43
|
$tooltip-radius: $global-radius !default;
|
@@ -14,6 +14,10 @@ $topbar-padding: 0.5rem !default;
|
|
14
14
|
/// @type Color
|
15
15
|
$topbar-background: $light-gray !default;
|
16
16
|
|
17
|
+
/// Background color submenus within the top bar. Usefull if $topbar-background is transparent.
|
18
|
+
/// @type Color
|
19
|
+
$topbar-submenu-background: $topbar-background !default;
|
20
|
+
|
17
21
|
/// Spacing for the top bar title.
|
18
22
|
/// @type Number
|
19
23
|
$topbar-title-spacing: 1rem !default;
|
@@ -22,9 +26,22 @@ $topbar-title-spacing: 1rem !default;
|
|
22
26
|
/// @type Number
|
23
27
|
$topbar-input-width: 200px !default;
|
24
28
|
|
29
|
+
/// Breakpoint at which top bar switches from mobile to desktop view.
|
30
|
+
/// @type Breakpoint
|
31
|
+
$topbar-unstack-breakpoint: medium !default;
|
32
|
+
|
25
33
|
/// Adds styles for a top bar container.
|
26
34
|
@mixin top-bar-container {
|
27
|
-
@
|
35
|
+
@if $global-flexbox {
|
36
|
+
display: flex;
|
37
|
+
align-items: center;
|
38
|
+
justify-content: space-between;
|
39
|
+
flex-wrap: nowrap;
|
40
|
+
}
|
41
|
+
@else {
|
42
|
+
@include clearfix;
|
43
|
+
}
|
44
|
+
|
28
45
|
padding: $topbar-padding;
|
29
46
|
|
30
47
|
&,
|
@@ -32,30 +49,68 @@ $topbar-input-width: 200px !default;
|
|
32
49
|
background-color: $topbar-background;
|
33
50
|
}
|
34
51
|
|
52
|
+
// Check if $topbar-background is differnt from $topbar-background-submenu
|
53
|
+
@if ($topbar-background != $topbar-submenu-background) {
|
54
|
+
ul ul {
|
55
|
+
background-color: $topbar-submenu-background;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
// Restrain width of inputs by default to make them easier to arrange
|
35
60
|
input {
|
36
61
|
width: $topbar-input-width;
|
37
62
|
margin-#{$global-right}: 1rem;
|
38
63
|
}
|
39
64
|
|
65
|
+
// The above styles shouldn't apply to input group fields
|
66
|
+
.input-group-field {
|
67
|
+
width: 100%;
|
68
|
+
margin-#{$global-right}: 0;
|
69
|
+
}
|
70
|
+
|
40
71
|
// scss-lint:disable QualifyingElement
|
41
72
|
input.button {
|
42
73
|
width: auto;
|
43
74
|
}
|
44
75
|
}
|
45
76
|
|
46
|
-
///
|
77
|
+
/// Makes sections of a top bar stack on top of each other.
|
47
78
|
@mixin top-bar-stacked {
|
48
|
-
|
49
|
-
|
50
|
-
|
79
|
+
@if $global-flexbox {
|
80
|
+
flex-wrap: wrap;
|
81
|
+
|
82
|
+
// Sub-sections
|
83
|
+
.top-bar-left,
|
84
|
+
.top-bar-right {
|
85
|
+
flex: 0 0 100%;
|
86
|
+
max-width: 100%;
|
87
|
+
}
|
51
88
|
}
|
52
|
-
|
53
|
-
|
54
|
-
|
89
|
+
@else {
|
90
|
+
// Sub-sections
|
91
|
+
.top-bar-left,
|
92
|
+
.top-bar-right {
|
93
|
+
width: 100%;
|
94
|
+
}
|
55
95
|
}
|
96
|
+
}
|
56
97
|
|
57
|
-
|
58
|
-
|
98
|
+
/// Undoes the CSS applied by the `top-bar-stacked()` mixin.
|
99
|
+
@mixin top-bar-unstack {
|
100
|
+
@if $global-flexbox {
|
101
|
+
flex-wrap: nowrap;
|
102
|
+
|
103
|
+
// scss-lint:disable ZeroUnit
|
104
|
+
.top-bar-left,
|
105
|
+
.top-bar-right {
|
106
|
+
flex: 1 1 0px;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
@else {
|
110
|
+
.top-bar-left,
|
111
|
+
.top-bar-right {
|
112
|
+
width: auto;
|
113
|
+
}
|
59
114
|
}
|
60
115
|
}
|
61
116
|
|
@@ -74,21 +129,38 @@ $topbar-input-width: 200px !default;
|
|
74
129
|
}
|
75
130
|
}
|
76
131
|
|
77
|
-
// Stack on small screens
|
78
|
-
@include
|
79
|
-
|
132
|
+
// Stack on small screens by default
|
133
|
+
@include top-bar-stacked;
|
134
|
+
|
135
|
+
@include breakpoint($topbar-unstack-breakpoint) {
|
136
|
+
@include top-bar-unstack;
|
80
137
|
}
|
81
138
|
|
82
139
|
// Sub-sections
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
140
|
+
@if $global-flexbox {
|
141
|
+
.top-bar-title {
|
142
|
+
flex: 0 0 auto;
|
143
|
+
margin-right: $topbar-title-spacing;
|
144
|
+
}
|
145
|
+
|
146
|
+
.top-bar-left,
|
147
|
+
.top-bar-right {
|
148
|
+
flex: 0 0 auto;
|
149
|
+
}
|
89
150
|
}
|
151
|
+
@else {
|
152
|
+
.top-bar-title {
|
153
|
+
float: left;
|
154
|
+
margin-right: $topbar-title-spacing;
|
155
|
+
|
156
|
+
}
|
157
|
+
|
158
|
+
.top-bar-left {
|
159
|
+
float: left;
|
160
|
+
}
|
90
161
|
|
91
|
-
|
92
|
-
|
162
|
+
.top-bar-right {
|
163
|
+
float: right;
|
164
|
+
}
|
93
165
|
}
|
94
166
|
}
|
@@ -22,7 +22,7 @@
|
|
22
22
|
// more often than not this will be correct, just one time round the loop it won't so set in scope here
|
23
23
|
$lower-bound: -zf-bp-to-em($lower-bound-size) - (1/16);
|
24
24
|
// test actual lower-bound-size, if 0 set it to 0em
|
25
|
-
@if $lower-bound-size == 0 {
|
25
|
+
@if strip-unit($lower-bound-size) == 0 {
|
26
26
|
$lower-bound: -zf-bp-to-em($lower-bound-size);
|
27
27
|
}
|
28
28
|
|
@@ -16,15 +16,15 @@ $abide-labels: true !default;
|
|
16
16
|
|
17
17
|
/// Background color to use for invalid text inputs.
|
18
18
|
/// @type Color
|
19
|
-
$input-background-invalid: $
|
19
|
+
$input-background-invalid: map-get($foundation-palette, alert) !default;
|
20
20
|
|
21
21
|
/// Color to use for labels of invalid inputs.
|
22
22
|
/// @type Color
|
23
|
-
$form-label-color-invalid: $
|
23
|
+
$form-label-color-invalid: map-get($foundation-palette, alert) !default;
|
24
24
|
|
25
25
|
/// Default font color for form error text.
|
26
26
|
/// @type Color
|
27
|
-
$input-error-color: $
|
27
|
+
$input-error-color: map-get($foundation-palette, alert) !default;
|
28
28
|
|
29
29
|
/// Default font size for form error text.
|
30
30
|
/// @type Number
|
@@ -37,11 +37,13 @@ $input-error-font-weight: $global-weight-bold !default;
|
|
37
37
|
/// Styles the background and border of an input field to have an error state.
|
38
38
|
///
|
39
39
|
/// @param {Color} $background [$alert-color] - Color to use for the background and border.
|
40
|
+
/// @param {Number} $background-alpha [0.1] - Transparency level of the background color.
|
40
41
|
@mixin form-input-error(
|
41
|
-
$background: $input-background-invalid
|
42
|
+
$background: $input-background-invalid,
|
43
|
+
$background-alpha: 0.1
|
42
44
|
) {
|
43
45
|
&:not(:focus) {
|
44
|
-
background-color: rgba($background,
|
46
|
+
background-color: rgba($background, $background-alpha);
|
45
47
|
border-color: $background;
|
46
48
|
}
|
47
49
|
}
|
@@ -24,12 +24,15 @@ $input-prefix-padding: 1rem !default;
|
|
24
24
|
@mixin foundation-form-prepostfix {
|
25
25
|
$height: ($input-font-size + $form-spacing * 1.5);
|
26
26
|
|
27
|
-
|
28
27
|
.input-group {
|
29
|
-
display: table;
|
28
|
+
display: if($global-flexbox, flex, table);
|
30
29
|
width: 100%;
|
31
30
|
margin-bottom: $form-spacing;
|
32
31
|
|
32
|
+
@if $global-flexbox {
|
33
|
+
align-items: stretch;
|
34
|
+
}
|
35
|
+
|
33
36
|
> :first-child {
|
34
37
|
border-radius: $global-radius 0 0 $global-radius;
|
35
38
|
}
|
@@ -42,22 +45,33 @@ $input-prefix-padding: 1rem !default;
|
|
42
45
|
}
|
43
46
|
|
44
47
|
%input-group-child {
|
45
|
-
display: table-cell;
|
46
48
|
margin: 0;
|
47
|
-
|
49
|
+
|
50
|
+
@if not $global-flexbox {
|
51
|
+
display: table-cell;
|
52
|
+
vertical-align: middle;
|
53
|
+
}
|
48
54
|
}
|
49
55
|
|
50
56
|
.input-group-label {
|
51
57
|
@extend %input-group-child;
|
52
58
|
text-align: center;
|
53
|
-
width: 1%;
|
54
|
-
height: 100%;
|
55
59
|
padding: 0 $input-prefix-padding;
|
56
60
|
background: $input-prefix-background;
|
57
61
|
color: $input-prefix-color;
|
58
62
|
border: $input-prefix-border;
|
59
63
|
white-space: nowrap;
|
60
64
|
|
65
|
+
@if $global-flexbox {
|
66
|
+
flex: 0 0 auto;
|
67
|
+
display: flex;
|
68
|
+
align-items: center;
|
69
|
+
}
|
70
|
+
@else {
|
71
|
+
width: 1%;
|
72
|
+
height: 100%;
|
73
|
+
}
|
74
|
+
|
61
75
|
@if has-value($input-prefix-border) {
|
62
76
|
&:first-child {
|
63
77
|
border-#{$global-right}: 0;
|
@@ -72,16 +86,31 @@ $input-prefix-padding: 1rem !default;
|
|
72
86
|
.input-group-field {
|
73
87
|
@extend %input-group-child;
|
74
88
|
border-radius: 0;
|
75
|
-
|
89
|
+
|
90
|
+
// scss-lint:disable ZeroUnit
|
91
|
+
@if $global-flexbox {
|
92
|
+
flex: 1 1 0px;
|
93
|
+
width: auto;
|
94
|
+
height: auto;
|
95
|
+
}
|
96
|
+
@else {
|
97
|
+
height: $height;
|
98
|
+
}
|
76
99
|
}
|
77
100
|
|
78
101
|
.input-group-button {
|
79
102
|
@extend %input-group-child;
|
80
|
-
height: 100%;
|
81
103
|
padding-top: 0;
|
82
104
|
padding-bottom: 0;
|
83
105
|
text-align: center;
|
84
|
-
|
106
|
+
|
107
|
+
@if $global-flexbox {
|
108
|
+
flex: 0 0 auto;
|
109
|
+
}
|
110
|
+
@else {
|
111
|
+
height: 100%;
|
112
|
+
width: 1%;
|
113
|
+
}
|
85
114
|
|
86
115
|
a,
|
87
116
|
input,
|
@@ -89,4 +118,10 @@ $input-prefix-padding: 1rem !default;
|
|
89
118
|
margin: 0;
|
90
119
|
}
|
91
120
|
}
|
121
|
+
|
122
|
+
// Specificity bump needed to prevent override by buttons
|
123
|
+
// scss-lint:disable QualifyingSelector
|
124
|
+
.input-group .input-group-button {
|
125
|
+
display: table-cell;
|
126
|
+
}
|
92
127
|
}
|