0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-21 13:52:17 +01:00
Bootstrap/offcanvas/offcanvas.css
ggam 6e8ace4b2b Simplified Off Canvas example:
- Removed unneeded media queries to be more consistent with the rest of Bootstrap.
- Fixed unworking grid on latest 3.0 builds (BS version on this repo is outdated)
- Inluded needed bootstrap.js
2013-08-10 13:36:05 +02:00

48 lines
950 B
CSS

/*
* 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
}
}