diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 4707107a85a69ff4dd6334c23f03508d8b3e5984..d320759a879b1ba86e54cedf0dc40b60e0bd2737 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -209,6 +209,8 @@ print '$colortexttitlenotab='.$colortexttitlenotab."\n"; print '$colortexttitle='.$colortexttitle."\n"; print '$colortext='.$colortext."\n"; print '$colortextlink='.$colortextlink."\n"; +print '$colortextbackhmenu='.$colortextbackhmenu."\n"; +print '$colortextbackvmenu='.$colortextbackvmenu."\n"; print 'dol_hide_topmenu='.$dol_hide_topmenu."\n"; print 'dol_hide_leftmenu='.$dol_hide_leftmenu."\n"; print 'dol_optimize_smallscreen='.$dol_optimize_smallscreen."\n"; @@ -4067,25 +4069,52 @@ img.demothumb { } /* nboftopmenuentries = <?php echo $nbtopmenuentries ?>, fontsize=<?php echo $fontsize ?> */ -@media only screen and (max-width: <?php echo round($nbtopmenuentries * $fontsize * 6.7, 0) + 10; ?>px) +/* rule to reduce top menu - 1st reduction */ +@media only screen and (max-width: <?php echo round($nbtopmenuentries * $fontsize * 6.7, 0) + 8; ?>px) { + div.tmenucenter { + max-width: <?php echo round($fontsize * 4); ?>px; /* size of viewport */ + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + color: #<?php echo $colortextbackhmenu; ?>; + } .mainmenuaspan { - display: none; + /*display: none;*/ + font-size: 10px; } + .topmenuimage { + background-size: 26px auto; + margin-top: 0px; + } + li.tmenu, li.tmenusel { min-width: 32px; } div.mainmenu { min-width: auto; } - .topmenuimage { - background-size: 26px auto; - margin-top: 8px; - } div.tmenuleft { display: none; } } +/* rule to reduce top menu - 2nd reduction */ +@media only screen and (max-width: <?php echo round($nbtopmenuentries * $fontsize * 4.5, 0) + 8; ?>px) +{ + div.tmenucenter { + max-width: <?php echo round($fontsize * 2); ?>px; /* size of viewport */ + text-overflow: clip; + } + .mainmenuaspan { + /*display: none;*/ + font-size: 10px; + } + .topmenuimage { + background-size: 20px auto; + margin-top: 2px; + } +} +/* rule to reduce top menu - 3rd reduction */ @media only screen and (max-width: 570px) { /* Reduce login top right info */ @@ -4103,13 +4132,20 @@ img.demothumb { top: 4px; max-width: 82px; } + li.tmenu, li.tmenusel { + min-width: 30px; + } + div.tmenucenter { + text-overflow: clip; + } + .topmenuimage { + background-size: 20px auto; + margin-top: 2px !important; + } div.mainmenu { min-width: 20px; } - .topmenuimage { - background-size: 20px auto; - } #tooltip { position: absolute; diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 8d66f4a08473c262a91c17d9be4df5b5d128bbbf..6b0a9d78b4a6608509db7c26195ca114801d4d10 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -204,6 +204,8 @@ print '$colortexttitlenotab='.$colortexttitlenotab."\n"; print '$colortexttitle='.$colortexttitle."\n"; print '$colortext='.$colortext."\n"; print '$colortextlink='.$colortextlink."\n"; +print '$colortextbackhmenu='.$colortextbackhmenu."\n"; +print '$colortextbackvmenu='.$colortextbackvmenu."\n"; print 'dol_hide_topmenu='.$dol_hide_topmenu."\n"; print 'dol_hide_leftmenu='.$dol_hide_leftmenu."\n"; print 'dol_optimize_smallscreen='.$dol_optimize_smallscreen."\n"; @@ -3910,25 +3912,53 @@ img.demothumb { } } + +/* nboftopmenuentries = <?php echo $nbtopmenuentries ?>, fontsize=<?php echo $fontsize ?> */ +/* rule to reduce top menu - 1st reduction */ @media only screen and (max-width: <?php echo round($nbtopmenuentries * $fontsize * 7, 0) + 200; ?>px) { + div.tmenucenter { + max-width: <?php echo round($fontsize * 4); ?>px; /* size of viewport */ + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + color: #<?php echo $colortextbackhmenu; ?>; + } .mainmenuaspan { - display: none; + /*display: none;*/ + font-size: 10px; } + .topmenuimage { + background-size: 26px auto; + margin-top: 0px; + } li.tmenu, li.tmenusel { min-width: 32px; } div.mainmenu { min-width: auto; } - .topmenuimage { - background-size: 26px auto; - margin-top: 8px; - } div.tmenuleft { display: none; } } +/* rule to reduce top menu - 2nd reduction */ +@media only screen and (max-width: <?php echo round($nbtopmenuentries * $fontsize * 4.5, 0) + 200; ?>px) +{ + div.tmenucenter { + max-width: <?php echo round($fontsize * 2); ?>px; /* size of viewport */ + text-overflow: clip; + } + .mainmenuaspan { + /*display: none;*/ + font-size: 10px; + } + .topmenuimage { + background-size: 20px auto; + margin-top: 2px; + } +} +/* rule to reduce top menu - 3rd reduction */ @media only screen and (max-width: 570px) { /* Reduce login top right info */ @@ -3946,11 +3976,19 @@ img.demothumb { top: 9px; } - div.mainmenu { - min-width: 20px; + li.tmenu, li.tmenusel { + min-width: 30px; } - .topmenuimage { + + div.tmenucenter { + text-overflow: clip; + } + .topmenuimage { background-size: 20px auto; + margin-top: 2px !important; + } + div.mainmenu { + min-width: 20px; } #tooltip {