From b4cc6c74f59442879ba2b1ed3e86d26e62390835 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 21 Feb 2012 21:12:16 -0800 Subject: add support and docs for .navbar-fixed-bottom --- docs/assets/bootstrap.zip | Bin 56322 -> 56377 bytes docs/assets/css/bootstrap.css | 12 +++++++++--- docs/components.html | 15 +++++++++++++-- docs/templates/pages/components.mustache | 15 +++++++++++++-- 4 files changed, 35 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index c451d13a2..44fdb437a 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 e9fb04f2d..b90cb7635 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -2840,20 +2840,26 @@ button.btn.btn-small, input[type="submit"].btn.btn-small { box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); outline: 0; } -.navbar-fixed-top { +.navbar-fixed-top, .navbar-fixed-bottom { position: fixed; - top: 0; right: 0; left: 0; z-index: 1030; + margin-bottom: 0; } -.navbar-fixed-top .navbar-inner { +.navbar-fixed-top .navbar-inner, .navbar-fixed-bottom .navbar-inner { padding-left: 0; padding-right: 0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } +.navbar-fixed-top { + top: 0; +} +.navbar-fixed-bottom { + bottom: 0; +} .navbar .nav { position: relative; left: 0; diff --git a/docs/components.html b/docs/components.html index 172fbcf20..9cfd261ff 100644 --- a/docs/components.html +++ b/docs/components.html @@ -849,13 +849,24 @@ </div>

Fixed navbar

-

To make the navbar fixed to the top of the viewport, add .navbar-fixed-top to the outermost div, .navbar.

+

Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, .navbar.

+
+
 <div class="navbar navbar-fixed-top">
   ...
 </div>
 
-

In your CSS, you will also need to account for the overlap it causes by adding 40px or more of padding to your <body>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.

+
+
+
+<div class="navbar navbar-fixed-bottom">
+  ...
+</div>
+
+
+
+

When you affix the navbar, remember to account for the hidden area underneath. Add 40px or more of apdding to the <body>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.

Brand name

A simple link to show your brand or project name only requires an anchor tag.

diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache
index 3a176fa44..8868d9927 100644
--- a/docs/templates/pages/components.mustache
+++ b/docs/templates/pages/components.mustache
@@ -773,13 +773,24 @@
 </div>
 

{{_i}}Fixed navbar{{/i}}

-

{{_i}}To make the navbar fixed to the top of the viewport, add .navbar-fixed-top to the outermost div, .navbar.{{/i}}

+

{{_i}}Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, .navbar.{{/i}}

+
+
 <div class="navbar navbar-fixed-top">
   ...
 </div>
 
-

{{_i}}In your CSS, you will also need to account for the overlap it causes by adding 40px or more of padding to your <body>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}

+
+
+
+<div class="navbar navbar-fixed-bottom">
+  ...
+</div>
+
+
+
+

{{_i}}When you affix the navbar, remember to account for the hidden area underneath. Add 40px or more of apdding to the <body>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}

{{_i}}Brand name{{/i}}

{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}

-- 
cgit v1.2.3