From 7875e4833cb7d00db2967078fd6f51adbfd4a351 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 28 May 2012 17:32:24 -0700 Subject: fix broken css tests, add fluid input-prepend/-append to tests, fix input-prepend/append for responsive for both fluid and fixed sizing --- less/forms.less | 9 ++++++ less/responsive-767px-max.less | 4 --- less/tests/css-tests.html | 71 ++++++++++++++++++++++++++++-------------- 3 files changed, 56 insertions(+), 28 deletions(-) (limited to 'less') 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 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
-- cgit v1.2.3