From 0cd3ce06039712eecbde0f85e539552b98d37367 Mon Sep 17 00:00:00 2001 From: Hans Bakker Date: Fri, 25 Nov 2011 09:39:43 +0000 Subject: [PATCH] only allow space depending on the top logo's width, add system messages to the flatgrey theme git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1206094 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/droppingcrumbs/css/style.css | 2 +- themes/flatgrey/includes/header.ftl | 58 ++++++++++++------- themes/flatgrey/webapp/flatgrey/maincss.css | 14 ++++- themes/tomahawk/webapp/tomahawk/css/style.css | 4 +- 4 files changed, 51 insertions(+), 27 deletions(-) diff --git a/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css b/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css index 0452f4b981..4af2a120c4 100644 --- a/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css +++ b/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css @@ -940,7 +940,7 @@ height:50px; } #org-logo-area { -width:260px; +width:auto; height:50px; } diff --git a/themes/flatgrey/includes/header.ftl b/themes/flatgrey/includes/header.ftl index 2480322e12..5975a27d4a 100644 --- a/themes/flatgrey/includes/header.ftl +++ b/themes/flatgrey/includes/header.ftl @@ -117,29 +117,43 @@ under the License.
  • ${layoutSettings.companyName}
  • - <#if userLogin?exists> - <#if layoutSettings.topLines?has_content> - <#list layoutSettings.topLines as topLine> - <#if topLine.text?exists> -
  • ${topLine.text}${topLine.urlText?if_exists}
  • - <#elseif topLine.dropDownList?exists> -
  • <#include "component://common/webcommon/includes/insertDropDown.ftl"/>
  • - <#else> -
  • ${topLine?if_exists}
  • - - - <#else> -
  • ${userLogin.userLoginId}
  • - -
  • ${uiLabelMap.CommonLogout}
  • - <#else/> -
  • ${uiLabelMap.CommonWelcome}! ${uiLabelMap.CommonLogin}
  • + <#if layoutSettings.middleTopMessage1?has_content && layoutSettings.middleTopMessage1 != " "> +
  • + +
  • - <#---if webSiteId?exists && requestAttributes._CURRENT_VIEW_?exists && helpTopic?exists--> - <#if parameters.componentName?exists && requestAttributes._CURRENT_VIEW_?exists && helpTopic?exists> - <#include "component://common/webcommon/includes/helplink.ftl" /> -
  • class="alert" href="javascript:lookup_popup2('showHelp?helpTopic=${helpTopic}&portalPageId=${parameters.portalPageId?if_exists}','help' ,500,500);">${uiLabelMap.CommonHelp}
  • - +
  • + +
  • <#--
    --> diff --git a/themes/flatgrey/webapp/flatgrey/maincss.css b/themes/flatgrey/webapp/flatgrey/maincss.css index 2f1fca66e4..01933155c1 100644 --- a/themes/flatgrey/webapp/flatgrey/maincss.css +++ b/themes/flatgrey/webapp/flatgrey/maincss.css @@ -259,7 +259,7 @@ color: #ccc; font-size: 1em; font-weight: normal; min-height: 26px; /* Setting must be in px */ -height: 2.6em; +height: auto; overflow: auto; } @@ -273,6 +273,16 @@ color: #ccc; font-weight: normal; } +.last-system-msg{ +color: #FFFFFF; +font-size: 0.9em; +padding-left:10px; +} + +.preference-area{ +float: right !important; +} + #masthead ul .logo-area { padding: 0.1em 0.8em; } @@ -282,7 +292,7 @@ padding: 0.1em 0.8em; } #masthead ul .org-logo-area img{ -width: 50px; +width: auto; height: 22px; } diff --git a/themes/tomahawk/webapp/tomahawk/css/style.css b/themes/tomahawk/webapp/tomahawk/css/style.css index be565dbef7..adbc04f7e8 100644 --- a/themes/tomahawk/webapp/tomahawk/css/style.css +++ b/themes/tomahawk/webapp/tomahawk/css/style.css @@ -957,7 +957,7 @@ height:100%; } #org-logo-area { -width:385px; +width:auto; height:50px; } @@ -2137,7 +2137,7 @@ display: none; #masthead ul li.last-system-msg{ color:#FFFFFF; padding-left:10px; -float: right; +float: left; margin-right: 20px; }