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

How do I change colour of Webmaster Mode highlight?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-17-2010, 06:18 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default How do I change colour of Webmaster Mode highlight?

Hi, I'm working on a site that uses very dark backgrounds, and consequently I can hardly see the black border that Webmaster Mode puts around each element as I select it in the popup window. Does anybody know where the CSS style is which I need to edit? I couldn't work out how to find this out by using Firebug, as the border only displays when my mouse is over the popup window, so I can't use Firebug to select the damn thing in Firefox!
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #2  
Old 09-17-2010, 08:14 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How do I change colour of Webmaster Mode highlight?

that's probably in some js file
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Sisom (09-17-2010)
  #3  
Old 09-17-2010, 10:48 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: How do I change colour of Webmaster Mode highlight?

Thanks Steve, I was thinking it might be in JS, not CSS. My JS skills are non-existent at the moment though, but am I likely to be looking for a simple hex colour, such as #000000? (Presuming I find a JS file that might be the right one). I use ColorPicker so I can find out exactly what colour the outline is (I'm presuming it's black, but it might not be)- I'll use Faststone Screen Capture to grab the screen while I'm hovering over a template in the Webmaster Mode popup window, then use ColorPicker to find out the colour of the outline.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #4  
Old 09-17-2010, 12:12 PM
 
SID357 SID357 is offline
 

eXpert
  
Join Date: May 2010
Posts: 205
 

Default Re: How do I change colour of Webmaster Mode highlight?

main.css

Do a search for Webmaster Mode.

Should be a line that says, color: green !important;
Reply With Quote
  #5  
Old 09-20-2010, 10:38 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: How do I change colour of Webmaster Mode highlight?

Hi Sid, that only changes the colour of the label text, nothing to do with the border colour. I think it must be in some JS somewhere, as cflsystems said.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #6  
Old 11-20-2010, 03:26 PM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: How do I change colour of Webmaster Mode highlight?

Sorry to bump this, but I was hoping maybe somebody who knew the answer would see it. We can't all be creating sites with white backgrounds!
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #7  
Old 11-04-2011, 09:19 AM
 
SID357 SID357 is offline
 

eXpert
  
Join Date: May 2010
Posts: 205
 

Default Re: How do I change colour of Webmaster Mode highlight?

Did you ever figure this out? I'm needing a white border as well.
Reply With Quote
  #8  
Old 11-08-2011, 05:10 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: How do I change colour of Webmaster Mode highlight?

Alter the "skin/common_files/js/editor_common.js" template, replace:
Code:
var borderStyle = remove ? "0px none" : "1px solid black";

with e.g.:
Code:
var borderStyle = remove ? "0px none" : "1px solid red";

The code is located in the markTemplate function.
__________________
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 user thanks qualiteam for this useful post:
SID357 (12-03-2011)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 08:08 PM.

   

 
X-Cart forums © 2001-2020