]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #9701: fix up offcanvas example
authorMark Otto <otto@github.com>
Fri, 16 Aug 2013 21:12:18 +0000 (14:12 -0700)
committerMark Otto <otto@github.com>
Fri, 16 Aug 2013 21:12:18 +0000 (14:12 -0700)
examples/offcanvas/index.html
examples/offcanvas/offcanvas.css

index fcfe48fa81aef9fc2eac541cb105d6a7ad132855..5d6b7b813206ce7853e9f2cacf97f6c1d8af7f15 100644 (file)
@@ -82,7 +82,7 @@
           </div><!--/row-->
         </div><!--/span-->
 
-        <div class="col-xs-12 col-sm-3 sidebar-offcanvas" id="sidebar" role="navigation">
+        <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar" role="navigation">
           <div class="well sidebar-nav">
             <ul class="nav">
               <li>Sidebar</li>
index e83e71824a25396318ce3d8387f4b7e4ca6f95d4..df60d6af61836d01876fb996421f210bef1af3bf 100644 (file)
@@ -17,7 +17,6 @@ footer {
 @media screen and (max-width: 768px) {
   .row-offcanvas {
     position: relative;
-    overflow: hidden; /* Needed for Internet Explorer */
     -webkit-transition: all 0.25s ease-out;
     -moz-transition: all 0.25s ease-out;
     transition: all 0.25s ease-out;
@@ -25,24 +24,25 @@ footer {
 
   .row-offcanvas-right
   .sidebar-offcanvas {
-    right: -58.333333333333336%; /* 6 columns */
+    right: -50%; /* 6 columns */
   }
 
   .row-offcanvas-left
   .sidebar-offcanvas {
-    left: -58.333333333333336%; /* 6 columns */
+    left: -50%; /* 6 columns */
   }
 
   .row-offcanvas-right.active {
-    right: 58.333333333333336%; /* 6 columns */
+    right: 50%; /* 6 columns */
   }
 
   .row-offcanvas-left.active {
-    left: 58.333333333333336%; /* 6 columns */
+    left: 50%; /* 6 columns */
   }
 
   .sidebar-offcanvas {
     position: absolute;
-    width: 58.333333333333336%; /* 6 columns */
+    top: 0;
+    width: 50%; /* 6 columns */
   }
 }
\ No newline at end of file