$input-prefix-padding: 1rem !default;
@mixin foundation-form-prepostfix {
- $height: ($input-font-size + $form-spacing * 1.5);
+ $height: ($input-font-size * $input-line-height) + (get-side($input-padding, 'top') + get-side($input-padding, 'bottom')) - rem-calc(1);;
.input-group {
display: if($global-flexbox, flex, table);
@if $global-flexbox {
flex: 1 1 0px; // sass-lint:disable-line zero-unit
- height: auto;
min-width: 0;
}
- @else {
- height: $height;
- }
}
.input-group-button {
// Specificity bump needed to prevent override by buttons
@if not $global-flexbox {
- .input-group .input-group-button {
- display: table-cell;
- }
+ .input-group .input-group-button {
+ display: table-cell;
+ }
}
}