0
Welcome Guest! Login
0 items Join Now

Less Compiler

    • euge001's Avatar
    • euge001
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 0

    Less Compiler

    Posted 11 years 9 months ago
    • Hello!

      I turned Less Compiler OFF, cleaned cache twice even in browser, but I still see /templates/gantry/css-compiled/master-17e205a6e5faa8557f5512b764b014ac.css links to css in Firebug.
      How can I turn compression OFF?

      Thank you very much for your answer.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Less Compiler

    Posted 11 years 9 months ago
    • You can't turn the compiler "OFF".
      master-17e205a6e5faa8557f5512b764b014ac.css is the result of the compiling process.
      You can turn off the compression of that output.
    • euge001's Avatar
    • euge001
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 0

    Re: Less Compiler

    Posted 11 years 9 months ago
    • is it mean I should override all rules in mycustomstyle.css ? :shock:
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Less Compiler

    Posted 11 years 9 months ago
    • euge001's Avatar
    • euge001
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 0

    Re: Less Compiler

    Posted 11 years 9 months ago
    • Sorry but I never told here I know what Less is.
      And I just wondered why I can't see any effect by switching buttons of "Less Compiler" in adminpanel Advanced tab and what these buttons are for?

      So finally as far as I understood the way to find right css-rule is to use firebug just for rule name finding and then search for each separate rule by hands in all of css files by NP++

      That's a weird technology! :o
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Less Compiler

    Posted 11 years 9 months ago
    • Please read that tutorial I linked.

      Here is more information about LESS.
      www.gantry-framework.org/documentation/j...advanced/less_css.md

      You don't have search in NotePad.

      It's really as simple as that:

      Open your site.
      Inspect the element with Firebug (or any other webinspector).
      Firebug will tell you EXACTLY wich rules applied.
      Just copy that rule into your custom CSS-file and chnage it for your needs (with proper CSS specificity ...)

      Doing it this way you can update your site without losing changes.
      Changing template files has always been a bad practice.
    • euge001's Avatar
    • euge001
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 0

    Re: Less Compiler

    Posted 11 years 9 months ago
    • thank you

Time to create page: 0.324 seconds