Jump to content


Photo
- - - - -

Troubleshooting LeSS/CSS


This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 craigtran

craigtran

    Newbie

  • Members
  • 5 posts

Posted 24 April 2013 - 04:05 AM

I try to modify a childtheme LESS file and got LESS/CSS error sometime like

expected color value: failed at `color:@cute-text-lt; ` line: 8492

 

Is there a technique to troubleshoot or debug error?

 

Please note: I am not a developer, I only know enough CSS to be dangerous.

 

Thanks a lot

 



#2 James B†

James B

    Advocate

  • DMS Subscriber†
  • 5126 posts

Posted 24 April 2013 - 05:46 AM

Hi there

 

If you go through your LESS/Css changes and remove/edit that line of code the error will disappear.

 

When you write a color in css you need to put it in the format of

Please Login or Register to see this Hidden Content

Using LESS you'd need to register the color and then use @color to apply it to the class you're looking to edit. For example the code below sets a color value to use for @color and then uses it for the background of the header.

Please Login or Register to see this Hidden Content

There are some good examples of using less here -

Please Login or Register to see this Hidden Content