diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 30fb6de1a4..cf075b0a7a 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -441,13 +441,17 @@ h6 small { } h1, -h2 { +h2, +h3 { margin-top: 20px; margin-bottom: 10px; line-height: 40px; } -h3, +h3 { + line-height: 30px; +} + h4, h5, h6 { diff --git a/docs/components.html b/docs/components.html index 49db6f6bbd..fdc317e8c8 100644 --- a/docs/components.html +++ b/docs/components.html @@ -174,7 +174,6 @@
Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with our buttons plugin.
Use any button to trigger a dropdown menu by placing it within a .btn-group
and providing the proper menu markup. Requires the Bootstrap dropdown plugin.
Use any button to trigger a dropdown menu by placing it within a .btn-group
and providing the proper menu markup.
Turn a button into dropdown toggle, or add a second button to toggle the dropdown while retaining the primary button action.
-<div class="btn-group"> - <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> - Action - <span class="caret"></span> - </a> - <ul class="dropdown-menu"> - <!-- dropdown menu links --> - </ul> -</div> -+
Button dropdowns work at any size: .btn-large
, .btn-small
, or .btn-mini
.
Button dropdowns require the Bootstrap dropdown plugin to function.
-In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom JavaScript.
- - -Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.
-+<-- Single button --> +<div class="btn-group"> + <button type="button" class="btn dropdown-toggle" data-toggle="dropdown"> + Action + <span class="caret"></span> + </button> + <ul class="dropdown-menu"> + <!-- dropdown menu links --> + </ul> +</div> + +<-- Split button --> <div class="btn-group"> <button class="btn">Action</button> <button class="btn dropdown-toggle" data-toggle="dropdown"> @@ -451,13 +402,12 @@ </div>-
Utilize the extra button classes .btn-mini
, .btn-small
, or .btn-large
for sizing.
Button dropdowns work at any size: .btn-large
, .btn-small
, or .btn-mini
.
-<div class="btn-group"> - <button class="btn btn-mini">Action</button> - <button class="btn btn-mini dropdown-toggle" data-toggle="dropdown"> - <span class="caret"></span> - </button> - <ul class="dropdown-menu"> - <!-- dropdown menu links --> - </ul> -</div> --
Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of .dropdown-menu
. It will flip the direction of the .caret
and reposition the menu itself to move from the bottom up instead of top down.
Trigger dropdown menus above elements by adding .dropup
to the parent.