FIX Mode smartphone was not triggered when there is too loo menu
entries.
This commit is contained in:
parent
7e19a64ff2
commit
524b0cd85f
@ -742,7 +742,7 @@ select.selectarrowonleft option {
|
|||||||
.hideobject { display: none; }
|
.hideobject { display: none; }
|
||||||
.minwidth50 { min-width: 50px; }
|
.minwidth50 { min-width: 50px; }
|
||||||
/* rule for not too small screen only */
|
/* rule for not too small screen only */
|
||||||
@media only screen and (min-width: <?php echo round($nbtopmenuentries * 45, 0) + 7; ?>px)
|
@media only screen and (min-width: <?php echo empty($conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3) ? round($nbtopmenuentries * 47, 0) + 40 : $conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3; ?>px)
|
||||||
{
|
{
|
||||||
.width25 { width: 25px; }
|
.width25 { width: 25px; }
|
||||||
.width50 { width: 50px; }
|
.width50 { width: 50px; }
|
||||||
@ -1058,7 +1058,7 @@ div.vmenu, td.vmenu {
|
|||||||
.menuhider { display: none !important; }
|
.menuhider { display: none !important; }
|
||||||
|
|
||||||
/* rule to reduce top menu - 3rd reduction: The menu for user is on left */
|
/* rule to reduce top menu - 3rd reduction: The menu for user is on left */
|
||||||
@media only screen and (max-width: <?php echo round($nbtopmenuentries * 50, 0) + 12; ?>px) /* reduction 3 */
|
@media only screen and (max-width: <?php echo empty($conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3) ? round($nbtopmenuentries * 47, 0) + 40 : $conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3; ?>px) /* reduction 3 */
|
||||||
{
|
{
|
||||||
body.sidebar-collapse .side-nav {
|
body.sidebar-collapse .side-nav {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@ -192,6 +192,7 @@ $colortext=join(',', colorStringToArray($colortext));
|
|||||||
$colortextlink=join(',', colorStringToArray($colortextlink));
|
$colortextlink=join(',', colorStringToArray($colortextlink));
|
||||||
|
|
||||||
$nbtopmenuentries=$menumanager->showmenu('topnb');
|
$nbtopmenuentries=$menumanager->showmenu('topnb');
|
||||||
|
if ($conf->browser->layout == 'phone') $nbtopmenuentries = max($nbtopmenuentries, 7);
|
||||||
|
|
||||||
|
|
||||||
$minwidthtmenu=66; /* minimum width for one top menu entry */
|
$minwidthtmenu=66; /* minimum width for one top menu entry */
|
||||||
|
|||||||
@ -195,6 +195,7 @@ $colortext=join(',', colorStringToArray($colortext));
|
|||||||
$colortextlink=join(',', colorStringToArray($colortextlink));
|
$colortextlink=join(',', colorStringToArray($colortextlink));
|
||||||
|
|
||||||
$nbtopmenuentries=$menumanager->showmenu('topnb');
|
$nbtopmenuentries=$menumanager->showmenu('topnb');
|
||||||
|
if ($conf->browser->layout == 'phone') $nbtopmenuentries = max($nbtopmenuentries, 7);
|
||||||
|
|
||||||
print '/*'."\n";
|
print '/*'."\n";
|
||||||
print 'colorbackbody='.$colorbackbody."\n";
|
print 'colorbackbody='.$colorbackbody."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user