]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
[Fixes #15691] .form-control-static changes height when empty 15699/head
authorKevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
Thu, 29 Jan 2015 13:19:09 +0000 (08:19 -0500)
committerKevin Kirsche <kkirsche@ansfederal.com>
Thu, 19 Feb 2015 23:02:51 +0000 (18:02 -0500)
commit0ee76022841b1ef4ad48050680dafe4ea43f5967
tree2db6074cda6dd8d3f14a02c8a0aeb1a39a66c21e
parenta7747dedf24b1a7245bc3088f265280873acd627
[Fixes #15691] .form-control-static changes height when empty

[Fixes #15691] .form-control-static changes height when empty by setting the minimum height to the size it is when text is in the `.form-control-static`

JSFiddle: http://jsfiddle.net/4pdo4yzo/

Compute the minimum height

@line-height-computed = ~20px
@font-size-base = 14px

This should come to approx. 34px

Add min-height to from-group-* per @cvrebert

I had this wrong. The minimum height would depend on the font-size of that specific group, thus we need to declare it once for font-size-small and once also for font-size-large
less/forms.less