<div id="sidebar" class="nav-collapse hide-left-bar">
...
</div>
<section id="main-content" class="merge-left">
...
</section>
#main-content {
margin-left: 240px;
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}
.merge-left {
margin-left: 0px !important;
}
#sidebar {
width: 240px;
height: 100%;
position: fixed;
background: #32323a;
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}
.hide-left-bar {
margin-left: -240px !important;
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}
.visible {
visibility: visible !important;
}
var scroll = window.pageYOffset, array = [];
wow.boxes.forEach(function (box) {
let pos = $(box).position(), height = $(box).height();
if (pos.top + height < scroll) {
$(box).addClass("visible");
} else {
array.push(box);
}
});
wow.boxes = array;
$padding: 8px;
div {
padding: $padding; // 8px
}
@media (min-width: $screen-tablet) {
$padding: 4px;
div {
padding: $padding; // 4px
}
}
$padding: 8px;
div {
padding: $padding; // 8px
}
@media (min-width: $screen-tablet) {
div {
padding: ($padding - 4); // 8 - 4 = 4px
}
}