Page 1 of 1
Admin header links
Posted: Sat Jul 30, 2022 9:05 am
by Pierre_P
How to change the behavior when hovering mouse over hmenu navigation icons and dropdown box appears, moving mouse too slow the dropdown box disappears?
Is driving me nuts
I know that you can click the icon and the drop down box will stay there
Re: Admin header links
Posted: Sat Jul 30, 2022 12:29 pm
by burt
Pierre_P wrote: ↑Sat Jul 30, 2022 9:05 am
I know that you can click the icon and the drop down box will stay there
This. Just click the icon.
If you want to remove the feature that auto opens these menus, simply delete the file:
/includes/hooks/admin/siteWide/stylesheetDropdown.php
If you want to amend that feature (eg if you found a nicer way to have auto opening menus), amend the same file as above. Or make a new file.
Re: Admin header links
Posted: Sat Jul 30, 2022 12:43 pm
by Denzel
Maybe a delayed closing of the menus on leaving the menuicon does the trick ?
Re: Admin header links
Posted: Tue Aug 02, 2022 6:14 pm
by Denzel
Code: Select all
<?php
/*
$Id$
CE Phoenix, E-Commerce made Easy
https://phoenixcart.org
Copyright (c) 2021 Phoenix Cart
Released under the GNU General Public License
*/
class hook_admin_siteWide_styleSheetDropdown {
function listen_injectSiteStart() {
$admin_css = '<style>@media (min-width: 768px) { #navbarAdmin > ul.navbar-nav > li.dropdown > div.dropdown-menu { display: block; visibility: hidden; opacity: 0; transition: visibility 0.3s, opacity 0.3s linear;} #navbarAdmin > ul.navbar-nav > li.dropdown:hover > div.dropdown-menu { visibility: visible; opacity: 1; transition: visibility 0s, opacity 0.1s linear;} }</style>' . PHP_EOL;
return $admin_css;
}
}
/includes/hooks/admin/siteWide/stylesheetDropdown.php
You may change the transition timings for your needs (first both for fading out, second both for fading in

)
Re: Admin header links
Posted: Thu Aug 04, 2022 5:53 am
by Pierre_P
Thanks @Denzel
That did it perfectly