From 7c71b4874bfb992bd39e55c369d52f825de1946c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 29 Nov 2014 20:57:04 -0800 Subject: Fixes #15074: Fix the nesting problem with form control size variants --- dist/css/bootstrap.css | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index c33542d02..19185a53e 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -2494,7 +2494,21 @@ fieldset[disabled] .checkbox label { padding-right: 0; padding-left: 0; } -.input-sm, +.input-sm { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +select.input-sm { + height: 30px; + line-height: 30px; +} +textarea.input-sm, +select[multiple].input-sm { + height: auto; +} .form-group-sm .form-control { height: 30px; padding: 5px 10px; @@ -2502,18 +2516,29 @@ fieldset[disabled] .checkbox label { line-height: 1.5; border-radius: 3px; } -select.input-sm, select.form-group-sm .form-control { height: 30px; line-height: 30px; } -textarea.input-sm, textarea.form-group-sm .form-control, -select[multiple].input-sm, select[multiple].form-group-sm .form-control { height: auto; } -.input-lg, +.input-lg { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.33; + border-radius: 6px; +} +select.input-lg { + height: 46px; + line-height: 46px; +} +textarea.input-lg, +select[multiple].input-lg { + height: auto; +} .form-group-lg .form-control { height: 46px; padding: 10px 16px; @@ -2521,14 +2546,11 @@ select[multiple].form-group-sm .form-control { line-height: 1.33; border-radius: 6px; } -select.input-lg, select.form-group-lg .form-control { height: 46px; line-height: 46px; } -textarea.input-lg, textarea.form-group-lg .form-control, -select[multiple].input-lg, select[multiple].form-group-lg .form-control { height: auto; } -- cgit v1.2.3