From: Julian Thilo Date: Tue, 14 May 2013 20:31:15 +0000 (+0200) Subject: .navbar docs: update -fixed-* callouts, fix -link X-Git-Tag: v3.0.0-rc1~357^2~3^2~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af88380c440f35387292946b2e18ad7b2ab84b2;p=thirdparty%2Fbootstrap.git .navbar docs: update -fixed-* callouts, fix -link * The navbar is now always 50px high, so no need for that nasty padding code block anymore. * The new proposed body padding value also reflects the default navbar's margin-bottom. * Fixed the navbar-link example positioning (missing .navbar-text). --- diff --git a/docs/components.html b/docs/components.html index 23c20d94d3..bcf3ad7a1c 100644 --- a/docs/components.html +++ b/docs/components.html @@ -1197,13 +1197,13 @@ lead: "Dozens of reusable components built to provide iconography, dropdowns, na
{% highlight html %} {% endhighlight %} @@ -1236,16 +1236,9 @@ lead: "Dozens of reusable components built to provide iconography, dropdowns, na

Body padding required

-

The fixed navbar will overlay your other content, unless you add padding to the top of the <body>. The navbar itself has a height of 54px by default. At 768px and above, its height shrinks to 50px. Try out your own values or use our snippet below:

+

The fixed navbar will overlay your other content, unless you add padding to the top of the <body>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.

{% highlight css %} -body { - padding-top: 64px; -} -@media screen and (min-width: 768px) { - body { - padding-top: 60px; - } -} +body { padding-top: 70px; } {% endhighlight %}

Make sure to include this after the core Bootstrap CSS.

@@ -1272,16 +1265,9 @@ body {

Body padding required

-

The fixed navbar will overlay your other content, unless you add padding to the bottom of the <body>. The navbar itself has a height of 54px by default. At 768px and above, its height shrinks to 50px. Try out your own values or use our snippet below:

+

The fixed navbar will overlay your other content, unless you add padding to the bottom of the <body>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.

{% highlight css %} -body { - padding-bottom: 64px; -} -@media screen and (min-width: 768px) { - body { - padding-bottom: 60px; - } -} +body { padding-bottom: 70px; } {% endhighlight %}

Make sure to include this after the core Bootstrap CSS.