]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
overhaul justified nav example
authorMark Otto <otto@github.com>
Fri, 18 Jan 2013 05:05:23 +0000 (21:05 -0800)
committerMark Otto <otto@github.com>
Fri, 18 Jan 2013 05:05:23 +0000 (21:05 -0800)
justified-nav.html
marketing-narrow.html

index ef8f8d428671c4e115bcf389bf98ae2a3d4a0cd1..ec494fa99588d2f886a8ff0ff657f4a021ed1ab9 100644 (file)
@@ -1,18 +1,34 @@
+
 <!DOCTYPE html>
 <html lang="en">
   <head>
     <meta charset="utf-8">
-    <title>Template &middot; Bootstrap</title>
+    <title>Narrow page template &middot; Bootstrap</title>
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="description" content="">
     <meta name="author" content="">
 
-    <!-- Le styles -->
+    <!-- Bootstrap core CSS -->
     <link href="../assets/css/bootstrap.css" rel="stylesheet">
-    <style type="text/css">
+
+    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+    <!--[if lt IE 9]>
+      <script src="../assets/js/html5shiv.js"></script>
+      <script src="../assets/js/respond/respond.min.js"></script>
+    <![endif]-->
+
+    <!-- Fav and touch icons -->
+    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
+    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
+      <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
+                    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
+                                   <link rel="shortcut icon" href="../assets/ico/favicon.png">
+
+    <!-- Custom styles for this template -->
+    <style>
+
       body {
-        padding-top: 20px;
-        padding-bottom: 60px;
+        padding-bottom: 30px;
       }
 
       /* Custom container */
@@ -26,8 +42,8 @@
 
       /* Main marketing message and sign up button */
       .jumbotron {
-        margin: 80px 0;
         text-align: center;
+        background-color: transparent;
       }
       .jumbotron h1 {
         font-size: 100px;
       }
 
 
-      /* Customize the navbar links to be fill the entire space of the .navbar */
-      .navbar .navbar-inner {
-        padding: 0;
-      }
-      .navbar .nav {
-        margin: 0;
-        display: table;
-        width: 100%;
-      }
-      .navbar .nav li {
-        display: table-cell;
-        width: 1%;
-        float: none;
+      /* Customize the nav-justified links to be fill the entire space of the .navbar */
+      .nav-justified {
+        max-height: 50px;
+        background-color: #eee;
+        border-radius: 5px;
       }
-      .navbar .nav li a {
+      .nav-justified li a {
+        padding-top: 15px;
+        padding-bottom: 15px;
+        color: #777;
         font-weight: bold;
         text-align: center;
         border-left: 1px solid rgba(255,255,255,.75);
         border-right: 1px solid rgba(0,0,0,.1);
       }
-      .navbar .nav li:first-child a {
+      .nav-justified .active a {
+        background-color: #ddd;
+      }
+      .nav-justified li:first-child a {
         border-left: 0;
-        border-radius: 3px 0 0 3px;
+        border-top-left-radius: 5px;
+        border-bottom-left-radius: 5px;
       }
-      .navbar .nav li:last-child a {
+      .nav-justified li:last-child a {
         border-right: 0;
-        border-radius: 0 3px 3px 0;
+        border-top-right-radius: 5px;
+        border-bottom-right-radius: 5px;
       }
     </style>
-    <link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
-
-    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
-    <!--[if lt IE 9]>
-      <script src="../assets/js/html5shiv.js"></script>
-    <![endif]-->
-
-    <!-- Fav and touch icons -->
-    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
-    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
-      <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
-                    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
-                                   <link rel="shortcut icon" href="../assets/ico/favicon.png">
   </head>
 
   <body>
 
+
+
     <div class="container">
 
       <div class="masthead">
         <h3 class="muted">Project name</h3>
-        <div class="navbar">
-          <div class="navbar-inner">
-            <div class="container">
-              <ul class="nav">
-                <li class="active"><a href="#">Home</a></li>
-                <li><a href="#">Projects</a></li>
-                <li><a href="#">Services</a></li>
-                <li><a href="#">Downloads</a></li>
-                <li><a href="#">About</a></li>
-                <li><a href="#">Contact</a></li>
-              </ul>
-            </div>
-          </div>
-        </div><!-- /.navbar -->
+        <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>
+          <li><a href="#">Downloads</a></li>
+          <li><a href="#">About</a></li>
+          <li><a href="#">Contact</a></li>
+        </ul>
       </div>
 
       <!-- Jumbotron -->
       <hr>
 
       <!-- Example row of columns -->
-      <div class="row-fluid">
+      <div class="row">
         <div class="span4">
           <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>
 
     </div> <!-- /container -->
 
-    <!-- Le javascript
+
+
+    <!-- Bootstrap core JavaScript
     ================================================== -->
     <!-- Placed at the end of the document so the pages load faster -->
     <script src="../assets/js/jquery.js"></script>
index 6ba0a5ecb3a08c325d18160c4ca16355fd8f0551..bab956c779e09c1bc113827cd2583409d37bec64 100644 (file)
@@ -1,4 +1,3 @@
-
 <!DOCTYPE html>
 <html lang="en">
   <head>