1
0
Fork 0
mirror of https://github.com/NaN-tic/sao-old.git synced 2023-12-14 02:12:52 +01:00
sao-old/offcanvas.css
C?dric Krier 064eb4da1d Improve offcanvas
- active by default
- fix margin
- use variables
- toggle active when tabs are added or removed

review16771002
2015-10-23 19:47:08 +02:00

69 lines
1.1 KiB
CSS

/*
* Off Canvas
* --------------------------------------------------
*/
@media screen and (max-width: 991px) {
.row-offcanvas {
position: relative;
-webkit-transition: all .25s ease-out;
-o-transition: all .25s ease-out;
transition: all .25s ease-out;
}
.row-offcanvas-right {
right: 0;
}
.row-offcanvas-left {
left: 0;
}
.row-offcanvas-right
.sidebar-offcanvas {
right: calc(-50% + 7px);
}
.row-offcanvas-left
.sidebar-offcanvas {
left: calc(-50% + 7.5px);
}
.row-offcanvas-right.active {
right: calc(50% + 7.5px);
}
.row-offcanvas-left.active {
left: calc(50% + 7.5px);
}
.sidebar-offcanvas {
position: absolute;
top: 0;
width: 50%;
}
}
@media screen and (max-width: 479px) {
.row-offcanvas-right
.sidebar-offcanvas {
right: calc(-100% + 15px);
}
.row-offcanvas-left
.sidebar-offcanvas {
left: calc(-100% + 15px);
}
.row-offcanvas-right.active {
right: calc(100% + 15px);
}
.row-offcanvas-left.active {
left: calc(100% + 15px);
}
.sidebar-offcanvas {
width: 100%;
}
}