diff options
| author | Mark Otto <[email protected]> | 2012-01-28 14:30:45 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-28 14:30:45 -0800 |
| commit | 9db4f2a344ebf452b88ac4af0261192f3a8e9eb6 (patch) | |
| tree | 08e46fb8964cfef7088bb43362d53eefb81ac4ea /less/responsive.less | |
| parent | d96c0c781d49ae87b51221e4aefe025c2c1f3c5a (diff) | |
| download | bootstrap-9db4f2a344ebf452b88ac4af0261192f3a8e9eb6.tar.xz bootstrap-9db4f2a344ebf452b88ac4af0261192f3a8e9eb6.zip | |
change .span* inputs to use content-sizing: border-box; to make them behave as block level elements
Diffstat (limited to 'less/responsive.less')
| -rw-r--r-- | less/responsive.less | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/less/responsive.less b/less/responsive.less index 2d49f2095..ef2df5f1d 100644 --- a/less/responsive.less +++ b/less/responsive.less @@ -33,6 +33,26 @@ line-height: @baseLineHeight; } + // Make span* classes full width + input[class*="span"], + select[class*="span"], + textarea[class*="span"], + .uneditable-input { + display: block; + width: 100%; + height: 28px; /* Make inputs at least the height of their button counterpart */ + /* Makes inputs behave like true block-level elements */ + -webkit-box-sizing: border-box; /* Older Webkit */ + -moz-box-sizing: border-box; /* Older FF */ + -ms-box-sizing: border-box; /* IE8 */ + box-sizing: border-box; /* CSS3 spec*/ + } + // But don't let it screw up prepend/append inputs + .input-prepend input[class*="span"], + .input-append input[class*="span"] { + width: auto; + } + // Update checkboxes for iOS input[type="checkbox"], input[type="radio"] { |
