[ui] fix z-index of custom navbar.
make js detect mode more flexible.
[ui] fix menu-toggle position.