aboutsummaryrefslogtreecommitdiff
path: root/examples/offcanvas/offcanvas.css
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-15 16:44:48 -0700
committerMark Otto <[email protected]>2013-08-15 16:44:48 -0700
commit05ebd5ebf9b32e7c1d8ea05098c53a0b4496d442 (patch)
tree40e68d12f804131ef3cea3bf0120531106b42dc9 /examples/offcanvas/offcanvas.css
parent7cd35f0cb6d17d6117264f71f175a9e5b0b09580 (diff)
parent3d99a4c15e0661df630dbaf7dddb5228cf044fe6 (diff)
downloadbootstrap-05ebd5ebf9b32e7c1d8ea05098c53a0b4496d442.tar.xz
bootstrap-05ebd5ebf9b32e7c1d8ea05098c53a0b4496d442.zip
Merge pull request #9653 from twbs/bs3_restore_examples
BS3: Restore examples back to main repo
Diffstat (limited to 'examples/offcanvas/offcanvas.css')
-rw-r--r--examples/offcanvas/offcanvas.css48
1 files changed, 48 insertions, 0 deletions
diff --git a/examples/offcanvas/offcanvas.css b/examples/offcanvas/offcanvas.css
new file mode 100644
index 000000000..27a075d76
--- /dev/null
+++ b/examples/offcanvas/offcanvas.css
@@ -0,0 +1,48 @@
+/*
+ * Style twaks
+ * --------------------------------------------------
+ */
+body {
+ padding-top: 70px;
+}
+footer {
+ padding-left: 15px;
+ padding-right: 15px;
+}
+
+/*
+ * Off Canvas
+ * --------------------------------------------------
+ */
+@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;
+ }
+
+ .row-offcanvas-right
+ .sidebar-offcanvas {
+ right: -58.333333333333336%; // 6 columns
+ }
+
+ .row-offcanvas-left
+ .sidebar-offcanvas {
+ left: -58.333333333333336%; // 6 columns
+ }
+
+ .row-offcanvas-right.active {
+ right: 58.333333333333336%; // 6 columns
+ }
+
+ .row-offcanvas-left.active {
+ left: 58.333333333333336%; // 6 columns
+ }
+
+ .sidebar-offcanvas {
+ position: absolute;
+ width: 58.333333333333336%; // 6 columns
+ }
+} \ No newline at end of file