2013-05-09 06:56:08 +02:00
---
layout: default
title: Components
slug: components
lead: "Dozens of reusable components built to provide iconography, dropdowns, navigation, alerts, popovers, and much more."
2013-07-27 09:18:12 +02:00
base_url: "../"
2013-05-09 06:56:08 +02:00
---
<!-- Dropdowns
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "dropdowns" > Dropdown menus< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
2013-07-27 09:28:23 +02:00
< p class = "lead" > Toggleable, contextual menu for displaying lists of links. Made interactive with the < a href = "../javascript/#dropdowns" > dropdown JavaScript plugin< / a > .< / p >
2013-05-09 06:56:08 +02:00
< h3 id = "dropdowns-example" > Example< / h3 >
< p > Wrap the dropdown's trigger and the dropdown menu within < code > .dropdown< / code > , or another element that declares < code > position: relative;< / code > . Then add the menu's HTML.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "dropdown clearfix" >
< ul class = "dropdown-menu" role = "menu" aria-labelledby = "dropdownMenu" >
< li > < a tabindex = "-1" href = "#" > Action< / a > < / li >
< li > < a tabindex = "-1" href = "#" > Another action< / a > < / li >
< li > < a tabindex = "-1" href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a tabindex = "-1" href = "#" > Separated link< / a > < / li >
< / ul >
< / div >
< / div > <!-- /example -->
{% highlight html %}
< div class = "dropdown" >
<!-- Link or button to toggle dropdown -->
< ul class = "dropdown-menu" role = "menu" aria-labelledby = "dropdownMenu" >
< li > < a tabindex = "-1" href = "#" > Action< / a > < / li >
< li > < a tabindex = "-1" href = "#" > Another action< / a > < / li >
< li > < a tabindex = "-1" href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a tabindex = "-1" href = "#" > Separated link< / a > < / li >
< / ul >
< / div >
{% endhighlight %}
< h3 id = "dropdowns-alignment" > Aligning the menus< / h3 >
< p > Add < code > .pull-right< / code > to a < code > .dropdown-menu< / code > to right align the dropdown menu.< / p >
{% highlight html %}
< ul class = "dropdown-menu pull-right" role = "menu" aria-labelledby = "dLabel" >
...
< / ul >
2013-07-18 08:54:09 +02:00
{% endhighlight %}
< h3 id = "dropdowns-headers" > Dropdown headers< / h3 >
2013-08-04 08:23:40 +02:00
< p > Add a header to label sections of actions in any dropdown menu.< / p >
2013-07-18 08:54:09 +02:00
< div class = "bs-example" >
< div class = "dropdown clearfix" >
< ul class = "dropdown-menu" role = "menu" aria-labelledby = "dropdownMenu" >
< li class = "dropdown-header" > Dropdown header< / li >
< li > < a tabindex = "-1" href = "#" > Action< / a > < / li >
< li > < a tabindex = "-1" href = "#" > Another action< / a > < / li >
< li > < a tabindex = "-1" href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li class = "dropdown-header" > Dropdown header< / li >
< li > < a tabindex = "-1" href = "#" > Separated link< / a > < / li >
< / ul >
< / div >
< / div > <!-- /example -->
{% highlight html %}
< ul class = "dropdown-menu" role = "menu" aria-labelledby = "dropdownMenu" >
< li class = "dropdown-header" > Dropdown header< / li >
...
< li class = "divider" > < / li >
< li class = "dropdown-header" > Dropdown header< / li >
...
< / ul >
2013-05-09 06:56:08 +02:00
{% endhighlight %}
< h3 id = "dropdowns-disabled" > Disabled menu options< / h3 >
< p > Add < code > .disabled< / code > to a < code > < li> < / code > in the dropdown to disable the link.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "dropdown clearfix" >
< ul class = "dropdown-menu" role = "menu" aria-labelledby = "dropdownMenu" >
< li > < a tabindex = "-1" href = "#" > Regular link< / a > < / li >
< li class = "disabled" > < a tabindex = "-1" href = "#" > Disabled link< / a > < / li >
< li > < a tabindex = "-1" href = "#" > Another link< / a > < / li >
< / ul >
< / div >
< / div > <!-- /example -->
{% highlight html %}
< ul class = "dropdown-menu" role = "menu" aria-labelledby = "dropdownMenu" >
< li > < a tabindex = "-1" href = "#" > Regular link< / a > < / li >
< li class = "disabled" > < a tabindex = "-1" href = "#" > Disabled link< / a > < / li >
< li > < a tabindex = "-1" href = "#" > Another link< / a > < / li >
< / ul >
{% endhighlight %}
< / div >
<!-- Button Groups
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "btn-groups" > Button groups< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
2013-08-07 12:42:46 +02:00
< p class = "lead" > Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with < a href = "../javascript/#buttons" > our buttons plugin< / a > .< / p >
2013-05-09 06:56:08 +02:00
2013-07-18 05:17:56 +02:00
< div class = "bs-callout bs-callout-info" >
2013-06-26 05:18:30 +02:00
< h4 > Tooltips & popovers in button groups require special setting< / h4 >
< p > When using tooltips or popovers on elements within a < code > .btn-group< / code > , you'll have to specify the option < code > container: 'body'< / code > to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).< / p >
< / div >
2013-05-09 06:56:08 +02:00
< h3 id = "btn-groups-single" > Basic button group< / h3 >
< p > Wrap a series of buttons with < code > .btn< / code > in < code > .btn-group< / code > .< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "btn-group" style = "margin: 9px 0 5px;" >
< button type = "button" class = "btn btn-default" > Left< / button >
< button type = "button" class = "btn btn-default" > Middle< / button >
< button type = "button" class = "btn btn-default" > Right< / button >
< / div >
< / div >
{% highlight html %}
< div class = "btn-group" >
< button type = "button" class = "btn btn-default" > Left< / button >
< button type = "button" class = "btn btn-default" > Middle< / button >
< button type = "button" class = "btn btn-default" > Right< / button >
< / div >
{% endhighlight %}
< h3 id = "btn-groups-toolbar" > Multiple button groups< / h3 >
< p > Combine sets of < code > < div class="btn-group"> < / code > into a < code > < div class="btn-toolbar"> < / code > for more complex components.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "btn-toolbar" style = "margin: 0;" >
< div class = "btn-group" >
< button type = "button" class = "btn btn-default" > 1< / button >
< button type = "button" class = "btn btn-default" > 2< / button >
< button type = "button" class = "btn btn-default" > 3< / button >
< button type = "button" class = "btn btn-default" > 4< / button >
< / div >
< div class = "btn-group" >
< button type = "button" class = "btn btn-default" > 5< / button >
< button type = "button" class = "btn btn-default" > 6< / button >
< button type = "button" class = "btn btn-default" > 7< / button >
< / div >
< div class = "btn-group" >
< button type = "button" class = "btn btn-default" > 8< / button >
< / div >
< / div >
< / div >
{% highlight html %}
< div class = "btn-toolbar" >
< div class = "btn-group" > ...< / div >
< div class = "btn-group" > ...< / div >
< div class = "btn-group" > ...< / div >
< / div >
{% endhighlight %}
< h3 id = "btn-groups-nested" > Nested button groups< / h3 >
2013-08-04 08:34:26 +02:00
< p > Place a < code > .btn-group< / code > within another < code > .btn-group< / code > when you want dropdown menus mixed with a series of buttons.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "btn-group" >
< button type = "button" class = "btn btn-default" > 1< / button >
< button type = "button" class = "btn btn-default" > 2< / button >
< div class = "btn-group" >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" >
Dropdown
< span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Dropdown link< / a > < / li >
< li > < a href = "#" > Dropdown link< / a > < / li >
2013-08-04 08:34:26 +02:00
< / ul >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
< / div >
2013-08-04 08:34:26 +02:00
{% highlight html %}
< div class = "btn-group" >
< button type = "button" class = "btn btn-default" > 1< / button >
< button type = "button" class = "btn btn-default" > 2< / button >
< div class = "btn-group" >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" >
Dropdown
< span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Dropdown link< / a > < / li >
< li > < a href = "#" > Dropdown link< / a > < / li >
< / ul >
< / div >
< / div >
{% endhighlight %}
2013-05-09 06:56:08 +02:00
< h3 id = "btn-groups-vertical" > Vertical button groups< / h3 >
< p > Make a set of buttons appear vertically stacked rather than horizontally.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-10 01:26:35 +02:00
< div class = "btn-group-vertical" >
2013-06-28 03:51:06 +02:00
< button type = "button" class = "btn btn-default" > Button< / button >
< button type = "button" class = "btn btn-default" > Button< / button >
< button type = "button" class = "btn btn-default" > Button< / button >
< button type = "button" class = "btn btn-default" > Button< / button >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
{% highlight html %}
2013-05-10 01:26:35 +02:00
< div class = "btn-group-vertical" >
2013-05-09 06:56:08 +02:00
...
< / div >
{% endhighlight %}
< h3 id = "btn-groups-justified" > Justified button groups< / h3 >
2013-06-26 15:59:33 +02:00
< p > Make a group of buttons stretch at the same size to span the entire width of its parent.< / p >
2013-07-18 04:33:30 +02:00
2013-06-26 15:59:33 +02:00
< div class = "bs-callout bs-callout-warning" >
< h4 > Element-specific usage< / h4 >
< p > This only works with < code > < a> < / code > elements as the < code > < button> < / code > doesn't pick up these styles.< / p >
< / div >
2013-07-18 04:33:30 +02:00
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "btn-group btn-group-justified" >
< a href = "#" class = "btn btn-default" > Left< / a >
< a href = "#" class = "btn btn-default" > Middle< / a >
2013-07-31 15:39:07 +02:00
< a href = "#" class = "btn btn-default" > Right< / a >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
{% highlight html %}
< div class = "btn-group btn-group-justified" >
...
< / div >
{% endhighlight %}
< / div >
<!-- Split button dropdowns
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "btn-dropdowns" > Button dropdown menus< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< p class = "lead" > Use any button to trigger a dropdown menu by placing it within a < code > .btn-group< / code > and providing the proper menu markup.< / p >
2013-06-26 15:59:33 +02:00
< div class = "bs-callout bs-callout-danger" >
2013-05-09 06:56:08 +02:00
< h4 > Plugin dependency< / h4 >
2013-07-27 09:28:23 +02:00
< p > Button dropdowns require the < a href = "../javascript/#dropdowns" > dropdown plugin< / a > to be included in your version of Bootstrap.< / p >
2013-05-09 06:56:08 +02:00
< / div >
< h3 id = "btn-dropdowns-single" > Single button dropdowns< / h3 >
2013-08-04 09:06:56 +02:00
< p > Turn a button into a dropdown toggle with some basic markup changes.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "btn-toolbar" style = "margin-bottom: 10px;" >
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" > Action < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-primary dropdown-toggle" data-toggle = "dropdown" > Action < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-danger dropdown-toggle" data-toggle = "dropdown" > Danger < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-warning dropdown-toggle" data-toggle = "dropdown" > Warning < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-success dropdown-toggle" data-toggle = "dropdown" > Success < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< / div >
< / div >
{% highlight html %}
<!-- Single button -->
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" >
2013-05-09 06:56:08 +02:00
Action < span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div >
{% endhighlight %}
< h3 id = "btn-dropdowns-split" > Split button dropdowns< / h3 >
< p > Similarly, create split button dropdowns with the same markup changes, only with a separate button.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "btn-toolbar" style = "margin: 0;" >
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-default" > Action< / button >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" > < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-primary" > Action< / button >
< button type = "button" class = "btn btn-primary dropdown-toggle" data-toggle = "dropdown" > < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-danger" > Danger< / button >
< button type = "button" class = "btn btn-danger dropdown-toggle" data-toggle = "dropdown" > < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-warning" > Warning< / button >
< button type = "button" class = "btn btn-warning dropdown-toggle" data-toggle = "dropdown" > < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-success" > Success< / button >
< button type = "button" class = "btn btn-success dropdown-toggle" data-toggle = "dropdown" > < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< / div > <!-- /btn - toolbar -->
< / div >
{% highlight html %}
<!-- Split button -->
< div class = "btn-group" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-default" > Action< / button >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" >
2013-05-09 06:56:08 +02:00
< span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div >
{% endhighlight %}
< h3 id = "btn-dropdowns-sizes" > Works with all button sizes< / h3 >
2013-05-15 08:21:30 +02:00
< p > Button dropdowns work with buttons of all sizes.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "btn-toolbar" style = "margin: 0;" >
< div class = "btn-group" >
2013-08-04 06:39:57 +02:00
< button class = "btn btn-default btn-lg dropdown-toggle" type = "button" data-toggle = "dropdown" >
2013-05-09 06:56:08 +02:00
Large button < span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< div class = "btn-group" >
2013-08-04 06:39:57 +02:00
< button class = "btn btn-default btn-sm dropdown-toggle" type = "button" data-toggle = "dropdown" >
2013-05-09 06:56:08 +02:00
Small button < span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
2013-08-04 06:59:01 +02:00
< div class = "btn-group" >
< button class = "btn btn-default btn-xs dropdown-toggle" type = "button" data-toggle = "dropdown" >
Extra small button < span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
2013-05-09 06:56:08 +02:00
< / div > <!-- /btn - toolbar -->
< / div > <!-- /example -->
{% highlight html %}
<!-- Large button group -->
< div class = "btn-group" >
2013-08-04 06:39:57 +02:00
< button class = "btn btn-default btn-lg dropdown-toggle" type = "button" data-toggle = "dropdown" >
2013-05-09 06:56:08 +02:00
Large button < span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
...
< / ul >
< / div >
<!-- Small button group -->
< div class = "btn-group" >
2013-08-04 06:39:57 +02:00
< button class = "btn btn-default btn-sm dropdown-toggle" type = "button" data-toggle = "dropdown" >
2013-05-09 06:56:08 +02:00
Small button < span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
...
< / ul >
< / div >
2013-08-04 06:59:01 +02:00
<!-- Extra small button group -->
< div class = "btn-group" >
< button class = "btn btn-default btn-xs dropdown-toggle" type = "button" data-toggle = "dropdown" >
Extra small button < span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
...
< / ul >
2013-05-09 06:56:08 +02:00
< / div >
{% endhighlight %}
< h3 id = "btn-dropdowns-dropup" > Dropup buttons< / h3 >
< p > Trigger dropdown menus above elements by adding < code > .dropup< / code > to the parent.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "btn-toolbar" >
< div class = "btn-group dropup" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-default" > Dropup< / button >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" > < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< div class = "btn-group dropup" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-primary" > Right dropup< / button >
< button type = "button" class = "btn btn-primary dropdown-toggle" data-toggle = "dropdown" > < span class = "caret" > < / span > < / button >
2013-05-09 06:56:08 +02:00
< ul class = "dropdown-menu pull-right" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< / div >
< / div > <!-- /example -->
{% highlight html %}
< div class = "btn-group dropup" >
2013-05-15 19:01:09 +02:00
< button type = "button" class = "btn btn-default" > Dropup< / button >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" >
2013-05-09 06:56:08 +02:00
< span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
<!-- Dropdown menu links -->
< / ul >
< / div >
{% endhighlight %}
< / div >
2013-07-28 03:56:31 +02:00
<!-- Input groups
================================================== -->
< div class = "bs-docs-section" >
< div class = "page-header" >
< h1 id = "input-groups" > Input groups< / h1 >
< / div >
< p class = "lead" > Extend form controls by adding text or buttons before, after, or on both sides of any text-based input. Use < code > .input-group< / code > with an < code > .input-group-addon< / code > to prepend or append elements to a < code > .form-control< / code > .< / p >
< div class = "bs-callout bs-callout-danger" >
< h4 > Cross-browser compatibility< / h4 >
< p > Avoid using < code > < select> < / code > elements here as they cannot be fully styled in WebKit browsers.< / p >
< / div >
< div class = "bs-callout bs-callout-info" >
< h4 > Tooltips & popovers in input groups require special setting< / h4 >
< p > When using tooltips or popovers on elements within an < code > .input-group< / code > , you'll have to specify the option < code > container: 'body'< / code > to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).< / p >
< / div >
< h2 id = "input-groups-basic" > Basic input group< / h2 >
< form class = "bs-example bs-example-form" >
< div class = "input-group" >
< span class = "input-group-addon" > @< / span >
< input type = "text" class = "form-control" placeholder = "Username" >
< / div >
< br >
< div class = "input-group" >
< input type = "text" class = "form-control" >
< span class = "input-group-addon" > .00< / span >
< / div >
< br >
< div class = "input-group" >
< span class = "input-group-addon" > $< / span >
< input type = "text" class = "form-control" >
< span class = "input-group-addon" > .00< / span >
< / div >
< / form >
{% highlight html %}
< div class = "input-group" >
< span class = "input-group-addon" > @< / span >
< input type = "text" class = "form-control" placeholder = "Username" >
< / div >
< div class = "input-group" >
< input type = "text" class = "form-control" >
< span class = "input-group-addon" > .00< / span >
< / div >
< div class = "input-group" >
< span class = "input-group-addon" > $< / span >
< input type = "text" class = "form-control" >
< span class = "input-group-addon" > .00< / span >
< / div >
{% endhighlight %}
< h2 id = "input-groups-sizes" > Optional sizes< / h2 >
< p > Add the relative form sizing classes to the < code > .input-group-addon< / code > .< / p >
< form class = "bs-example bs-example-form" >
< div class = "input-group" >
2013-08-04 06:39:57 +02:00
< span class = "input-group-addon input-lg" > @< / span >
< input type = "text" class = "form-control input-lg" placeholder = "Username" >
2013-07-28 03:56:31 +02:00
< / div >
< br >
< div class = "input-group" >
< span class = "input-group-addon" > @< / span >
< input type = "text" class = "form-control" placeholder = "Username" >
< / div >
< br >
< div class = "input-group" >
2013-08-04 06:39:57 +02:00
< span class = "input-group-addon input-sm" > @< / span >
< input type = "text" class = "form-control input-sm" placeholder = "Username" >
2013-07-28 03:56:31 +02:00
< / div >
< / form >
{% highlight html %}
< div class = "input-group" >
2013-08-04 06:39:57 +02:00
< span class = "input-group-addon input-lg" > @< / span >
< input type = "text" class = "form-control input-lg" placeholder = "Username" >
2013-07-28 03:56:31 +02:00
< / div >
< div class = "input-group" >
< span class = "input-group-addon" > @< / span >
< input type = "text" class = "form-control" placeholder = "Username" >
< / div >
< div class = "input-group" >
2013-08-04 06:39:57 +02:00
< span class = "input-group-addon input-sm" > @< / span >
< input type = "text" class = "form-control input-sm" placeholder = "Username" >
2013-07-28 03:56:31 +02:00
< / div >
{% endhighlight %}
< h2 id = "input-groups-checkboxes-radios" > Checkboxes and radio buttons< / h2 >
< p > Place any checkbox or radio option within an input group's addon instead of text.< / p >
< form class = "bs-example bs-example-form" >
< div class = "row" >
< div class = "col-lg-6" >
< div class = "input-group" >
< span class = "input-group-addon" >
< input type = "checkbox" >
< / span >
< input type = "text" class = "form-control" >
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< div class = "col-lg-6" >
< div class = "input-group" >
< span class = "input-group-addon" >
< input type = "radio" >
< / span >
< input type = "text" class = "form-control" >
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< / div > <!-- /.row -->
< / form >
{% highlight html %}
< div class = "row" >
< div class = "col-lg-6" >
< div class = "input-group" >
< span class = "input-group-addon" >
< input type = "checkbox" >
< / span >
< input type = "text" class = "form-control" >
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< div class = "col-lg-6" >
< div class = "input-group" >
< span class = "input-group-addon" >
< input type = "radio" >
< / span >
< input type = "text" class = "form-control" >
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< / div > <!-- /.row -->
{% endhighlight %}
< h2 id = "input-groups-buttons" > Buttons instead of text< / h2 >
< p > Buttons in input groups are a bit different and require one extra level of nesting. Instead of < code > .input-group-addon< / code > , you'll need to use < code > .input-group-btn< / code > to wrap the buttons. This is required due to default browser styles that cannot be overridden.< / p >
< form class = "bs-example bs-example-form" >
< div class = "row" >
< div class = "col-lg-6" >
< div class = "input-group" >
< span class = "input-group-btn" >
< button class = "btn btn-default" type = "button" > Go!< / button >
< / span >
< input type = "text" class = "form-control" >
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< div class = "col-lg-6" >
< div class = "input-group" >
< input type = "text" class = "form-control" >
< span class = "input-group-btn" >
< button class = "btn btn-default" type = "button" > Go!< / button >
< / span >
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< / div > <!-- /.row -->
< / form >
{% highlight html %}
< div class = "row" >
< div class = "col-lg-6" >
< div class = "input-group" >
< span class = "input-group-btn" >
< button class = "btn btn-default" type = "button" > Go!< / button >
< / span >
< input type = "text" class = "form-control" >
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< div class = "col-lg-6" >
< div class = "input-group" >
< input type = "text" class = "form-control" >
< span class = "input-group-btn" >
< button class = "btn btn-default" type = "button" > Go!< / button >
< / span >
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< / div > <!-- /.row -->
{% endhighlight %}
< h2 id = "input-groups-buttons-dropdowns" > Buttons with dropdowns< / h2 >
< p > < / p >
< form class = "bs-example bs-example-form" >
< div class = "row" >
< div class = "col-lg-6" >
< div class = "input-group" >
< div class = "input-group-btn" >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" > Action < span class = "caret" > < / span > < / button >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< input type = "text" class = "form-control" >
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< div class = "col-lg-6" >
< div class = "input-group" >
< input type = "text" class = "form-control" >
< div class = "input-group-btn" >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" > Action < span class = "caret" > < / span > < / button >
< ul class = "dropdown-menu pull-right" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< / div > <!-- /.row -->
< / form >
{% highlight html %}
< div class = "row" >
< div class = "col-lg-6" >
< div class = "input-group" >
< div class = "input-group-btn" >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" > Action < span class = "caret" > < / span > < / button >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< input type = "text" class = "form-control" >
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< div class = "col-lg-6" >
< div class = "input-group" >
< input type = "text" class = "form-control" >
< div class = "input-group-btn" >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" > Action < span class = "caret" > < / span > < / button >
< ul class = "dropdown-menu pull-right" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div > <!-- /btn - group -->
< / div > <!-- /input - group -->
< / div > <!-- /.col - lg - 6 -->
< / div > <!-- /.row -->
{% endhighlight %}
< h2 id = "input-groups-buttons-segmented" > Segmented dropdown groups< / h2 >
< form class = "bs-example bs-example-form" >
< div class = "row" >
< div class = "col-lg-6" >
< div class = "input-group" >
< div class = "input-group-btn" >
< button type = "button" class = "btn btn-default" tabindex = "-1" > Action< / button >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" tabindex = "-1" >
< span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div >
< input type = "text" class = "form-control" >
< / div > <!-- /.input - group -->
< / div > <!-- /.col - lg - 6 -->
< div class = "col-lg-6" >
< div class = "input-group" >
< input type = "text" class = "form-control" >
< div class = "input-group-btn" >
< button type = "button" class = "btn btn-default" tabindex = "-1" > Action< / button >
< button type = "button" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" tabindex = "-1" >
< span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu pull-right" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div >
< / div > <!-- /.input - group -->
< / div > <!-- /.col - lg - 6 -->
< / div > <!-- /.row -->
< / form >
{% highlight html %}
< div class = "input-group" >
< div class = "input-group-btn" >
<!-- Button and dropdown menu -->
< / div >
< input type = "text" class = "form-control" >
< / div >
< div class = "input-group" >
< input type = "text" class = "form-control" >
< div class = "input-group-btn btn-group" >
<!-- Button and dropdown menu -->
< / div >
< / div >
{% endhighlight %}
2013-07-31 12:57:39 +02:00
< / div >
2013-07-28 03:56:31 +02:00
2013-05-09 06:56:08 +02:00
<!-- Navs
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "nav" > Navs< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< p class = "lead" > Navs available in Bootstrap have shared markup, starting with the base < code > .nav< / code > class, as well as shared states. Swap modifier classes to switch between each style.< / p >
< h2 id = "nav-tabs" > Tabs< / h2 >
< p > Note the < code > .nav-tabs< / code > class requires the < code > .nav< / code > base class.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "nav nav-tabs" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Profile< / a > < / li >
< li > < a href = "#" > Messages< / a > < / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "nav nav-tabs" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Profile< / a > < / li >
< li > < a href = "#" > Messages< / a > < / li >
< / ul >
{% endhighlight %}
< h2 id = "nav-pills" > Pills< / h2 >
< p > Take that same HTML, but use < code > .nav-pills< / code > instead:< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "nav nav-pills" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Profile< / a > < / li >
< li > < a href = "#" > Messages< / a > < / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "nav nav-pills" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Profile< / a > < / li >
< li > < a href = "#" > Messages< / a > < / li >
< / ul >
{% endhighlight %}
< p > Pills are also vertically stackable. Just add < code > .nav-stacked< / code > .< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "nav nav-pills nav-stacked" style = "max-width: 300px;" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Profile< / a > < / li >
< li > < a href = "#" > Messages< / a > < / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "nav nav-pills nav-stacked" >
...
< / ul >
{% endhighlight %}
< h2 > Options< / h2 >
< h3 id = "nav-justified" > Justified links< / h3 >
< p > Easily make tabs or pills equal widths of their parent with < code > .nav-justified< / code > .< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "nav nav-tabs nav-justified" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Profile< / a > < / li >
< li > < a href = "#" > Messages< / a > < / li >
< / ul >
< br >
< ul class = "nav nav-pills nav-justified" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Profile< / a > < / li >
< li > < a href = "#" > Messages< / a > < / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "nav nav-tabs nav-justified" >
...
< / ul >
< ul class = "nav nav-pills nav-justified" >
...
< / ul >
{% endhighlight %}
< h3 id = "nav-disabled-links" > Disabled state< / h3 >
< p > For any nav component (tabs, pills, or list), add < code > .disabled< / code > for < strong > gray links and no hover effects< / strong > .< / p >
2013-06-26 15:59:33 +02:00
< div class = "bs-callout bs-callout-warning" >
2013-05-09 06:56:08 +02:00
< h4 > Link functionality not impacted< / h4 >
< p > This class will only change the < code > < a> < / code > 's appearance, not its functionality. Use custom JavaScript to disable links here.< / p >
< / div >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "nav nav-pills" >
< li > < a href = "#" > Clickable link< / a > < / li >
< li > < a href = "#" > Clickable link< / a > < / li >
< li class = "disabled" > < a href = "#" > Disabled link< / a > < / li >
< / ul >
< / div >
{% highlight html %}
2013-06-26 14:27:12 +02:00
< ul class = "nav nav-pills" >
2013-05-09 06:56:08 +02:00
...
< li class = "disabled" > < a href = "#" > Disabled link< / a > < / li >
...
< / ul >
{% endhighlight %}
< h3 id = "nav-alignment" > Component alignment< / h3 >
< p > To align nav links, use the < code > .pull-left< / code > or < code > .pull-right< / code > utility classes. Both classes will add a CSS float in the specified direction.< / p >
< hr class = "bs-docs-separator" >
< h2 id = "nav-dropdowns" > Dropdowns< / h2 >
2013-07-27 09:28:23 +02:00
< p > Add dropdown menus with a little extra HTML and the < a href = "../javascript/#dropdowns" > dropdowns JavaScript plugin< / a > .< / p >
2013-05-09 06:56:08 +02:00
< h3 > Tabs with dropdowns< / h3 >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "nav nav-tabs" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Help< / a > < / li >
< li class = "dropdown" >
< a class = "dropdown-toggle" data-toggle = "dropdown" href = "#" >
Dropdown < span class = "caret" > < / span >
< / a >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "nav nav-tabs" >
...
< li class = "dropdown" >
< a class = "dropdown-toggle" data-toggle = "dropdown" href = "#" >
Dropdown < span class = "caret" > < / span >
< / a >
< ul class = "dropdown-menu" >
...
< / ul >
< / li >
...
< / ul >
{% endhighlight %}
< h3 > Pills with dropdowns< / h3 >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "nav nav-pills" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Help< / a > < / li >
< li class = "dropdown" >
< a class = "dropdown-toggle" data-toggle = "dropdown" href = "#" >
Dropdown < span class = "caret" > < / span >
< / a >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / li >
< / ul >
< / div > <!-- /example -->
{% highlight html %}
< ul class = "nav nav-pills" >
...
< li class = "dropdown" >
< a class = "dropdown-toggle" data-toggle = "dropdown" href = "#" >
Dropdown < span class = "caret" > < / span >
< / a >
< ul class = "dropdown-menu" >
...
< / ul >
< / li >
...
< / ul >
{% endhighlight %}
< / div >
<!-- Navbar
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "navbar" > Navbar< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< h2 id = "navbar-basic" > Basic navbar< / h2 >
< p > To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a < code > .container< / code > , which sets the width of your site and content.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< a class = "navbar-brand" href = "#" > Title< / a >
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< / ul >
< / div >
< / div > <!-- /example -->
{% highlight html %}
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< a class = "navbar-brand" href = "#" > Title< / a >
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< / ul >
< / div >
{% endhighlight %}
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "bs-callout bs-callout-warning" >
< h4 > Make navbars accessible< / h4 >
< p > Be sure to add a < code > role="navigation"< / code > to every navbar to help with accessibility.< / p >
< / div >
2013-05-09 06:56:08 +02:00
< h2 > Navbar components< / h2 >
< h3 id = "navbar-brand" > Brand< / h3 >
< p > A simple link to show your brand or project name only requires an anchor tag.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< a class = "navbar-brand" href = "#" > Title< / a >
< / div >
< / div > <!-- /example -->
{% highlight html %}
< a class = "navbar-brand" href = "#" > Title< / a >
{% endhighlight %}
< h3 id = "navbar-nav" > Nav links< / h3 >
< p > Nav items are simple to add via unordered lists.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li class = "disabled" > < a href = "#" > Disabled< / a > < / li >
< / ul >
< / div >
< / div > <!-- /example -->
{% highlight html %}
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li class = "disabled" > < a href = "#" > Disabled< / a > < / li >
< / ul >
{% endhighlight %}
< h3 id = "navbar-forms" > Forms< / h3 >
< p > To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include < code > .navbar-form< / code > and either < code > .pull-left< / code > or < code > .pull-right< / code > to properly align it.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< form class = "navbar-form pull-left" >
2013-07-26 08:32:12 +02:00
< input type = "text" class = "form-control" style = "width: 200px;" >
2013-05-10 01:41:35 +02:00
< button type = "submit" class = "btn btn-default" > Submit< / button >
2013-05-09 06:56:08 +02:00
< / form >
< / div >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< form class = "navbar-form pull-left" >
2013-07-26 08:32:12 +02:00
< select name = "" id = "" class = "form-control" style = "width: 200px;" >
2013-05-09 06:56:08 +02:00
< option value = "1" > 1< / option >
< option value = "2" > 2< / option >
< option value = "3" > 3< / option >
< option value = "4" > 4< / option >
< / select >
2013-05-10 01:41:35 +02:00
< button type = "submit" class = "btn btn-default" > Submit< / button >
2013-05-09 06:56:08 +02:00
< / form >
< / div >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< form class = "navbar-form pull-left" >
2013-07-26 08:32:12 +02:00
< input type = "text" class = "form-control" style = "width: 200px;" >
2013-05-09 06:56:08 +02:00
< input type = "checkbox" >
2013-05-10 01:41:35 +02:00
< button type = "submit" class = "btn btn-default" > Submit< / button >
2013-05-09 06:56:08 +02:00
< / form >
< / div >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< form class = "navbar-form pull-left" >
2013-07-26 08:32:12 +02:00
< input type = "text" class = "form-control" style = "width: 200px;" >
2013-05-09 06:56:08 +02:00
< label class = "checkbox-inline" >
< input type = "checkbox" > Remember me
< / label >
2013-05-10 01:41:35 +02:00
< button type = "submit" class = "btn btn-default" > Submit< / button >
2013-05-09 06:56:08 +02:00
< / form >
< / div >
< / div > <!-- /example -->
{% highlight html %}
< form class = "navbar-form pull-left" >
2013-07-26 08:32:12 +02:00
< input type = "text" class = "form-control" style = "width: 200px;" >
2013-05-10 01:41:35 +02:00
< button type = "submit" class = "btn btn-default" > Submit< / button >
2013-05-09 06:56:08 +02:00
< / form >
{% endhighlight %}
< h3 id = "navbar-buttons" > Buttons< / h3 >
< p > For buttons not residing in a < code > < form> < / code > , add this class to vertically center buttons within a navbar.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< a href = "#" class = "navbar-brand" > Brand< / a >
2013-05-13 01:34:12 +02:00
< button type = "button" class = "btn btn-default navbar-btn" > Sign in< / button >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
2013-05-13 01:34:12 +02:00
{% highlight html %}
< button type = "button" class = "btn btn-default navbar-btn" > Sign in< / button >
{% endhighlight %}
2013-05-09 06:56:08 +02:00
< h3 id = "navbar-text" > Text< / h3 >
< p > Wrap strings of text in an element with < code > .navbar-text< / code > , usually on a < code > < p> < / code > tag for proper leading and color.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< a href = "#" class = "navbar-brand" > Brand< / a >
< p class = "navbar-text" > Signed in as Mark Otto< / p >
< / div >
< / div >
2013-05-13 01:34:12 +02:00
{% highlight html %}
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< a href = "#" class = "navbar-brand" > Brand< / a >
< p class = "navbar-text" > Signed in as Mark Otto< / p >
< / div >
{% endhighlight %}
< h3 id = "navbar-links" > Links< / h3 >
< p > For folks using standard links that are not within the regular navbar navigation component, use the < code > .navbar-link< / code > class to add the proper colors for the default and inverse navbar options.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< a href = "#" class = "navbar-brand" > Brand< / a >
2013-05-14 22:31:15 +02:00
< p class = "navbar-text pull-right" > Signed in as < a href = "#" class = "navbar-link" > Mark Otto< / a > < / p >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
2013-05-13 01:34:12 +02:00
{% highlight html %}
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< a href = "#" class = "navbar-brand" > Brand< / a >
2013-05-14 22:31:15 +02:00
< p class = "navbar-text pull-right" > Signed in as < a href = "#" class = "navbar-link" > Mark Otto< / a > < / p >
2013-05-09 06:56:08 +02:00
< / div >
{% endhighlight %}
< h3 id = "navbar-component-alignment" > Component alignment< / h3 >
2013-05-14 22:42:06 +02:00
< p > Align nav links, forms, buttons, or text, using the < code > .pull-left< / code > or < code > .pull-right< / code > utility classes. Both classes will add a CSS float in the specified direction. To align nav links, put them in a separate < code > < ul> < / code > with the respective utility class applied.< / p >
2013-05-09 06:56:08 +02:00
< h2 > Optional display variations< / h2 >
< p > Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, < code > .navbar< / code > . These will also remove rounded corners.< / p >
< h3 id = "navbar-fixed-top" > Fixed to top< / h3 >
< p > Add < code > .navbar-fixed-top< / code > .< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example bs-navbar-top-example" >
2013-05-09 06:56:08 +02:00
< div class = "navbar navbar-fixed-top" >
< div class = "container" style = "width: auto;" >
< a class = "navbar-brand" href = "#" > Title< / a >
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< / ul >
< / div >
< / div >
< / div > <!-- /example -->
{% highlight html %}
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar navbar-fixed-top" role = "navigation" >
2013-05-09 06:56:08 +02:00
...
< / div >
{% endhighlight %}
2013-06-26 15:59:33 +02:00
< div class = "bs-callout bs-callout-danger" >
2013-05-09 06:56:08 +02:00
< h4 > Body padding required< / h4 >
2013-05-14 22:31:15 +02:00
< p > The fixed navbar will overlay your other content, unless you add < code > padding< / code > to the top of the < code > < body> < / code > . Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.< / p >
2013-05-09 06:56:08 +02:00
{% highlight css %}
2013-05-14 22:31:15 +02:00
body { padding-top: 70px; }
2013-05-09 06:56:08 +02:00
{% endhighlight %}
< p > Make sure to include this < strong > after< / strong > the core Bootstrap CSS.< / p >
< / div >
< h3 id = "navbar-fixed-bottom" > Fixed to bottom< / h3 >
< p > Add < code > .navbar-fixed-bottom< / code > instead.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example bs-navbar-bottom-example" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar navbar-fixed-bottom" role = "navigation" >
2013-05-09 06:56:08 +02:00
< div class = "container" style = "width: auto;" >
< a class = "navbar-brand" href = "#" > Title< / a >
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< / ul >
< / div >
< / div >
< / div > <!-- /example -->
{% highlight html %}
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar navbar-fixed-bottom" role = "navigation" >
2013-05-09 06:56:08 +02:00
...
< / div >
{% endhighlight %}
2013-06-26 15:59:33 +02:00
< div class = "bs-callout bs-callout-danger" >
2013-05-09 06:56:08 +02:00
< h4 > Body padding required< / h4 >
2013-05-14 22:31:15 +02:00
< p > The fixed navbar will overlay your other content, unless you add < code > padding< / code > to the bottom of the < code > < body> < / code > . Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.< / p >
2013-05-09 06:56:08 +02:00
{% highlight css %}
2013-05-14 22:31:15 +02:00
body { padding-bottom: 70px; }
2013-05-09 06:56:08 +02:00
{% endhighlight %}
< p > Make sure to include this < strong > after< / strong > the core Bootstrap CSS.< / p >
< / div >
< h3 id = "navbar-static-top" > Static top navbar< / h3 >
< p > Create a full-width navbar that scrolls away with the page by adding < code > .navbar-static-top< / code > . Unlike the < code > .navbar-fixed-*< / code > classes, you do not need to change any padding on the < code > body< / code > .< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example bs-navbar-top-example" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar navbar-static-top" role = "navigation" style = "margin: -1px -1px 0;" >
2013-05-09 06:56:08 +02:00
< div class = "container" style = "width: auto;" >
< a class = "navbar-brand" href = "#" > Title< / a >
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< / ul >
< / div >
< / div >
< / div > <!-- /example -->
{% highlight html %}
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar navbar-static-top" role = "navigation" >
2013-05-09 06:56:08 +02:00
...
< / div >
{% endhighlight %}
< h2 id = "navbar-responsive" > Responsive navbar< / h2 >
< p > To implement a collapsing responsive navbar, wrap your navbar content in a containing div, < code > .nav-collapse.collapse< / code > , and add the navbar toggle button, < code > .navbar-toggle< / code > .< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< div class = "container" >
< button type = "button" class = "navbar-toggle" data-toggle = "collapse" data-target = ".navbar-responsive-collapse" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< span class = "sr-only" > Toggle navigation< / span >
2013-05-09 06:56:08 +02:00
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
< a class = "navbar-brand" href = "#" > Title< / a >
< div class = "nav-collapse collapse navbar-responsive-collapse" >
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Dropdown < b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
2013-07-19 06:04:58 +02:00
< li class = "dropdown-header" > Dropdown header< / li >
2013-05-09 06:56:08 +02:00
< li > < a href = "#" > Separated link< / a > < / li >
< li > < a href = "#" > One more separated link< / a > < / li >
< / ul >
< / li >
< / ul >
< form class = "navbar-form pull-left" action = "" >
2013-07-26 08:32:12 +02:00
< input type = "text" class = "form-control col-lg-8" placeholder = "Search" >
2013-05-09 06:56:08 +02:00
< / form >
< ul class = "nav navbar-nav pull-right" >
< li > < a href = "#" > Link< / a > < / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Dropdown < b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / li >
< / ul >
< / div > <!-- /.nav - collapse -->
< / div > <!-- /.container -->
< / div > <!-- /.navbar -->
< / div > <!-- /example -->
{% highlight html %}
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar" role = "navigation" >
2013-05-09 06:56:08 +02:00
< div class = "container" >
<!-- .navbar - toggle is used as the toggle for collapsed navbar content -->
< button type = "button" class = "navbar-toggle" data-toggle = "collapse" data-target = ".navbar-responsive-collapse" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< span class = "sr-only" > Toggle navigation< / span >
2013-05-09 06:56:08 +02:00
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
<!-- Be sure to leave the brand out there if you want it shown -->
< a class = "navbar-brand" href = "#" > Title< / a >
2013-08-06 21:09:44 +02:00
<!-- Place everything within .nav - collapse to hide it until above 768px -->
2013-05-09 06:56:08 +02:00
< div class = "nav-collapse collapse navbar-responsive-collapse" >
...
< / div > <!-- /.nav - collapse -->
< / div > <!-- /.container -->
< / div > <!-- /.navbar -->
{% endhighlight %}
2013-06-26 15:59:33 +02:00
< div class = "bs-callout bs-callout-danger" >
2013-05-09 06:56:08 +02:00
< h4 > Plugin dependency< / h4 >
2013-07-27 09:28:23 +02:00
< p > The responsive navbar requires the < a href = "../javascript/#collapse" > collapse plugin< / a > to be included in your version of Bootstrap.< / p >
2013-05-09 06:56:08 +02:00
< / div >
2013-08-05 23:19:32 +02:00
< h2 id = "navbar-scrollable" > Scrollable responsive navbar< / h2 >
< p > For instances where you have too many items in your navbar to fight within the viewport of a small device, add < code > .nav-collapse-scrollable< / code > to your navbar's < code > .nav-collapse< / code > to set a < code > max-height< / code > and smooth scrolling.< / p >
< div class = "bs-example" >
< div class = "navbar" >
< div class = "container" >
< button type = "button" class = "navbar-toggle" data-toggle = "collapse" data-target = ".bs-navbar-scroll-collapse" >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
< a class = "navbar-brand" href = "#" > Title< / a >
< div class = "collapse nav-collapse nav-collapse-scrollable bs-navbar-scroll-collapse" >
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< / ul >
< form class = "navbar-form pull-left" action = "" >
< input type = "text" class = "form-control col-lg-8" placeholder = "Search" >
< / form >
< / div > <!-- /.nav - collapse -->
< / div > <!-- /.container -->
< / div > <!-- /.navbar -->
< / div > <!-- /example -->
{% highlight html %}
< div class = "navbar" >
< div class = "container" >
...
< div class = "collapse nav-collapse nav-collapse-scrollable" >
...
< / div > <!-- /.nav - collapse -->
< / div > <!-- /.container -->
< / div > <!-- /.navbar -->
{% endhighlight %}
< h2 id = "navbar-inverted" > Inverted variation< / h2 >
2013-05-09 06:56:08 +02:00
< p > Modify the look of the navbar by adding < code > .navbar-inverse< / code > .< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar navbar-inverse" role = "navigation" >
2013-05-09 06:56:08 +02:00
< div class = "container" >
< button type = "button" class = "navbar-toggle" data-toggle = "collapse" data-target = ".navbar-inverse-collapse" >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
< a class = "navbar-brand" href = "#" > Title< / a >
< div class = "nav-collapse collapse navbar-inverse-collapse" >
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li > < a href = "#" > Link< / a > < / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Dropdown < b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
2013-07-19 06:04:58 +02:00
< li class = "dropdown-header" > Dropdown header< / li >
2013-05-09 06:56:08 +02:00
< li > < a href = "#" > Separated link< / a > < / li >
< li > < a href = "#" > One more separated link< / a > < / li >
< / ul >
< / li >
< / ul >
< form class = "navbar-form pull-left" action = "" >
2013-07-26 08:32:12 +02:00
< input type = "text" class = "form-control col-lg-8" placeholder = "Search" >
2013-05-09 06:56:08 +02:00
< / form >
< ul class = "nav navbar-nav pull-right" >
< li > < a href = "#" > Link< / a > < / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Dropdown < b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / li >
< / ul >
< / div > <!-- /.nav - collapse -->
< / div > <!-- /.container -->
< / div > <!-- /.navbar -->
< / div > <!-- /example -->
{% highlight html %}
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "navbar navbar-inverse" role = "navigation" >
2013-05-09 06:56:08 +02:00
...
< / div >
{% endhighlight %}
< / div >
<!-- Breadcrumbs
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "breadcrumbs" > Breadcrumbs < small > < / small > < / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< p class = "lead" > Indicate the current page's location within a navigational hierarchy.< / p >
2013-07-03 14:37:36 +02:00
< p > Separators are automatically added in CSS through < code > :before< / code > and < code > content< / code > .< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "breadcrumb" >
< li class = "active" > Home< / li >
< / ul >
< ul class = "breadcrumb" >
< li > < a href = "#" > Home< / a > < / li >
< li class = "active" > Library< / li >
< / ul >
< ul class = "breadcrumb" style = "margin-bottom: 5px;" >
< li > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Library< / a > < / li >
< li class = "active" > Data< / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "breadcrumb" >
< li > < a href = "#" > Home< / a > < / li >
< li > < a href = "#" > Library< / a > < / li >
< li class = "active" > Data< / li >
< / ul >
{% endhighlight %}
< / div >
<!-- Pagination
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "pagination" > Pagination< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
2013-07-09 15:32:28 +02:00
< p class = "lead" > Provide pagination links for your site or app with the multi-page pagination component, or the simpler < a href = "#pagination-pager" > pager alternative< / a > .< / p >
2013-05-09 06:56:08 +02:00
< h2 id = "pagination-default" > Standard pagination< / h2 >
< p > Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "pagination" >
< li > < a href = "#" > « < / a > < / li >
< li > < a href = "#" > 1< / a > < / li >
< li > < a href = "#" > 2< / a > < / li >
< li > < a href = "#" > 3< / a > < / li >
< li > < a href = "#" > 4< / a > < / li >
< li > < a href = "#" > 5< / a > < / li >
< li > < a href = "#" > » < / a > < / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "pagination" >
< li > < a href = "#" > « < / a > < / li >
< li > < a href = "#" > 1< / a > < / li >
< li > < a href = "#" > 2< / a > < / li >
< li > < a href = "#" > 3< / a > < / li >
< li > < a href = "#" > 4< / a > < / li >
< li > < a href = "#" > 5< / a > < / li >
< li > < a href = "#" > » < / a > < / li >
< / ul >
{% endhighlight %}
< h3 > Disabled and active states< / h3 >
< p > Links are customizable for different circumstances. Use < code > .disabled< / code > for unclickable links and < code > .active< / code > to indicate the current page.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "pagination" >
< li class = "disabled" > < a href = "#" > « < / a > < / li >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< li class = "active" > < a href = "#" > 1 < span class = "sr-only" > (current)< / span > < / a > < / li >
2013-05-09 06:56:08 +02:00
< li > < a href = "#" > 2< / a > < / li >
< li > < a href = "#" > 3< / a > < / li >
< li > < a href = "#" > 4< / a > < / li >
< li > < a href = "#" > 5< / a > < / li >
< li > < a href = "#" > » < / a > < / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "pagination" >
< li class = "disabled" > < a href = "#" > « < / a > < / li >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< li class = "active" > < a href = "#" > 1 < span class = "sr-only" > (current)< / span > < / a > < / li >
2013-05-09 06:56:08 +02:00
...
< / ul >
{% endhighlight %}
< p > You can optionally swap out active or disabled anchors for < code > < span> < / code > to remove click functionality while retaining intended styles.< / p >
{% highlight html %}
< ul class = "pagination" >
< li class = "disabled" > < span > « < / span > < / li >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< li class = "active" > < span > 1 < span class = "sr-only" > (current)< / span > < / span > < / li >
2013-05-09 06:56:08 +02:00
...
< / ul >
{% endhighlight %}
< h3 > Sizes< / h3 >
2013-08-04 06:58:31 +02:00
< p > Fancy larger or smaller pagination? Add < code > .pagination-lg< / code > or < code > .pagination-sm< / code > for additional sizes.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div >
2013-08-04 06:39:57 +02:00
< ul class = "pagination pagination-lg" >
2013-05-09 06:56:08 +02:00
< li > < a href = "#" > « < / a > < / li >
< li > < a href = "#" > 1< / a > < / li >
< li > < a href = "#" > 2< / a > < / li >
< li > < a href = "#" > 3< / a > < / li >
< li > < a href = "#" > 4< / a > < / li >
< li > < a href = "#" > 5< / a > < / li >
< li > < a href = "#" > » < / a > < / li >
< / ul >
< / div >
< div >
< ul class = "pagination" >
< li > < a href = "#" > « < / a > < / li >
< li > < a href = "#" > 1< / a > < / li >
< li > < a href = "#" > 2< / a > < / li >
< li > < a href = "#" > 3< / a > < / li >
< li > < a href = "#" > 4< / a > < / li >
< li > < a href = "#" > 5< / a > < / li >
< li > < a href = "#" > » < / a > < / li >
< / ul >
< / div >
< div >
2013-08-04 06:39:57 +02:00
< ul class = "pagination pagination-sm" >
2013-05-09 06:56:08 +02:00
< li > < a href = "#" > « < / a > < / li >
< li > < a href = "#" > 1< / a > < / li >
< li > < a href = "#" > 2< / a > < / li >
< li > < a href = "#" > 3< / a > < / li >
< li > < a href = "#" > 4< / a > < / li >
< li > < a href = "#" > 5< / a > < / li >
< li > < a href = "#" > » < / a > < / li >
< / ul >
< / div >
< / div >
{% highlight html %}
2013-08-04 06:39:57 +02:00
< ul class = "pagination pagination-lg" > ...< / ul >
2013-08-06 05:19:07 +02:00
< ul class = "pagination" > ...< / ul >
2013-08-04 06:39:57 +02:00
< ul class = "pagination pagination-sm" > ...< / ul >
2013-05-09 06:56:08 +02:00
{% endhighlight %}
< h2 id = "pagination-pager" > Pager< / h2 >
< p > Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.< / p >
< h3 > Default example< / h3 >
< p > By default, the pager centers links.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "pager" >
< li > < a href = "#" > Previous< / a > < / li >
< li > < a href = "#" > Next< / a > < / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "pager" >
< li > < a href = "#" > Previous< / a > < / li >
< li > < a href = "#" > Next< / a > < / li >
< / ul >
{% endhighlight %}
< h3 > Aligned links< / h3 >
< p > Alternatively, you can align each link to the sides:< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "pager" >
< li class = "previous" > < a href = "#" > ← Older< / a > < / li >
< li class = "next" > < a href = "#" > Newer → < / a > < / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "pager" >
< li class = "previous" > < a href = "#" > ← Older< / a > < / li >
< li class = "next" > < a href = "#" > Newer → < / a > < / li >
< / ul >
{% endhighlight %}
< h3 > Optional disabled state< / h3 >
< p > Pager links also use the general < code > .disabled< / code > utility class from the pagination.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "pager" >
< li class = "previous disabled" > < a href = "#" > ← Older< / a > < / li >
< li class = "next" > < a href = "#" > Newer → < / a > < / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "pager" >
< li class = "previous disabled" > < a href = "#" > ← Older< / a > < / li >
< li class = "next" > < a href = "#" > Newer → < / a > < / li >
< / ul >
{% endhighlight %}
< / div >
<!-- Labels
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "labels" > Labels< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< p class = "lead" > < / p >
< h3 > Example< / h3 >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-08-06 00:30:28 +02:00
< h1 > Example heading < span class = "label label-default" > New< / span > < / h1 >
< h2 > Example heading < span class = "label label-default" > New< / span > < / h2 >
< h3 > Example heading < span class = "label label-default" > New< / span > < / h3 >
< h4 > Example heading < span class = "label label-default" > New< / span > < / h4 >
< h5 > Example heading < span class = "label label-default" > New< / span > < / h5 >
< h6 > Example heading < span class = "label label-default" > New< / span > < / h6 >
2013-05-09 06:56:08 +02:00
< / div >
{% highlight html %}
2013-08-06 00:30:28 +02:00
< h3 > Example heading < span class = "label label-default" > New< / span > < / h3 >
2013-05-09 06:56:08 +02:00
{% endhighlight %}
< h3 > Available variations< / h3 >
< p > Add any of the below mentioned modifier classes to change the appearance of a label.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-08-06 00:30:28 +02:00
< span class = "label label-default" > Default< / span >
2013-05-09 06:56:08 +02:00
< span class = "label label-success" > Success< / span >
< span class = "label label-warning" > Warning< / span >
< span class = "label label-danger" > Danger< / span >
< span class = "label label-info" > Info< / span >
< / div >
{% highlight html %}
2013-08-06 00:30:28 +02:00
< span class = "label label-default" > Default< / span >
2013-05-09 06:56:08 +02:00
< span class = "label label-success" > Success< / span >
< span class = "label label-warning" > Warning< / span >
< span class = "label label-danger" > Danger< / span >
< span class = "label label-info" > Info< / span >
{% endhighlight %}
< / div >
<!-- Badges
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "badges" > Badges< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< p class = "lead" > Easily highlight new or unread items by adding a < code > < span class="badge"> < / code > to links, Bootstrap navs, and more.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< a href = "#" > Inbox < span class = "badge" > 42< / span > < / a >
< / div >
{% highlight html %}
< a href = "#" > Inbox < span class = "badge" > 42< / span > < / a >
{% endhighlight %}
< h4 > Self collapsing< / h4 >
< p > When there are no new or unread items, badges will simply collapse (via CSS's < code > :empty< / code > selector) provided no content exists within.< / p >
2013-06-26 15:59:33 +02:00
< div class = "bs-callout bs-callout-danger" >
2013-05-09 06:56:08 +02:00
< h4 > Cross-browser compatibility< / h4 >
< p > Badges won't self collapse in Internet Explorer 8 because it lacks support for the < code > :empty< / code > selector.< / p >
< / div >
< h4 > Adapts to active nav states< / h4 >
< p > Built-in styles are included for placing badges in active states in pill and list navigations.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "nav nav-pills" >
< li class = "active" > < a href = "#" > Home < span class = "badge" > 42< / span > < / a > < / li >
< li > < a href = "#" > Profile< / a > < / li >
< li > < a href = "#" > Messages < span class = "badge" > 3< / span > < / a > < / li >
< / ul >
< br >
< ul class = "nav nav-pills nav-stacked" style = "max-width: 260px;" >
< li class = "active" >
< a href = "#" >
< span class = "badge pull-right" > 42< / span >
Home
< / a >
< / li >
< li > < a href = "#" > Profile< / a > < / li >
< li >
< a href = "#" >
< span class = "badge pull-right" > 3< / span >
Messages
< / a >
< / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "nav nav-pills nav-stacked" >
< li class = "active" >
< a href = "#" >
< span class = "badge pull-right" > 42< / span >
Home
< / a >
< / li >
...
< / ul >
{% endhighlight %}
< / div >
<!-- Typographic components
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "type-components" > Typographic components< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< h2 id = "type-components-jumbotron" > Jumbotron< / h2 >
< p > A lightweight, flexible component to showcase key content on your site. It works well on marketing and content-heavy sites.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "jumbotron" >
< h1 > Hello, world!< / h1 >
< p > This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.< / p >
2013-08-04 06:39:57 +02:00
< p > < a class = "btn btn-primary btn-lg" > Learn more< / a > < / p >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
{% highlight html %}
< div class = "jumbotron" >
< h1 > Hello, world!< / h1 >
< p > ...< / p >
2013-08-04 06:39:57 +02:00
< p > < a class = "btn btn-primary btn-lg" > Learn more< / a > < / p >
2013-05-09 06:56:08 +02:00
< / div >
{% endhighlight %}
< h2 id = "type-components-page-header" > Page header< / h2 >
< p > A simple shell for an < code > h1< / code > to appropriately space out and segment sections of content on a page. It can utilize the < code > h1< / code > 's default < code > small< / code > element, as well as most other components (with additional styles).< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
< h1 > Example page header < small > Subtext for header< / small > < / h1 >
< / div >
< / div >
{% highlight html %}
< div class = "page-header" >
< h1 > Example page header < small > Subtext for header< / small > < / h1 >
< / div >
{% endhighlight %}
< / div >
<!-- Thumbnails
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "thumbnails" > Thumbnails< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
2013-07-27 09:28:23 +02:00
< p class = "lead" > Extend Bootstrap's < a href = "../css/#grid" > grid system< / a > with the thumbnail component to easily display grids of images, videos, text, and more.< / p >
2013-05-09 06:56:08 +02:00
2013-08-01 04:37:36 +02:00
< h3 id = "thumbnails-default" > Default thumbnails< / h3 >
2013-05-09 06:56:08 +02:00
< p > By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "row" >
2013-06-04 06:57:51 +02:00
< div class = "col-lg-3" >
2013-05-09 06:56:08 +02:00
< a href = "#" class = "thumbnail" >
2013-06-17 05:16:56 +02:00
< img data-src = "holder.js/100%x180" alt = "" >
2013-05-09 06:56:08 +02:00
< / a >
< / div >
2013-06-04 06:57:51 +02:00
< div class = "col-lg-3" >
2013-05-09 06:56:08 +02:00
< a href = "#" class = "thumbnail" >
2013-06-17 05:16:56 +02:00
< img data-src = "holder.js/100%x180" alt = "" >
2013-05-09 06:56:08 +02:00
< / a >
< / div >
2013-06-04 06:57:51 +02:00
< div class = "col-lg-3" >
2013-05-09 06:56:08 +02:00
< a href = "#" class = "thumbnail" >
2013-06-17 05:16:56 +02:00
< img data-src = "holder.js/100%x180" alt = "" >
2013-05-09 06:56:08 +02:00
< / a >
< / div >
2013-06-04 06:57:51 +02:00
< div class = "col-lg-3" >
2013-05-09 06:56:08 +02:00
< a href = "#" class = "thumbnail" >
2013-06-17 05:16:56 +02:00
< img data-src = "holder.js/100%x180" alt = "" >
2013-05-09 06:56:08 +02:00
< / a >
< / div >
< / div >
2013-05-09 07:56:29 +02:00
< / div > <!-- /.bs - example -->
2013-05-09 06:56:08 +02:00
{% highlight html %}
< div class = "row" >
2013-06-04 06:57:51 +02:00
< div class = "col-lg-3" >
2013-05-09 06:56:08 +02:00
< a href = "#" class = "thumbnail" >
2013-06-17 05:16:56 +02:00
< img data-src = "holder.js/100%x180" alt = "" >
2013-05-09 06:56:08 +02:00
< / a >
< / div >
...
< / div >
{% endhighlight %}
2013-08-01 04:37:36 +02:00
< h3 id = "thumbnails-custom-content" > Custom content thumbnails< / h3 >
2013-05-09 06:56:08 +02:00
< p > With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "row" >
2013-06-04 06:57:51 +02:00
< div class = "col-lg-4" >
2013-05-09 06:56:08 +02:00
< div class = "thumbnail" >
< img data-src = "holder.js/300x200" alt = "" >
< div class = "caption" >
< h3 > Thumbnail label< / h3 >
< p > Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.< / p >
2013-05-10 01:41:35 +02:00
< p > < a href = "#" class = "btn btn-primary" > Action< / a > < a href = "#" class = "btn btn-default" > Action< / a > < / p >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
< / div >
2013-06-04 06:57:51 +02:00
< div class = "col-lg-4" >
2013-05-09 06:56:08 +02:00
< div class = "thumbnail" >
< img data-src = "holder.js/300x200" alt = "" >
< div class = "caption" >
< h3 > Thumbnail label< / h3 >
< p > Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.< / p >
2013-05-10 01:41:35 +02:00
< p > < a href = "#" class = "btn btn-primary" > Action< / a > < a href = "#" class = "btn btn-default" > Action< / a > < / p >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
< / div >
2013-06-04 06:57:51 +02:00
< div class = "col-lg-4" >
2013-05-09 06:56:08 +02:00
< div class = "thumbnail" >
< img data-src = "holder.js/300x200" alt = "" >
< div class = "caption" >
< h3 > Thumbnail label< / h3 >
< p > Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.< / p >
2013-05-10 01:41:35 +02:00
< p > < a href = "#" class = "btn btn-primary" > Action< / a > < a href = "#" class = "btn btn-default" > Action< / a > < / p >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
< / div >
< / div >
2013-05-09 07:56:29 +02:00
< / div > <!-- /.bs - example -->
2013-05-09 06:56:08 +02:00
{% highlight html %}
< div class = "row" >
2013-06-04 06:57:51 +02:00
< div class = "col-lg-3" >
2013-05-09 06:56:08 +02:00
< div class = "thumbnail" >
< img data-src = "holder.js/300x200" alt = "" >
< div class = "caption" >
< h3 > Thumbnail label< / h3 >
< p > ...< / p >
2013-05-10 01:41:35 +02:00
< p > < a href = "#" class = "btn btn-primary" > Action< / a > < a href = "#" class = "btn btn-default" > Action< / a > < / p >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
< / div >
< / div >
{% endhighlight %}
< / div >
<!-- Alerts
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "alerts" > Alerts< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
2013-07-27 09:28:23 +02:00
< p class = "lead" > Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the < a href = "../javascript/#js-alerts" > alerts jQuery plugin< / a > .< / p >
2013-05-09 06:56:08 +02:00
< h3 id = "alerts-default" > Default alert< / h3 >
2013-06-26 15:59:33 +02:00
< p > Wrap any text and an optional dismiss button in < code > .alert< / code > for a basic warning alert message.< / p >
< div class = "bs-callout bs-callout-warning" >
< h4 > Ensure proper behavior across all devices< / h4 >
< p > Be sure to use the < code > < button> < / code > element with the < code > data-dismiss="alert"< / code > data attribute.< / p >
< / div >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "alert" >
< button type = "button" class = "close" data-dismiss = "alert" > × < / button >
< strong > Warning!< / strong > Best check yo self, you're not looking too good.
< / div >
< / div >
{% highlight html %}
< div class = "alert" >
< button type = "button" class = "close" data-dismiss = "alert" > × < / button >
< strong > Warning!< / strong > Best check yo self, you're not looking too good.
< / div >
{% endhighlight %}
< h3 id = "alerts-alternatives" > Contextual alternatives< / h3 >
< p > Add optional classes to change an alert's connotation.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "alert alert-danger" >
< button type = "button" class = "close" data-dismiss = "alert" > × < / button >
< strong > Oh snap!< / strong > Change a few things up and try submitting again.
< / div >
< div class = "alert alert-success" >
< button type = "button" class = "close" data-dismiss = "alert" > × < / button >
< strong > Well done!< / strong > You successfully read this important alert message.
< / div >
< div class = "alert alert-info" >
< button type = "button" class = "close" data-dismiss = "alert" > × < / button >
< strong > Heads up!< / strong > This alert needs your attention, but it's not super important.
< / div >
< / div >
{% highlight html %}
< div class = "alert alert-danger" > ...< / div >
< div class = "alert alert-success" > ...< / div >
< div class = "alert alert-info" > ...< / div >
2013-05-17 05:53:59 +02:00
{% endhighlight %}
< h3 id = "alerts-links" > Links in alerts< / h3 >
< p > Use the < code > .alert-link< / code > utility class to quickly provide matching colored links within any alert.< / p >
< div class = "bs-example" >
< div class = "alert alert-danger" >
< button type = "button" class = "close" data-dismiss = "alert" > × < / button >
< strong > Oh snap!< / strong > < a href = "#" class = "alert-link" > Change a few things up< / a > and try submitting again.
< / div >
< div class = "alert alert-success" >
< button type = "button" class = "close" data-dismiss = "alert" > × < / button >
< strong > Well done!< / strong > You successfully read < a href = "#" class = "alert-link" > this important alert message< / a > .
< / div >
< div class = "alert alert-info" >
< button type = "button" class = "close" data-dismiss = "alert" > × < / button >
< strong > Heads up!< / strong > This < a href = "#" class = "alert-link" > alert needs your attention< / a > , but it's not super important.
< / div >
< / div >
{% highlight html %}
< div class = "alert alert-danger" >
< a href = "#" class = "alert-link" > ...< / a >
< / div >
< div class = "alert alert-success" >
< a href = "#" class = "alert-link" > ...< / a >
< / div >
< div class = "alert alert-info" >
< a href = "#" class = "alert-link" > ...< / a >
< / div >
2013-05-09 06:56:08 +02:00
{% endhighlight %}
< / div >
<!-- Progress bars
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "progress" > Progress bars< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< p class = "lead" > Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.< / p >
2013-06-26 15:59:33 +02:00
< div class = "bs-callout bs-callout-danger" >
2013-05-09 06:56:08 +02:00
< h4 > Cross-browser compatibility< / h4 >
< p > Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.< / p >
< / div >
< h3 id = "progress-basic" > Basic< / h3 >
< p > Default progress bar with a vertical gradient.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "progress" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar" role = "progressbar" aria-valuenow = "60" aria-valuemin = "0" aria-valuemax = "100" style = "width: 60%;" > < span class = "sr-only" > 60% Complete< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
{% highlight html %}
< div class = "progress" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar" role = "progressbar" aria-valuenow = "60" aria-valuemin = "0" aria-valuemax = "100" style = "width: 60%;" > < span class = "sr-only" > 60% Complete< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
{% endhighlight %}
< h3 id = "progress-alternatives" > Contextual alternatives< / h3 >
< p > Progress bars use some of the same button and alert classes for consistent styles.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "progress" style = "margin-bottom: 9px;" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-info" role = "progressbar" aria-valuenow = "20" aria-valuemin = "0" aria-valuemax = "100" style = "width: 20%" > < span class = "sr-only" > 20% Complete< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress" style = "margin-bottom: 9px;" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-success" role = "progressbar" aria-valuenow = "40" aria-valuemin = "0" aria-valuemax = "100" style = "width: 40%" > < span class = "sr-only" > 40% Complete (success)< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress" style = "margin-bottom: 9px;" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-warning" role = "progressbar" aria-valuenow = "60" aria-valuemin = "0" aria-valuemax = "100" style = "width: 60%" > < span class = "sr-only" > 60% Complete (warning)< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-danger" role = "progressbar" aria-valuenow = "80" aria-valuemin = "0" aria-valuemax = "100" style = "width: 80%" > < span class = "sr-only" > 80% Complete (danger)< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
{% highlight html %}
< div class = "progress" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-info" role = "progressbar" aria-valuenow = "20" aria-valuemin = "0" aria-valuemax = "100" style = "width: 20%" >
< span class = "sr-only" > 20% Complete< / span >
< / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-success" role = "progressbar" aria-valuenow = "40" aria-valuemin = "0" aria-valuemax = "100" style = "width: 40%" >
< span class = "sr-only" > 40% Complete (success)< / span >
< / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-warning" role = "progressbar" aria-valuenow = "60" aria-valuemin = "0" aria-valuemax = "100" style = "width: 60%" >
< span class = "sr-only" > 60% Complete (warning)< / span >
< / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-danger" role = "progressbar" aria-valuenow = "80" aria-valuemin = "0" aria-valuemax = "100" style = "width: 80%" >
< span class = "sr-only" > 80% Complete< / span >
< / div >
2013-05-09 06:56:08 +02:00
< / div >
{% endhighlight %}
< h3 id = "progress-striped" > Striped< / h3 >
< p > Uses a gradient to create a striped effect. Not available in IE8.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "progress progress-striped" style = "margin-bottom: 9px;" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-info" role = "progressbar" aria-valuenow = "20" aria-valuemin = "0" aria-valuemax = "100" style = "width: 20%" > < span class = "sr-only" > 20% Complete< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress progress-striped" style = "margin-bottom: 9px;" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-success" role = "progressbar" aria-valuenow = "40" aria-valuemin = "0" aria-valuemax = "100" style = "width: 40%" > < span class = "sr-only" > 40% Complete (success)< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress progress-striped" style = "margin-bottom: 9px;" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-warning" role = "progressbar" aria-valuenow = "60" aria-valuemin = "0" aria-valuemax = "100" style = "width: 60%" > < span class = "sr-only" > 60% Complete (warning)< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress progress-striped" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-danger" role = "progressbar" aria-valuenow = "80" aria-valuemin = "0" aria-valuemax = "100" style = "width: 80%" > < span class = "sr-only" > 80% Complete (danger)< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
{% highlight html %}
< div class = "progress progress-striped" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-info" role = "progressbar" aria-valuenow = "20" aria-valuemin = "0" aria-valuemax = "100" style = "width: 20%" >
< span class = "sr-only" > 20% Complete< / span >
< / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress progress-striped" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-success" role = "progressbar" aria-valuenow = "40" aria-valuemin = "0" aria-valuemax = "100" style = "width: 40%" >
< span class = "sr-only" > 40% Complete (success)< / span >
< / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress progress-striped" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-warning" role = "progressbar" aria-valuenow = "60" aria-valuemin = "0" aria-valuemax = "100" style = "width: 60%" >
< span class = "sr-only" > 60% Complete (warning)< / span >
< / div >
2013-05-09 06:56:08 +02:00
< / div >
< div class = "progress progress-striped" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-danger" role = "progressbar" aria-valuenow = "80" aria-valuemin = "0" aria-valuemax = "100" style = "width: 80%" >
< span class = "sr-only" > 80% Complete (danger)< / span >
< / div >
2013-05-09 06:56:08 +02:00
< / div >
{% endhighlight %}
< h3 id = "progress-animated" > Animated< / h3 >
< p > Add < code > .active< / code > to < code > .progress-striped< / code > to animate the stripes right to left. Not available in all versions of IE.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "progress progress-striped active" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar" role = "progressbar" aria-valuenow = "45" aria-valuemin = "0" aria-valuemax = "100" style = "width: 45%" > < span class = "sr-only" > 45% Complete< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
{% highlight html %}
< div class = "progress progress-striped active" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar" role = "progressbar" aria-valuenow = "45" aria-valuemin = "0" aria-valuemax = "100" style = "width: 45%" >
< span class = 'sr-only' > 45% Complete< / span >
< / div >
2013-05-09 06:56:08 +02:00
< / div >
{% endhighlight %}
< h3 id = "progress-stacked" > Stacked< / h3 >
< p > Place multiple bars into the same < code > .progress< / code > to stack them.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "progress" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-success" style = "width: 35%" > < span class = "sr-only" > 35% Complete (success)< / span > < / div >
< div class = "progress-bar progress-bar-warning" style = "width: 20%" > < span class = "sr-only" > 20% Complete (warning)< / span > < / div >
< div class = "progress-bar progress-bar-danger" style = "width: 10%" > < span class = 'sr-only' > 10% Complete (danger)< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
{% highlight html %}
< div class = "progress" >
Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.
What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.
What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo
Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-07 06:25:36 +02:00
< div class = "progress-bar progress-bar-success" style = "width: 35%" > < span class = "sr-only" > 35% Complete (success)< / span > < / div >
< div class = "progress-bar progress-bar-warning" style = "width: 20%" > < span class = "sr-only" > 20% Complete (warning)< / span > < / div >
< div class = "progress-bar progress-bar-danger" style = "width: 10%" > < span class = "sr-only" > 10% Complete (danger)< / span > < / div >
2013-05-09 06:56:08 +02:00
< / div >
{% endhighlight %}
< / div >
<!-- Media object
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "media" > Media object< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< p class = "lead" > Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.< / p >
2013-08-01 04:37:36 +02:00
< h3 id = "media-default" > Default media< / h3 >
2013-05-09 06:56:08 +02:00
< p > The default media allow to float a media object (images, video, audio) to the left or right of a content block.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "media" >
< a class = "pull-left" href = "#" >
< img class = "media-object" data-src = "holder.js/64x64" >
< / a >
< div class = "media-body" >
< h4 class = "media-heading" > Media heading< / h4 >
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
< / div >
< / div >
< div class = "media" >
< a class = "pull-left" href = "#" >
< img class = "media-object" data-src = "holder.js/64x64" >
< / a >
< div class = "media-body" >
< h4 class = "media-heading" > Media heading< / h4 >
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
< div class = "media" >
< a class = "pull-left" href = "#" >
< img class = "media-object" data-src = "holder.js/64x64" >
< / a >
< div class = "media-body" >
< h4 class = "media-heading" > Media heading< / h4 >
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
< / div >
< / div >
< / div >
< / div >
2013-05-09 07:56:29 +02:00
< / div > <!-- /.bs - example -->
2013-05-09 06:56:08 +02:00
{% highlight html %}
< div class = "media" >
< a class = "pull-left" href = "#" >
< img class = "media-object" src = "..." >
< / a >
< div class = "media-body" >
< h4 class = "media-heading" > Media heading< / h4 >
...
< / div >
< / div >
{% endhighlight %}
2013-08-01 04:37:36 +02:00
< h3 id = "media-list" > Media list< / h3 >
2013-05-09 06:56:08 +02:00
< p > With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "media-list" >
< li class = "media" >
< a class = "pull-left" href = "#" >
< img class = "media-object" data-src = "holder.js/64x64" >
< / a >
< div class = "media-body" >
< h4 class = "media-heading" > Media heading< / h4 >
< p > Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.< / p >
<!-- Nested media object -->
< div class = "media" >
< a class = "pull-left" href = "#" >
< img class = "media-object" data-src = "holder.js/64x64" >
< / a >
< div class = "media-body" >
< h4 class = "media-heading" > Nested media heading< / h4 >
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
<!-- Nested media object -->
< div class = "media" >
< a class = "pull-left" href = "#" >
< img class = "media-object" data-src = "holder.js/64x64" >
< / a >
< div class = "media-body" >
< h4 class = "media-heading" > Nested media heading< / h4 >
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
< / div >
< / div >
< / div >
< / div >
<!-- Nested media object -->
< div class = "media" >
< a class = "pull-left" href = "#" >
< img class = "media-object" data-src = "holder.js/64x64" >
< / a >
< div class = "media-body" >
< h4 class = "media-heading" > Nested media heading< / h4 >
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
< / div >
< / div >
< / div >
< / li >
< li class = "media" >
< a class = "pull-right" href = "#" >
< img class = "media-object" data-src = "holder.js/64x64" >
< / a >
< div class = "media-body" >
< h4 class = "media-heading" > Media heading< / h4 >
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
< / div >
< / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "media-list" >
< li class = "media" >
< a class = "pull-left" href = "#" >
< img class = "media-object" src = "..." >
< / a >
< div class = "media-body" >
< h4 class = "media-heading" > Media heading< / h4 >
...
< / div >
< / li >
< / ul >
{% endhighlight %}
< / div >
<!-- List group
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "list-group" > List group< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< p class = "lead" > List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.< / p >
< h3 id = "list-group-basic" > Basic list group< / h3 >
< p > The most basic list group is simply an unordered list with list items, and the proper classes. Build upon it with the options that follow, or your own CSS as needed.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "list-group" >
< li class = "list-group-item" > Cras justo odio< / li >
< li class = "list-group-item" > Dapibus ac facilisis in< / li >
< li class = "list-group-item" > Morbi leo risus< / li >
< li class = "list-group-item" > Porta ac consectetur ac< / li >
< li class = "list-group-item" > Vestibulum at eros< / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "list-group" >
< li class = "list-group-item" > Cras justo odio< / li >
< li class = "list-group-item" > Dapibus ac facilisis in< / li >
< li class = "list-group-item" > Morbi leo risus< / li >
< li class = "list-group-item" > Porta ac consectetur ac< / li >
< li class = "list-group-item" > Vestibulum at eros< / li >
< / ul >
{% endhighlight %}
< h3 id = "list-group-badges" > With badges< / h3 >
< p > Add the badges component to any list group item and it will automatically be positioned on the right.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< ul class = "list-group" >
< li class = "list-group-item" >
< span class = "badge" > 14< / span >
Cras justo odio
< / li >
< li class = "list-group-item" >
< span class = "badge" > 2< / span >
Dapibus ac facilisis in
< / li >
< li class = "list-group-item" >
< span class = "badge" > 1< / span >
Morbi leo risus
< / li >
< / ul >
< / div >
{% highlight html %}
< ul class = "list-group" >
< li class = "list-group-item" >
< span class = "badge" > 14< / span >
Cras justo odio
< / li >
< / ul >
{% endhighlight %}
< h3 id = "list-group-linked" > Linked list group< / h3 >
< p > Linkify list group items by using anchor tags instead of list items (that also means a parent < code > < div> < / code > instead of an < code > < ul> < / code > ). No need for individual parents around each element.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "list-group" >
< a href = "#" class = "list-group-item active" >
Cras justo odio
< / a >
< a href = "#" class = "list-group-item" > Dapibus ac facilisis in
< / a >
< a href = "#" class = "list-group-item" > Morbi leo risus
< / a >
< a href = "#" class = "list-group-item" > Porta ac consectetur ac
< / a >
< a href = "#" class = "list-group-item" > Vestibulum at eros
< / a >
< / div >
< / div >
{% highlight html %}
< div class = "list-group" >
< a href = "#" class = "list-group-item active" >
Cras justo odio
< / a >
< a href = "#" class = "list-group-item" > Dapibus ac facilisis in
< / a >
< a href = "#" class = "list-group-item" > Morbi leo risus
< / a >
< a href = "#" class = "list-group-item" > Porta ac consectetur ac
< / a >
< a href = "#" class = "list-group-item" > Vestibulum at eros
< / a >
< / div >
{% endhighlight %}
< h3 id = "list-group-custom-content" > Custom content< / h3 >
< p > Add nearly any HTML within, even for linked list groups like the one below.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "list-group" >
< a href = "#" class = "list-group-item active" >
< h4 class = "list-group-item-heading" > List group item heading< / h4 >
< p class = "list-group-item-text" > Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.< / p >
< / a >
< a href = "#" class = "list-group-item" >
< h4 class = "list-group-item-heading" > List group item heading< / h4 >
< p class = "list-group-item-text" > Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.< / p >
< / a >
< a href = "#" class = "list-group-item" >
< h4 class = "list-group-item-heading" > List group item heading< / h4 >
< p class = "list-group-item-text" > Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.< / p >
< / a >
< / div >
< / div >
{% highlight html %}
< div class = "list-group" >
< a href = "#" class = "list-group-item active" >
< h4 class = "list-group-item-heading" > List group item heading< / h4 >
< p class = "list-group-item-text" > ...< / p >
< / a >
< / div >
{% endhighlight %}
< / div >
<!-- Panels
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "panels" > Panels< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< p class = "lead" > While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.< / p >
< h3 id = "panels-basic" > Basic panel< / h3 >
< p > By default, all the < code > .panel< / code > does is apply some basic border and padding to contain some content.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "panel" >
Basic panel example
< / div >
< / div >
{% highlight html %}
< div class = "panel" >
Basic panel example
< / div >
{% endhighlight %}
< h3 id = "panels-heading" > Panel with heading< / h3 >
2013-07-26 06:16:43 +02:00
< p > Easily add a heading container to your panel with < code > .panel-heading< / code > . You may also include any < code > < h1> < / code > -< code > < h6> < / code > with a < code > .panel-title< / code > class to add a pre-styled heading.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "panel" >
< div class = "panel-heading" > Panel heading< / div >
Panel content
< / div >
2013-07-26 06:16:43 +02:00
< div class = "panel" >
< div class = "panel-heading" >
< h3 class = "panel-title" > Panel title< / h3 >
< / div >
Panel content
< / div >
2013-05-09 06:56:08 +02:00
< / div >
{% highlight html %}
< div class = "panel" >
< div class = "panel-heading" > Panel heading< / div >
Panel content
< / div >
2013-07-26 06:16:43 +02:00
< div class = "panel" >
< div class = "panel-heading" >
< h3 class = "panel-title" > Panel title< / h3 >
< / div >
Panel content
< / div >
2013-05-15 03:55:37 +02:00
{% endhighlight %}
< h3 id = "panels-footer" > Panel with footer< / h3 >
< p > Wrap buttons or secondary text in < code > .panel-footer< / code > .< / p >
< div class = "bs-example" >
< div class = "panel" >
Panel content
< div class = "panel-footer" > Panel footer< / div >
< / div >
< / div >
{% highlight html %}
< div class = "panel" >
Panel content
< div class = "panel-footer" > Panel footer< / div >
< / div >
2013-05-09 06:56:08 +02:00
{% endhighlight %}
< h3 id = "panels-alternatives" > Contextual alternatives< / h3 >
< p > Like other components, easily make a panel more meaningful to a particular context by adding any of the contextual state classes.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "panel panel-primary" >
2013-07-26 06:16:43 +02:00
< div class = "panel-heading" >
< h3 class = "panel-title" > Panel title< / h3 >
< / div >
2013-05-09 06:56:08 +02:00
Panel content
< / div >
< div class = "panel panel-success" >
2013-07-26 06:16:43 +02:00
< div class = "panel-heading" >
< h3 class = "panel-title" > Panel title< / h3 >
< / div >
2013-05-09 06:56:08 +02:00
Panel content
< / div >
< div class = "panel panel-warning" >
2013-07-26 06:16:43 +02:00
< div class = "panel-heading" >
< h3 class = "panel-title" > Panel title< / h3 >
< / div >
2013-05-09 06:56:08 +02:00
Panel content
< / div >
< div class = "panel panel-danger" >
2013-07-26 06:16:43 +02:00
< div class = "panel-heading" >
< h3 class = "panel-title" > Panel title< / h3 >
< / div >
2013-05-09 06:56:08 +02:00
Panel content
< / div >
< div class = "panel panel-info" >
2013-07-26 06:16:43 +02:00
< div class = "panel-heading" >
< h3 class = "panel-title" > Panel title< / h3 >
< / div >
2013-05-09 06:56:08 +02:00
Panel content
< / div >
< / div >
{% highlight html %}
< div class = "panel panel-primary" > ...< / div >
< div class = "panel panel-success" > ...< / div >
< div class = "panel panel-warning" > ...< / div >
< div class = "panel panel-danger" > ...< / div >
< div class = "panel panel-info" > ...< / div >
{% endhighlight %}
< h3 id = "panels-list-group" > With list groups< / h3 >
2013-07-09 15:32:28 +02:00
< p > Easily include full-width < a href = "#list-group" > list groups< / a > within any panel.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "panel" >
<!-- Default panel contents -->
< div class = "panel-heading" > Panel heading< / div >
< p > Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.< / p >
<!-- List group -->
2013-08-03 02:57:19 +02:00
< ul class = "list-group" >
2013-05-09 06:56:08 +02:00
< li class = "list-group-item" > Cras justo odio< / li >
< li class = "list-group-item" > Dapibus ac facilisis in< / li >
< li class = "list-group-item" > Morbi leo risus< / li >
< li class = "list-group-item" > Porta ac consectetur ac< / li >
< li class = "list-group-item" > Vestibulum at eros< / li >
< / ul >
< / div >
< / div >
{% highlight html %}
< div class = "panel" >
<!-- Default panel contents -->
< div class = "panel-heading" > Panel heading< / div >
< p > ...< / p >
<!-- List group -->
2013-08-03 02:57:19 +02:00
< ul class = "list-group" >
2013-05-09 06:56:08 +02:00
< li class = "list-group-item" > Cras justo odio< / li >
< li class = "list-group-item" > Dapibus ac facilisis in< / li >
< li class = "list-group-item" > Morbi leo risus< / li >
< li class = "list-group-item" > Porta ac consectetur ac< / li >
< li class = "list-group-item" > Vestibulum at eros< / li >
< / ul >
< / div >
{% endhighlight %}
< / div >
<!-- Wells
================================================== -->
2013-07-27 04:37:31 +02:00
< div class = "bs-docs-section" >
2013-05-09 06:56:08 +02:00
< div class = "page-header" >
2013-07-27 04:37:31 +02:00
< h1 id = "wells" > Wells< / h1 >
2013-05-09 06:56:08 +02:00
< / div >
< h3 > Default well< / h3 >
< p > Use the well as a simple effect on an element to give it an inset effect.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-05-09 06:56:08 +02:00
< div class = "well" >
Look, I'm in a well!
< / div >
< / div >
{% highlight html %}
< div class = "well" > ...< / div >
{% endhighlight %}
< h3 > Optional classes< / h3 >
< p > Control padding and rounded corners with two optional modifier classes.< / p >
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-08-04 06:39:57 +02:00
< div class = "well well-lg" >
2013-05-09 06:56:08 +02:00
Look, I'm in a well!
< / div >
< / div >
{% highlight html %}
2013-08-04 06:39:57 +02:00
< div class = "well well-lg" > ...< / div >
2013-05-09 06:56:08 +02:00
{% endhighlight %}
2013-05-09 07:56:29 +02:00
< div class = "bs-example" >
2013-08-04 06:39:57 +02:00
< div class = "well well-sm" >
2013-05-09 06:56:08 +02:00
Look, I'm in a well!
< / div >
< / div >
{% highlight html %}
2013-08-04 06:39:57 +02:00
< div class = "well well-sm" > ...< / div >
2013-05-09 06:56:08 +02:00
{% endhighlight %}
< / div >