From 98368c0ccae4cbcc80b322b996e08ec2b9740c14 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 15 Aug 2013 13:24:48 -0700 Subject: [PATCH] fixes #9632: button spacing in narrow viewports --- assets/css/docs.css | 10 +- components.html | 312 ++++++++++++++++++++++---------------------- 2 files changed, 168 insertions(+), 154 deletions(-) diff --git a/assets/css/docs.css b/assets/css/docs.css index 8ed5ef52d0..a90c6ca492 100644 --- a/assets/css/docs.css +++ b/assets/css/docs.css @@ -438,10 +438,14 @@ body { } /* Buttons */ -.bs-example > .btn { +.bs-example > .btn, +.bs-example > .btn-group { margin-top: 5px; margin-bottom: 5px; } +.bs-example > .btn-toolbar + .btn-toolbar { + margin-top: 10px; +} /* Forms */ .bs-example-control-sizing select, @@ -536,6 +540,10 @@ body { .bs-example-tooltips { text-align: center; } +.bs-example-tooltips > .btn { + margin-top: 5px; + margin-bottom: 5px; +} /* Popovers */ .bs-example-popover { diff --git a/components.html b/components.html index c6a670a634..71b4f836fa 100644 --- a/components.html +++ b/components.html @@ -160,34 +160,40 @@ base_url: "../"

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

@@ -324,68 +330,66 @@ base_url: "../"

Single button dropdowns

Turn a button into a dropdown toggle with some basic markup changes.

{% highlight html %} @@ -406,74 +410,72 @@ base_url: "../"

Split button dropdowns

Similarly, create split button dropdowns with the same markup changes, only with a separate button.

{% highlight html %} @@ -495,7 +497,7 @@ base_url: "../"

Works with all button sizes

Button dropdowns work with buttons of all sizes.

-
+
+
+
+
+