From 93be608bf0a4b85ec3331ebcc14e40f99a1974f2 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 9 Jul 2012 20:49:17 -0700 Subject: fixes #3384: add support for multiple inputs per line when using grid sizing --- docs/templates/pages/base-css.mustache | 36 ++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index ef68b1f59..a5d334fa3 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1012,7 +1012,7 @@

{{_i}}Use relative sizing classes like .input-large or match your inputs to the grid column sizes using .span* classes.{{/i}}

{{_i}}Relative sizing{{/i}}

-
+
@@ -1030,10 +1030,13 @@ <input class="input-xlarge" type="text"> <input class="input-xxlarge" type="text"> +

+ {{_i}}Heads up!{{/i}} In future versions, we'll be altering the use of these relative input classes to match our button sizes. For example, .input-large will increase the padding and font-size of an input. +

{{_i}}Grid sizing{{/i}}

{{_i}}Use .span1 to .span12 for inputs that match the same sizes of the grid columns.{{/i}}

- +
@@ -1065,6 +1068,35 @@ <input class="span1" type="text"> <input class="span2" type="text"> <input class="span3" type="text"> + + +

{{_i}}For multiple grid inputs per line, use the .controls-row modifier class for proper spacing. It floats the inputs to collapse white-space, sets the proper margins, and the clears the float.{{/i}}

+ +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+<div class="controls controls-row">
+  <input class="span4" type="text" placeholder=".span4">
+  <input class="span1" type="text" placeholder=".span1">
+</div>
 

{{_i}}Uneditable inputs{{/i}}

-- cgit v1.2.3