From 34c4de328753ed8546ba5ea187edce3c9ab2e6a8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Oct 2019 16:18:33 +0200 Subject: [PATCH] Better responsive for website toolbar --- htdocs/theme/eldy/global.inc.php | 5 ++-- htdocs/website/index.php | 44 ++++++++++++++++---------------- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 6c476863041..6164012c842 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -3842,6 +3842,7 @@ tr.visible { border-bottom: 1px solid #ccc; background: #e6e6e6; display: inline-block; + padding: 4px 0 4px 0; } .websitebar .buttonDelete, .websitebar .button { text-shadow: none; @@ -3853,10 +3854,10 @@ tr.visible { line-height: normal; } .websiteselection { - display: inline-block; + /* display: inline-block; */ padding-left: 10px; vertical-align: middle; - line-height: 28px; + /* line-height: 28px; */ } .websitetools { float: right; diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 3008b865b7e..777201707ad 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -1953,18 +1953,18 @@ if (! GETPOST('hide_websitemenu')) // ***** Part for web sites print ''; - print '
'; + print ''; print $langs->trans("Website").' : '; - print '
'; + print ''; - print '
'; + print ''; print ' '; - print '
'; + print ''; // List of website - print '
'; + print ''; $out=''; - $out.=''; if (empty($object->records)) $out.=''; // Loop on each sites $i=0; @@ -2050,19 +2050,19 @@ if (! GETPOST('hide_websitemenu')) print 'ref.'" class="button bordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("ReplaceWebsiteContent")).'">'; } - print '
'; + print ''; // Toolbar for websites - print '
'; + print ''; if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite') { $urlext=$virtualurl; $urlint=$urlwithroot.'/public/website/index.php?website='.$websitekey; - print '
'; + print ''; $linktotestonwebserver = ''; $linktotestonwebserver.= $langs->trans("TestDeployOnWeb", $virtualurl).' '.img_picto('', 'object_globe'); $linktotestonwebserver.= ''; @@ -2096,8 +2096,8 @@ if (! GETPOST('hide_websitemenu')) $htmltext.='
'; $htmltext.=$langs->trans("YouCanAlsoDeployToAnotherWHP"); } - print $form->textwithpicto($linktotestonwebserver, $htmltext, 1, 'none', 'valignmiddle', 0, 2, 'helpvirtualhost'); - print '
'; + print $form->textwithpicto($linktotestonwebserver, $htmltext, 1, 'none', 'valignmiddle', 0, 3, 'helpvirtualhost'); + print '
'; } if (in_array($action, array('editcss','editmenu','file_manager','replacesite','replacesiteconfirm'))) @@ -2107,7 +2107,7 @@ if (! GETPOST('hide_websitemenu')) if ($action != 'preview') print ''; } - print '
'; + print ''; // Toolbar for pages @@ -2119,15 +2119,15 @@ if (! GETPOST('hide_websitemenu')) print ''; print '
'; - print '
'; + print ''; print $langs->trans("PageContainer").': '; - print '
'; + print ''; - print '
'; + print ''; print ''; - print '
'; + print ''; - print '
'; + print ''; if ($action != 'addcontainer') { @@ -2395,9 +2395,9 @@ if (! GETPOST('hide_websitemenu')) } } - print '
'; // end website selection + print ''; // end website selection - print '
'; + print ''; if (($pageid > 0 && $atleastonepage) && ($action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite')) { @@ -2437,9 +2437,9 @@ if (! GETPOST('hide_websitemenu')) if ($action != 'preview') print ''; } - print '
'; // end websitetools + print ''; // end websitetools - print '
'; + print ''; if (GETPOST('editsource', 'alpha') || GETPOST('editcontent', 'alpha')) { $htmltext=$langs->transnoentitiesnoconv("YouCanEditHtmlSource").'
'; @@ -2453,7 +2453,7 @@ if (! GETPOST('hide_websitemenu')) print $form->textwithpicto($langs->trans("SyntaxHelp").' '.img_help(2, $langs->trans("SyntaxHelp")), $htmltext, 1, 'none', 'inline-block', 1, 2, 'tooltipsubstitution'); } } - print '
'; // end websitehelp + print ''; // end websitehelp