From 7ef7547a1421825cb73382ad6317aba8affe3dc8 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 20 Feb 2012 12:38:49 -0800 Subject: add horizontal divider support to nav list, including documentation for it, per #2106 --- docs/assets/bootstrap.zip | Bin 53399 -> 53412 bytes docs/assets/css/bootstrap.css | 11 ++++++++++- docs/components.html | 12 ++++++++++++ docs/templates/pages/components.mustache | 12 ++++++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 146023c5d..58ef3d5ee 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 155f5dad1..472a3fa31 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1612,7 +1612,7 @@ table .span12 { } .dropdown-menu .divider { height: 1px; - margin: 5px 1px; + margin: 8px 1px; overflow: hidden; background-color: #e5e5e5; border-bottom: 1px solid #ffffff; @@ -2217,6 +2217,15 @@ button.btn.small, input[type="submit"].btn.small { .nav-list [class^="icon-"] { margin-right: 2px; } +.nav-list .divider { + height: 1px; + margin: 8px 1px; + overflow: hidden; + background-color: #e5e5e5; + border-bottom: 1px solid #ffffff; + *width: 100%; + *margin: -5px 0 5px; +} .nav-tabs, .nav-pills { *zoom: 1; } diff --git a/docs/components.html b/docs/components.html index 895d62f75..046bd7280 100644 --- a/docs/components.html +++ b/docs/components.html @@ -542,8 +542,18 @@

Application-style navigation

Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.

Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.

+

With icons

Nav lists are also easy to equip with icons. Add the proper <i> tag with class and you're set.

+

Horizontal dividers

+

Add a horizontal divider by creating an empty list item with the class .divider, like so:

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

Example nav list

@@ -557,6 +567,7 @@
  • Profile
  • Settings
  • +
  • Help
  • @@ -587,6 +598,7 @@
  • Profile
  • Settings
  • +
  • Help
  • diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index dcf5212a8..a8aaeeff5 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -466,8 +466,18 @@

    {{_i}}Application-style navigation{{/i}}

    {{_i}}Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}

    {{_i}}Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.{{/i}}

    +

    {{_i}}With icons{{/i}}

    {{_i}}Nav lists are also easy to equip with icons. Add the proper <i> tag with class and you're set.{{/i}}

    +

    {{_i}}Horizontal dividers{{/i}}

    +

    {{_i}}Add a horizontal divider by creating an empty list item with the class .divider, like so:{{/i}}

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

    {{_i}}Example nav list{{/i}}

    @@ -481,6 +491,7 @@
  • {{_i}}Profile{{/i}}
  • {{_i}}Settings{{/i}}
  • +
  • {{_i}}Help{{/i}}
  • @@ -511,6 +522,7 @@
  • {{_i}}Profile{{/i}}
  • {{_i}}Settings{{/i}}
  • +
  • {{_i}}Help{{/i}}
  • -- cgit v1.2.3