From 017b7cb804106a14d1a7b6f6b02109dddd4926a2 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 10 Jun 2012 20:39:00 -0700 Subject: [PATCH] rewrite the navbar section --- docs/assets/css/docs.css | 33 ++- docs/components.html | 301 ++++++++++++++--------- docs/templates/pages/components.mustache | 301 ++++++++++++++--------- 3 files changed, 396 insertions(+), 239 deletions(-) diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 83533ea784..889e3008d3 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -52,7 +52,7 @@ h3 code { .subnav { font-size: 13px; } -.navbar-fixed-top .brand { +body > .navbar-fixed-top .brand { padding-right: 0; padding-left: 0; margin-left: 20px; @@ -64,7 +64,7 @@ h3 code { -moz-transition: all .2s linear; transition: all .2s linear; } -.navbar-fixed-top .brand:hover { +body > .navbar-fixed-top .brand:hover { text-decoration: none; } @@ -744,12 +744,39 @@ form.well { .bs-docs-example .well, .bs-docs-example .alert, .bs-docs-example .hero-unit, -.bs-docs-example .pagination { +.bs-docs-example .pagination, +.bs-docs-example .navbar { margin-bottom: 5px; } .bs-docs-example .pagination { margin-top: 0; } +.bs-navbar-top-example, +.bs-navbar-bottom-example { + z-index: 1; + padding: 0; + height: 90px; +} +.bs-navbar-top-example { + -webkit-border-radius: 0 0 4px 4px; + -moz-border-radius: 0 0 4px 4px; + border-radius: 0 0 4px 4px; +} +.bs-navbar-top-example:after { + top: auto; + bottom: -1px; + -webkit-border-radius: 0 4px 0 4px; + -moz-border-radius: 0 4px 0 4px; + border-radius: 0 4px 0 4px; +} +.bs-navbar-bottom-example { + -webkit-border-radius: 4px 4px 0 0; + -moz-border-radius: 4px 4px 0 0; + border-radius: 4px 4px 0 0; +} +.bs-navbar-bottom-example .navbar { + margin-bottom: 0; +} form.bs-docs-example { padding-bottom: 19px; } diff --git a/docs/components.html b/docs/components.html index 5ff8244761..933d89a36c 100644 --- a/docs/components.html +++ b/docs/components.html @@ -896,105 +896,213 @@ -

Static navbar example

-

An example of a static (not fixed to the top) navbar with project name, navigation, and search form.

- -

Nav links

-

Nav items are simple to add via unordered lists.

-
-<ul class="nav">
-  <li class="active">
-    <a href="#">Home</a>
-  </li>
-  <li><a href="#">Link</a></li>
-  <li><a href="#">Link</a></li>
-</ul>
-
-

You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:

-
-<ul class="nav">
-  ...
-  <li class="divider-vertical"></li>
-  ...
-</ul>
-
-

Component alignment

-

To align a nav, search form, or text, use the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction.

-

Adding dropdown menus

-

Adding dropdowns and dropups to the nav is super simple, but does require the use of our javascript plugin.

-
-<ul class="nav">
-  <li class="dropdown">
-    <a href="#"
-          class="dropdown-toggle"
-          data-toggle="dropdown">
-          Account
-          <b class="caret"></b>
-    </a>
-    <ul class="dropdown-menu">
-      ...
-    </ul>
-  </li>
-</ul>
-
-

Get the javascript →

-
-

Text in the navbar

-

Wrap strings of text in a <.navbar-text>, usually on a <p> tag for proper leading and color.

- diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 149d816449..3f4ad2d08e 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -819,105 +819,213 @@ -

{{_i}}Static navbar example{{/i}}

-

{{_i}}An example of a static (not fixed to the top) navbar with project name, navigation, and search form.{{/i}}

- -

{{_i}}Nav links{{/i}}

-

{{_i}}Nav items are simple to add via unordered lists.{{/i}}

-
-<ul class="nav">
-  <li class="active">
-    <a href="#">{{_i}}Home{{/i}}</a>
-  </li>
-  <li><a href="#">{{_i}}Link{{/i}}</a></li>
-  <li><a href="#">{{_i}}Link{{/i}}</a></li>
-</ul>
-
-

{{_i}}You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:{{/i}}

-
-<ul class="nav">
-  ...
-  <li class="divider-vertical"></li>
-  ...
-</ul>
-
-

{{_i}}Component alignment{{/i}}

-

{{_i}}To align a nav, search form, or text, use the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction.{{/i}}

-

{{_i}}Adding dropdown menus{{/i}}

-

{{_i}}Adding dropdowns and dropups to the nav is super simple, but does require the use of our javascript plugin.{{/i}}

-
-<ul class="nav">
-  <li class="dropdown">
-    <a href="#"
-          class="dropdown-toggle"
-          data-toggle="dropdown">
-          {{_i}}Account{{/i}}
-          <b class="caret"></b>
-    </a>
-    <ul class="dropdown-menu">
-      ...
-    </ul>
-  </li>
-</ul>
-
-

{{_i}}Get the javascript →{{/i}}

-
-

{{_i}}Text in the navbar{{/i}}

-

{{_i}}Wrap strings of text in a <.navbar-text>, usually on a <p> tag for proper leading and color.{{/i}}

-