aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-10-09 18:04:30 -0700
committerMark Otto <[email protected]>2016-10-09 18:04:30 -0700
commit0c467e7b29e2dd601e51b2af161c0546a79d432c (patch)
treee405434bbc2f41b032f5865711a58881a7141f6f
parentea57c5108281ee77a4fbb513d40f253d928171c3 (diff)
downloadbootstrap-0c467e7b29e2dd601e51b2af161c0546a79d432c.tar.xz
bootstrap-0c467e7b29e2dd601e51b2af161c0546a79d432c.zip
Match the height of select.form-control with input.form-control
Uses a local variable and some calc love to counteract the border-width (times 2) from the height of the select. Fixes #17194 and nullifies #19967.
-rw-r--r--scss/_forms.scss3
1 files changed, 2 insertions, 1 deletions
diff --git a/scss/_forms.scss b/scss/_forms.scss
index d27b646d0..be19a0795 100644
--- a/scss/_forms.scss
+++ b/scss/_forms.scss
@@ -66,7 +66,8 @@
select.form-control {
&:not([size]):not([multiple]) {
- height: $input-height;
+ $select-border-width: ($border-width * 2);
+ height: calc(#{$input-height} - #{$select-border-width});
}
&:focus::-ms-value {