]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix up justified nav example
authorMark Otto <otto@github.com>
Fri, 16 Aug 2013 17:58:28 +0000 (10:58 -0700)
committerMark Otto <otto@github.com>
Fri, 16 Aug 2013 17:58:28 +0000 (10:58 -0700)
examples/justified-nav/index.html
examples/justified-nav/justified-nav.css
examples/screenshots/justified-nav.jpg [new file with mode: 0644]
getting-started.html

index de9ce387e242ddca43fd2bceb489b5fb7a1c868c..21a97b708eedf49ef55e8e7fa4eb093e74eaceb4 100644 (file)
@@ -21,7 +21,7 @@
 
       <div class="masthead">
         <h3 class="text-muted">Project name</h3>
-        <ul class="nav navbar-nav nav-justified">
+        <ul class="nav nav-justified">
           <li class="active"><a href="#">Home</a></li>
           <li><a href="#">Projects</a></li>
           <li><a href="#">Services</a></li>
           <div class="col-lg-4">
             <h2>Heading</h2>
             <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
-            <p><a class="btn btn-default" href="#">View details &raquo;</a></p>
+            <p><a class="btn btn-primary" href="#">View details &raquo;</a></p>
           </div>
           <div class="col-lg-4">
             <h2>Heading</h2>
             <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
-            <p><a class="btn btn-default" href="#">View details &raquo;</a></p>
+            <p><a class="btn btn-primary" href="#">View details &raquo;</a></p>
          </div>
           <div class="col-lg-4">
             <h2>Heading</h2>
             <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.</p>
-            <p><a class="btn btn-default" href="#">View details &raquo;</a></p>
+            <p><a class="btn btn-primary" href="#">View details &raquo;</a></p>
           </div>
         </div>
 
index 89822eca267953fe35c4ad2b6c378aafac19a659..cabd36d169354d8485b8d5bc65ddc47ea8acc104 100644 (file)
@@ -4,17 +4,16 @@ body {
 
 /* Everything but the jumbotron gets side spacing for mobile-first views */
 .masthead,
-.body-content,
 .footer {
   padding-left: 15px;
   padding-right: 15px;
 }
 
 .footer {
-  border-top: 1px solid #ddd;
-  margin-top: 30px;
-  padding-top: 29px;
-  padding-bottom: 30px;
+  border-top: 1px solid #eee;
+  margin-top: 40px;
+  padding-top: 40px;
+  padding-bottom: 40px;
 }
 
 /* Main marketing message and sign up button */
@@ -29,7 +28,7 @@ body {
 
 /* Customize the nav-justified links to be fill the entire space of the .navbar */
 .nav-justified {
-  max-height: 50px;
+  max-height: 52px;
   background-color: #eee;
   border-radius: 5px;
   border: 1px solid #ccc;
@@ -52,7 +51,9 @@ body {
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
   background-image: linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* W3C */
 }
-.nav-justified > .active > a {
+.nav-justified > .active > a,
+.nav-justified > .active > a:hover,
+.nav-justified > .active > a:focus {
   background-color: #ddd;
   background-image: none;
   box-shadow: inset 0 3px 7px rgba(0,0,0,.15);
diff --git a/examples/screenshots/justified-nav.jpg b/examples/screenshots/justified-nav.jpg
new file mode 100644 (file)
index 0000000..01689c3
Binary files /dev/null and b/examples/screenshots/justified-nav.jpg differ
index 016ef4c3e7aa5144fa4a77aff66c701a9be7b45b..0c5c67c2528778fb7216bcd1acb274a436914288 100644 (file)
@@ -207,10 +207,17 @@ bootstrap/
           <img src="../examples/screenshots/sticky-footer-navbar.jpg" alt="">
         </a>
         <h4>Sticky footer with navbar</h4>
-        <p>Attach a footer to the bottom of the viewport along with a fixed navbar at the top.</p>
+        <p>Attach a footer to the bottom of the viewport with a fixed navbar at the top.</p>
       </div>
       <div class="clearfix visible-xs"></div>
 
+      <div class="col-xs-6 col-md-4">
+        <a class="thumbnail" href="../examples/justified-nav/">
+          <img src="../examples/screenshots/justified-nav.jpg" alt="">
+        </a>
+        <h4>Justified nav</h4>
+        <p>Expand on the default navbar and more to create justified navigation links.</p>
+      </div>
       <div class="col-xs-6 col-md-4">
         <a class="thumbnail" href="../examples/offcanvas/">
           <img src="../examples/screenshots/offcanvas.jpg" alt="">
@@ -218,6 +225,8 @@ bootstrap/
         <h4>Offcanvas</h4>
         <p>Build a toggleable off-canvas navigation menu for use with Bootstrap.</p>
       </div>
+      <div class="clearfix visible-xs"></div>
+
       <div class="col-xs-6 col-md-4">
         <a class="thumbnail" href="../examples/carousel/">
           <img src="../examples/screenshots/carousel.jpg" alt="">