Skip to content
Snippets Groups Projects
Commit 23f64649 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Work on CSS

parent 30703e18
No related branches found
No related tags found
No related merge requests found
......@@ -1465,7 +1465,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
// Login name with tooltip
$toprightmenu.='<div class="inline-block nowrap"><div class="inline-block login_block_elem" style="padding: 0px;">';
$toprightmenu.=$user->getNomurl(0, '', true, 0, 11, 0, 'firstname');
$toprightmenu.=$user->getNomurl(0, '', true, 0, 11, 0, 'firstname','alogin');
$toprightmenu.='</div></div>';
$toprightmenu.='</div>';
......
......@@ -107,7 +107,7 @@ $colorbacklinepair2=(250+round($isred/3)).','.(250+round($isgreen/3)).','.(250+r
$colorbacklinepairhover=(230+round(($isred+$isgreen+$isblue)/9)).','.(230+round(($isred+$isgreen+$isblue)/9)).','.(230+round(($isred+$isgreen+$isblue)/9)); // line pair
$colorbackbody='243,243,243';
$colortext='40,40,40';
$fontsize='12';
$fontsize='13';
$fontsizesmaller='11';
$usegradient=1;
......@@ -487,6 +487,11 @@ div.confirmmessage {
z-index: 999999;
}
*/
.googlerefreshcal {
padding-top: 4px;
padding-bottom: 4px;
}
/* ============================================================================== */
/* Styles to hide objects */
......@@ -1042,9 +1047,10 @@ div.login_block_other { padding-top: 3px; text-align: right; }
height: 16px;
}
.alogin, .alogin:hover {
color: #888 !important;
color: #<?php echo $colortextbackvmenu; ?> !important;
font-weight: normal !important;
font-size: <?php echo $fontsizesmaller; ?>px !important;
padding-top: 2px;
}
.alogin:hover {
text-decoration:underline !important;
......@@ -3695,12 +3701,10 @@ border-top-right-radius: 6px;
display: none;
}
li.tmenu, li.tmenusel {
min-width: 34px;
min-width: 32px;
}
div.mainmenu {
min-width: auto;
background-position-y: 8px;
height: 34px;
}
.imgopensurveywizard { width:95%; height: auto; }
}
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
This diff is collapsed.
......@@ -1837,9 +1837,10 @@ class User extends CommonObject
* @param int $maxlen Max length of visible user name
* @param int $hidethirdpartylogo Hide logo of thirdparty if user is external user
* @param string $mode 'firstname'=Show only firstname
* @param string $morecss Add more css on link
* @return string String with URL
*/
function getNomUrl($withpicto=0, $option='', $infologin=0, $notooltip=0, $maxlen=24, $hidethirdpartylogo=0, $mode='')
function getNomUrl($withpicto=0, $option='', $infologin=0, $notooltip=0, $maxlen=24, $hidethirdpartylogo=0, $mode='',$morecss='')
{
global $langs, $conf, $db;
global $dolibarr_main_authentication, $dolibarr_main_demo;
......@@ -1897,7 +1898,7 @@ class User extends CommonObject
$link = '<a href="'.DOL_URL_ROOT.'/user/card.php?id='.$this->id.'"';
$link.= ($notooltip?'':' title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip"');
$link.= ($notooltip?'':' title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip'.($morecss?' '.$morecss:'').'"');
$link.= '>';
$linkend='</a>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment