diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 5af92fad1..678559c5a 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -2498,8 +2498,8 @@ table .span24 { .caret { display: inline-block; width: 0; - height: 0; - vertical-align: top; + height: 3px; + vertical-align: middle; border-top: 4px solid #000000; border-right: 4px solid transparent; border-left: 4px solid transparent; @@ -2509,7 +2509,6 @@ table .span24 { } .dropdown .caret { - margin-top: 8px; margin-left: 2px; } @@ -2617,6 +2616,8 @@ table .span24 { .dropup .caret, .navbar-fixed-bottom .dropdown .caret { + height: 0; + margin-top: -2px; border-top: 0; border-bottom: 4px solid #000000; content: "\2191"; @@ -3187,28 +3188,28 @@ input[type="submit"].btn.btn-mini { } .btn-group > .dropdown-toggle { - *padding-top: 4px; - padding-right: 8px; - *padding-bottom: 4px; - padding-left: 8px; + *padding-top: 8px; + padding-right: 10px; + *padding-bottom: 8px; + padding-left: 10px; -webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); } .btn-group > .btn-mini.dropdown-toggle { - padding-right: 5px; - padding-left: 5px; + padding-right: 8px; + padding-left: 8px; } .btn-group > .btn-small.dropdown-toggle { - *padding-top: 4px; - *padding-bottom: 4px; + *padding-top: 6px; + *padding-bottom: 6px; } .btn-group > .btn-large.dropdown-toggle { - padding-right: 12px; - padding-left: 12px; + padding-right: 14px; + padding-left: 14px; } .btn-group.open .dropdown-toggle { @@ -3247,7 +3248,6 @@ input[type="submit"].btn.btn-mini { } .btn .caret { - margin-top: 7px; margin-left: 0; } @@ -3257,16 +3257,7 @@ input[type="submit"].btn.btn-mini { filter: alpha(opacity=100); } -.btn-mini .caret { - margin-top: 5px; -} - -.btn-small .caret { - margin-top: 6px; -} - .btn-large .caret { - margin-top: 6px; border-top-width: 5px; border-right-width: 5px; border-left-width: 5px; diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index e2b6aeba1..9593ae772 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -544,14 +544,6 @@ h2 + .row { /* Tweak examples ------------------------- */ -.bs-docs-example, -.bs-docs-example > p { - font-size: 13px; - line-height: 18px; -} -.bs-docs-example > p { - margin-bottom: 9px; -} .bs-docs-example > p:last-child { margin-bottom: 0; } diff --git a/docs/components.html b/docs/components.html index 213247821..719a8ad48 100644 --- a/docs/components.html +++ b/docs/components.html @@ -214,27 +214,13 @@ ================================================== -->
- -

Description and best practices

-

Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements. We recommend the following guidelines for using button groups and toolbars:

- -

Related Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.

- - -
- - -

Examples and variations

+

Examples

Two basic options, along with two more specific variations.

-

Basic button group

+

Single button group

Wrap a series of buttons with .btn in .btn-group.

@@ -251,7 +237,7 @@ </div> -

Toolbar example

+

Multiple button groups

Combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.

@@ -279,11 +265,7 @@ </div> - -
- - -

Vertical button groups

+

Vertical button groups

Make a set of buttons appear vertically stacked rather than horizontally.

@@ -303,10 +285,10 @@
-

Checkbox and radio flavors

+

Checkbox and radio flavors

Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.

-

Dropdowns in button groups

+

Dropdowns in button groups

Heads up! Buttons with dropdowns must be individually wrapped in their own .btn-group within a .btn-toolbar for proper rendering.

diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 306c4dea2..d696e683c 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -144,27 +144,13 @@ ================================================== -->
- -

{{_i}}Description and best practices{{/i}}

-

{{_i}}Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements. We recommend the following guidelines for using button groups and toolbars:{{/i}}

- -

{{_i}}Related Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.{{/i}}

- - -
- - -

{{_i}}Examples and variations{{/i}}

+

{{_i}}Examples{{/i}}

{{_i}}Two basic options, along with two more specific variations.{{/i}}

-

{{_i}}Basic button group{{/i}}

+

{{_i}}Single button group{{/i}}

{{_i}}Wrap a series of buttons with .btn in .btn-group.{{/i}}

@@ -181,7 +167,7 @@ </div> -

{{_i}}Toolbar example{{/i}}

+

{{_i}}Multiple button groups{{/i}}

{{_i}}Combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.{{/i}}

@@ -209,11 +195,7 @@ </div> - -
- - -

{{_i}}Vertical button groups{{/i}}

+

{{_i}}Vertical button groups{{/i}}

{{_i}}Make a set of buttons appear vertically stacked rather than horizontally.{{/i}}

@@ -233,10 +215,10 @@
-

{{_i}}Checkbox and radio flavors{{/i}}

+

{{_i}}Checkbox and radio flavors{{/i}}

{{_i}}Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.{{/i}}

-

{{_i}}Dropdowns in button groups{{/i}}

+

{{_i}}Dropdowns in button groups{{/i}}

{{_i}}Heads up!{{/i}} {{_i}}Buttons with dropdowns must be individually wrapped in their own .btn-group within a .btn-toolbar for proper rendering.{{/i}}

diff --git a/less/button-groups.less b/less/button-groups.less index 26cc2091a..d421b8f42 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -107,23 +107,23 @@ // Give the line between buttons some depth .btn-group > .dropdown-toggle { - padding-left: 8px; - padding-right: 8px; + padding-left: 10px; + padding-right: 10px; .box-shadow(~"inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)"); - *padding-top: 4px; - *padding-bottom: 4px; + *padding-top: 8px; + *padding-bottom: 8px; } .btn-group > .btn-mini.dropdown-toggle { - padding-left: 5px; - padding-right: 5px; + padding-left: 8px; + padding-right: 8px; } .btn-group > .btn-small.dropdown-toggle { - *padding-top: 4px; - *padding-bottom: 4px; + *padding-top: 6px; + *padding-bottom: 6px; } .btn-group > .btn-large.dropdown-toggle { - padding-left: 12px; - padding-right: 12px; + padding-left: 14px; + padding-right: 14px; } .btn-group.open { @@ -162,7 +162,6 @@ // Reposition the caret .btn .caret { - margin-top: 7px; margin-left: 0; } .btn:hover .caret, @@ -171,13 +170,10 @@ } // Carets in other button sizes .btn-mini .caret { - margin-top: 5px; } .btn-small .caret { - margin-top: 6px; } .btn-large .caret { - margin-top: 6px; border-left-width: 5px; border-right-width: 5px; border-top-width: 5px; diff --git a/less/dropdowns.less b/less/dropdowns.less index e9e91b6a4..705b25d50 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -22,8 +22,8 @@ .caret { display: inline-block; width: 0; - height: 0; - vertical-align: top; + height: 3px; + vertical-align: middle; border-top: 4px solid @black; border-right: 4px solid transparent; border-left: 4px solid transparent; @@ -33,7 +33,6 @@ // Place the caret .dropdown .caret { - margin-top: 8px; margin-left: 2px; } .dropdown a:focus .caret, @@ -153,6 +152,8 @@ .navbar-fixed-bottom .dropdown { // Reverse the caret .caret { + margin-top: -2px; + height: 0; border-top: 0; border-bottom: 4px solid @black; content: "\2191";