Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

CSS Rounded Corners for 4.2.x

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-15-2009, 01:43 PM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default CSS Rounded Corners for 4.2.x

Hi all

I have been working on a solution, and have compiled some code that is working well.

Here you go!

Add this to the bottom of skin1/main.css

Code:
.xrounded h1, .zrounded h1 { margin:0; font-size:1.0em; /* Change menu header font size */ padding:0 8px 3px 8px; border-bottom:1px solid #464141; } .xrounded p, .zrounded p { margin:0; padding:5px 0; font-size:10px; line-height:125%; } .xrounded { background: transparent; width:100%; /* Adjust the width here */ float:left; margin:0 0 15px 0; line-height:125%; } .xtop, .xbottom { display:block; background:transparent; font-size:1px; } .xb1, .xb2, .xb3, .xb4 { display:block; overflow:hidden; } .xb1, .xb2, .xb3 { height:1px; } .xb2, .xb3, .xb4 { background:#fff; border-left:1px solid #464141; border-right:1px solid #464141; } .xb1 { margin:0 5px; background:#464141; } .xb2 { margin:0 3px; border-width:0 2px; } .xb3 { margin:0 2px; } .xb4 { height:2px; margin:0 1px; } .xboxcontent { display:block; border:0 solid #464141; border-width:0 1px; height:auto; background:#f8f8f9; } .xboxcontent ul { list-style: none; /* This removes the bullets and indent from the ul style */ padding: 10px 0px 0px 0px; margin: 0px; } .xboxcontent ul a{ text-decoration: none; } div.xboxcontent div{ padding: 0px 4px 0 8px; } .xboxcontentmain { display:block; border:0 solid #464141; border-width:0 1px; height:auto; background:#fff; } div.xboxcontentmain div{ padding: 10px; } * html .xboxcontent { height:1px; } .color_a { background: #464141; /* Change menu header colour and text colour */ color:#fff; } .color_a a{ color:#fff; /* This changes the colour of the Help menu link and removes the underline */ text-decoration: none; }

Change the code in skin1/menu_dialog.tpl to this:
Code:
<div class="xrounded{if $additional_class} {$additional_class}{/if}"> <b class="xtop"> <b class="xb1"></b> <b class="xb2 color_a"></b> <b class="xb3 color_a"></b> <b class="xb4 color_a"></b> </b> <div class="xboxcontent {if $additional_class} {$additional_class}{/if}"> <h1 class="color_a">{if $link_href}<a href="{$link_href}">{/if}{$title|escape}{if $link_href}</a>{/if}</h1> <div class="menu-list content{if $additional_class} {$additional_class}{/if}">{$content}<br /></div> </div> <b class="xbottom"> <b class="xb4 color_a"></b> <b class="xb3 color_a"></b> <b class="xb2 color_a"></b> <b class="xb1"></b></b> </div>

Change the code in skin1/dialog.tpl to this:
Code:
<div class="xrounded{if $additional_class} {$additional_class}{/if}"> <b class="xtop"> <b class="xb1"></b> <b class="xb2 color_a"></b> <b class="xb3 color_a"></b> <b class="xb4 color_a"></b> </b> <div class="xboxcontentmain {if $additional_class} {$additional_class}{/if}"> <h1 class="color_a">{if $link_href}<a href="{$link_href}">{/if}{$title|escape}{if $link_href}</a>{/if}</h1> <div class="xboxcontentmain {if $additional_class} {$additional_class}{/if}">{$content}<br /></div> </div> <b class="xbottom"> <b class="xb4 color_a"></b> <b class="xb3 color_a"></b> <b class="xb2 color_a"></b> <b class="xb1"></b></b> </div>
__________________
Gold 4.2.0
CDSEOPRO v.1.3.1
Advanced MiniCart
ezUpsell
One Page Checkout
Drug Test Kits
Reply With Quote
  #2  
Old 11-15-2009, 01:47 PM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default Re: CSS Rounded Corners for 4.2.x

This is a work in progress, I have found one problem.

The login menu is not displaying properly.

Any ideas guys?

http://www.breathalyzercanada.com/skin1/images/banners/user.png
__________________
Gold 4.2.0
CDSEOPRO v.1.3.1
Advanced MiniCart
ezUpsell
One Page Checkout
Drug Test Kits
Reply With Quote
  #3  
Old 11-15-2009, 04:25 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: CSS Rounded Corners for 4.2.x

Probably a float element in the menu that is not cleared
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 11-15-2009, 04:35 PM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default Re: CSS Rounded Corners for 4.2.x

Quote:
Originally Posted by cflsystems
Probably a float element in the menu that is not cleared

That's what I was thinking. Do you think it would be in the menu_dialog.tpl or in the User Menu .tpl file?

Do you now which .tpl file set that menu?
__________________
Gold 4.2.0
CDSEOPRO v.1.3.1
Advanced MiniCart
ezUpsell
One Page Checkout
Drug Test Kits
Reply With Quote
  #5  
Old 11-15-2009, 04:37 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: CSS Rounded Corners for 4.2.x

The menu is in menu_dilaog.tpl but I don't think the problem is there. It is in the template showing the login/register buttons
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 11-15-2009, 05:13 PM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default Re: CSS Rounded Corners for 4.2.x

I have narrowed it down to these lines of code, any ideas?

The error occurs with the placement of the buttons within the <div>.

Code:
{if $main ne "login_incorrect" and $main ne "antibot_error" and $main ne "disabled" or $config.Security.use_secure_login_page eq "Y"} {capture name=menu} <form action="{$auth_form_url}/include/login.php" method="post" name="authform" class="item"> <input type="hidden" name="{$XCARTSESSNAME}" value="{$XCARTSESSID}" /> {if $config.Security.use_secure_login_page eq "Y"} <div class="login-buttons"> {include file="customer/buttons/secure_login.tpl"} {include file="customer/buttons/create_profile_menu.tpl" additional_button_class="menu-button"} </div> {/if} <div class="button-row recovery"> <a href="help.php?section=Password_Recovery">{$lng.lbl_recover_password}</a> </div> </form> {/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_authentication content=$smarty.capture.menu additional_class="menu-auth"} {/if}
__________________
Gold 4.2.0
CDSEOPRO v.1.3.1
Advanced MiniCart
ezUpsell
One Page Checkout
Drug Test Kits
Reply With Quote
  #7  
Old 11-15-2009, 05:15 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: CSS Rounded Corners for 4.2.x

You have to look at the style classes - can't tell you like this
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #8  
Old 11-15-2009, 05:38 PM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default Re: CSS Rounded Corners for 4.2.x

I believe the problem lies with the box not auto changing in height to accommodate the buttons.

How do we change it so the box sees the buttons as objects and changes height to fit them?
__________________
Gold 4.2.0
CDSEOPRO v.1.3.1
Advanced MiniCart
ezUpsell
One Page Checkout
Drug Test Kits
Reply With Quote
  #9  
Old 11-16-2009, 01:27 PM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default Re: CSS Rounded Corners for 4.2.x

I have it working in IE & Safari but NOT in FF with this code.

http://www.breathalyzercanada.com/skin1/images/banners/user3.png

Any ideas?
Code:
{if $main ne "login_incorrect" and $main ne "antibot_error" and $main ne "disabled" or $config.Security.use_secure_login_page eq "Y"} {capture name=menu} <form action="{$auth_form_url}/include/login.php" method="post" name="authform" class="item"> <input type="hidden" name="{$XCARTSESSNAME}" value="{$XCARTSESSID}" /> <div class="login-buttons"> {include file="customer/buttons/secure_login.tpl"} {include file="customer/buttons/create_profile_menu.tpl" additional_button_class="menu-button"} </div> <div> <a href="help.php?section=Password_Recovery">{$lng.lbl_recover_password}</a> </div> </form> {/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_authentication content=$smarty.capture.menu additional_class="menu-auth"} {/if}
__________________
Gold 4.2.0
CDSEOPRO v.1.3.1
Advanced MiniCart
ezUpsell
One Page Checkout
Drug Test Kits
Reply With Quote
  #10  
Old 12-03-2009, 03:07 AM
  AusNetIT's Avatar 
AusNetIT AusNetIT is offline
 

Senior Member
  
Join Date: Apr 2009
Posts: 152
 

Default Re: CSS Rounded Corners for 4.2.x

HI,

Can you PM the site link

Thanks
__________________
Melbourne website design | SEO in Melbourne

Installed Ver 4.6.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:22 AM.

   

 
X-Cart forums © 2001-2020