mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
f8891a96ce
commit
9e0bee5006
@ -76,7 +76,6 @@
|
|||||||
@gutter: 1em;
|
@gutter: 1em;
|
||||||
|
|
||||||
// x-column-layout
|
// x-column-layout
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
.clearfix();
|
.clearfix();
|
||||||
|
|
||||||
@ -109,6 +108,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Mobile menu
|
||||||
|
#mobile-menu-toggle {
|
||||||
|
text-align: right;
|
||||||
|
|
||||||
|
> button {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
height: 2.5em;
|
||||||
|
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-appearance: none;
|
||||||
|
-ms-appearance: none;
|
||||||
|
appearance: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#sidebar {
|
#sidebar {
|
||||||
background-color: @gray-lighter;
|
background-color: @gray-lighter;
|
||||||
}
|
}
|
||||||
|
@ -587,7 +587,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
if ($layout.hasClass('minimal-layout')) {
|
if ($layout.hasClass('minimal-layout')) {
|
||||||
if (! this.mobileMenu) {
|
if (! this.mobileMenu && $sidebar.length) {
|
||||||
$header.css({
|
$header.css({
|
||||||
top: $sidebar.outerHeight() + 'px'
|
top: $sidebar.outerHeight() + 'px'
|
||||||
});
|
});
|
||||||
@ -599,19 +599,18 @@
|
|||||||
zIndex: 2
|
zIndex: 2
|
||||||
});
|
});
|
||||||
$sidebar
|
$sidebar
|
||||||
|
.on(
|
||||||
|
'click',
|
||||||
|
this.toggleMobileMenu
|
||||||
|
)
|
||||||
|
.prepend(
|
||||||
|
$('<div id="mobile-menu-toggle"><button><i class="icon-menu"></i></button></div>')
|
||||||
|
)
|
||||||
.css({
|
.css({
|
||||||
paddingBottom: 32,
|
paddingBottom: $('#mobile-menu-toggle').height(),
|
||||||
top: 0,
|
top: 0,
|
||||||
zIndex: 3
|
zIndex: 3
|
||||||
})
|
});
|
||||||
.on('click', this.toggleMobileMenu)
|
|
||||||
.prepend(
|
|
||||||
$('<i id="mobile-menu-toggle" class="icon-menu"></i>').css({
|
|
||||||
cursor: 'pointer',
|
|
||||||
display: 'block',
|
|
||||||
height: '32px'
|
|
||||||
})
|
|
||||||
);
|
|
||||||
$search.on('keypress', this.closeMobileMenu);
|
$search.on('keypress', this.closeMobileMenu);
|
||||||
|
|
||||||
this.mobileMenu = true;
|
this.mobileMenu = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user