Commit 4e979f08 authored by Mark Otto's avatar Mark Otto
Browse files

fix static navbar container issues, clean up docs presentation by unfixing the...

fix static navbar container issues, clean up docs presentation by unfixing the top navbar in favor of static one, start adding table of contents for longer sections of docs
parent e4d4ef43
No related merge requests found
Showing with 78 additions and 52 deletions
+78 -52
...@@ -110,6 +110,7 @@ ...@@ -110,6 +110,7 @@
margin-left: 30px; margin-left: 30px;
} }
.container, .container,
.navbar-static-top .container,
.navbar-fixed-top .container, .navbar-fixed-top .container,
.navbar-fixed-bottom .container { .navbar-fixed-bottom .container {
width: 1170px; width: 1170px;
...@@ -455,6 +456,7 @@ ...@@ -455,6 +456,7 @@
margin-left: 20px; margin-left: 20px;
} }
.container, .container,
.navbar-static-top .container,
.navbar-fixed-top .container, .navbar-fixed-top .container,
.navbar-fixed-bottom .container { .navbar-fixed-bottom .container {
width: 724px; width: 724px;
......
...@@ -219,6 +219,7 @@ a:hover { ...@@ -219,6 +219,7 @@ a:hover {
} }
.container, .container,
.navbar-static-top .container,
.navbar-fixed-top .container, .navbar-fixed-top .container,
.navbar-fixed-bottom .container { .navbar-fixed-bottom .container {
width: 940px; width: 940px;
...@@ -4172,7 +4173,8 @@ input[type="submit"].btn.btn-mini { ...@@ -4172,7 +4173,8 @@ input[type="submit"].btn.btn-mini {
} }
.navbar-fixed-top .navbar-inner, .navbar-fixed-top .navbar-inner,
.navbar-fixed-bottom .navbar-inner { .navbar-fixed-bottom .navbar-inner,
.navbar-static-top .navbar-inner {
border: 0; border: 0;
} }
...@@ -4185,6 +4187,7 @@ input[type="submit"].btn.btn-mini { ...@@ -4185,6 +4187,7 @@ input[type="submit"].btn.btn-mini {
border-radius: 0; border-radius: 0;
} }
.navbar-static-top .container,
.navbar-fixed-top .container, .navbar-fixed-top .container,
.navbar-fixed-bottom .container { .navbar-fixed-bottom .container {
width: 940px; width: 940px;
...@@ -4194,7 +4197,8 @@ input[type="submit"].btn.btn-mini { ...@@ -4194,7 +4197,8 @@ input[type="submit"].btn.btn-mini {
top: 0; top: 0;
} }
.navbar-fixed-top .navbar-inner { .navbar-fixed-top .navbar-inner,
.navbar-static-top .navbar-inner {
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1); -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
-moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1); -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
body { body {
position: relative; position: relative;
padding-top: 40px;
} }
/* Code in headings */ /* Code in headings */
...@@ -26,12 +25,12 @@ h3 code { ...@@ -26,12 +25,12 @@ h3 code {
/* Tweak navbar brand link to be super sleek /* Tweak navbar brand link to be super sleek
-------------------------------------------------- */ -------------------------------------------------- */
body > .navbar-fixed-top { body > .navbar-static-top {
font-size: 13px; font-size: 13px;
} }
/* Change the docs' brand */ /* Change the docs' brand */
body > .navbar-fixed-top .brand { body > .navbar-static-top .brand {
padding-right: 0; padding-right: 0;
padding-left: 0; padding-left: 0;
margin-left: 20px; margin-left: 20px;
...@@ -43,7 +42,7 @@ body > .navbar-fixed-top .brand { ...@@ -43,7 +42,7 @@ body > .navbar-fixed-top .brand {
-moz-transition: all .2s linear; -moz-transition: all .2s linear;
transition: all .2s linear; transition: all .2s linear;
} }
body > .navbar-fixed-top .brand:hover { body > .navbar-static-top .brand:hover {
text-decoration: none; text-decoration: none;
text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4); text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
} }
...@@ -54,7 +53,7 @@ body > .navbar-fixed-top .brand:hover { ...@@ -54,7 +53,7 @@ body > .navbar-fixed-top .brand:hover {
/* padding for in-page bookmarks and fixed navbar */ /* padding for in-page bookmarks and fixed navbar */
section { section {
padding-top: 60px; padding-top: 30px;
} }
section > .page-header, section > .page-header,
section > .lead { section > .lead {
...@@ -759,10 +758,9 @@ form.bs-docs-example { ...@@ -759,10 +758,9 @@ form.bs-docs-example {
} }
.bs-docs-sidenav { .bs-docs-sidenav {
width: 218px; width: 228px;
margin-top: 30px; margin-top: 30px;
padding: 0; padding: 0;
margin-right: 10px;
background-color: #fff; background-color: #fff;
margin-left: 0; margin-left: 0;
-webkit-border-radius: 6px; -webkit-border-radius: 6px;
...@@ -790,9 +788,13 @@ form.bs-docs-example { ...@@ -790,9 +788,13 @@ form.bs-docs-example {
border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px;
} }
.bs-docs-sidenav > .active > a { .bs-docs-sidenav > .active > a {
border-color: #08c;
position: relative; position: relative;
z-index: 2; z-index: 2;
padding: 9px 15px;
border: 0;
-webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
-moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
} }
/* Chevrons */ /* Chevrons */
.bs-docs-sidenav .icon-chevron-right { .bs-docs-sidenav .icon-chevron-right {
...@@ -807,12 +809,13 @@ form.bs-docs-example { ...@@ -807,12 +809,13 @@ form.bs-docs-example {
.bs-docs-sidenav a:hover .icon-chevron-right { .bs-docs-sidenav a:hover .icon-chevron-right {
opacity: .5; opacity: .5;
} }
.bs-docs-sidenav .active .icon-chevron-right { .bs-docs-sidenav .active .icon-chevron-right,
.bs-docs-sidenav .active a:hover .icon-chevron-right {
background-image: url(../img/glyphicons-halflings-white.png); background-image: url(../img/glyphicons-halflings-white.png);
opacity: .75; opacity: .75;
} }
.bs-docs-sidenav.affix { .bs-docs-sidenav.affix {
top: 40px; top: 0;
} }
.bs-docs-sidenav.affix-bottom { .bs-docs-sidenav.affix-bottom {
position: absolute; position: absolute;
...@@ -869,18 +872,11 @@ form.bs-docs-example { ...@@ -869,18 +872,11 @@ form.bs-docs-example {
body { body {
padding-top: 0; padding-top: 0;
} }
/* Widen masthead and social buttons to fill body padding */
.jumbotron {
margin-top: -20px; /* Offset bottom margin on .navbar */
}
/* Adjust sidenav width */ /* Adjust sidenav width */
.bs-docs-sidenav { .bs-docs-sidenav {
width: 166px; width: 166px;
margin-top: 20px; margin-top: 20px;
} }
.bs-docs-sidenav.affix {
top: 0;
}
} }
/* Tablet /* Tablet
...@@ -936,9 +932,6 @@ form.bs-docs-example { ...@@ -936,9 +932,6 @@ form.bs-docs-example {
.footer p { .footer p {
margin-bottom: 9px; margin-bottom: 9px;
} }
.bs-docs-sidenav.affix {
top: 0;
}
} }
/* Landscape phones /* Landscape phones
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
</head> </head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10"> <body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar <!-- Navbar
================================================== --> ================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
...@@ -106,7 +106,15 @@ ...@@ -106,7 +106,15 @@
<h1>Typography</h1> <h1>Typography</h1>
</div> </div>
<h2>Headings</h2> <ul>
<li><a href="./base-css.html#headings">Headings</a></li>
<li><a href="./base-css.html#body-copy">Body copy</a></li>
<li><a href="./base-css.html#emphasis">Emphasis</a></li>
</ul>
<hr>
<h2 id="headings">Headings</h2>
<p>All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code> are available.</p> <p>All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code> are available.</p>
<div class="bs-docs-example"> <div class="bs-docs-example">
<h1>h1. Heading 1</h1> <h1>h1. Heading 1</h1>
...@@ -117,7 +125,7 @@ ...@@ -117,7 +125,7 @@
<h6>h6. Heading 6</h6> <h6>h6. Heading 6</h6>
</div> </div>
<h2>Body copy</h2> <h2 id="body-copy">Body copy</h2>
<p>Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>20px</strong>. This is applied to the <code>&lt;body&gt;</code> and all paragraphs. In addition, <code>&lt;p&gt;</code> (paragraphs) receive a bottom margin of half their line-height (9px by default).</p> <p>Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>20px</strong>. This is applied to the <code>&lt;body&gt;</code> and all paragraphs. In addition, <code>&lt;p&gt;</code> (paragraphs) receive a bottom margin of half their line-height (9px by default).</p>
<div class="bs-docs-example"> <div class="bs-docs-example">
<p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p> <p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p>
...@@ -133,14 +141,14 @@ ...@@ -133,14 +141,14 @@
</div> </div>
<pre class="prettyprint">&lt;p class="lead"&gt;...&lt;/p&gt;</pre> <pre class="prettyprint">&lt;p class="lead"&gt;...&lt;/p&gt;</pre>
<h2>Built with Less</h2> <h3>Built with Less</h3>
<p>The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@baseFontSize</code> and <code>@baseLineHeight</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p> <p>The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@baseFontSize</code> and <code>@baseLineHeight</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p>
<hr class="bs-docs-separator"> <hr class="bs-docs-separator">
<h2>Emphasis</h2> <h2 id="emphasis">Emphasis</h2>
<p>Make use of HTML's default emphasis tags with lightweight styles.</p> <p>Make use of HTML's default emphasis tags with lightweight styles.</p>
<h3><code>&lt;small&gt;</code></h3> <h3><code>&lt;small&gt;</code></h3>
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
</head> </head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10"> <body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar <!-- Navbar
================================================== --> ================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
</head> </head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10"> <body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar <!-- Navbar
================================================== --> ================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
</head> </head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10"> <body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar <!-- Navbar
================================================== --> ================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
</head> </head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10"> <body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar <!-- Navbar
================================================== --> ================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
</head> </head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10"> <body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar <!-- Navbar
================================================== --> ================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
</head> </head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10"> <body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar <!-- Navbar
================================================== --> ================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<!-- Subhead <!-- Subhead
================================================== --> ================================================== -->
<header class="jumbotron subhead" id="overview"> <header class="jumbotron subhead">
<div class="container"> <div class="container">
<h1>JavaScript for Bootstrap</h1> <h1>JavaScript for Bootstrap</h1>
<p class="lead">Bring Bootstrap's components to life&mdash;now with 13 custom jQuery plugins. <p class="lead">Bring Bootstrap's components to life&mdash;now with 13 custom jQuery plugins.
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
</head> </head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10"> <body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar <!-- Navbar
================================================== --> ================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
......
...@@ -39,11 +39,11 @@ ...@@ -39,11 +39,11 @@
{{/production}} {{/production}}
</head> </head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10"> <body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar <!-- Navbar
================================================== --> ================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
......
...@@ -35,8 +35,16 @@ ...@@ -35,8 +35,16 @@
<h1>{{_i}}Typography{{/i}}</h1> <h1>{{_i}}Typography{{/i}}</h1>
</div> </div>
<ul>
<li><a href="./base-css.html#headings">Headings</a></li>
<li><a href="./base-css.html#body-copy">Body copy</a></li>
<li><a href="./base-css.html#emphasis">Emphasis</a></li>
</ul>
<hr>
{{! Headings }} {{! Headings }}
<h2>{{_i}}Headings{{/i}}</h2> <h2 id="headings">{{_i}}Headings{{/i}}</h2>
<p>{{_i}}All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code> are available.{{/i}}</p> <p>{{_i}}All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code> are available.{{/i}}</p>
<div class="bs-docs-example"> <div class="bs-docs-example">
<h1>h1. {{_i}}Heading 1{{/i}}</h1> <h1>h1. {{_i}}Heading 1{{/i}}</h1>
...@@ -48,7 +56,7 @@ ...@@ -48,7 +56,7 @@
</div> </div>
{{! Body copy }} {{! Body copy }}
<h2>{{_i}}Body copy{{/i}}</h2> <h2 id="body-copy">{{_i}}Body copy{{/i}}</h2>
<p>{{_i}}Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>20px</strong>. This is applied to the <code>&lt;body&gt;</code> and all paragraphs. In addition, <code>&lt;p&gt;</code> (paragraphs) receive a bottom margin of half their line-height (9px by default).{{/i}}</p> <p>{{_i}}Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>20px</strong>. This is applied to the <code>&lt;body&gt;</code> and all paragraphs. In addition, <code>&lt;p&gt;</code> (paragraphs) receive a bottom margin of half their line-height (9px by default).{{/i}}</p>
<div class="bs-docs-example"> <div class="bs-docs-example">
<p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p> <p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p>
...@@ -66,7 +74,7 @@ ...@@ -66,7 +74,7 @@
<pre class="prettyprint">&lt;p class="lead"&gt;...&lt;/p&gt;</pre> <pre class="prettyprint">&lt;p class="lead"&gt;...&lt;/p&gt;</pre>
{{! Using LESS }} {{! Using LESS }}
<h2>{{_i}}Built with Less{{/i}}</h2> <h3>{{_i}}Built with Less{{/i}}</h3>
<p>{{_i}}The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@baseFontSize</code> and <code>@baseLineHeight</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.{{/i}}</p> <p>{{_i}}The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@baseFontSize</code> and <code>@baseLineHeight</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.{{/i}}</p>
...@@ -74,7 +82,7 @@ ...@@ -74,7 +82,7 @@
{{! Emphasis }} {{! Emphasis }}
<h2>{{_i}}Emphasis{{/i}}</h2> <h2 id="emphasis">{{_i}}Emphasis{{/i}}</h2>
<p>{{_i}}Make use of HTML's default emphasis tags with lightweight styles.{{/i}}</p> <p>{{_i}}Make use of HTML's default emphasis tags with lightweight styles.{{/i}}</p>
<h3><code>&lt;small&gt;</code></h3> <h3><code>&lt;small&gt;</code></h3>
......
<!-- Subhead <!-- Subhead
================================================== --> ================================================== -->
<header class="jumbotron subhead" id="overview"> <header class="jumbotron subhead">
<div class="container"> <div class="container">
<h1>{{_i}}JavaScript for Bootstrap{{/i}}</h1> <h1>{{_i}}JavaScript for Bootstrap{{/i}}</h1>
<p class="lead">{{_i}}Bring Bootstrap's components to life&mdash;now with 13 custom jQuery plugins.{{/i}} <p class="lead">{{_i}}Bring Bootstrap's components to life&mdash;now with 13 custom jQuery plugins.{{/i}}
......
...@@ -580,6 +580,7 @@ ...@@ -580,6 +580,7 @@
// Set the container width, and override it for fixed navbars in media queries // Set the container width, and override it for fixed navbars in media queries
.container, .container,
.navbar-static-top .container,
.navbar-fixed-top .container, .navbar-fixed-top .container,
.navbar-fixed-bottom .container { .span(@gridColumns); } .navbar-fixed-bottom .container { .span(@gridColumns); }
......
...@@ -165,6 +165,10 @@ ...@@ -165,6 +165,10 @@
left: 0; left: 0;
z-index: @zindexFixedNavbar; z-index: @zindexFixedNavbar;
margin-bottom: 0; // remove 18px margin for default navbar margin-bottom: 0; // remove 18px margin for default navbar
}
.navbar-fixed-top,
.navbar-fixed-bottom,
.navbar-static-top {
.navbar-inner { .navbar-inner {
border: 0; border: 0;
} }
...@@ -177,6 +181,8 @@ ...@@ -177,6 +181,8 @@
} }
// Reset container width // Reset container width
// Required here as we reset the width earlier on and the grid mixins don't override early enough
.navbar-static-top .container,
.navbar-fixed-top .container, .navbar-fixed-top .container,
.navbar-fixed-bottom .container { .navbar-fixed-bottom .container {
#grid > .core > .span(@gridColumns); #grid > .core > .span(@gridColumns);
...@@ -185,6 +191,9 @@ ...@@ -185,6 +191,9 @@
// Fixed to top // Fixed to top
.navbar-fixed-top { .navbar-fixed-top {
top: 0; top: 0;
}
.navbar-fixed-top,
.navbar-static-top {
.navbar-inner { .navbar-inner {
.box-shadow(~"inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1)"); .box-shadow(~"inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1)");
} }
......
...@@ -48,4 +48,4 @@ a:hover { ...@@ -48,4 +48,4 @@ a:hover {
.img-circle { .img-circle {
.border-radius(500px); .border-radius(500px);
} }
\ No newline at end of file
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
visibility: hidden; visibility: hidden;
} }
// For Affix plugin
.affix { .affix {
position: fixed; position: fixed;
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment