Merge pull request #393 from petergood/master

Fixed navbar autohide after viewport resize
main
Peter Jaszkowiak 7 years ago committed by GitHub
commit cbfc3ab4d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -242,6 +242,10 @@
margin-left: -30px; margin-left: -30px;
} }
} }
@media (min-width: @screen-md-min) {
top: 0px !important;
}
} }
.breadcrumb { .breadcrumb {

@ -3,19 +3,15 @@
/*globals ajaxify, config, utils, app, socket, NProgress*/ /*globals ajaxify, config, utils, app, socket, NProgress*/
$(document).ready(function() { $(document).ready(function() {
var env = utils.findBootstrapEnvironment();
setupNProgress(); setupNProgress();
setupTaskbar(); setupTaskbar();
setupEditedByIcon(); setupEditedByIcon();
setupMobileMenu(); setupMobileMenu();
setupQuickReply(); setupQuickReply();
if (env === 'xs' || env ==='sm') { $(".navbar-fixed-top").autoHidingNavbar({
$(".navbar-fixed-top").autoHidingNavbar({ showOnBottom: false
showOnBottom: false });
});
}
function setupNProgress() { function setupNProgress() {
$(window).on('action:ajaxify.start', function() { $(window).on('action:ajaxify.start', function() {

Loading…
Cancel
Save