aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/carousel.html814
-rw-r--r--docs/examples/fluid.html163
-rw-r--r--docs/examples/grid.html104
-rw-r--r--docs/examples/hero.html126
-rw-r--r--docs/examples/jumbotron-narrow.html134
-rw-r--r--docs/examples/jumbotron.html112
-rw-r--r--docs/examples/justified-nav.html309
-rw-r--r--docs/examples/marketing-narrow.html137
-rw-r--r--docs/examples/navbar-fixed-top.html67
-rw-r--r--docs/examples/navbar-static-top.html64
-rw-r--r--docs/examples/navbar.html67
-rw-r--r--docs/examples/offcanvas.html205
-rw-r--r--docs/examples/signin.html144
-rw-r--r--docs/examples/starter-template.html122
-rw-r--r--docs/examples/sticky-footer-navbar.html269
-rw-r--r--docs/examples/sticky-footer.html202
16 files changed, 1556 insertions, 1483 deletions
diff --git a/docs/examples/carousel.html b/docs/examples/carousel.html
index 328fe5a1e..7719e804b 100644
--- a/docs/examples/carousel.html
+++ b/docs/examples/carousel.html
@@ -1,454 +1,384 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Carousel 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 -->
- <link href="../assets/css/bootstrap.css" rel="stylesheet">
- <link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
- <style>
-
- /* GLOBAL STYLES
- -------------------------------------------------- */
- /* Padding below the footer and lighter body text */
-
- body {
- padding-bottom: 40px;
- color: #5a5a5a;
- }
-
-
-
- /* CUSTOMIZE THE NAVBAR
- -------------------------------------------------- */
-
- /* Special class on .container surrounding .navbar, used for positioning it into place. */
- .navbar-wrapper {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- z-index: 10;
- margin-top: 20px;
- margin-bottom: -90px; /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */
- }
- .navbar-wrapper .navbar {
-
- }
-
- /* Remove border and change up box shadow for more contrast */
- .navbar .navbar-inner {
- border: 0;
- -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25);
- -moz-box-shadow: 0 2px 10px rgba(0,0,0,.25);
- box-shadow: 0 2px 10px rgba(0,0,0,.25);
- }
-
- /* Downsize the brand/project name a bit */
- .navbar .brand {
- padding: 14px 20px 16px; /* Increase vertical padding to match navbar links */
- font-size: 16px;
- font-weight: bold;
- text-shadow: 0 -1px 0 rgba(0,0,0,.5);
- }
-
- /* Navbar links: increase padding for taller navbar */
- .navbar .nav > li > a {
- padding: 15px 20px;
- }
-
- /* Offset the responsive button for proper vertical alignment */
- .navbar .btn-navbar {
- margin-top: 10px;
- }
-
-
-
- /* CUSTOMIZE THE CAROUSEL
- -------------------------------------------------- */
-
- /* Carousel base class */
- .carousel {
- margin-bottom: 60px;
- }
-
- .carousel .container {
- position: relative;
- z-index: 9;
- }
-
- .carousel-control {
- height: 80px;
- margin-top: 0;
- font-size: 120px;
- text-shadow: 0 1px 1px rgba(0,0,0,.4);
- background-color: transparent;
- border: 0;
- z-index: 10;
- }
-
- .carousel .item {
- height: 500px;
- }
- .carousel img {
- position: absolute;
- top: 0;
- left: 0;
- min-width: 100%;
- height: 500px;
- }
-
- .carousel-caption {
- background-color: transparent;
- position: static;
- max-width: 550px;
- padding: 0 20px;
- margin-top: 200px;
- }
- .carousel-caption h1,
- .carousel-caption .lead {
- margin: 0;
- line-height: 1.25;
- color: #fff;
- text-shadow: 0 1px 1px rgba(0,0,0,.4);
- }
- .carousel-caption .btn {
- margin-top: 10px;
- }
-
-
-
- /* MARKETING CONTENT
- -------------------------------------------------- */
-
- /* Center align the text within the three columns below the carousel */
- .marketing .span4 {
- text-align: center;
- }
- .marketing h2 {
- font-weight: normal;
- }
- .marketing .span4 p {
- margin-left: 10px;
- margin-right: 10px;
- }
-
-
- /* Featurettes
- ------------------------- */
-
- .featurette-divider {
- margin: 80px 0; /* Space out the Bootstrap <hr> more */
- }
- .featurette {
- padding-top: 120px; /* Vertically center images part 1: add padding above and below text. */
- overflow: hidden; /* Vertically center images part 2: clear their floats. */
- }
- .featurette-image {
- margin-top: -120px; /* Vertically center images part 3: negative margin up the image the same amount of the padding to center it. */
- }
-
- /* Give some space on the sides of the floated elements so text doesn't run right into it. */
- .featurette-image.pull-left {
- margin-right: 40px;
- }
- .featurette-image.pull-right {
- margin-left: 40px;
- }
-
- /* Thin out the marketing headings */
- .featurette-heading {
- font-size: 50px;
- font-weight: 300;
- line-height: 1;
- letter-spacing: -1px;
- }
-
-
-
- /* RESPONSIVE CSS
- -------------------------------------------------- */
-
- @media (max-width: 979px) {
-
- .container.navbar-wrapper {
- margin-bottom: 0;
- width: auto;
- }
- .navbar-inner {
- border-radius: 0;
- margin: -20px 0;
- }
-
- .carousel .item {
- height: 500px;
- }
- .carousel img {
- width: auto;
- height: 500px;
- }
-
- .featurette {
- height: auto;
- padding: 0;
- }
- .featurette-image.pull-left,
- .featurette-image.pull-right {
- display: block;
- float: none;
- max-width: 40%;
- margin: 0 auto 20px;
- }
- }
-
-
- @media (max-width: 767px) {
-
- .navbar-inner {
- margin: -20px;
- }
-
- .carousel {
- margin-left: -20px;
- margin-right: -20px;
- }
- .carousel .container {
-
- }
- .carousel .item {
- height: 300px;
- }
- .carousel img {
- height: 300px;
- }
- .carousel-caption {
- width: 65%;
- padding: 0 70px;
- margin-top: 100px;
- }
- .carousel-caption h1 {
- font-size: 30px;
- }
- .carousel-caption .lead,
- .carousel-caption .btn {
- font-size: 18px;
- }
-
- .marketing .span4 + .span4 {
- margin-top: 40px;
- }
-
- .featurette-heading {
- font-size: 30px;
- }
- .featurette .lead {
- font-size: 18px;
- line-height: 1.5;
- }
-
- }
- </style>
-
- <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.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>
-
-
-
- <!-- NAVBAR
- ================================================== -->
- <div class="navbar-wrapper">
- <!-- Wrap the .navbar in .container to center it within the absolutely positioned parent. -->
+---
+layout: example
+title: Carousel template
+---
+
+<!-- Custom styles for this template -->
+<style>
+
+/* GLOBAL STYLES
+-------------------------------------------------- */
+/* Padding below the footer and lighter body text */
+
+body {
+ padding-bottom: 40px;
+ color: #5a5a5a;
+}
+
+
+
+/* CUSTOMIZE THE NAVBAR
+-------------------------------------------------- */
+
+/* Special class on .container surrounding .navbar, used for positioning it into place. */
+.navbar-wrapper {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ z-index: 10;
+}
+
+
+
+/* CUSTOMIZE THE CAROUSEL
+-------------------------------------------------- */
+
+/* Carousel base class */
+.carousel {
+ margin-bottom: 60px;
+}
+/* Since positioning the image, we need to help out the caption */
+.carousel-caption {
+ z-index: 10;
+}
+
+/* Declare heights because of positioning of img element */
+.carousel .item {
+ height: 500px;
+}
+.carousel img {
+ position: absolute;
+ top: 0;
+ left: 0;
+ min-width: 100%;
+ height: 500px;
+}
+
+
+
+/* MARKETING CONTENT
+-------------------------------------------------- */
+
+/* Pad the edges of the mobile views a bit */
+.marketing {
+ padding-left: 15px;
+ padding-right: 15px;
+}
+
+/* Center align the text within the three columns below the carousel */
+.marketing .col-lg-4 {
+ text-align: center;
+ margin-bottom: 20px;
+}
+.marketing h2 {
+ font-weight: normal;
+}
+.marketing .col-lg-4 p {
+ margin-left: 10px;
+ margin-right: 10px;
+}
+
+
+/* Featurettes
+------------------------- */
+
+.featurette-divider {
+ margin: 80px 0; /* Space out the Bootstrap <hr> more */
+}
+.featurette {
+ padding-top: 120px; /* Vertically center images part 1: add padding above and below text. */
+ overflow: hidden; /* Vertically center images part 2: clear their floats. */
+}
+.featurette-image {
+ margin-top: -120px; /* Vertically center images part 3: negative margin up the image the same amount of the padding to center it. */
+}
+
+/* Give some space on the sides of the floated elements so text doesn't run right into it. */
+.featurette-image.pull-left {
+ margin-right: 40px;
+}
+.featurette-image.pull-right {
+ margin-left: 40px;
+}
+
+/* Thin out the marketing headings */
+.featurette-heading {
+ font-size: 50px;
+ font-weight: 300;
+ line-height: 1;
+ letter-spacing: -1px;
+}
+
+
+
+/* RESPONSIVE CSS
+-------------------------------------------------- */
+
+@media (min-width: 768px) {
+
+ /* Remve the edge padding needed for mobile */
+ .marketing {
+ padding-left: 0;
+ padding-right: 0;
+ }
+
+ /* Navbar positioning foo */
+ .navbar-wrapper {
+ margin-top: 20px;
+ margin-bottom: -90px; /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */
+ }
+ /* The navbar becomes detached from the top, so we round the corners */
+ .navbar-wrapper .navbar {
+ border-radius: 4px;
+ }
+
+ /* Bump up size of carousel content */
+ .carousel-caption p {
+ margin-bottom: 20px;
+ font-size: 21px;
+ line-height: 1.4;
+ }
+
+}
+
+
+/*@media (max-width: 979px) {
+
+ .container.navbar-wrapper {
+ margin-bottom: 0;
+ width: auto;
+ }
+
+ .carousel .item {
+ height: 500px;
+ }
+ .carousel img {
+ width: auto;
+ height: 500px;
+ }
+
+ .featurette {
+ height: auto;
+ padding: 0;
+ }
+ .featurette-image.pull-left,
+ .featurette-image.pull-right {
+ display: block;
+ float: none;
+ max-width: 40%;
+ margin: 0 auto 20px;
+ }
+}
+
+
+@media (max-width: 767px) {
+
+ .carousel {
+ margin-left: -20px;
+ margin-right: -20px;
+ }
+ .carousel .container {
+
+ }
+ .carousel .item {
+ height: 300px;
+ }
+ .carousel img {
+ height: 300px;
+ }
+ .carousel-caption {
+ width: 65%;
+ padding: 0 70px;
+ margin-top: 100px;
+ }
+ .carousel-caption h1 {
+ font-size: 30px;
+ }
+ .carousel-caption .lead,
+ .carousel-caption .btn {
+ font-size: 18px;
+ }
+
+ .marketing .col-span-4 + .col-span-4 {
+ margin-top: 40px;
+ }
+
+ .featurette-heading {
+ font-size: 30px;
+ }
+ .featurette .lead {
+ font-size: 18px;
+ line-height: 1.5;
+ }
+
+ .navbar-wrapper {
+ margin-top: 0;
+ }
+
+ .navbar {
+ border-radius: 0;
+ }
+
+ #myCarousel {
+ margin-top: 54px;
+ }
+
+}*/
+</style>
+
+
+
+<!-- NAVBAR
+================================================== -->
+<div class="navbar-wrapper">
+ <div class="container">
+
+ <div class="navbar navbar-inverse navbar-static-top">
<div class="container">
-
- <div class="navbar navbar-inverse">
- <div class="navbar-inner">
- <!-- Responsive Navbar Part 1: Button for triggering responsive navbar (not covered in tutorial). Include responsive CSS to utilize. -->
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </a>
- <a class="brand" href="#">Project name</a>
- <!-- Responsive Navbar Part 2: Place all navbar contents you want collapsed withing .navbar-collapse.collapse. -->
- <div class="nav-collapse collapse">
- <ul class="nav">
- <li class="active"><a href="#">Home</a></li>
- <li><a href="#about">About</a></li>
- <li><a href="#contact">Contact</a></li>
- <!-- Read about Bootstrap dropdowns at http://twitter.github.com/bootstrap/javascript.html#dropdowns -->
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li class="nav-header">Nav header</li>
- <li><a href="#">Separated link</a></li>
- <li><a href="#">One more separated link</a></li>
- </ul>
- </li>
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="#">Project name</a>
+ <div class="nav-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="#">Home</a></li>
+ <li><a href="#about">About</a></li>
+ <li><a href="#contact">Contact</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">Action</a></li>
+ <li><a href="#">Another action</a></li>
+ <li><a href="#">Something else here</a></li>
+ <li class="divider"></li>
+ <li class="nav-header">Nav header</li>
+ <li><a href="#">Separated link</a></li>
+ <li><a href="#">One more separated link</a></li>
</ul>
- </div><!--/.nav-collapse -->
- </div><!-- /.navbar-inner -->
- </div><!-- /.navbar -->
-
- </div> <!-- /.container -->
- </div><!-- /.navbar-wrapper -->
-
-
-
- <!-- Carousel
- ================================================== -->
- <div id="myCarousel" class="carousel slide">
- <div class="carousel-inner">
- <div class="item active">
- <img src="../assets/img/examples/slide-01.jpg" alt="">
- <div class="container">
- <div class="carousel-caption">
- <h1>Example headline.</h1>
- <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
- <a class="btn btn-large btn-primary" href="#">Sign up today</a>
- </div>
- </div>
+ </li>
+ </ul>
</div>
- <div class="item">
- <img src="../assets/img/examples/slide-02.jpg" alt="">
- <div class="container">
- <div class="carousel-caption">
- <h1>Another example headline.</h1>
- <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
- <a class="btn btn-large btn-primary" href="#">Learn more</a>
- </div>
- </div>
+ </div>
+ </div>
+
+ </div>
+</div>
+
+
+<!-- Carousel
+================================================== -->
+<div id="myCarousel" class="carousel slide">
+ <!-- Indicators -->
+ <ol class="carousel-indicators">
+ <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
+ <li data-target="#myCarousel" data-slide-to="1"></li>
+ <li data-target="#myCarousel" data-slide-to="2"></li>
+ </ol>
+ <div class="carousel-inner">
+ <div class="item active">
+ <img data-src="holder.js/1500x500/auto/#777:#7a7a7a/text:First slide" alt="">
+ <div class="container">
+ <div class="carousel-caption">
+ <h1>Example headline.</h1>
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
+ <p><a class="btn btn-large btn-primary" href="#">Sign up today</a></p>
</div>
- <div class="item">
- <img src="../assets/img/examples/slide-03.jpg" alt="">
- <div class="container">
- <div class="carousel-caption">
- <h1>One more for good measure.</h1>
- <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
- <a class="btn btn-large btn-primary" href="#">Browse gallery</a>
- </div>
- </div>
+ </div>
+ </div>
+ <div class="item">
+ <img data-src="holder.js/1500x500/auto/#777:#7a7a7a/text:Second slide" alt="">
+ <div class="container">
+ <div class="carousel-caption">
+ <h1>Another example headline.</h1>
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
+ <p><a class="btn btn-large btn-primary" href="#">Learn more</a></p>
</div>
</div>
- <a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a>
- <a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a>
- </div><!-- /.carousel -->
-
-
-
- <!-- Marketing messaging and featurettes
- ================================================== -->
- <!-- Wrap the rest of the page in another container to center all the content. -->
-
- <div class="container marketing">
-
- <!-- Three columns of text below the carousel -->
- <div class="row">
- <div class="span4">
- <img class="img-circle" data-src="holder.js/140x140">
- <h2>Heading</h2>
- <p>Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div><!-- /.span4 -->
- <div class="span4">
- <img class="img-circle" data-src="holder.js/140x140">
- <h2>Heading</h2>
- <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div><!-- /.span4 -->
- <div class="span4">
- <img class="img-circle" data-src="holder.js/140x140">
- <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 justo sit amet risus.</p>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div><!-- /.span4 -->
- </div><!-- /.row -->
-
-
- <!-- START THE FEATURETTES -->
-
- <hr class="featurette-divider">
-
- <div class="featurette">
- <img class="featurette-image pull-right" src="../assets/img/examples/browser-icon-chrome.png">
- <h2 class="featurette-heading">First featurette headling. <span class="muted">It'll blow your mind.</span></h2>
- <p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
+ </div>
+ <div class="item">
+ <img data-src="holder.js/1500x500/auto/#777:#7a7a7a/text:Third slide" alt="">
+ <div class="container">
+ <div class="carousel-caption">
+ <h1>One more for good measure.</h1>
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
+ <p><a class="btn btn-large btn-primary" href="#">Browse gallery</a></p>
+ </div>
</div>
+ </div>
+ </div>
+ <a class="left carousel-control" href="#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
+ <a class="right carousel-control" href="#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
+</div><!-- /.carousel -->
- <hr class="featurette-divider">
- <div class="featurette">
- <img class="featurette-image pull-left" src="../assets/img/examples/browser-icon-firefox.png">
- <h2 class="featurette-heading">Oh yeah, it's that good. <span class="muted">See for yourself.</span></h2>
- <p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
- </div>
- <hr class="featurette-divider">
+<!-- Marketing messaging and featurettes
+================================================== -->
+<!-- Wrap the rest of the page in another container to center all the content. -->
- <div class="featurette">
- <img class="featurette-image pull-right" src="../assets/img/examples/browser-icon-safari.png">
- <h2 class="featurette-heading">And lastly, this one. <span class="muted">Checkmate.</span></h2>
- <p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
- </div>
+<div class="container marketing">
+
+ <!-- Three columns of text below the carousel -->
+ <div class="row">
+ <div class="col-lg-4">
+ <img class="img-circle" data-src="holder.js/140x140">
+ <h2>Heading</h2>
+ <p>Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna.</p>
+ <p><a class="btn btn-default" href="#">View details &raquo;</a></p>
+ </div><!-- /.col-lg-4 -->
+ <div class="col-lg-4">
+ <img class="img-circle" data-src="holder.js/140x140">
+ <h2>Heading</h2>
+ <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.</p>
+ <p><a class="btn btn-default" href="#">View details &raquo;</a></p>
+ </div><!-- /.col-lg-4 -->
+ <div class="col-lg-4">
+ <img class="img-circle" data-src="holder.js/140x140">
+ <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 justo sit amet risus.</p>
+ <p><a class="btn btn-default" href="#">View details &raquo;</a></p>
+ </div><!-- /.col-lg-4 -->
+ </div><!-- /.row -->
+
+
+ <!-- START THE FEATURETTES -->
+
+ <hr class="featurette-divider">
+
+ <div class="featurette">
+ <img class="featurette-image img-circle pull-right" data-src="holder.js/512x512">
+ <h2 class="featurette-heading">First featurette heading. <span class="text-muted">It'll blow your mind.</span></h2>
+ <p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
+ </div>
+
+ <hr class="featurette-divider">
+
+ <div class="featurette">
+ <img class="featurette-image img-circle pull-left" data-src="holder.js/512x512">
+ <h2 class="featurette-heading">Oh yeah, it's that good. <span class="text-muted">See for yourself.</span></h2>
+ <p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
+ </div>
+
+ <hr class="featurette-divider">
+
+ <div class="featurette">
+ <img class="featurette-image img-circle pull-right" data-src="holder.js/512x512">
+ <h2 class="featurette-heading">And lastly, this one. <span class="text-muted">Checkmate.</span></h2>
+ <p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
+ </div>
+
+ <hr class="featurette-divider">
+
+ <!-- /END THE FEATURETTES -->
+
+
+ <!-- FOOTER -->
+ <footer>
+ <p class="pull-right"><a href="#">Back to top</a></p>
+ <p>&copy; 2013 Company, Inc. &middot; <a href="#">Privacy</a> &middot; <a href="#">Terms</a></p>
+ </footer>
- <hr class="featurette-divider">
-
- <!-- /END THE FEATURETTES -->
-
-
- <!-- FOOTER -->
- <footer>
- <p class="pull-right"><a href="#">Back to top</a></p>
- <p>&copy; 2013 Company, Inc. &middot; <a href="#">Privacy</a> &middot; <a href="#">Terms</a></p>
- </footer>
-
- </div><!-- /.container -->
-
-
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="../assets/js/jquery.js"></script>
- <script src="../assets/js/bootstrap-transition.js"></script>
- <script src="../assets/js/bootstrap-alert.js"></script>
- <script src="../assets/js/bootstrap-modal.js"></script>
- <script src="../assets/js/bootstrap-dropdown.js"></script>
- <script src="../assets/js/bootstrap-scrollspy.js"></script>
- <script src="../assets/js/bootstrap-tab.js"></script>
- <script src="../assets/js/bootstrap-tooltip.js"></script>
- <script src="../assets/js/bootstrap-popover.js"></script>
- <script src="../assets/js/bootstrap-button.js"></script>
- <script src="../assets/js/bootstrap-collapse.js"></script>
- <script src="../assets/js/bootstrap-carousel.js"></script>
- <script src="../assets/js/bootstrap-typeahead.js"></script>
- <script>
- !function ($) {
- $(function(){
- // carousel demo
- $('#myCarousel').carousel()
- })
- }(window.jQuery)
- </script>
- <script src="../assets/js/holder/holder.js"></script>
- </body>
-</html>
+</div><!-- /.container -->
diff --git a/docs/examples/fluid.html b/docs/examples/fluid.html
deleted file mode 100644
index 242050ab8..000000000
--- a/docs/examples/fluid.html
+++ /dev/null
@@ -1,163 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Bootstrap, from Twitter</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="author" content="">
-
- <!-- Le styles -->
- <link href="../assets/css/bootstrap.css" rel="stylesheet">
- <style type="text/css">
- body {
- padding-top: 60px;
- padding-bottom: 40px;
- }
- .sidebar-nav {
- padding: 9px 0;
- }
-
- @media (max-width: 980px) {
- /* Enable use of floated navbar text */
- .navbar-text.pull-right {
- float: none;
- padding-left: 5px;
- padding-right: 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="http://html5shim.googlecode.com/svn/trunk/html5.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="navbar navbar-inverse navbar-fixed-top">
- <div class="navbar-inner">
- <div class="container-fluid">
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </a>
- <a class="brand" href="#">Project name</a>
- <div class="nav-collapse collapse">
- <p class="navbar-text pull-right">
- Logged in as <a href="#" class="navbar-link">Username</a>
- </p>
- <ul class="nav">
- <li class="active"><a href="#">Home</a></li>
- <li><a href="#about">About</a></li>
- <li><a href="#contact">Contact</a></li>
- </ul>
- </div><!--/.nav-collapse -->
- </div>
- </div>
- </div>
-
- <div class="container-fluid">
- <div class="row-fluid">
- <div class="span3">
- <div class="well sidebar-nav">
- <ul class="nav nav-list">
- <li class="nav-header">Sidebar</li>
- <li class="active"><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li class="nav-header">Sidebar</li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li class="nav-header">Sidebar</li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- </ul>
- </div><!--/.well -->
- </div><!--/span-->
- <div class="span9">
- <div class="hero-unit">
- <h1>Hello, world!</h1>
- <p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
- <p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>
- </div>
- <div class="row-fluid">
- <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>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div><!--/span-->
- <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>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div><!--/span-->
- <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>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div><!--/span-->
- </div><!--/row-->
- <div class="row-fluid">
- <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>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div><!--/span-->
- <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>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div><!--/span-->
- <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>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div><!--/span-->
- </div><!--/row-->
- </div><!--/span-->
- </div><!--/row-->
-
- <hr>
-
- <footer>
- <p>&copy; Company 2013</p>
- </footer>
-
- </div><!--/.fluid-container-->
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="../assets/js/jquery.js"></script>
- <script src="../assets/js/bootstrap-transition.js"></script>
- <script src="../assets/js/bootstrap-alert.js"></script>
- <script src="../assets/js/bootstrap-modal.js"></script>
- <script src="../assets/js/bootstrap-dropdown.js"></script>
- <script src="../assets/js/bootstrap-scrollspy.js"></script>
- <script src="../assets/js/bootstrap-tab.js"></script>
- <script src="../assets/js/bootstrap-tooltip.js"></script>
- <script src="../assets/js/bootstrap-popover.js"></script>
- <script src="../assets/js/bootstrap-button.js"></script>
- <script src="../assets/js/bootstrap-collapse.js"></script>
- <script src="../assets/js/bootstrap-carousel.js"></script>
- <script src="../assets/js/bootstrap-typeahead.js"></script>
-
- </body>
-</html>
diff --git a/docs/examples/grid.html b/docs/examples/grid.html
new file mode 100644
index 000000000..14e8ecdf6
--- /dev/null
+++ b/docs/examples/grid.html
@@ -0,0 +1,104 @@
+---
+layout: example
+title: Grid template
+---
+
+<!-- Custom styles for this template -->
+<style>
+
+ .container {
+ padding-left: 15px;
+ padding-right: 15px;
+ }
+
+ h4 {
+ margin-top: 25px;
+ }
+ .row {
+ margin-bottom: 20px;
+ }
+ .row .row {
+ margin-top: 10px;
+ margin-bottom: 0;
+ }
+ [class*="col-lg-"] {
+ padding-top: 15px;
+ padding-bottom: 15px;
+ background-color: rgba(185,74,72,.15);
+ border: 1px solid rgba(185,74,72,.2);
+ }
+</style>
+
+
+<div class="container">
+
+ <h2>Bootstrap grids</h2>
+ <p class="lead">Basic grid layouts to get you familiar with building within the Bootstrap grid system.</p>
+
+ <h4>Three equal columns</h4>
+ <div class="row">
+ <div class="col-lg-4">.col-lg-4</div>
+ <div class="col-lg-4">.col-lg-4</div>
+ <div class="col-lg-4">.col-lg-4</div>
+ </div>
+
+ <h4>Three unequal columns</h4>
+ <div class="row">
+ <div class="col-lg-3">.col-lg-3</div>
+ <div class="col-lg-6">.col-lg-6</div>
+ <div class="col-lg-3">.col-lg-3</div>
+ </div>
+
+ <h4>Two columns</h4>
+ <div class="row">
+ <div class="col-lg-8">.col-lg-8</div>
+ <div class="col-lg-4">.col-lg-4</div>
+ </div>
+
+ <h4>Full width, single column</h4>
+ <p class="text-warning">No grid classes are necessary for full-width elements.</p>
+
+ <h4>Two columns with two nested columns</h4>
+ <div class="row">
+ <div class="col-lg-8">
+ .col-lg-8
+ <div class="row">
+ <div class="col-lg-6">.col-lg-6</div>
+ <div class="col-lg-6">.col-lg-6</div>
+ </div>
+ </div>
+ <div class="col-lg-4">.col-lg-4</div>
+ </div>
+
+ <h4>Mixed: mobile and desktop</h4>
+ <div class="row">
+ <div class="col-12 col-lg-8">.col-12 .col-lg-8</div>
+ <div class="col-6 col-lg-4">.col-6 .col-lg-4</div>
+ </div>
+ <div class="row">
+ <div class="col-6 col-lg-4">.col-6 .col-lg-4</div>
+ <div class="col-6 col-lg-4">.col-6 .col-lg-4</div>
+ <div class="col-6 col-lg-4">.col-6 .col-lg-4</div>
+ </div>
+ <div class="row">
+ <div class="col-6 col-lg-6">.col-6 .col-lg-6</div>
+ <div class="col-6 col-lg-6">.col-6 .col-lg-6</div>
+ </div>
+
+ <h4>Mixed: mobile, tablet, and desktop</h4>
+ <div class="row">
+ <div class="col-12 col-sm-8 col-lg-8">.col-12 .col-lg-8</div>
+ <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
+ </div>
+ <div class="row">
+ <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
+ <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
+ <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
+ </div>
+ <div class="row">
+ <div class="col-6 col-sm-6 col-lg-6">.col-6 .col-lg-6</div>
+ <div class="col-6 col-sm-6 col-lg-6">.col-6 .col-lg-6</div>
+ </div>
+
+
+</div> <!-- /container -->
diff --git a/docs/examples/hero.html b/docs/examples/hero.html
deleted file mode 100644
index 6c585eac2..000000000
--- a/docs/examples/hero.html
+++ /dev/null
@@ -1,126 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Bootstrap, from Twitter</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="author" content="">
-
- <!-- Le styles -->
- <link href="../assets/css/bootstrap.css" rel="stylesheet">
- <style type="text/css">
- body {
- padding-top: 60px;
- padding-bottom: 40px;
- }
- </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="http://html5shim.googlecode.com/svn/trunk/html5.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="navbar navbar-inverse navbar-fixed-top">
- <div class="navbar-inner">
- <div class="container">
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </a>
- <a class="brand" href="#">Project name</a>
- <div class="nav-collapse collapse">
- <ul class="nav">
- <li class="active"><a href="#">Home</a></li>
- <li><a href="#about">About</a></li>
- <li><a href="#contact">Contact</a></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li class="nav-header">Nav header</li>
- <li><a href="#">Separated link</a></li>
- <li><a href="#">One more separated link</a></li>
- </ul>
- </li>
- </ul>
- <form class="navbar-form pull-right">
- <input class="span2" type="text" placeholder="Email">
- <input class="span2" type="password" placeholder="Password">
- <button type="submit" class="btn">Sign in</button>
- </form>
- </div><!--/.nav-collapse -->
- </div>
- </div>
- </div>
-
- <div class="container">
-
- <!-- Main hero unit for a primary marketing message or call to action -->
- <div class="hero-unit">
- <h1>Hello, world!</h1>
- <p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
- <p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>
- </div>
-
- <!-- Example row of columns -->
- <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>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div>
- <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>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div>
- <div class="span4">
- <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 justo sit amet risus.</p>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div>
- </div>
-
- <hr>
-
- <footer>
- <p>&copy; Company 2013</p>
- </footer>
-
- </div> <!-- /container -->
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="../assets/js/jquery.js"></script>
- <script src="../assets/js/bootstrap-transition.js"></script>
- <script src="../assets/js/bootstrap-alert.js"></script>
- <script src="../assets/js/bootstrap-modal.js"></script>
- <script src="../assets/js/bootstrap-dropdown.js"></script>
- <script src="../assets/js/bootstrap-scrollspy.js"></script>
- <script src="../assets/js/bootstrap-tab.js"></script>
- <script src="../assets/js/bootstrap-tooltip.js"></script>
- <script src="../assets/js/bootstrap-popover.js"></script>
- <script src="../assets/js/bootstrap-button.js"></script>
- <script src="../assets/js/bootstrap-collapse.js"></script>
- <script src="../assets/js/bootstrap-carousel.js"></script>
- <script src="../assets/js/bootstrap-typeahead.js"></script>
-
- </body>
-</html>
diff --git a/docs/examples/jumbotron-narrow.html b/docs/examples/jumbotron-narrow.html
new file mode 100644
index 000000000..b94b00096
--- /dev/null
+++ b/docs/examples/jumbotron-narrow.html
@@ -0,0 +1,134 @@
+---
+layout: example
+title: Narrow page template
+---
+
+<!-- Custom styles for this template -->
+<style>
+ /* Space out content a bit */
+ body {
+ padding-top: 20px;
+ padding-bottom: 20px;
+ }
+
+ /* Everything but the jumbotron gets side spacing for mobile-first views */
+ .header,
+ .marketing,
+ .footer {
+ padding-left: 15px;
+ padding-right: 15px;
+ }
+
+ /* Custom page header */
+ .header {
+ border-bottom: 1px solid #e5e5e5;
+ }
+ /* Make the masthead heading the same height as the navigation */
+ .header h3 {
+ margin-top: 0;
+ margin-bottom: 0;
+ line-height: 40px;
+ padding-bottom: 19px;
+ }
+
+ /* Custom page footer */
+ .footer {
+ padding-top: 19px;
+ color: #777;
+ border-top: 1px solid #e5e5e5;
+ }
+
+ /* Custom container */
+ .container-narrow {
+ margin: 0 auto;
+ max-width: 700px;
+ }
+ .container-narrow > hr {
+ margin: 30px 0;
+ }
+
+ /* Main marketing message and sign up button */
+ .jumbotron {
+ text-align: center;
+ border-bottom: 1px solid #e5e5e5;
+ }
+ .jumbotron .btn {
+ font-size: 21px;
+ padding: 14px 24px;
+ }
+
+ /* Supporting marketing content */
+ .marketing {
+ margin: 40px 0;
+ }
+ .marketing p + h4 {
+ margin-top: 28px;
+ }
+
+ /* Responsive: Portrait tablets and up */
+ @media screen and (min-width: 768px) {
+ /* Remove the padding we set earlier */
+ .header,
+ .marketing,
+ .footer {
+ padding-left: 0;
+ padding-right: 0;
+ }
+ /* Space out the masthead */
+ .header {
+ margin-bottom: 30px;
+ }
+ /* Remove the bottom border on the jumbotron for visual effect */
+ .jumbotron {
+ border-bottom: 0;
+ }
+ }
+</style>
+
+
+
+<div class="container-narrow">
+ <div class="header">
+ <ul class="nav nav-pills pull-right">
+ <li class="active"><a href="#">Home</a></li>
+ <li><a href="#">About</a></li>
+ <li><a href="#">Contact</a></li>
+ </ul>
+ <h3 class="text-muted">Project name</h3>
+ </div>
+
+ <div class="jumbotron">
+ <h1>Jumbotron heading</h1>
+ <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
+ <p><a class="btn btn-large btn-success" href="#">Sign up today</a></p>
+ </div>
+
+ <div class="row marketing">
+ <div class="col-lg-6">
+ <h4>Subheading</h4>
+ <p>Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum.</p>
+
+ <h4>Subheading</h4>
+ <p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
+
+ <h4>Subheading</h4>
+ <p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
+ </div>
+
+ <div class="col-lg-6">
+ <h4>Subheading</h4>
+ <p>Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum.</p>
+
+ <h4>Subheading</h4>
+ <p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
+
+ <h4>Subheading</h4>
+ <p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
+ </div>
+ </div>
+
+ <div class="footer">
+ <p>&copy; Company 2013</p>
+ </div>
+
+</div> <!-- /container -->
diff --git a/docs/examples/jumbotron.html b/docs/examples/jumbotron.html
new file mode 100644
index 000000000..897313449
--- /dev/null
+++ b/docs/examples/jumbotron.html
@@ -0,0 +1,112 @@
+---
+layout: example
+title: Jumbotron template
+---
+
+<!-- Custom styles for this template -->
+<style>
+ /* Move down content because we have a fixed navbar that is 50px tall */
+ body {
+ padding-top: 50px;
+ padding-bottom: 20px;
+ }
+
+ /* Set widths on the navbar form inputs since otherwise they're 100% wide */
+ .navbar-form input[type="text"],
+ .navbar-form input[type="password"] {
+ width: 180px;
+ }
+
+ /* Wrapping element */
+ /* Set some basic padding to keep content from hitting the edges */
+ .body-content {
+ padding-left: 15px;
+ padding-right: 15px;
+ }
+
+ /* Responsive: Portrait tablets and up */
+ @media screen and (min-width: 768px) {
+ /* Let the jumbotron breathe */
+ .jumbotron {
+ margin-top: 20px;
+ }
+ /* Remove padding from wrapping element since we kick in the grid classes here */
+ .body-content {
+ padding: 0;
+ }
+ }
+</style>
+
+<div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="container">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="#">Project name</a>
+ <div class="nav-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="#">Home</a></li>
+ <li><a href="#about">About</a></li>
+ <li><a href="#contact">Contact</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">Action</a></li>
+ <li><a href="#">Another action</a></li>
+ <li><a href="#">Something else here</a></li>
+ <li class="divider"></li>
+ <li class="nav-header">Nav header</li>
+ <li><a href="#">Separated link</a></li>
+ <li><a href="#">One more separated link</a></li>
+ </ul>
+ </li>
+ </ul>
+ <form class="navbar-form form-inline pull-right">
+ <input type="text" placeholder="Email">
+ <input type="password" placeholder="Password">
+ <button type="submit" class="btn">Sign in</button>
+ </form>
+ </div><!--/.nav-collapse -->
+ </div>
+</div>
+
+<div class="container">
+
+ <!-- Main jumbotron for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Hello, world!</h1>
+ <p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
+ <p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>
+ </div>
+
+ <div class="body-content">
+
+ <!-- Example row of columns -->
+ <div class="row">
+ <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>
+ </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>
+ </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 justo sit amet risus.</p>
+ <p><a class="btn btn-default" href="#">View details &raquo;</a></p>
+ </div>
+ </div>
+
+ <hr>
+
+ <footer>
+ <p>&copy; Company 2013</p>
+ </footer>
+ </div>
+
+</div> <!-- /container -->
diff --git a/docs/examples/justified-nav.html b/docs/examples/justified-nav.html
index 9071a8d81..edf8cfae6 100644
--- a/docs/examples/justified-nav.html
+++ b/docs/examples/justified-nav.html
@@ -1,174 +1,145 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>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 -->
- <link href="../assets/css/bootstrap.css" rel="stylesheet">
- <style type="text/css">
- body {
- padding-top: 20px;
- padding-bottom: 60px;
- }
-
- /* Custom container */
- .container {
- margin: 0 auto;
- max-width: 1000px;
- }
- .container > hr {
- margin: 60px 0;
- }
-
- /* Main marketing message and sign up button */
- .jumbotron {
- margin: 80px 0;
- text-align: center;
- }
- .jumbotron h1 {
- font-size: 100px;
- line-height: 1;
- }
- .jumbotron .lead {
- font-size: 24px;
- line-height: 1.25;
- }
- .jumbotron .btn {
- font-size: 21px;
- padding: 14px 24px;
- }
-
- /* Supporting marketing content */
- .marketing {
- margin: 60px 0;
- }
- .marketing p + h4 {
- margin-top: 28px;
- }
-
-
- /* 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;
- }
- .navbar .nav li a {
- 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 {
- border-left: 0;
- border-radius: 3px 0 0 3px;
- }
- .navbar .nav li:last-child a {
- border-right: 0;
- border-radius: 0 3px 3px 0;
- }
- </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="http://html5shim.googlecode.com/svn/trunk/html5.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 -->
+---
+layout: example
+title: Justified nav template
+---
+
+<!-- Custom styles for this template -->
+<style>
+
+ body {
+ padding-top: 20px;
+ }
+
+ /* 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;
+ }
+
+ /* Main marketing message and sign up button */
+ .jumbotron {
+ text-align: center;
+ background-color: transparent;
+ }
+ .jumbotron .btn {
+ font-size: 21px;
+ padding: 14px 24px;
+ }
+
+ /* 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;
+ border: 1px solid #ccc;
+ }
+ .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);
+ background-color: #e5e5e5; /* Old browsers */
+ background-repeat: repeat-x; /* Repeat the gradient */
+ background-image: -moz-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%); /* FF3.6+ */
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
+ background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Chrome 10+,Safari 5.1+ */
+ background-image: -ms-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* IE10+ */
+ background-image: -o-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Opera 11.10+ */
+ 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 {
+ background-color: #ddd;
+ background-image: none;
+ box-shadow: inset 0 3px 7px rgba(0,0,0,.15);
+ }
+ .nav-justified > li:first-child > a {
+ border-left: 0;
+ border-top-left-radius: 5px;
+ border-bottom-left-radius: 5px;
+ }
+ .nav-justified > li:last-child > a {
+ border-right: 0;
+ border-top-right-radius: 5px;
+ border-bottom-right-radius: 5px;
+ }
+
+
+ /* Responsive: Portrait tablets and up */
+ @media screen and (min-width: 768px) {
+ /* Remove the padding we set earlier */
+ .masthead,
+ .marketing,
+ .footer {
+ padding-left: 0;
+ padding-right: 0;
+ }
+ }
+
+</style>
+
+
+
+<div class="container">
+
+ <div class="masthead">
+ <h3 class="text-muted">Project name</h3>
+ <ul class="nav navbar-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 -->
+ <div class="jumbotron">
+ <h1>Marketing stuff!</h1>
+ <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet.</p>
+ <p><a class="btn btn-large btn-success" href="#">Get started today</a></p>
+ </div>
+
+
+ <div class="body-content">
+
+ <!-- Example row of columns -->
+ <div class="row">
+ <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>
</div>
-
- <!-- Jumbotron -->
- <div class="jumbotron">
- <h1>Marketing stuff!</h1>
- <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
- <a class="btn btn-large btn-success" href="#">Get started today</a>
- </div>
-
- <hr>
-
- <!-- Example row of columns -->
- <div class="row-fluid">
- <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>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div>
- <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>
- <p><a class="btn" href="#">View details &raquo;</a></p>
- </div>
- <div class="span4">
- <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" 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>
+ </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>
</div>
+ </div>
- <hr>
+ </div><!-- /.body-content -->
- <div class="footer">
- <p>&copy; Company 2013</p>
- </div>
+ <!-- Site footer -->
+ <div class="footer">
+ <p>&copy; Company 2013</p>
+ </div>
- </div> <!-- /container -->
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="../assets/js/jquery.js"></script>
- <script src="../assets/js/bootstrap-transition.js"></script>
- <script src="../assets/js/bootstrap-alert.js"></script>
- <script src="../assets/js/bootstrap-modal.js"></script>
- <script src="../assets/js/bootstrap-dropdown.js"></script>
- <script src="../assets/js/bootstrap-scrollspy.js"></script>
- <script src="../assets/js/bootstrap-tab.js"></script>
- <script src="../assets/js/bootstrap-tooltip.js"></script>
- <script src="../assets/js/bootstrap-popover.js"></script>
- <script src="../assets/js/bootstrap-button.js"></script>
- <script src="../assets/js/bootstrap-collapse.js"></script>
- <script src="../assets/js/bootstrap-carousel.js"></script>
- <script src="../assets/js/bootstrap-typeahead.js"></script>
-
- </body>
-</html>
+</div> <!-- /container -->
diff --git a/docs/examples/marketing-narrow.html b/docs/examples/marketing-narrow.html
deleted file mode 100644
index 996f8a1da..000000000
--- a/docs/examples/marketing-narrow.html
+++ /dev/null
@@ -1,137 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>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 -->
- <link href="../assets/css/bootstrap.css" rel="stylesheet">
- <style type="text/css">
- body {
- padding-top: 20px;
- padding-bottom: 40px;
- }
-
- /* Custom container */
- .container-narrow {
- margin: 0 auto;
- max-width: 700px;
- }
- .container-narrow > hr {
- margin: 30px 0;
- }
-
- /* Main marketing message and sign up button */
- .jumbotron {
- margin: 60px 0;
- text-align: center;
- }
- .jumbotron h1 {
- font-size: 72px;
- line-height: 1;
- }
- .jumbotron .btn {
- font-size: 21px;
- padding: 14px 24px;
- }
-
- /* Supporting marketing content */
- .marketing {
- margin: 60px 0;
- }
- .marketing p + h4 {
- margin-top: 28px;
- }
- </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="http://html5shim.googlecode.com/svn/trunk/html5.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-narrow">
-
- <div class="masthead">
- <ul class="nav nav-pills pull-right">
- <li class="active"><a href="#">Home</a></li>
- <li><a href="#">About</a></li>
- <li><a href="#">Contact</a></li>
- </ul>
- <h3 class="muted">Project name</h3>
- </div>
-
- <hr>
-
- <div class="jumbotron">
- <h1>Super awesome marketing speak!</h1>
- <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
- <a class="btn btn-large btn-success" href="#">Sign up today</a>
- </div>
-
- <hr>
-
- <div class="row-fluid marketing">
- <div class="span6">
- <h4>Subheading</h4>
- <p>Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum.</p>
-
- <h4>Subheading</h4>
- <p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
-
- <h4>Subheading</h4>
- <p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
- </div>
-
- <div class="span6">
- <h4>Subheading</h4>
- <p>Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum.</p>
-
- <h4>Subheading</h4>
- <p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
-
- <h4>Subheading</h4>
- <p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
- </div>
- </div>
-
- <hr>
-
- <div class="footer">
- <p>&copy; Company 2013</p>
- </div>
-
- </div> <!-- /container -->
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="../assets/js/jquery.js"></script>
- <script src="../assets/js/bootstrap-transition.js"></script>
- <script src="../assets/js/bootstrap-alert.js"></script>
- <script src="../assets/js/bootstrap-modal.js"></script>
- <script src="../assets/js/bootstrap-dropdown.js"></script>
- <script src="../assets/js/bootstrap-scrollspy.js"></script>
- <script src="../assets/js/bootstrap-tab.js"></script>
- <script src="../assets/js/bootstrap-tooltip.js"></script>
- <script src="../assets/js/bootstrap-popover.js"></script>
- <script src="../assets/js/bootstrap-button.js"></script>
- <script src="../assets/js/bootstrap-collapse.js"></script>
- <script src="../assets/js/bootstrap-carousel.js"></script>
- <script src="../assets/js/bootstrap-typeahead.js"></script>
-
- </body>
-</html>
diff --git a/docs/examples/navbar-fixed-top.html b/docs/examples/navbar-fixed-top.html
new file mode 100644
index 000000000..2f73f08e4
--- /dev/null
+++ b/docs/examples/navbar-fixed-top.html
@@ -0,0 +1,67 @@
+---
+layout: example
+title: Fixed navbar template
+---
+
+<!-- Custom styles for this template -->
+<style>
+
+ body {
+ padding-top: 60px;
+ }
+
+ .jumbotron {
+ margin-top: 20px;
+ }
+
+</style>
+
+
+ <!-- Fixed navbar -->
+ <div class="navbar navbar-fixed-top">
+ <div class="container">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="#">Project name</a>
+ <div class="nav-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="#">Home</a></li>
+ <li><a href="#about">About</a></li>
+ <li><a href="#contact">Contact</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">Action</a></li>
+ <li><a href="#">Another action</a></li>
+ <li><a href="#">Something else here</a></li>
+ <li class="divider"></li>
+ <li class="nav-header">Nav header</li>
+ <li><a href="#">Separated link</a></li>
+ <li><a href="#">One more separated link</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav pull-right">
+ <li><a href="/examples/navbar/">Default</a></li>
+ <li><a href="/examples/navbar-static-top/">Static top</a></li>
+ <li class="active"><a href="/examples/navbar-fixed-top/">Fixed top</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div>
+ </div>
+
+ <div class="container">
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Navbar example</h1>
+ <p>This example is a quick exercise to illustrate how the default, static navbar and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
+ <p>
+ <a class="btn btn-large btn-primary" href="../../docs/#navbar">View navbar docs &raquo;</a>
+ </p>
+ </div>
+
+ </div> <!-- /container -->
diff --git a/docs/examples/navbar-static-top.html b/docs/examples/navbar-static-top.html
new file mode 100644
index 000000000..f22746900
--- /dev/null
+++ b/docs/examples/navbar-static-top.html
@@ -0,0 +1,64 @@
+---
+layout: example
+title: Static navbar template
+---
+
+<!-- Custom styles for this template -->
+<style>
+
+ .jumbotron {
+ margin-top: 30px;
+ }
+
+</style>
+
+
+<!-- Static navbar -->
+<div class="navbar navbar-static-top">
+ <div class="container">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="#">Project name</a>
+ <div class="nav-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="#">Home</a></li>
+ <li><a href="#about">About</a></li>
+ <li><a href="#contact">Contact</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">Action</a></li>
+ <li><a href="#">Another action</a></li>
+ <li><a href="#">Something else here</a></li>
+ <li class="divider"></li>
+ <li class="nav-header">Nav header</li>
+ <li><a href="#">Separated link</a></li>
+ <li><a href="#">One more separated link</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav pull-right">
+ <li><a href="/examples/navbar/">Default</a></li>
+ <li class="active"><a href="/examples/navbar-static-top/">Static top</a></li>
+ <li><a href="/examples/navbar-fixed-top/">Fixed top</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div>
+</div>
+
+
+<div class="container">
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Navbar example</h1>
+ <p>This example is a quick exercise to illustrate how the default, static navbar and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
+ <p>
+ <a class="btn btn-large btn-primary" href="../../docs/#navbar">View navbar docs &raquo;</a>
+ </p>
+ </div>
+
+</div> <!-- /container -->
diff --git a/docs/examples/navbar.html b/docs/examples/navbar.html
new file mode 100644
index 000000000..f8b25482e
--- /dev/null
+++ b/docs/examples/navbar.html
@@ -0,0 +1,67 @@
+---
+layout: example
+title: Navbar template
+---
+
+<!-- Custom styles for this template -->
+<style>
+
+ body {
+ padding: 30px;
+ }
+
+ .navbar {
+ margin-bottom: 30px;
+ }
+
+</style>
+
+
+<div class="container">
+
+ <!-- Static navbar -->
+ <div class="navbar">
+ <div class="container">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="#">Project name</a>
+ <div class="nav-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="#">Home</a></li>
+ <li><a href="#about">About</a></li>
+ <li><a href="#contact">Contact</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">Action</a></li>
+ <li><a href="#">Another action</a></li>
+ <li><a href="#">Something else here</a></li>
+ <li class="divider"></li>
+ <li class="nav-header">Nav header</li>
+ <li><a href="#">Separated link</a></li>
+ <li><a href="#">One more separated link</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav pull-right">
+ <li class="active"><a href="/examples/navbar/">Default</a></li>
+ <li><a href="/examples/navbar-static-top/">Static top</a></li>
+ <li><a href="/examples/navbar-fixed-top/">Fixed top</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div>
+ </div>
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Navbar example</h1>
+ <p>This example is a quick exercise to illustrate how the default, static navbar and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
+ <p>
+ <a class="btn btn-large btn-primary" href="../../docs/#navbar">View navbar docs &raquo;</a>
+ </p>
+ </div>
+
+</div> <!-- /container -->
diff --git a/docs/examples/offcanvas.html b/docs/examples/offcanvas.html
new file mode 100644
index 000000000..c93578e2b
--- /dev/null
+++ b/docs/examples/offcanvas.html
@@ -0,0 +1,205 @@
+---
+layout: example
+title: Static navbar template
+---
+
+<!-- Custom styles for this template -->
+<style>
+ body {
+ padding-top: 80px;
+ }
+ footer {
+ padding-left: 15px;
+ padding-right: 15px;
+ }
+
+ /*
+ * Off canvas
+ * -------------------------------------------------- */
+
+ .row-offcanvas {
+ position: relative;
+ overflow: hidden;
+ -webkit-transition: all 0.25s ease-out;
+ -moz-transition: all 0.25s ease-out;
+ transition: all 0.25s ease-out;
+ }
+ .row-offcanvas.active {
+ overflow: visible;
+ }
+ .row-offcanvas-right .sidebar-offcanvas {
+ right: -210px; /* 60px * 3.5 = very small phones like 240x320 HTC Wildfire */
+ }
+ .row-offcanvas-left .sidebar-offcanvas {
+ left: -210px; /* 60px * 3.5 = very small phones like 240x320 HTC Wildfire */
+ }
+ .row-offcanvas-right.active {
+ right: 210px; /* 60px * 3.5 = very small phones like 240x320 HTC Wildfire */
+ }
+ .row-offcanvas-left.active {
+ left: 210px; /* 60px * 3.5 = very small phones like 240x320 HTC Wildfire */
+ }
+ .sidebar-offcanvas {
+ position: absolute;
+ top: 0;
+ }
+
+ @media screen and (max-width: 319px) {
+ /* This is here instead of being outside the media queries because when
+ * we exit "mobile land", the sidebar needs to be able to restore its
+ * originally authored ".col-lg-X" width. */
+ .sidebar-offcanvas {
+ width: 210px; /* 60px * 3.5 = very small phones like 240x320 HTC Wildfire */
+ }
+ }
+
+ @media screen and (min-width: 320px) and (max-width: 480px) {
+ .row-offcanvas-right .sidebar-offcanvas {
+ right: -270px; /* 60px * 4.5 = average iPhones and Android phones */
+ }
+ .row-offcanvas-left .sidebar-offcanvas {
+ left: -270px; /* 60px * 4.5 = average iPhones and Android phones */
+ }
+ .row-offcanvas-right.active {
+ right: 270px; /* 60px * 4.5 = average iPhones and Android phones */
+ }
+ .row-offcanvas-left.active {
+ left: 270px; /* 60px * 4.5 = average iPhones and Android phones */
+ }
+ .sidebar-offcanvas {
+ width: 270px; /* 60px * 4.5 = average iPhones and Android phones */
+ }
+ }
+
+ /* Landscape phone to tablets
+ * -------------------------- */
+ @media screen and (min-width: 481px) and (max-width: 767px) {
+ .row-offcanvas-right .sidebar-offcanvas {
+ right: -480px; /* 60px * 8 = Tablets and wider */
+ }
+ .row-offcanvas-left .sidebar-offcanvas {
+ left: -480px; /* 60px * 8 = Tablets and wider */
+ }
+ .row-offcanvas-right.active {
+ right: 480px; /* 60px * 8 = Tablets and wider */
+ }
+ .row-offcanvas-left.active {
+ left: 480px; /* 60px * 8 = Tablets and wider */
+ }
+ .sidebar-offcanvas {
+ width: 480px; /* 60px * 8 = Tablets and wider */
+ }
+ }
+
+ /* Tablets & above
+ * ---------------- */
+ @media screen and (min-width: 768px) {
+ .row-offcanvas {
+ position: static;
+ overflow: visible;
+ }
+ .sidebar-offcanvas {
+ position: static;
+ }
+ .btn-offcanvas {
+ display: none;
+ }
+ }
+</style>
+
+<script>
+ $(document).ready(function() {
+ $('[data-toggle=offcanvas]').click(function() {
+ $('.row-offcanvas').toggleClass('active');
+ });
+ });
+</script>
+
+<div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="container">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="#">Project name</a>
+ <div class="nav-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="#">Home</a></li>
+ <li><a href="#about">About</a></li>
+ <li><a href="#contact">Contact</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div>
+</div>
+
+<div class="container">
+
+ <div class="row row-offcanvas row-offcanvas-right">
+ <div class="col-lg-9">
+ <p class="pull-right hidden-lg">
+ <a href="#sidebar" class="btn btn-primary btn-offcanvas" data-toggle="offcanvas"><i class="glyphicon glyphicon-resize-horizontal"></i></a>
+ </p>
+ <div class="jumbotron">
+ <h1>Hello, world!</h1>
+ <p>This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some responsive-range viewport sizes to see it in action.</p>
+ </div>
+ <div class="row">
+ <div class="col-sm-6 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>
+ </div><!--/span-->
+ <div class="col-sm-6 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>
+ </div><!--/span-->
+ <div class="col-sm-6 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>
+ </div><!--/span-->
+ <div class="col-sm-6 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>
+ </div><!--/span-->
+ <div class="col-sm-6 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>
+ </div><!--/span-->
+ <div class="col-sm-6 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>
+ </div><!--/span-->
+ </div><!--/row-->
+ </div><!--/span-->
+ <nav class="col-lg-3 sidebar-offcanvas" id="sidebar" role="navigation">
+ <div class="well sidebar-nav">
+ <ul class="nav nav-list">
+ <li class="nav-header">Sidebar</li>
+ <li class="active"><a href="#">Link</a></li>
+ <li><a href="#">Link</a></li>
+ <li><a href="#">Link</a></li>
+ <li class="nav-header">Sidebar</li>
+ <li><a href="#">Link</a></li>
+ <li><a href="#">Link</a></li>
+ <li><a href="#">Link</a></li>
+ <li class="nav-header">Sidebar</li>
+ <li><a href="#">Link</a></li>
+ <li><a href="#">Link</a></li>
+ </ul>
+ </div><!--/.well -->
+ </nav><!--/span-->
+ </div><!--/row-->
+
+ <hr>
+
+ <footer>
+ <p>&copy; Company 2012</p>
+ </footer>
+
+</div><!--/.container-->
diff --git a/docs/examples/signin.html b/docs/examples/signin.html
index 17578483a..92db3e036 100644
--- a/docs/examples/signin.html
+++ b/docs/examples/signin.html
@@ -1,94 +1,68 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Sign in &middot; Twitter Bootstrap</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="author" content="">
+---
+layout: example
+title: Sign in form template
+---
- <!-- Le styles -->
- <link href="../assets/css/bootstrap.css" rel="stylesheet">
- <style type="text/css">
- body {
- padding-top: 40px;
- padding-bottom: 40px;
- background-color: #f5f5f5;
- }
+<!-- Custom styles for this template -->
+<style>
- .form-signin {
- max-width: 300px;
- padding: 19px 29px 29px;
- margin: 0 auto 20px;
- background-color: #fff;
- border: 1px solid #e5e5e5;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
- box-shadow: 0 1px 2px rgba(0,0,0,.05);
- }
- .form-signin .form-signin-heading,
- .form-signin .checkbox {
- margin-bottom: 10px;
- }
- .form-signin input[type="text"],
- .form-signin input[type="password"] {
- font-size: 16px;
- height: auto;
- margin-bottom: 15px;
- padding: 7px 9px;
- }
+ body {
+ padding-top: 40px;
+ padding-bottom: 40px;
+ background-color: #eee;
+ }
- </style>
- <link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
+ .form-signin {
+ max-width: 330px;
+ padding: 15px;
+ margin: 0 auto;
+ }
+ .form-signin .form-signin-heading,
+ .form-signin .checkbox {
+ margin-bottom: 10px;
+ }
+ .form-signin .checkbox {
+ font-weight: normal;
+ }
+ .form-signin input[type="text"],
+ .form-signin input[type="password"] {
+ position: relative;
+ font-size: 16px;
+ height: auto;
+ padding: 10px;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ }
+ .form-signin input[type="text"]:focus,
+ .form-signin input[type="password"]:focus {
+ z-index: 2;
+ }
+ .form-signin input[type="text"] {
+ margin-bottom: -1px;
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
+ }
+ .form-signin input[type="password"] {
+ margin-bottom: 10px;
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+ }
- <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
+</style>
- <!-- 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="container">
- <form class="form-signin">
- <h2 class="form-signin-heading">Please sign in</h2>
- <input type="text" class="input-block-level" placeholder="Email address">
- <input type="password" class="input-block-level" placeholder="Password">
- <label class="checkbox">
- <input type="checkbox" value="remember-me"> Remember me
- </label>
- <button class="btn btn-large btn-primary" type="submit">Sign in</button>
- </form>
+ <form class="form-signin">
+ <h2 class="form-signin-heading">Please sign in</h2>
+ <input type="text" class="input-block-level" placeholder="Email address" autofocus>
+ <input type="password" class="input-block-level" placeholder="Password">
+ <label class="checkbox">
+ <input type="checkbox" value="remember-me"> Remember me
+ </label>
+ <button class="btn btn-large btn-primary btn-block" type="submit">Sign in</button>
+ </form>
- </div> <!-- /container -->
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="../assets/js/jquery.js"></script>
- <script src="../assets/js/bootstrap-transition.js"></script>
- <script src="../assets/js/bootstrap-alert.js"></script>
- <script src="../assets/js/bootstrap-modal.js"></script>
- <script src="../assets/js/bootstrap-dropdown.js"></script>
- <script src="../assets/js/bootstrap-scrollspy.js"></script>
- <script src="../assets/js/bootstrap-tab.js"></script>
- <script src="../assets/js/bootstrap-tooltip.js"></script>
- <script src="../assets/js/bootstrap-popover.js"></script>
- <script src="../assets/js/bootstrap-button.js"></script>
- <script src="../assets/js/bootstrap-collapse.js"></script>
- <script src="../assets/js/bootstrap-carousel.js"></script>
- <script src="../assets/js/bootstrap-typeahead.js"></script>
-
- </body>
-</html>
+</div> <!-- /container -->
diff --git a/docs/examples/starter-template.html b/docs/examples/starter-template.html
index 93ba809e3..18fdaf5fc 100644
--- a/docs/examples/starter-template.html
+++ b/docs/examples/starter-template.html
@@ -1,79 +1,43 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Bootstrap, from Twitter</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="author" content="">
-
- <!-- Le styles -->
- <link href="../assets/css/bootstrap.css" rel="stylesheet">
- <style>
- body {
- padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
- }
- </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="http://html5shim.googlecode.com/svn/trunk/html5.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="navbar navbar-inverse navbar-fixed-top">
- <div class="navbar-inner">
- <div class="container">
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </a>
- <a class="brand" href="#">Project name</a>
- <div class="nav-collapse collapse">
- <ul class="nav">
- <li class="active"><a href="#">Home</a></li>
- <li><a href="#about">About</a></li>
- <li><a href="#contact">Contact</a></li>
- </ul>
- </div><!--/.nav-collapse -->
- </div>
- </div>
- </div>
-
- <div class="container">
-
- <h1>Bootstrap starter template</h1>
- <p>Use this document as a way to quick start any new project.<br> All you get is this message and a barebones HTML document.</p>
-
- </div> <!-- /container -->
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="../assets/js/jquery.js"></script>
- <script src="../assets/js/bootstrap-transition.js"></script>
- <script src="../assets/js/bootstrap-alert.js"></script>
- <script src="../assets/js/bootstrap-modal.js"></script>
- <script src="../assets/js/bootstrap-dropdown.js"></script>
- <script src="../assets/js/bootstrap-scrollspy.js"></script>
- <script src="../assets/js/bootstrap-tab.js"></script>
- <script src="../assets/js/bootstrap-tooltip.js"></script>
- <script src="../assets/js/bootstrap-popover.js"></script>
- <script src="../assets/js/bootstrap-button.js"></script>
- <script src="../assets/js/bootstrap-collapse.js"></script>
- <script src="../assets/js/bootstrap-carousel.js"></script>
- <script src="../assets/js/bootstrap-typeahead.js"></script>
-
- </body>
-</html>
+---
+layout: example
+title: Starter template
+---
+
+<!-- Custom styles for this template -->
+<style>
+ body {
+ padding-top: 50px;
+ }
+ .starter-template {
+ padding: 40px 15px;
+ text-align: center;
+ }
+</style>
+
+
+<div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="container">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="#">Project name</a>
+ <div class="nav-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="#">Home</a></li>
+ <li><a href="#about">About</a></li>
+ <li><a href="#contact">Contact</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div>
+</div>
+
+<div class="container">
+
+ <div class="starter-template">
+ <h1>Bootstrap starter template</h1>
+ <p class="lead">Use this document as a way to quickly start any new project.<br> All you get is this text and a mostly barebones HTML document.</p>
+ </div>
+
+</div><!-- /container -->
diff --git a/docs/examples/sticky-footer-navbar.html b/docs/examples/sticky-footer-navbar.html
index ad4f87a04..fe6681ef6 100644
--- a/docs/examples/sticky-footer-navbar.html
+++ b/docs/examples/sticky-footer-navbar.html
@@ -1,161 +1,114 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Sticky footer &middot; Twitter Bootstrap</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="author" content="">
-
- <!-- CSS -->
- <link href="../assets/css/bootstrap.css" rel="stylesheet">
- <style type="text/css">
-
- /* Sticky footer styles
- -------------------------------------------------- */
-
- html,
- body {
- height: 100%;
- /* The html and body elements cannot have any padding or margin. */
- }
-
- /* Wrapper for page content to push down footer */
- #wrap {
- min-height: 100%;
- height: auto !important;
- height: 100%;
- /* Negative indent footer by it's height */
- margin: 0 auto -60px;
- }
-
- /* Set the fixed height of the footer here */
- #push,
- #footer {
- height: 60px;
- }
- #footer {
- background-color: #f5f5f5;
- }
-
- /* Lastly, apply responsive CSS fixes as necessary */
- @media (max-width: 767px) {
- #footer {
- margin-left: -20px;
- margin-right: -20px;
- padding-left: 20px;
- padding-right: 20px;
- }
- }
-
-
-
- /* Custom page CSS
- -------------------------------------------------- */
- /* Not required for template or sticky footer method. */
-
- #wrap > .container {
- padding-top: 60px;
- }
- .container .credit {
- margin: 20px 0;
- }
-
- code {
- font-size: 80%;
- }
-
- </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="http://html5shim.googlecode.com/svn/trunk/html5.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>
-
-
- <!-- Part 1: Wrap all page content here -->
- <div id="wrap">
-
- <!-- Fixed navbar -->
- <div class="navbar navbar-fixed-top">
- <div class="navbar-inner">
- <div class="container">
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </a>
- <a class="brand" href="#">Project name</a>
- <div class="nav-collapse collapse">
- <ul class="nav">
- <li class="active"><a href="#">Home</a></li>
- <li><a href="#about">About</a></li>
- <li><a href="#contact">Contact</a></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li class="nav-header">Nav header</li>
- <li><a href="#">Separated link</a></li>
- <li><a href="#">One more separated link</a></li>
- </ul>
- </li>
- </ul>
- </div><!--/.nav-collapse -->
- </div>
- </div>
- </div>
-
- <!-- Begin page content -->
- <div class="container">
- <div class="page-header">
- <h1>Sticky footer with fixed navbar</h1>
- </div>
- <p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS. A fixed navbar has been added within <code>#wrap</code> with <code>padding-top: 60px;</code> on the <code>.container</code>.</p>
- <p>Back to <a href="./sticky-footer.html">the sticky footer</a> minus the navbar.</p>
- </div>
-
- <div id="push"></div>
+---
+layout: example
+title: Sticky footer with navbar template
+---
+
+<!-- Custom styles for this template -->
+<style>
+
+ /* Sticky footer styles
+ -------------------------------------------------- */
+
+ html,
+ body {
+ height: 100%;
+ /* The html and body elements cannot have any padding or margin. */
+ }
+
+ /* Wrapper for page content to push down footer */
+ #wrap {
+ min-height: 100%;
+ height: auto !important;
+ height: 100%;
+ /* Negative indent footer by its height */
+ margin: 0 auto -60px;
+ /* Pad bottom by footer height */
+ padding: 0 0 60px;
+ }
+
+ /* Set the fixed height of the footer here */
+ #footer {
+ height: 60px;
+ background-color: #f5f5f5;
+ }
+
+ /* Lastly, apply responsive CSS fixes as necessary */
+ @media (max-width: 767px) {
+ #footer {
+ margin-left: -20px;
+ margin-right: -20px;
+ padding-left: 20px;
+ padding-right: 20px;
+ }
+ }
+
+
+
+ /* Custom page CSS
+ -------------------------------------------------- */
+ /* Not required for template or sticky footer method. */
+
+ #wrap > .container {
+ padding: 60px 15px 0;
+ }
+ .container .credit {
+ margin: 20px 0;
+ }
+
+ code {
+ font-size: 80%;
+ }
+
+</style>
+
+
+
+<!-- Wrap all page content here -->
+<div id="wrap">
+
+ <!-- Fixed navbar -->
+ <div class="navbar navbar-fixed-top">
+ <div class="container">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="#">Project name</a>
+ <div class="nav-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="#">Home</a></li>
+ <li><a href="#about">About</a></li>
+ <li><a href="#contact">Contact</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">Action</a></li>
+ <li><a href="#">Another action</a></li>
+ <li><a href="#">Something else here</a></li>
+ <li class="divider"></li>
+ <li class="nav-header">Nav header</li>
+ <li><a href="#">Separated link</a></li>
+ <li><a href="#">One more separated link</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div><!--/.nav-collapse -->
</div>
+ </div>
- <div id="footer">
- <div class="container">
- <p class="muted credit">Example courtesy <a href="http://martinbean.co.uk">Martin Bean</a> and <a href="http://ryanfait.com/sticky-footer/">Ryan Fait</a>.</p>
- </div>
+ <!-- Begin page content -->
+ <div class="container">
+ <div class="page-header">
+ <h1>Sticky footer with fixed navbar</h1>
</div>
-
-
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="../assets/js/jquery.js"></script>
- <script src="../assets/js/bootstrap-transition.js"></script>
- <script src="../assets/js/bootstrap-alert.js"></script>
- <script src="../assets/js/bootstrap-modal.js"></script>
- <script src="../assets/js/bootstrap-dropdown.js"></script>
- <script src="../assets/js/bootstrap-scrollspy.js"></script>
- <script src="../assets/js/bootstrap-tab.js"></script>
- <script src="../assets/js/bootstrap-tooltip.js"></script>
- <script src="../assets/js/bootstrap-popover.js"></script>
- <script src="../assets/js/bootstrap-button.js"></script>
- <script src="../assets/js/bootstrap-collapse.js"></script>
- <script src="../assets/js/bootstrap-carousel.js"></script>
- <script src="../assets/js/bootstrap-typeahead.js"></script>
-
- </body>
-</html>
+ <p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS. A fixed navbar has been added within <code>#wrap</code> with <code>padding-top: 60px;</code> on the <code>.container</code>.</p>
+ <p>Back to <a href="../sticky-footer">the default sticky footer</a> minus the navbar.</p>
+ </div>
+</div>
+
+<div id="footer">
+ <div class="container">
+ <p class="text-muted credit">Example courtesy <a href="http://martinbean.co.uk">Martin Bean</a> and <a href="http://ryanfait.com/sticky-footer/">Ryan Fait</a>.</p>
+ </div>
+</div>
diff --git a/docs/examples/sticky-footer.html b/docs/examples/sticky-footer.html
index 80490ffd0..14fc1edeb 100644
--- a/docs/examples/sticky-footer.html
+++ b/docs/examples/sticky-footer.html
@@ -1,125 +1,79 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Sticky footer &middot; Twitter Bootstrap</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="author" content="">
-
- <!-- CSS -->
- <link href="../assets/css/bootstrap.css" rel="stylesheet">
- <style type="text/css">
-
- /* Sticky footer styles
- -------------------------------------------------- */
-
- html,
- body {
- height: 100%;
- /* The html and body elements cannot have any padding or margin. */
- }
-
- /* Wrapper for page content to push down footer */
- #wrap {
- min-height: 100%;
- height: auto !important;
- height: 100%;
- /* Negative indent footer by it's height */
- margin: 0 auto -60px;
- }
-
- /* Set the fixed height of the footer here */
- #push,
- #footer {
- height: 60px;
- }
- #footer {
- background-color: #f5f5f5;
- }
-
- /* Lastly, apply responsive CSS fixes as necessary */
- @media (max-width: 767px) {
- #footer {
- margin-left: -20px;
- margin-right: -20px;
- padding-left: 20px;
- padding-right: 20px;
- }
- }
-
-
-
- /* Custom page CSS
- -------------------------------------------------- */
- /* Not required for template or sticky footer method. */
-
- .container {
- width: auto;
- max-width: 680px;
- }
- .container .credit {
- margin: 20px 0;
- }
-
- </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="http://html5shim.googlecode.com/svn/trunk/html5.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>
-
-
- <!-- Part 1: Wrap all page content here -->
- <div id="wrap">
-
- <!-- Begin page content -->
- <div class="container">
- <div class="page-header">
- <h1>Sticky footer</h1>
- </div>
- <p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS.</p>
- <p>Use <a href="./sticky-footer-navbar.html">the sticky footer</a> with a fixed navbar if need be, too.</p>
- </div>
-
- <div id="push"></div>
+---
+layout: example
+title: Sticky footer template
+---
+
+<!-- Custom styles for this template -->
+<style>
+
+ /* Sticky footer styles
+ -------------------------------------------------- */
+
+ html,
+ body {
+ height: 100%;
+ /* The html and body elements cannot have any padding or margin. */
+ }
+
+ /* Wrapper for page content to push down footer */
+ #wrap {
+ min-height: 100%;
+ height: auto !important;
+ height: 100%;
+ /* Negative indent footer by its height */
+ margin: 0 auto -60px;
+ /* Pad bottom by footer height */
+ padding: 0 0 60px;
+ }
+
+ /* Set the fixed height of the footer here */
+ #footer {
+ height: 60px;
+ background-color: #f5f5f5;
+ }
+
+ /* Lastly, apply responsive CSS fixes as necessary */
+ @media (max-width: 767px) {
+ #footer {
+ margin-left: -20px;
+ margin-right: -20px;
+ padding-left: 20px;
+ padding-right: 20px;
+ }
+ }
+
+ /* Custom page CSS
+ -------------------------------------------------- */
+ /* Not required for template or sticky footer method. */
+
+ .container {
+ width: auto;
+ max-width: 680px;
+ padding: 0 15px;
+ }
+ .container .credit {
+ margin: 20px 0;
+ }
+
+</style>
+
+
+
+<!-- Wrap all page content here -->
+<div id="wrap">
+
+ <!-- Begin page content -->
+ <div class="container">
+ <div class="page-header">
+ <h1>Sticky footer</h1>
</div>
-
- <div id="footer">
- <div class="container">
- <p class="muted credit">Example courtesy <a href="http://martinbean.co.uk">Martin Bean</a> and <a href="http://ryanfait.com/sticky-footer/">Ryan Fait</a>.</p>
- </div>
- </div>
-
-
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="../assets/js/jquery.js"></script>
- <script src="../assets/js/bootstrap-transition.js"></script>
- <script src="../assets/js/bootstrap-alert.js"></script>
- <script src="../assets/js/bootstrap-modal.js"></script>
- <script src="../assets/js/bootstrap-dropdown.js"></script>
- <script src="../assets/js/bootstrap-scrollspy.js"></script>
- <script src="../assets/js/bootstrap-tab.js"></script>
- <script src="../assets/js/bootstrap-tooltip.js"></script>
- <script src="../assets/js/bootstrap-popover.js"></script>
- <script src="../assets/js/bootstrap-button.js"></script>
- <script src="../assets/js/bootstrap-collapse.js"></script>
- <script src="../assets/js/bootstrap-carousel.js"></script>
- <script src="../assets/js/bootstrap-typeahead.js"></script>
-
- </body>
-</html>
+ <p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS.</p>
+ <p>Use <a href="../sticky-footer-navbar">the sticky footer with a fixed navbar</a> if need be, too.</p>
+ </div>
+</div>
+
+<div id="footer">
+ <div class="container">
+ <p class="text-muted credit">Example courtesy <a href="http://martinbean.co.uk">Martin Bean</a> and <a href="http://ryanfait.com/sticky-footer/">Ryan Fait</a>.</p>
+ </div>
+</div>