Note that there are some explanatory texts on larger screens.

plurals
  1. USuser1814828
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThanks very much for this ScottS. I'll try that out with the correct version of LESS. This code snippet will be very handy for me in future, especially for smaller areas of CSS. I think it will be a case of taking both your and cimmanon's comments on board in future and deciding on the best solution for the given task. Thanks for both of your answers.
      singulars
    2. COAhhh, I see your point now, my apologies. I got so mixed up with the actual LESS I totally forgot to consider the unnecessary styles that would be downloaded.In this particular case I would like different pages to have the ability to have a different color theme which would be set by the creator in the CMS. I may have given a bad example here. I suppose at the end of the day what I am trying to find out is if a variable's value can be set to a different value within a particular parent class. In my head, this seemed like an easier way to maintain different color themes.
      singulars
    3. COHi cimmanon. If I was just using CSS I would go down that route. I just thought that there might be an easy way of changing the actual variable value after it had been declared, meaning that I would only really need a couple of lines of less to say what the new variable colors were within ".theme-2" and everything would then change colour in association with these new variable values. Thanks for your suggestion though.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload