0
Welcome Guest! Login
0 items Join Now

LESS CSS newbie

  • LESS CSS newbie

    Posted 11 years 4 months ago
    • I am using the rt_spectral template with LESS disabled for now. I have created some CSS overrides which I have placed in a file here: templates/rt_spectral/css/rt_spectral-custom.css. My site also has rokGZipper active.

      I now want to activate LESS but i am a bit confused about exactly what I need to do. Here is what I understand I should do. Please confirm:

      1. Copy custom CSS from:

      templates/rt_spectral/css/rt_spectral-custom.css

      to

      templates/rt_spectral/less/template-custom.less


      2. Disactivate rokGZipper

      3. Enable "Less" in the template edit area


      Here is the link to our site: http://printscience.com
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: LESS CSS newbie

    Posted 11 years 4 months ago
    • 1. you can't disable LESS compiler - all you've disabled is LESS compression if you're talking about template manager setting.
      2. rokgzipper is now superseded by rokbooster - uninstall rokgzipper and use rokbooster instead.
      3. LESS is already activated (the template I written using LESS and the inbuilt LES compiler compiles this into CSS).
      4. Why do you want to use LESS instead of just CSS? If all you're going to do is put CSS statements into a LESS file instead that is wasteful since you're pushing the CSS statements through the LESS compiler unnecessarily? LESS is really for developers who are going to right a lot of styling code (usually just template developers) - yes it is very powerful and can do a lot - but it's a bit harder to read and understand what is going on than CSS is.

      For more information on debugging & customising with LESS/CSS please read this blog post http://www.rockettheme.com/blog/coding/1767-basics-debugging-a-customizing-with-lesscss .

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.063 seconds