2
0
forked from Wavyzz/dolibarr

Clean code for top menu

This commit is contained in:
Laurent Destailleur
2022-05-02 16:47:28 +02:00
parent b7106b1731
commit 5dfd38c8f9
8 changed files with 69 additions and 31 deletions

View File

@@ -2601,8 +2601,20 @@ a.tmenuimage:hover{
text-decoration: none;
}
/*
.tmenulabel:not(.menuhider), .tmenulabel:not(.menuhider):before {
display: none;
}
.tmenuimage:not(.menuhider), .tmenuimage:not(.menuhider):before {
font-size: 1.5em;
}
.tmenudiv:hover .tmenulabel:not(.menuhider), .tmenudiv:hover .tmenulabel:not(.menuhider):before {
display: initial !important;
}
.tmenudiv:hover .tmenuimage:not(.menuhider), .tmenudiv:hover .tmenulabel:not(.menuhider):before {
font-size: 1.1em !important;
}
*/
/* Do not load menu img for other if hidden to save bandwidth */

View File

@@ -201,7 +201,7 @@ button.dropdown-item.global-search-item {
}
div#topmenu-global-search-dropdown, div#topmenu-quickadd-dropdown, div#topmenu-bookmark-dropdown {
line-height: 46px;
line-height: <?php echo (empty($conf->global->THEME_TOPMENU_DISABLE_IMAGE) ? '46' : '35' ); ?>px;
}
a.top-menu-dropdown-link {
padding: 8px;