From a78c8d9c04e83a22d6eebc2e3d54cb2ccf6b614c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 12 Aug 2013 14:03:57 -0700 Subject: Newfangled input and button group sizing (fixes #9295) Instead of applying `.btn-` or `.input-` to individual elements in button and input groups, we now have new sizing classes to keep your markup a little leaner. * Add `.input-group-sm` or `.input-group-lg` to your `.input-group` to replicate `.input-sm` and `.input-lg`, respectively. * Add `.btn-group-xs`, `.btn-group-sm`, or `.btn-group-lg` to your `.btn-group` to replicate `.btn-xs`, `.btn-sm`, and `. btn-lg`, respectively. Both sets of new sizing classes simply use the existing individual sizing classes as mixins, so customization of them is automatically inherited when compiling. --- components.html | 57 +++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 45 insertions(+), 12 deletions(-) (limited to 'components.html') diff --git a/components.html b/components.html index 7031647d6..d49e153f5 100644 --- a/components.html +++ b/components.html @@ -152,6 +152,39 @@ base_url: "../"
...
...
+{% endhighlight %} + +

Button group sizing

+

Instead of applying button sizing classes to every button in a group, just add .btn-group-* to the .btn-group.

+
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+{% highlight html %} +
+
...
+
...
+
...
+
...
+
{% endhighlight %}

Nested button groups

@@ -568,11 +601,11 @@ base_url: "../" {% endhighlight %}

Optional sizes

-

Add the relative form sizing classes to the .input-group-addon.

+

Add the relative form sizing classes to the .input-group itself and contents within will automatically resize—no need for repeating the form control size classes on each element.

-
- @ - +
+ @ +

@@ -580,14 +613,14 @@ base_url: "../"

-
- @ - +
+ @ +
{% highlight html %} -
- @ +
+ @
@@ -596,9 +629,9 @@ base_url: "../"
-
- @ - +
+ @ +
{% endhighlight %} -- cgit v1.2.3