mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
Merge pull request #3775 from Icinga/bugfix/improve-mobile-menu
Improve mobile menu
This commit is contained in:
commit
82d6b22697
@ -46,7 +46,8 @@
|
|||||||
margin-top: -3em;
|
margin-top: -3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header-logo {
|
#header-logo,
|
||||||
|
#mobile-menu-logo {
|
||||||
background-image: url('../img/icinga-logo.svg');
|
background-image: url('../img/icinga-logo.svg');
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@ -61,6 +62,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#mobile-menu-logo {
|
||||||
|
width: 50%;
|
||||||
|
float: left;
|
||||||
|
height: 2em;
|
||||||
|
margin-top: .25em;
|
||||||
|
background-position: .75em center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mobile-menu-toggle .icon-cancel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
#icinga-logo {
|
#icinga-logo {
|
||||||
background-image: url('../img/icinga-logo-big.svg');
|
background-image: url('../img/icinga-logo-big.svg');
|
||||||
background-position: center bottom;
|
background-position: center bottom;
|
||||||
|
@ -350,6 +350,14 @@ ul:not(.nav-level-2) > .selected > a {
|
|||||||
#sidebar.expanded {
|
#sidebar.expanded {
|
||||||
bottom: 0 !important;
|
bottom: 0 !important;
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
|
|
||||||
|
#mobile-menu-toggle .icon-menu {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mobile-menu-toggle .icon-cancel {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-control {
|
.search-control {
|
||||||
|
@ -74,6 +74,17 @@
|
|||||||
z-index: 3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#menu {
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
-moz-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul > .selected > a:after,
|
||||||
|
ul > .nav-item.active:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.dashboard > div.container {
|
.dashboard > div.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
@ -629,8 +629,10 @@
|
|||||||
this.toggleMobileMenu
|
this.toggleMobileMenu
|
||||||
)
|
)
|
||||||
.prepend(
|
.prepend(
|
||||||
$('<div id="mobile-menu-toggle"><button><i class="icon-menu"></i></button></div>')
|
$('<div id="mobile-menu-toggle"><button><i class="icon-menu"></i><i class="icon-cancel"></i></button></div>')
|
||||||
);
|
);
|
||||||
|
$('#header-logo').clone().attr('id', 'mobile-menu-logo')
|
||||||
|
.appendTo('#mobile-menu-toggle');
|
||||||
$(window).on('keypress', this.closeMobileMenu);
|
$(window).on('keypress', this.closeMobileMenu);
|
||||||
|
|
||||||
this.mobileMenu = true;
|
this.mobileMenu = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user