This commit is contained in:
ATM john 2019-09-29 13:10:39 +02:00
parent 37f476bd8f
commit e5f1379ef3
2 changed files with 23 additions and 4 deletions

View File

@ -231,7 +231,7 @@ function printDropdownBookmarksList($aDb, $aLangs)
while ($i < $conf->global->BOOKMARKS_SHOW_IN_MENU && $obj = $db->fetch_object($resql)) while ($i < $conf->global->BOOKMARKS_SHOW_IN_MENU && $obj = $db->fetch_object($resql))
{ {
$bookmarkList.='<a class="dropdown-item bookmark-item" id="bookmark-item-'.$obj->rowid.'" data-id="'.$obj->rowid.'" '.($obj->target == 1?' target="_blank"':'').' href="'.dol_escape_htmltag($obj->url).'" >'; $bookmarkList.='<a class="dropdown-item bookmark-item" id="bookmark-item-'.$obj->rowid.'" data-id="'.$obj->rowid.'" '.($obj->target == 1?' target="_blank"':'').' href="'.dol_escape_htmltag($obj->url).'" >';
$bookmarkList.=dol_escape_htmltag($obj->title); $bookmarkList.= dol_escape_htmltag($obj->title);
$bookmarkList.='</a>'; $bookmarkList.='</a>';
$i++; $i++;
} }
@ -263,7 +263,7 @@ function printDropdownBookmarksList($aDb, $aLangs)
$html.= ' $html.= '
<!-- Menu Footer--> <!-- Menu Footer-->
<div class="bookmark-footer"> <div class="bookmark-footer">
'.$newbtn.'<br/>'.$listbtn.' '.$newbtn.$listbtn.'
<div style="clear:both;"></div> <div style="clear:both;"></div>
</div> </div>
'; ';

View File

@ -181,17 +181,19 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
border-color: #ddd; border-color: #ddd;
} }
.top-menu-dropdown-link { .dropdown-menu a.top-menu-dropdown-link {
color: rgb(<?php print $colortextlink; ?>) !important; color: rgb(<?php print $colortextlink; ?>) !important;
-webkit-box-shadow: none; -webkit-box-shadow: none;
-moz-box-shadow: none; -moz-box-shadow: none;
box-shadow: none; box-shadow: none;
display: block;
margin: 5px 0px;
} }
.dropdown-item { .dropdown-item {
display: block; display: block;
width: 100%; width: 100%;
padding: .25rem 1.5rem; padding: .25rem 1.5rem .25rem 1rem;
clear: both; clear: both;
font-weight: 400; font-weight: 400;
color: #212529 !important; color: #212529 !important;
@ -205,6 +207,23 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
box-shadow: none; box-shadow: none;
} }
.dropdown-item::before {
/* font part */
font-family: "Font Awesome 5 Free";
font-weight: 900;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
text-align:center;
text-decoration:none;
margin-right: 5px;
display: inline-block;
content: "\f0da";
color: rgba(0,0,0,0.3);
}
.dropdown-item.active, .dropdown-item:hover { .dropdown-item.active, .dropdown-item:hover {
color: #<?php echo $colortextbackhmenu; ?> !important; color: #<?php echo $colortextbackhmenu; ?> !important;
text-decoration: none; text-decoration: none;