Take number of entry into top menu to defined the trigger to change size
of top menu thumbs
This commit is contained in:
parent
b1c5768de9
commit
683ad24ece
@ -215,7 +215,7 @@ print '*/'."\n";
|
|||||||
if (! empty($conf->dol_optimize_smallscreen)) $fontsize=11;
|
if (! empty($conf->dol_optimize_smallscreen)) $fontsize=11;
|
||||||
|
|
||||||
|
|
||||||
//$nb=$menumanager->showmenu('topnb');
|
$nbtopmenuentries=$menumanager->showmenu('topnb');
|
||||||
//print $nb;
|
//print $nb;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -3871,6 +3871,17 @@ border-top-right-radius: 6px;
|
|||||||
padding: 0 4px 0 4px;
|
padding: 0 4px 0 4px;
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 767px)
|
@media only screen and (max-width: 767px)
|
||||||
|
{
|
||||||
|
.imgopensurveywizard { width:95%; height: auto; }
|
||||||
|
|
||||||
|
#tooltip {
|
||||||
|
position: absolute;
|
||||||
|
width: <?php print dol_size(350,'width'); ?>px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: <?php echo $nbtopmenuentries * 85; ?>px)
|
||||||
{
|
{
|
||||||
.mainmenuaspan {
|
.mainmenuaspan {
|
||||||
display: none;
|
display: none;
|
||||||
@ -3888,13 +3899,6 @@ border-top-right-radius: 6px;
|
|||||||
div.tmenuleft {
|
div.tmenuleft {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.imgopensurveywizard { width:95%; height: auto; }
|
|
||||||
|
|
||||||
#tooltip {
|
|
||||||
position: absolute;
|
|
||||||
width: <?php print dol_size(350,'width'); ?>px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 570px)
|
@media only screen and (max-width: 570px)
|
||||||
{
|
{
|
||||||
@ -3910,7 +3914,8 @@ border-top-right-radius: 6px;
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
}
|
}
|
||||||
div.login_block {
|
div.login_block {
|
||||||
top: 9px;
|
top: 4px;
|
||||||
|
max-width: 82px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.mainmenu {
|
div.mainmenu {
|
||||||
|
|||||||
@ -32,7 +32,7 @@ if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
|||||||
if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK',1);
|
if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK',1);
|
||||||
if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL',1);
|
if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL',1);
|
||||||
if (! defined('NOLOGIN')) define('NOLOGIN',1); // File must be accessed by logon page so without login
|
if (! defined('NOLOGIN')) define('NOLOGIN',1); // File must be accessed by logon page so without login
|
||||||
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1);
|
//if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1);
|
||||||
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML',1);
|
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML',1);
|
||||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||||
|
|
||||||
@ -209,6 +209,9 @@ print 'dol_screenheight='.$_SESSION['dol_screenheight']."\n";
|
|||||||
print '*/'."\n";
|
print '*/'."\n";
|
||||||
|
|
||||||
if (! empty($conf->dol_optimize_smallscreen)) $fontsize=11;
|
if (! empty($conf->dol_optimize_smallscreen)) $fontsize=11;
|
||||||
|
|
||||||
|
$nbtopmenuentries=$menumanager->showmenu('topnb');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
@ -3711,6 +3714,16 @@ border-top-right-radius: 6px;
|
|||||||
padding: 0 4px 0 4px;
|
padding: 0 4px 0 4px;
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 767px)
|
@media only screen and (max-width: 767px)
|
||||||
|
{
|
||||||
|
.imgopensurveywizard { width:95%; height: auto; }
|
||||||
|
|
||||||
|
#tooltip {
|
||||||
|
position: absolute;
|
||||||
|
width: <?php print dol_size(350,'width'); ?>px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: <?php echo ($nbtopmenuentries * 85) + 200; ?>px)
|
||||||
{
|
{
|
||||||
.mainmenuaspan {
|
.mainmenuaspan {
|
||||||
display: none;
|
display: none;
|
||||||
@ -3728,13 +3741,6 @@ border-top-right-radius: 6px;
|
|||||||
div.tmenuleft {
|
div.tmenuleft {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.imgopensurveywizard { width:95%; height: auto; }
|
|
||||||
|
|
||||||
#tooltip {
|
|
||||||
position: absolute;
|
|
||||||
width: <?php print dol_size(350,'width'); ?>px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 570px)
|
@media only screen and (max-width: 570px)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user