diff options
| author | Mark Otto <[email protected]> | 2013-09-01 09:33:11 +0200 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-09-01 09:33:11 +0200 |
| commit | f29ec45715d33c7667682517bbab4ec285716bde (patch) | |
| tree | 67f82cc5df0578ed9685f876447b31776c9cea51 /examples | |
| parent | 5491d53b99c3dfa54622ca0d0bba52206c883a14 (diff) | |
| parent | e47ebf3686440df07a83a9d2643b70087ec4fb81 (diff) | |
| download | bootstrap-f29ec45715d33c7667682517bbab4ec285716bde.tar.xz bootstrap-f29ec45715d33c7667682517bbab4ec285716bde.zip | |
Merge branch 'master' into deprecate_screen_containers
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/carousel/carousel.css | 30 | ||||
| -rw-r--r-- | examples/carousel/index.html | 12 | ||||
| -rw-r--r-- | examples/grid/index.html | 29 | ||||
| -rw-r--r-- | examples/jumbotron-narrow/index.html | 2 | ||||
| -rw-r--r-- | examples/jumbotron/index.html | 8 | ||||
| -rw-r--r-- | examples/justified-nav/index.html | 8 | ||||
| -rw-r--r-- | examples/justified-nav/justified-nav.css | 1 | ||||
| -rw-r--r-- | examples/navbar-fixed-top/index.html | 2 | ||||
| -rw-r--r-- | examples/navbar-static-top/index.html | 2 | ||||
| -rw-r--r-- | examples/navbar/index.html | 2 | ||||
| -rw-r--r-- | examples/offcanvas/index.html | 12 | ||||
| -rw-r--r-- | examples/offcanvas/offcanvas.css | 4 | ||||
| -rw-r--r-- | examples/theme/index.html | 2 |
13 files changed, 82 insertions, 32 deletions
diff --git a/examples/carousel/carousel.css b/examples/carousel/carousel.css index 164f306ea..a728bd899 100644 --- a/examples/carousel/carousel.css +++ b/examples/carousel/carousel.css @@ -14,8 +14,21 @@ body { /* Special class on .container surrounding .navbar, used for positioning it into place. */ .navbar-wrapper { - position: relative; - z-index: 15; + position: absolute; + top: 0; + left: 0; + right: 0; + z-index: 20; +} + +/* Flip around the padding for proper display in narrow viewports */ +.navbar-wrapper .container { + padding-left: 0; + padding-right: 0; +} +.navbar-wrapper .navbar { + padding-left: 15px; + padding-right: 15px; } @@ -24,10 +37,8 @@ body { /* Carousel base class */ .carousel { + height: 500px; margin-bottom: 60px; - - /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */ - margin-top: -90px; } /* Since positioning the image, we need to help out the caption */ .carousel-caption { @@ -103,6 +114,15 @@ body { .navbar-wrapper { margin-top: 20px; } + .navbar-wrapper .container { + padding-left: 15px; + padding-right: 15px; + } + .navbar-wrapper .navbar { + padding-left: 0; + padding-right: 0; + } + /* The navbar becomes detached from the top, so we round the corners */ .navbar-wrapper .navbar { border-radius: 4px; diff --git a/examples/carousel/index.html b/examples/carousel/index.html index d962c1e6f..5ba413288 100644 --- a/examples/carousel/index.html +++ b/examples/carousel/index.html @@ -79,7 +79,7 @@ <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> + <p><a class="btn btn-large btn-primary" href="#" role="button">Sign up today</a></p> </div> </div> </div> @@ -89,7 +89,7 @@ <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> + <p><a class="btn btn-large btn-primary" href="#" role="button">Learn more</a></p> </div> </div> </div> @@ -99,7 +99,7 @@ <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> + <p><a class="btn btn-large btn-primary" href="#" role="button">Browse gallery</a></p> </div> </div> </div> @@ -122,19 +122,19 @@ <img class="img-circle" src="data:image/png;base64," data-src="holder.js/140x140" alt="Generic placeholder image"> <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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div><!-- /.col-lg-4 --> <div class="col-lg-4"> <img class="img-circle" src="data:image/png;base64," data-src="holder.js/140x140" alt="Generic placeholder image"> <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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div><!-- /.col-lg-4 --> <div class="col-lg-4"> <img class="img-circle" src="data:image/png;base64," data-src="holder.js/140x140" alt="Generic placeholder image"> <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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div><!-- /.col-lg-4 --> </div><!-- /.row --> diff --git a/examples/grid/index.html b/examples/grid/index.html index 239b0d16a..7fc46c684 100644 --- a/examples/grid/index.html +++ b/examples/grid/index.html @@ -109,6 +109,35 @@ <div class="col-xs-6 col-sm-6 col-lg-6">.col-xs-6 .col-sm-6 .col-lg-6</div> </div> + <hr> + + <h3>Column clearing</h3> + <p>Clear floats at specific breakpoints to prevent awkward wrapping with uneven content.</p> + <div class="row"> + <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div> + <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div> + + <!-- Add the extra clearfix for only the required viewport --> + <div class="clearfix visible-xs"></div> + + <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div> + <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div> + </div> + + <hr> + + <h3>Offset, push, and pull resets</h3> + <p>Reset offsets, pushes, and pulls at specific breakpoints.</p> + <div class="row"> + <div class="col-sm-5 col-md-6">.col-sm-5 .col-md-6</div> + <div class="col-sm-5 col-sm-offset-2 col-md-6 col-md-offset-0">.col-sm-5 .col-sm-offset-2 .col-md-6 .col-md-offset-0</div> + </div> + <div class="row"> + <div class="col-sm-6 col-md-5 col-lg-6">.col-sm-6 .col-md-5 .col-lg-6</div> + <div class="col-sm-6 col-md-5 col-md-offset-2 col-lg-6 col-lg-offset-0">.col-sm-6 .col-md-5 .col-md-offset-2 .col-lg-6 .col-lg-offset-0</div> + </div> + + </div> <!-- /container --> diff --git a/examples/jumbotron-narrow/index.html b/examples/jumbotron-narrow/index.html index 2fb23138b..270cbdf70 100644 --- a/examples/jumbotron-narrow/index.html +++ b/examples/jumbotron-narrow/index.html @@ -37,7 +37,7 @@ <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-lg btn-success" href="#">Sign up today</a></p> + <p><a class="btn btn-lg btn-success" href="#" role="button">Sign up today</a></p> </div> <div class="row marketing"> diff --git a/examples/jumbotron/index.html b/examples/jumbotron/index.html index 31d11eebb..e67905c3d 100644 --- a/examples/jumbotron/index.html +++ b/examples/jumbotron/index.html @@ -70,7 +70,7 @@ <div class="container"> <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-lg">Learn more »</a></p> + <p><a class="btn btn-primary btn-lg" role="button">Learn more »</a></p> </div> </div> @@ -80,17 +80,17 @@ <div class="col-md-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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div> <div class="col-md-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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div> <div class="col-md-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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div> </div> diff --git a/examples/justified-nav/index.html b/examples/justified-nav/index.html index 8ab83cc1f..d49718c9e 100644 --- a/examples/justified-nav/index.html +++ b/examples/justified-nav/index.html @@ -42,7 +42,7 @@ <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-lg btn-success" href="#">Get started today</a></p> + <p><a class="btn btn-lg btn-success" href="#" role="button">Get started today</a></p> </div> <!-- Example row of columns --> @@ -50,17 +50,17 @@ <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-primary" href="#">View details »</a></p> + <p><a class="btn btn-primary" href="#" role="button">View details »</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-primary" href="#">View details »</a></p> + <p><a class="btn btn-primary" href="#" role="button">View details »</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-primary" href="#">View details »</a></p> + <p><a class="btn btn-primary" href="#" role="button">View details »</a></p> </div> </div> diff --git a/examples/justified-nav/justified-nav.css b/examples/justified-nav/justified-nav.css index c669d44c7..baf0e1130 100644 --- a/examples/justified-nav/justified-nav.css +++ b/examples/justified-nav/justified-nav.css @@ -27,6 +27,7 @@ body { border: 1px solid #ccc; } .nav-justified > li > a { + margin-bottom: 0; padding-top: 15px; padding-bottom: 15px; color: #777; diff --git a/examples/navbar-fixed-top/index.html b/examples/navbar-fixed-top/index.html index 90f984e96..1b1c708aa 100644 --- a/examples/navbar-fixed-top/index.html +++ b/examples/navbar-fixed-top/index.html @@ -70,7 +70,7 @@ <p>This example is a quick exercise to illustrate how the default, static and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p> <p>To see the difference between static and fixed top navbars, just scroll.</p> <p> - <a class="btn btn-lg btn-primary" href="../../components/#navbar">View navbar docs »</a> + <a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs »</a> </p> </div> diff --git a/examples/navbar-static-top/index.html b/examples/navbar-static-top/index.html index 98ec31d6a..6b5e4d35b 100644 --- a/examples/navbar-static-top/index.html +++ b/examples/navbar-static-top/index.html @@ -71,7 +71,7 @@ <p>This example is a quick exercise to illustrate how the default, static and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p> <p>To see the difference between static and fixed top navbars, just scroll.</p> <p> - <a class="btn btn-lg btn-primary" href="../../components/#navbar">View navbar docs »</a> + <a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs »</a> </p> </div> diff --git a/examples/navbar/index.html b/examples/navbar/index.html index 97e4c0c8c..834019445 100644 --- a/examples/navbar/index.html +++ b/examples/navbar/index.html @@ -67,7 +67,7 @@ <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-lg btn-primary" href="../../components/#navbar">View navbar docs »</a> + <a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs »</a> </p> </div> diff --git a/examples/offcanvas/index.html b/examples/offcanvas/index.html index a53741b99..c14e6a66d 100644 --- a/examples/offcanvas/index.html +++ b/examples/offcanvas/index.html @@ -58,32 +58,32 @@ <div class="col-6 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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div><!--/span--> <div class="col-6 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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div><!--/span--> <div class="col-6 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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div><!--/span--> <div class="col-6 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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div><!--/span--> <div class="col-6 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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div><!--/span--> <div class="col-6 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 »</a></p> + <p><a class="btn btn-default" href="#" role="button">View details »</a></p> </div><!--/span--> </div><!--/row--> </div><!--/span--> diff --git a/examples/offcanvas/offcanvas.css b/examples/offcanvas/offcanvas.css index df60d6af6..5bb06ae6f 100644 --- a/examples/offcanvas/offcanvas.css +++ b/examples/offcanvas/offcanvas.css @@ -1,5 +1,5 @@ /* - * Style twaks + * Style tweaks * -------------------------------------------------- */ body { @@ -45,4 +45,4 @@ footer { top: 0; width: 50%; /* 6 columns */ } -}
\ No newline at end of file +} diff --git a/examples/theme/index.html b/examples/theme/index.html index 586801ea5..f29f440f1 100644 --- a/examples/theme/index.html +++ b/examples/theme/index.html @@ -65,7 +65,7 @@ <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-lg">Learn more »</a></p> + <p><a class="btn btn-primary btn-lg" role="button">Learn more »</a></p> </div> |
