mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 03:35:51 +00:00
Mobile nav: height, animations, spacing
This commit is contained in:
@@ -13,4 +13,17 @@ $(document).ready(function() {
|
||||
$(".jump-to-top").click(function() {
|
||||
$("html").animate({scrollTop: TO_TOP_POS}, TO_TOP_SPEED)
|
||||
});
|
||||
|
||||
// TODO: put this somewhere better.
|
||||
// Code to make other menu items hide on mobile when we expand one
|
||||
$("#topnav-pages .dropdown").on("show.bs.dropdown", (evt) => {
|
||||
$("#top-main-nav").addClass("submenu-expanded")
|
||||
// $("#topnav-pages .dropdown:not(.show) .dropdown-toggle").hide()
|
||||
// $("#topnav-search").hide()
|
||||
})
|
||||
$("#topnav-pages .dropdown").on("hidden.bs.dropdown", (evt) => {
|
||||
$("#top-main-nav").removeClass("submenu-expanded")
|
||||
// $("#topnav-pages .dropdown .dropdown-toggle").show()
|
||||
// $("#topnav-search").show()
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user