49 lines
954 B
SCSS
49 lines
954 B
SCSS
|
// Off canvas navigation
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
@mixin offcanvas {
|
||
|
display: none;
|
||
|
&.in {
|
||
|
display: block;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (max-width: $screen-xs-max) {
|
||
|
.offcanvas-xs {
|
||
|
@include offcanvas;
|
||
|
}
|
||
|
}
|
||
|
@media (max-width: $screen-sm-max) {
|
||
|
.offcanvas-sm {
|
||
|
@include offcanvas;
|
||
|
}
|
||
|
}
|
||
|
@media (max-width: $screen-md-max) {
|
||
|
.offcanvas-md {
|
||
|
@include offcanvas;
|
||
|
}
|
||
|
}
|
||
|
.offcanvas-lg {
|
||
|
@include offcanvas;
|
||
|
}
|
||
|
|
||
|
.canvas-sliding {
|
||
|
-webkit-transition: top 0.35s, left 0.35s, bottom 0.35s, right 0.35s;
|
||
|
transition: top 0.35s, left 0.35s, bottom 0.35s, right 0.35s;
|
||
|
}
|
||
|
|
||
|
.offcanvas-clone {
|
||
|
height: 0px !important;
|
||
|
width: 0px !important;
|
||
|
overflow: hidden !important;
|
||
|
border: none !important;
|
||
|
margin: 0px !important;
|
||
|
padding: 0px !important;
|
||
|
position: absolute !important;
|
||
|
top: auto !important;
|
||
|
left: auto !important;
|
||
|
bottom: 0px !important;
|
||
|
right: 0px !important;
|
||
|
opacity: 0 !important;
|
||
|
}
|