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

Global change to background and font colours

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-15-2016, 11:16 PM
 
john.hodson@iinet.net.au john.hodson@iinet.net.au is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 68
 

Default Global change to background and font colours

Hi there,

We are in the process of upgrading from v4.1 to X-Cart 5.2.13. We now have a new X-Cart 5 site and are in the process of trying to change some simple design.

I'm hoping to do the following:
1. Change the whole website from white background to light green background (#DFF5F2). I did it in the "Custom CSS" section and managed to change the background colour to green, except for the footer section which remains white. I added the following basic CSS to get most of the background to the light green background:
/**
* background colour
*/
html, body {
background: #dff5f2;
}
*/
layout.main
background-color: #dff5f2;
}

2. Change all the font colour which is currently Blue to Dark green (#005D57).
3. Change all the price colour from the current orangy red to brown (#764000).

With my very limited IT knowledge, I remember only needing to make those changes in three places in the skin.css in v4.1. Are these changes to X-Cart 5 too ambitious for my limited computer skills?

Please help.
Thank you much.
John
__________________
John
XCart Business v.5.4.1.48
Reply With Quote
  #2  
Old 04-17-2016, 10:15 PM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Global change to background and font colours

Quote:
Originally Posted by john.hodson@iinet.net.au
1. Change the whole website from white background to light green background (#DFF5F2). I did it in the "Custom CSS" section and managed to change the background colour to green, except for the footer section which remains white. I added the following basic CSS to get most of the background to the light green background:
/**
* background colour
*/
html, body {
background: #dff5f2;
}
*/
layout.main
background-color: #dff5f2;
}
Do this:
Code:
#footer-area { background-color: #dff5f2; }

Quote:
2. Change all the font colour which is currently Blue to Dark green (#005D57).
Try this
Code:
div, a { color: #005D57 !important; }

Quote:
3. Change all the price colour from the current orangy red to brown (#764000).
Try this
Code:
span.product-price { color: #764000 !important; }
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote

The following user thanks razortw for this useful post:
john.hodson@iinet.net.au (04-26-2016)
  #3  
Old 04-17-2016, 10:58 PM
 
john.hodson@iinet.net.au john.hodson@iinet.net.au is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 68
 

Default Re: Global change to background and font colours

Hi Igor,

Thank you very, very much. You're a god-send.

Two more questions if you would be kind enough to help:
1. The box around each product (in the category page, featured products, etc) varies in size depending on how long the product name is. Is it possible to standardise the box size in Custom CSS to the longest name (which is about 3-4 lines in a box)?

2. How to set the background colour in the little thin space between the product boxes to #dff5f2 also?

here's the link: http://www.sportingoutbacksupplies.com.au/xcart5/

Thanks once again for your help.
Cheers,
John
__________________
John
XCart Business v.5.4.1.48
Reply With Quote
  #4  
Old 04-18-2016, 02:29 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Global change to background and font colours

Quote:
1. ... Is it possible to standardise the box size in Custom CSS to the longest name (which is about 3-4 lines in a box)?

You can't make it match the longest name, but you can make it to always be 3 lines in height: you should either set the "min-height" for ".products-grid div.product-name", or adjust the "min-height" for the whole product cell (".products-grid li.product-cell .product").

Quote:
2. How to set the background colour in the little thin space ... ?

At the moment the white background is set for ".products-grid li, .products-sidebar .product-cell .ui-draggable-dragging, .products-grid .product-cell .ui-draggable-dragging, .products-list .ui-draggable-dragging". I'm not sure if this is your custom code. If so, you should remove this. If this comes from the theme, you should override it and make the background to be transparent.

Then set the white background for ".products-grid li.product-cell .product" instead.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following 2 users thank qualiteam for this useful post:
Iggy (04-18-2016), john.hodson@iinet.net.au (04-26-2016)
  #5  
Old 04-18-2016, 06:50 PM
 
john.hodson@iinet.net.au john.hodson@iinet.net.au is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 68
 

Smile Re: Global change to background and font colours

Thank you Alex and Igor. Solved my problems!
__________________
John
XCart Business v.5.4.1.48
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 01:04 AM.

   

 
X-Cart forums © 2001-2020