From: Kevin Suttle Date: Sun, 11 Aug 2013 02:33:53 +0000 (-0400) Subject: Use nav for proper HTML5 ARIA role mapping X-Git-Tag: v3.0.0-rc.2~81^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9332%2Fhead;p=thirdparty%2Fbootstrap.git Use nav for proper HTML5 ARIA role mapping http://www.w3.org/html/wg/drafts/html/master/sections.html#the-nav-element http://dev.w3.org/html5/spec/sections.html#the-nav-element http://blog.paciellogroup.com/2013/02/using-wai-aria-landmarks-2013/#tablex --- diff --git a/_includes/nav-main.html b/_includes/nav-main.html index 6b5742cd1f..7a2ded3be4 100644 --- a/_includes/nav-main.html +++ b/_includes/nav-main.html @@ -1,4 +1,4 @@ - {% highlight html %} - + {% endhighlight %}
@@ -1206,7 +1208,7 @@ body { padding-top: 70px; }

Add .navbar-fixed-bottom instead.

- +
{% highlight html %} - + {% endhighlight %}
@@ -1235,7 +1237,7 @@ body { padding-bottom: 70px; }

Create a full-width navbar that scrolls away with the page by adding .navbar-static-top. Unlike the .navbar-fixed-* classes, you do not need to change any padding on the body.

- +
{% highlight html %} - + {% endhighlight %}

To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse, and add the navbar toggle button, .navbar-toggle.

- {% highlight html %} - -
+ {% endhighlight %}
@@ -1377,7 +1379,7 @@ body { padding-bottom: 70px; }

Modify the look of the navbar by adding .navbar-inverse.

- -
+
{% highlight html %} - + {% endhighlight %}
diff --git a/javascript.html b/javascript.html index 2d48e26e05..8c1bd27af3 100644 --- a/javascript.html +++ b/javascript.html @@ -355,7 +355,7 @@ $('#myModal').on('hidden.bs.modal', function () {

Within a navbar

-

@fat