From 7875e4833cb7d00db2967078fd6f51adbfd4a351 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 28 May 2012 17:32:24 -0700 Subject: [PATCH] fix broken css tests, add fluid input-prepend/-append to tests, fix input-prepend/append for responsive for both fluid and fixed sizing --- docs/assets/css/bootstrap-responsive.css | 4 -- docs/assets/css/bootstrap.css | 9 +++ less/forms.less | 9 +++ less/responsive-767px-max.less | 4 -- less/tests/css-tests.html | 71 ++++++++++++++++-------- 5 files changed, 65 insertions(+), 32 deletions(-) diff --git a/docs/assets/css/bootstrap-responsive.css b/docs/assets/css/bootstrap-responsive.css index a5d9ff4267..cf8aa011c4 100644 --- a/docs/assets/css/bootstrap-responsive.css +++ b/docs/assets/css/bootstrap-responsive.css @@ -174,10 +174,6 @@ width: auto; margin-left: 0; } - .row-fluid .input-prepend [class*="span"], - .row-fluid .input-append [class*="span"] { - display: inline-block; - } .input-large, .input-xlarge, .input-xxlarge, diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index e3708c29d3..c5f52ebcfd 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -982,6 +982,15 @@ textarea[class*="span"], margin-left: 0; } +.input-append input[class*="span"], +.input-append .uneditable-input[class*="span"], +.input-prepend input[class*="span"], +.input-prepend .uneditable-input[class*="span"], +.row-fluid .input-prepend [class*="span"], +.row-fluid .input-append [class*="span"] { + display: inline-block; +} + input, textarea, .uneditable-input { diff --git a/less/forms.less b/less/forms.less index a7e525a761..1163fe9140 100644 --- a/less/forms.less +++ b/less/forms.less @@ -245,6 +245,15 @@ textarea[class*="span"], float: none; margin-left: 0; } +// Ensure input-prepend/append never wraps +.input-append input[class*="span"], +.input-append .uneditable-input[class*="span"], +.input-prepend input[class*="span"], +.input-prepend .uneditable-input[class*="span"], +.row-fluid .input-prepend [class*="span"], +.row-fluid .input-append [class*="span"] { + display: inline-block; +} diff --git a/less/responsive-767px-max.less b/less/responsive-767px-max.less index fc422d3a25..614c6905c2 100644 --- a/less/responsive-767px-max.less +++ b/less/responsive-767px-max.less @@ -124,10 +124,6 @@ width: auto; margin-left: 0; } - .row-fluid .input-prepend [class*="span"], - .row-fluid .input-append [class*="span"] { - display: inline-block; - } // FORM FIELDS // ----------- diff --git a/less/tests/css-tests.html b/less/tests/css-tests.html index 0e964e27f4..b7177e5c68 100644 --- a/less/tests/css-tests.html +++ b/less/tests/css-tests.html @@ -500,68 +500,91 @@ +

Fluid prepended and appended inputs

+
+
+
+
+
+ @ +
+
+
+
+ @ +
+
+
+
+ $.00 +
+
+
+
+
+

Fixed row with inputs

Inputs should not extend past the light red background, set on their parent, a .span* column.

- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -572,62 +595,62 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +