aw yeah. mobile menu styling and js completed + switched to the right

main
psychobunny 10 years ago
parent a7e9e3a38d
commit d919bd3059

@ -1,11 +1,10 @@
@media (max-width: 980px) { @media (max-width: 980px) {
body { body {
height: 100%; height: 100%;
padding-top: 0;
} }
.header { .header {
height: 58px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.26);
position: fixed; position: fixed;
top: 0px; top: 0px;
z-index: 5; z-index: 5;
@ -86,7 +85,7 @@
.slideout-menu { .slideout-menu {
position: fixed; position: fixed;
left: 0; left: auto;
top: 0; top: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;

@ -163,7 +163,8 @@ $(document).ready(function() {
'panel': document.getElementById('panel'), 'panel': document.getElementById('panel'),
'menu': document.getElementById('menu'), 'menu': document.getElementById('menu'),
'padding': 256, 'padding': 256,
'tolerance': 70 'tolerance': 70,
'side': 'right'
}); });
$('#mobile-menu').on('click', function() { $('#mobile-menu').on('click', function() {
@ -179,7 +180,7 @@ $(document).ready(function() {
}); });
function onOpeningMenu() { function onOpeningMenu() {
$('#header').css({ $('#header-menu').css({
'top': $('#panel').position().top * -1 + 'px', 'top': $('#panel').position().top * -1 + 'px',
'position': 'absolute' 'position': 'absolute'
}); });
@ -190,7 +191,7 @@ $(document).ready(function() {
slideout.on('translate', onOpeningMenu); slideout.on('translate', onOpeningMenu);
slideout.on('close', function() { slideout.on('close', function() {
$('#header').css({ $('#header-menu').css({
'top': '0px', 'top': '0px',
'position': 'fixed' 'position': 'fixed'
}); });

@ -20,7 +20,7 @@
</div> </div>
</div> </div>
<div id="nav-dropdown"> <div id="nav-dropdown" class="hidden-xs hidden-sm">
<!-- IF !maintenanceHeader --> <!-- IF !maintenanceHeader -->
<!-- IF loggedIn --> <!-- IF loggedIn -->

Loading…
Cancel
Save