2013-07-27 09:18:12 +02:00
<!DOCTYPE html>
2013-02-12 21:16:32 +01:00
< html lang = "en" >
< head >
2013-02-14 08:37:08 +01:00
<!-- Meta, title, CSS, favicons, etc. -->
{% include header.html %}
<!-- Place anything custom after this. -->
2013-02-12 21:16:32 +01:00
< / head >
2013-07-27 04:25:45 +02:00
< body >
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
< a class = "sr-only" href = "#content" > Skip navigation< / a >
2013-02-12 21:16:32 +01:00
2013-05-09 06:56:08 +02:00
<!-- Docs master nav -->
{% include nav-main.html %}
2013-03-28 11:06:00 +01:00
2013-05-09 06:56:08 +02:00
<!-- Docs page layout -->
2013-08-11 22:34:48 +02:00
< div class = "bs-header" id = "content" >
2013-05-09 07:29:53 +02:00
< div class = "container" >
2013-05-09 06:56:08 +02:00
< h1 > {{ page.title }}< / h1 >
2013-05-09 07:29:53 +02:00
< p > {{ page.lead }}< / p >
2013-07-27 09:35:26 +02:00
{% include ads.html %}
2013-05-09 06:56:08 +02:00
< / div >
2013-05-09 07:29:53 +02:00
< / div >
2013-02-12 21:16:32 +01:00
2013-07-26 10:43:43 +02:00
<!-- Callout for the old docs link -->
{% include old-bs-docs.html %}
2013-05-09 07:29:53 +02:00
< div class = "container bs-docs-container" >
2013-05-09 06:56:08 +02:00
< div class = "row" >
Media query (grid and responsive utilities) overhaul
Grid classes have been changed to account for a fourth set of classes,
meaning we now have XS, S, M, and L options. Specifically, we made the
following changes:
* Renames `.col-` to `.col-xs-`
* Adds `.col-md-` for devices 992px wide and up
* Remaps `.col-lg-` for devices 1200px wide and up
Alongside that, we've updated our media queries to better handle
advanced grid layouts:
* All column classes now kick in when they hit a `min-width`, undoing
the #9128 fix in
https://github.com/twbs/bootstrap/commit/db45a60cc86190a060f0baf0b3961cb
c690f3a65
* All column offsets, pushes, and pulls are scoped to an appropriate
range, meaning a `min-width` and `max-width` (thanks for the idea,
@eratzlaff)
We've also modified the widths of our grid containers for the small
device grid (now a max 720px instead of 728px) and large device grid
(now a max 1140px instead of 1170px) to avoid horizontal scrollbar
problems in Firefox (likely due to box-sizing, which is why we didn't
see it in 2.x).
Similarly, we've updated the responsive ultility classes to match the
new four media query approach of the grid system. That means we've:
* Added new `.visible-xs` and `.hidden-xs` classes
* Reassigns visible and hidden classes for small, medium, and large to
matching grid system media queries
* Updates docs examples to match grid system and account for fourth
utility range
-----
Fixes the following:
* #9135: fourth grid tier
* #9302: undoes previous range change for small grid system, so no need
to update any docs here
* #8755: consistent grid and responsive utilities schemas)
* #9195, #9216, and #9227: no more horizontal scrollbars
2013-08-12 09:28:50 +02:00
< div class = "col-md-3" >
2013-08-14 23:59:08 +02:00
< div class = "bs-sidebar hidden-print" role = "complementary" >
2013-05-09 07:42:42 +02:00
< ul class = "nav bs-sidenav" >
2013-05-09 20:40:39 +02:00
{% if page.slug == "getting-started" %}
2013-07-26 08:29:43 +02:00
{% include nav-getting-started.html %}
2013-05-09 06:56:08 +02:00
{% elsif page.slug == "css" %}
2013-07-26 08:29:43 +02:00
{% include nav-css.html %}
2013-05-09 06:56:08 +02:00
{% elsif page.slug == "components" %}
2013-07-26 08:29:43 +02:00
{% include nav-components.html %}
2013-05-09 06:56:08 +02:00
{% elsif page.slug == "js" %}
2013-07-26 08:29:43 +02:00
{% include nav-javascript.html %}
2013-05-23 02:30:58 +02:00
{% elsif page.slug == "customize" %}
2013-07-26 08:29:43 +02:00
{% include nav-customize.html %}
2013-09-11 21:30:46 +02:00
{% elsif page.slug == "about" %}
{% include nav-about.html %}
2013-05-09 06:56:08 +02:00
{% endif %}
< / ul >
2013-08-14 23:59:08 +02:00
< / div >
2013-05-09 06:56:08 +02:00
< / div >
2013-08-14 23:59:08 +02:00
< div class = "col-md-9" role = "main" >
2013-05-09 06:56:08 +02:00
{{ content }}
2013-08-14 23:59:08 +02:00
< / div >
2013-05-09 06:56:08 +02:00
< / div >
< / div >
2013-02-12 21:16:32 +01:00
2013-07-18 06:02:50 +02:00
<!-- Footer
================================================== -->
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
< footer class = "bs-footer" role = "contentinfo" >
2013-08-19 06:15:07 +02:00
< div class = "container" >
{% include social-buttons.html %}
2013-07-18 06:02:50 +02:00
2013-08-19 06:15:07 +02:00
< p > Designed and built with all the love in the world by < a href = "http://twitter.com/mdo" target = "_blank" > @mdo< / a > and < a href = "http://twitter.com/fat" target = "_blank" > @fat< / a > .< / p >
< p > Code licensed under < a href = "http://www.apache.org/licenses/LICENSE-2.0" target = "_blank" > Apache License v2.0< / a > , documentation under < a href = "http://creativecommons.org/licenses/by/3.0/" > CC BY 3.0< / a > .< / p >
< ul class = "footer-links" >
2013-08-24 07:38:51 +02:00
< li > Currently v{{ site.current_version }}< / li >
2013-08-23 22:46:28 +02:00
< li class = "muted" > · < / li >
2013-08-19 06:15:07 +02:00
< li > < a href = "{{ page.base_url }}2.3.2/" > Bootstrap 2.3.2 docs< / a > < / li >
< li class = "muted" > · < / li >
< li > < a href = "{{ site.blog }}" > Blog< / a > < / li >
< li class = "muted" > · < / li >
< li > < a href = "{{ site.repo }}/issues?state=open" > Issues< / a > < / li >
< li class = "muted" > · < / li >
< li > < a href = "{{ site.repo }}/releases" > Releases< / a > < / li >
< / ul >
< / div >
2013-07-18 06:02:50 +02:00
< / footer >
2013-05-10 02:36:02 +02:00
2013-02-14 08:37:08 +01:00
<!-- JS and analytics only. -->
{% include footer.html %}
2013-02-12 21:16:32 +01:00
< / body >
2013-02-26 09:37:59 +01:00
< / html >