aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/offcanvas.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-06-20 12:36:27 -0700
committerMark Otto <[email protected]>2013-06-20 12:36:27 -0700
commitc5fb401a626c3e0d99a764cb7961e1bd3e619e8f (patch)
treecde29287913313c3d0af4ef0a263fe7175ce972d /docs/examples/offcanvas.html
parent83832095215f0ba03d3f23fcb7e37c5782395237 (diff)
downloadbootstrap-c5fb401a626c3e0d99a764cb7961e1bd3e619e8f.tar.xz
bootstrap-c5fb401a626c3e0d99a764cb7961e1bd3e619e8f.zip
Move examples out of the main repo to twbs/bootstrap-examples
While examples are phenomenally useful and awesome for folks getting started with Bootstrap, they don't really shine as well being buried in the main docs. Moreover, having anything that's not core HTML, CSS, JS, or documentation in the main repo seems to just get in the way. Therefore, examples gets its own repo. Specifically, we're doing the following: * Deletes all example screenshots * Deletes example layout * Deletes example files * Updates Getting Started docs to include only the template and a link to the new examples project All the examples and their history will be preserved in the switch.
Diffstat (limited to 'docs/examples/offcanvas.html')
-rw-r--r--docs/examples/offcanvas.html205
1 files changed, 0 insertions, 205 deletions
diff --git a/docs/examples/offcanvas.html b/docs/examples/offcanvas.html
deleted file mode 100644
index c93578e2b..000000000
--- a/docs/examples/offcanvas.html
+++ /dev/null
@@ -1,205 +0,0 @@
----
-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-->