aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-02-19 15:42:29 -0800
committerChris Rebert <[email protected]>2015-02-19 15:42:29 -0800
commit2549b808a148f9037c63ff50b3b7f881cf326a26 (patch)
tree01e3be004895483f0693e457157eeff2bb6cecb3 /less/forms.less
parent90e7fc418b0424ad01c7af6b87b43d4d1596342d (diff)
parent0ee76022841b1ef4ad48050680dafe4ea43f5967 (diff)
downloadbootstrap-2549b808a148f9037c63ff50b3b7f881cf326a26.tar.xz
bootstrap-2549b808a148f9037c63ff50b3b7f881cf326a26.zip
Merge pull request #15699 from kkirsche/patch-8
Fix #15691: .form-control-static changes height when empty
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less3
1 files changed, 3 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index bc900da8f..c86e8b536 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -298,6 +298,7 @@ input[type="checkbox"] {
padding-bottom: (@padding-base-vertical + 1);
// Remove default margin from `p`
margin-bottom: 0;
+ min-height: (@line-height-computed + @font-size-base);
&.input-lg,
&.input-sm {
@@ -327,6 +328,7 @@ input[type="checkbox"] {
padding: @padding-small-vertical @padding-small-horizontal;
font-size: @font-size-small;
line-height: @line-height-small;
+ min-height: (@line-height-computed + @font-size-small);
}
}
@@ -342,6 +344,7 @@ input[type="checkbox"] {
padding: @padding-large-vertical @padding-large-horizontal;
font-size: @font-size-large;
line-height: @line-height-large;
+ min-height: (@line-height-computed + @font-size-large);
}
}