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
This commit is contained in:
Hans Bakker
2011-11-25 09:39:43 +00:00
parent d5d264fca0
commit 0cd3ce0603
4 changed files with 51 additions and 27 deletions
@@ -940,7 +940,7 @@ height:50px;
}
#org-logo-area {
width:260px;
width:auto;
height:50px;
}
+36 -22
View File
@@ -117,29 +117,43 @@ under the License.
<li class="logo-area"><a href="<@ofbizUrl>${logoLinkURL}</@ofbizUrl>"><img alt="${layoutSettings.companyName}" src="<@ofbizContentUrl>${StringUtil.wrapString(headerImageUrl)}</@ofbizContentUrl>"/></a></li>
</#if>
</#if>
<#if userLogin?exists>
<#if layoutSettings.topLines?has_content>
<#list layoutSettings.topLines as topLine>
<#if topLine.text?exists>
<li>${topLine.text}<a href="${StringUtil.wrapString(topLine.url?if_exists)}&amp;externalLoginKey=${externalLoginKey}">${topLine.urlText?if_exists}</a></li>
<#elseif topLine.dropDownList?exists>
<li><#include "component://common/webcommon/includes/insertDropDown.ftl"/></li>
<#else>
<li>${topLine?if_exists}</li>
</#if>
</#list>
<#else>
<li>${userLogin.userLoginId}</li>
</#if>
<li><a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a></li>
<#else/>
<li>${uiLabelMap.CommonWelcome}! <a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a></li>
<#if layoutSettings.middleTopMessage1?has_content && layoutSettings.middleTopMessage1 != " ">
<li>
<div class="last-system-msg">
<center>${layoutSettings.middleTopHeader?if_exists}</center>
<a href="${layoutSettings.middleTopLink1?if_exists}">${layoutSettings.middleTopMessage1?if_exists}</a><br/>
<a href="${layoutSettings.middleTopLink2?if_exists}">${layoutSettings.middleTopMessage2?if_exists}</a><br/>
<a href="${layoutSettings.middleTopLink3?if_exists}">${layoutSettings.middleTopMessage3?if_exists}</a>
</div>
</li>
</#if>
<#---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" />
<li><a <#if pageAvail?has_content>class="alert"</#if> href="javascript:lookup_popup2('showHelp?helpTopic=${helpTopic}&amp;portalPageId=${parameters.portalPageId?if_exists}','help' ,500,500);">${uiLabelMap.CommonHelp}</a></li>
</#if>
<li class="preference-area">
<ul>
<#if userLogin?exists>
<#if layoutSettings.topLines?has_content>
<#list layoutSettings.topLines as topLine>
<#if topLine.text?exists>
<li>${topLine.text}<a href="${StringUtil.wrapString(topLine.url?if_exists)}&amp;externalLoginKey=${externalLoginKey}">${topLine.urlText?if_exists}</a></li>
<#elseif topLine.dropDownList?exists>
<li><#include "component://common/webcommon/includes/insertDropDown.ftl"/></li>
<#else>
<li>${topLine?if_exists}</li>
</#if>
</#list>
<#else>
<li>${userLogin.userLoginId}</li>
</#if>
<li><a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a></li>
<#else/>
<li>${uiLabelMap.CommonWelcome}! <a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a></li>
</#if>
<#---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" />
<li><a <#if pageAvail?has_content>class="alert"</#if> href="javascript:lookup_popup2('showHelp?helpTopic=${helpTopic}&amp;portalPageId=${parameters.portalPageId?if_exists}','help' ,500,500);">${uiLabelMap.CommonHelp}</a></li>
</#if>
</ul>
</li>
</ul>
</div>
<#--<br class="clear" />-->
+12 -2
View File
@@ -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;
}
@@ -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;
}