From 5e71366ff2b63581aa11a8b5e270fc8ac49bc43b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 6 Feb 2020 18:06:36 +0100 Subject: [PATCH] css --- htdocs/core/lib/functions.lib.php | 4 ++-- htdocs/index.php | 2 +- htdocs/theme/eldy/global.inc.php | 9 +++++++++ htdocs/theme/eldy/info-box.inc.php | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index da82a81ea83..38b5a2d2a2d 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -4201,7 +4201,7 @@ function load_fiche_titre($titre, $morehtmlright = '', $picto = 'generic', $pict if ($picto == 'setup') $picto = 'generic'; $return .= "\n"; - $return .= ''; // maring bottom must be same than into print_barre_list + $return .= '
'; // maring bottom must be same than into print_barre_list $return .= ''; if ($picto) $return .= ''; $return .= ''; + if ($picto && $titre) print ''; print '
'.img_picto('', $picto, 'class="valignmiddle widthpictotitle pictotitle"', $pictoisfullpath).''; @@ -4268,7 +4268,7 @@ function print_barre_liste($titre, $page, $file, $options = '', $sortfield = '', // Left - if ($picto && $titre) print ''.img_picto('', $picto, 'class="hideonsmartphone valignmiddle pictotitle widthpictotitle"', $pictoisfullpath).''.img_picto('', $picto, 'class="valignmiddle pictotitle widthpictotitle"', $pictoisfullpath).''; print '
'.$titre; if (!empty($titre) && $savtotalnboflines >= 0 && (string) $savtotalnboflines != '') print ' ('.$totalnboflines.')'; diff --git a/htdocs/index.php b/htdocs/index.php index a856a51ac8d..110de972f2b 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -80,7 +80,7 @@ llxHeader('', $title); $resultboxes = FormOther::getBoxesArea($user, "0"); // Load $resultboxes (selectboxlist + boxactivated + boxlista + boxlistb) -print load_fiche_titre($langs->trans("HomeArea"), $resultboxes['selectboxlist'], 'home'); +print load_fiche_titre($langs->trans("HomeArea"), $resultboxes['selectboxlist'], 'home', 0, '', 'titleforhome'); if (!empty($conf->global->MAIN_MOTD)) { diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index f0918feb9da..fc633cbfbc3 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -1434,6 +1434,12 @@ td.nobordernopadding.widthpictotitle.opacityhigh.valignmiddle.col-picto { margin-: 8px; margin-bottom: 4px; } +@media only screen and (max-width: 767px) +{ + span.pictotitle { + margin-: 0 !important; + } +} .pictoobjectwidth { width: 14px; } @@ -2441,6 +2447,9 @@ div.tabBar { div.tabBar tr.titre td { padding-top: 20px; } +div.fiche tr.titre td { + padding-top: 10px; +} div.tabBar.tabBarNoTop { padding-top: 0; diff --git a/htdocs/theme/eldy/info-box.inc.php b/htdocs/theme/eldy/info-box.inc.php index 365218be8b1..033637759c9 100644 --- a/htdocs/theme/eldy/info-box.inc.php +++ b/htdocs/theme/eldy/info-box.inc.php @@ -325,6 +325,6 @@ if (GETPOSTISSET('THEME_AGRESSIVENESS_RATIO')) $conf->global->THEME_AGRESSIVENES @media only screen and (max-width: 767px) { .box-flex-container { - margin: 0 0 0 -8px !important; + margin: 0 0 0 0 !important; } }