From 57b0de25e28662b4846dd5f49087a78a37bf19f5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 26 Jun 2015 14:44:06 +0200 Subject: [PATCH] NEW Add option THEME_ELDY_DISABLE_IMAGE to disable images into menu eldy. --- htdocs/theme/eldy/style.css.php | 54 ++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 14 deletions(-) diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 5eaa49a3072..af3f4adbf5f 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -602,13 +602,17 @@ div.ficheaddleft { /* ============================================================================== */ global->THEME_ELDY_DISABLE_IMAGE)) { $maxwidthloginblock = 180; } ?> div#id-top { - height: px; + + display:none; + background: rgb(); background-image: linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); @@ -618,14 +622,19 @@ div#id-top { background-image: -ms-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0, rgba(255,255,255,.3)), color-stop(1, rgba(0,0,0,.3)) ); + global->THEME_ELDY_DISABLE_IMAGE)) { ?> + height: 26px; + + height: px; + + } div#tmenu_tooltip { display:none; - height: px; - padding-: 100px; + padding-: px; } @@ -643,7 +652,6 @@ div.tmenudiv { margin: 0px 0px 0px 0px; /* t r b l */ font-size: 13px; font-weight: normal; - height: px; color: #000000; text-decoration: none; @@ -683,7 +691,7 @@ ul.tmenu { /* t r b l */ margin: 0px 0px 0px 0px; list-style: none; } -ul.tmenu li { +ul.tmenu li { /* We need this to have background color when menu entry wraps on new lines */ background: rgb(); background-image: linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); @@ -700,12 +708,12 @@ li.tmenu, li.tmenusel { vertical-align: bottom; global->MAIN_MENU_INVERT)) { ?> float: ; - height: px; + /* height: px; */ position:relative; display: block; - padding: 0px 0px 2px 0px; - margin: 0px 0px 0px 0px; + padding: 0 0 0 0; + margin: 0 0 0 0; font-weight: normal; } li.tmenusel, li.tmenu:hover { @@ -715,25 +723,33 @@ li.tmenusel, li.tmenu:hover { background-image: -ms-linear-gradient(bottom, rgba(250,250,250,0.3) 0%, rgba(0,0,0,0.3) 100%) !important; background-image: linear-gradient(bottom, rgba(250,250,250,0.3) 0%, rgba(0,0,0,0.3) 100%) !important; background: rgb(); - /* background: url() 50% 0 repeat-x !important; Nicer but problem when menu wrap on 2 lines */ } .tmenuend .tmenuleft { width: 0px; } +.tmenuend { display: none; } div.tmenuleft { float: ; margin-top: 0px; dol_optimize_smallscreen)) { ?> width: 5px; - height: px; background: url() 0 -6px no-repeat; + global->THEME_ELDY_DISABLE_IMAGE)) { ?> + height: 24px; + + height: px; + } div.tmenucenter { - padding-top: 2px; + padding-top: global->THEME_ELDY_DISABLE_IMAGE)?'2':'4'; ?>px; padding-left: 0px; padding-right: 0px; + global->THEME_ELDY_DISABLE_IMAGE)) { ?> + height: 22px; + height: px; + width: 100%; } .mainmenuaspan @@ -876,6 +892,9 @@ foreach($mainmenuusedarray as $val) .tmenuimage { padding:0 0 0 0 !important; margin:0 0px 0 0 !important; + global->THEME_ELDY_DISABLE_IMAGE)) { ?> + display: none; + } @@ -966,10 +985,11 @@ table.login_table_securitycode tr td { div.login_block { position: absolute; + text-align: right; : 5px; top: 3px; font-weight: bold; - max-width: 110px; + max-width: px; display: none; @@ -992,7 +1012,13 @@ div.login a:hover { color: #; text-decoration:underline; } -div.login_block_user, div.login_block_other { clear: both; } +div.login_block_user { + display: inline-block; +} +div.login_block_other { + display: inline-block; + clear: both; +} div.login_block_other { padding-top: 3px; text-align: right; } .login_block_elem { float: right;