aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/offcanvas
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/offcanvas')
-rw-r--r--docs/examples/offcanvas/offcanvas.css14
-rw-r--r--docs/examples/offcanvas/offcanvas.js6
2 files changed, 14 insertions, 6 deletions
diff --git a/docs/examples/offcanvas/offcanvas.css b/docs/examples/offcanvas/offcanvas.css
index ef632dc00..eeace1601 100644
--- a/docs/examples/offcanvas/offcanvas.css
+++ b/docs/examples/offcanvas/offcanvas.css
@@ -20,9 +20,17 @@ footer {
@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;
+ -webkit-transition: all .25s ease-out;
+ -moz-transition: all .25s ease-out;
+ transition: all .25s ease-out;
+ }
+
+ .row-offcanvas-right {
+ right: 0;
+ }
+
+ .row-offcanvas-left {
+ left: 0;
}
.row-offcanvas-right
diff --git a/docs/examples/offcanvas/offcanvas.js b/docs/examples/offcanvas/offcanvas.js
index 12f2dff51..ade5751fd 100644
--- a/docs/examples/offcanvas/offcanvas.js
+++ b/docs/examples/offcanvas/offcanvas.js
@@ -1,5 +1,5 @@
-$(document).ready(function() {
- $('[data-toggle=offcanvas]').click(function() {
- $('.row-offcanvas').toggleClass('active');
+$(document).ready(function () {
+ $('[data-toggle=offcanvas]').click(function () {
+ $('.row-offcanvas').toggleClass('active')
});
}); \ No newline at end of file