aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/offcanvas/offcanvas.css
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-31 13:53:33 -0800
committerMark Otto <[email protected]>2013-12-31 13:53:33 -0800
commitb253cb2c1e34a41940c4933fb95c46da833fc5f9 (patch)
treee5a40b963eba273c42e4aad21fb3858a657002dd /docs/examples/offcanvas/offcanvas.css
parent9e1153d0498a9e9612c1db85922642fe2aa38c2a (diff)
parent8812856de1ce17bb2f482c75370fb2e3db7ac6de (diff)
downloadbootstrap-b253cb2c1e34a41940c4933fb95c46da833fc5f9.tar.xz
bootstrap-b253cb2c1e34a41940c4933fb95c46da833fc5f9.zip
Merge branch 'master' into docs_derp
Conflicts: _config.yml docs/_includes/footer.html docs/_includes/nav-main.html docs/_includes/old-bs-docs.html docs/_layouts/default.html docs/_layouts/home.html docs/getting-started.html docs/index.html
Diffstat (limited to 'docs/examples/offcanvas/offcanvas.css')
-rw-r--r--docs/examples/offcanvas/offcanvas.css51
1 files changed, 51 insertions, 0 deletions
diff --git a/docs/examples/offcanvas/offcanvas.css b/docs/examples/offcanvas/offcanvas.css
new file mode 100644
index 000000000..ef632dc00
--- /dev/null
+++ b/docs/examples/offcanvas/offcanvas.css
@@ -0,0 +1,51 @@
+/*
+ * Style tweaks
+ * --------------------------------------------------
+ */
+html,
+body {
+ overflow-x: hidden; /* Prevent scroll on narrow devices */
+}
+body {
+ padding-top: 70px;
+}
+footer {
+ padding: 30px 0;
+}
+
+/*
+ * Off Canvas
+ * --------------------------------------------------
+ */
+@media screen and (max-width: 767px) {
+ .row-offcanvas {
+ position: relative;
+ -webkit-transition: all 0.25s ease-out;
+ -moz-transition: all 0.25s ease-out;
+ transition: all 0.25s ease-out;
+ }
+
+ .row-offcanvas-right
+ .sidebar-offcanvas {
+ right: -50%; /* 6 columns */
+ }
+
+ .row-offcanvas-left
+ .sidebar-offcanvas {
+ left: -50%; /* 6 columns */
+ }
+
+ .row-offcanvas-right.active {
+ right: 50%; /* 6 columns */
+ }
+
+ .row-offcanvas-left.active {
+ left: 50%; /* 6 columns */
+ }
+
+ .sidebar-offcanvas {
+ position: absolute;
+ top: 0;
+ width: 50%; /* 6 columns */
+ }
+}