Author: adrianc
Date: Tue Apr 29 15:59:50 2008 New Revision: 652184 URL: http://svn.apache.org/viewvc?rev=652184&view=rev Log: Centered the secondary-navigation menu. Modified: ofbiz/trunk/framework/common/webcommon/includes/footer.ftl ofbiz/trunk/framework/images/webapp/images/maincss.css Modified: ofbiz/trunk/framework/common/webcommon/includes/footer.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/footer.ftl?rev=652184&r1=652183&r2=652184&view=diff ============================================================================== --- ofbiz/trunk/framework/common/webcommon/includes/footer.ftl (original) +++ ofbiz/trunk/framework/common/webcommon/includes/footer.ftl Tue Apr 29 15:59:50 2008 @@ -26,8 +26,8 @@ <#assign displayApps = Static["org.ofbiz.base.component.ComponentConfig"].getAppBarWebInfos(ofbizServerName, "secondary")> <#if userLogin?has_content> +<center> <div id="secondary-navigation"> - <ul> <#list displayApps as display> <#assign thisApp = display.getContextRoot()> <#assign permission = true> @@ -47,12 +47,11 @@ <#if thisApp != "/"> <#assign thisURL = thisURL + "/control/main"> </#if> - <li<#if selected> class="selected"</#if>><a href="${response.encodeURL(thisURL + externalKeyParam)}" <#if uiLabelMap?exists> title="${uiLabelMap[display.description]}">${uiLabelMap[display.title]}<#else> title="${display.description}"> ${display.title}</#if></a></li> + <a<#if selected> class="selected"</#if> href="${response.encodeURL(thisURL + externalKeyParam)}" <#if uiLabelMap?exists> title="${uiLabelMap[display.description]}">${uiLabelMap[display.title]}<#else> title="${display.description}"> ${display.title}</#if></a> </#if> </#list> - </ul> - <br class="clear"/> </div> +</center> </#if> <div id="footer"> Modified: ofbiz/trunk/framework/images/webapp/images/maincss.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/maincss.css?rev=652184&r1=652183&r2=652184&view=diff ============================================================================== --- ofbiz/trunk/framework/images/webapp/images/maincss.css (original) +++ ofbiz/trunk/framework/images/webapp/images/maincss.css Tue Apr 29 15:59:50 2008 @@ -1128,25 +1128,9 @@ /* ======================================================= */ #secondary-navigation { -height: 1%; /* IE fix */ -margin:0 auto 0 auto; -padding:0; -width:90%; - -} - -#secondary-navigation ul { -display: inline; /* IE Fix */ } -#secondary-navigation ul li { -float: left; -padding:0.5em; -} - -#secondary-navigation ul a { -display: block; -font-size: 1em; +#secondary-navigation a { padding: 0 1em 0 1em; border: 0.05em solid #000099; color: #ffff66; @@ -1154,18 +1138,16 @@ background-repeat: repeat-x; } -#secondary-navigation ul .disabled { +#secondary-navigation .disabled { +padding: 0 1em 0 1em; +border: 0.05em solid #000099; +background-image: url(/images/gradient_sub_uns.gif); +background-repeat: repeat-x; color: #D4D0C8; } -#secondary-navigation ul .selected, -#secondary-navigation ul li:hover { -color: #ffffff; -} - -#secondary-navigation ul a:hover, -#secondary-navigation ul .selected a, -#secondary-navigation ui .selected a:hover { +#secondary-navigation a.selected, +#secondary-navigation a:hover { background-color: #2626c1; background-image: url(/images/gradient_sub_sel.gif); background-repeat: repeat-x; |
Free forum by Nabble | Edit this page |