From df8010b815b8cc4d2f5854b9ec05ca05143be29e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 25 Mar 2015 21:18:19 -0700 Subject: Fixes #15074: Manually handle input sizing in form groups instead of using mixins because nesting --- less/forms.less | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index e4b50629e..de1508d0c 100644 --- a/less/forms.less +++ b/less/forms.less @@ -322,7 +322,19 @@ input[type="checkbox"] { } .form-group-sm { .form-control { - .input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small); + height: @input-height-small; + padding: @padding-small-vertical @padding-small-horizontal; + font-size: @font-size-small; + line-height: @line-height-small; + border-radius: @input-border-radius-small; + } + select.form-control { + height: @input-height-small; + line-height: @input-height-small; + } + textarea.form-control, + select[multiple].form-control { + height: auto; } .form-control-static { height: @input-height-small; @@ -338,7 +350,19 @@ input[type="checkbox"] { } .form-group-lg { .form-control { - .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @input-border-radius-large); + height: @input-height-large; + padding: @padding-large-vertical @padding-large-horizontal; + font-size: @font-size-large; + line-height: @line-height-large; + border-radius: @input-border-radius-large; + } + select.form-control { + height: @input-height-large; + line-height: @input-height-large; + } + textarea.form-control, + select[multiple].form-control { + height: auto; } .form-control-static { height: @input-height-large; -- cgit v1.2.3