Fix management of Robot font
This commit is contained in:
parent
df461d319e
commit
e4128bad80
@ -1305,6 +1305,11 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
|
||||
if (GETPOSTISSET('THEME_DARKMODEENABLED')) { $themeparam .= '&THEME_DARKMODEENABLED='.GETPOST('THEME_DARKMODEENABLED', 'int'); }
|
||||
if (GETPOSTISSET('THEME_SATURATE_RATIO')) { $themeparam .= '&THEME_SATURATE_RATIO='.GETPOST('THEME_SATURATE_RATIO', 'int'); }
|
||||
|
||||
if (!empty($conf->global->MAIN_ENABLE_FONT_ROBOTO)) {
|
||||
print '<link rel="preconnect" href="https://fonts.gstatic.com">'."\n";
|
||||
print '<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap" rel="stylesheet">'."\n";
|
||||
}
|
||||
|
||||
if (!defined('DISABLE_JQUERY') && !$disablejs && $conf->use_javascript_ajax)
|
||||
{
|
||||
print '<!-- Includes CSS for JQuery (Ajax library) -->'."\n";
|
||||
|
||||
@ -108,6 +108,7 @@ body {
|
||||
margin-bottom: 0;
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
font-weight: 300px;
|
||||
<?php print 'direction: '.$langs->trans("DIRECTION").";\n"; ?>
|
||||
}
|
||||
|
||||
@ -2161,6 +2162,8 @@ div.menu_titre {
|
||||
{
|
||||
padding-<?php print $left; ?>: 2px;
|
||||
padding-<?php print $right; ?>: 2px;
|
||||
font-family: Roboto,<?php echo $fontlist; ?>;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
div.mainmenu {
|
||||
|
||||
@ -81,7 +81,7 @@ $theme = 'eldy'; // Value of theme
|
||||
if (!empty($conf->global->MAIN_OVERWRITE_THEME_RES)) { $path = '/'.$conf->global->MAIN_OVERWRITE_THEME_RES; $theme = $conf->global->MAIN_OVERWRITE_THEME_RES; }
|
||||
|
||||
// Define image path files and other constants
|
||||
$fontlist = 'roboto,arial,tahoma,verdana,helvetica'; //$fontlist='helvetica, verdana, arial, sans-serif';
|
||||
$fontlist = 'arial,tahoma,verdana,helvetica'; //$fontlist='helvetica, verdana, arial, sans-serif';
|
||||
//$fontlist='"open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;';
|
||||
$img_head = '';
|
||||
$img_button = dol_buildpath($path.'/theme/'.$theme.'/img/button_bg.png', 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user