From: Mark Otto Date: Mon, 27 Oct 2014 11:49:24 +0000 (-0700) Subject: fix up the new navbar docs X-Git-Tag: v4.0.0-alpha~569 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=674c2ff224bc33c3613f67a5e426cb8c1005393d;p=thirdparty%2Fbootstrap.git fix up the new navbar docs --- diff --git a/docs/components/new-navbar.md b/docs/components/new-navbar.md index 97b274aafe..1b124d026e 100644 --- a/docs/components/new-navbar.md +++ b/docs/components/new-navbar.md @@ -3,19 +3,35 @@ layout: page title: New navbar --- -Proposal to replace the existing navbar with something simpler and more customizable. +The navbar is a simple wrapper for positioning branding, navigation, and other elements. It's easily extensible and with the help of our collapse plugin it can easily integrate offscreen content. +### Basics + +Here's what you need to know before getting started with the navbar: + +- Navbars require a wrapping `.navbar` and either a color scheme class or custom styles. +- When using multiple components in a navbar, some [alignment classes](#alignment) are required. +- Navbars and their contents are fluid by default. Use [optional containers](#containers) to limit their horizontal width. + +### Branding + +Name your company, product, or project with `.navbar-brand`. + +{% example html %} +{% endexample %} + +### Navigation + +Use `.nav-pills` within a navbar for basic navigation. +{% example html %} +{% endexample %} + +### Inline forms + +Add an `.inline-form` within the navbar with nearly any combination of form controls and buttons. + +{% example html %} + +{% endexample %} + +### Containers + +Although it's not required, you can wrap a navbar in a `.container` or add one within for basic horizontal control. + +{% example html %} + +{% endexample %} + +{% example html %} +
+ +
+{% endexample %} +### Alignment + +Use `.pull-left` or `.pull-right` to align multiple elements within the navbar. + +{% example html %} +{% endexample %} - +### Inverse color scheme + +Replace `.navbar-default` with `.navbar-inverse` for a darker background color and white text. +{% example html %} +{% endexample %} +### Collapsible content +Our collapse plugin allows you to use a ` - - +{% endexample %}