0
Welcome Guest! Login
0 items Join Now

Gantry 5 support for LESS

    • Ali Samii's Avatar
    • Ali Samii
    • Elite Rocketeer
    • Posts: 629
    • Thanks: 2

    Gantry 5 support for LESS

    Posted 9 years 11 months ago
    • Hi,

      On the Gantry site, the list of features speaks about support for LESS:
      SCSS / LESS Support
      Dynamic compilation of multiple CSS preprocessors is supported in Gantry 5
      However, in the actual installation, there is only an SCSS folder within the template hierarchy.

      Although I am comfortable with SCSS, I prefer LESS.

      How do I use LESS and convert/standardise my install to use LESS rather than SCSS?
    • Thank you.

      Ali Samii
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Gantry 5 support for LESS

    Posted 9 years 11 months ago
    • Gantry has the ability to have pluggable compilers, as well as eventually pluggable frameworks and layout systems
      But none of that is implemented and you would have to create and add your own compiler for less, in order for it to work
      by default, less is not compiled with gantry, only sass (at least not tested).

      Unfortunately less compiler for php is unmaintained author has abandoned it. So there is not much hope for LESS with Gantry 5.
      I would say SCSS is more advanced anyway and I don't see a reason to use LESS.

      I agree that SCSS/LESS statement is confusing and so I will report that to the devs.
    • Last Edit: 9 years 11 months ago by Henning.
    • Ali Samii's Avatar
    • Ali Samii
    • Elite Rocketeer
    • Posts: 629
    • Thanks: 2

    Re: Gantry 5 support for LESS

    Posted 9 years 11 months ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Gantry 5 support for LESS

    Posted 9 years 11 months ago
    • thanks for the links ... but I don't think implenting LESS has top priority right now. You might want to an add issue on Github so this doesn't get lost. Personally I think LESS has the lost the battle against SCSS anyway ...
    • Last Edit: 9 years 11 months ago by Henning.
    • Matias Griese's Avatar
    • Matias Griese
    • Sr. Rocketeer
    • Posts: 249
    • Thanks: 104
    • Lead Developer

    Re: Gantry 5 support for LESS

    Posted 9 years 11 months ago
    • Actually Gantry5 already supports (older version of) LESS, but looks like I didn't think of anyone using both SASS and LESS inside a single template. So right now its either LESS or SASS. I agree that it would be nice to have both at the same time, so I may look into it at the same time as I look for replacement to our current compiler.
    • Gantry 5, enjoy!
    • Ali Samii's Avatar
    • Ali Samii
    • Elite Rocketeer
    • Posts: 629
    • Thanks: 2

    Re: Gantry 5 support for LESS

    Posted 9 years 11 months ago
    • How do we switch from SASS to LESS?

      Also, is the core CSS available as LESS (much like Bootstrap can be used with either SASS or LESS, according to the preference of the developer)? Is there a setting somewhere in the Gantry 5 Component where we can set the preprocessor to be used?
    • Thank you.

      Ali Samii
    • Matias Griese's Avatar
    • Matias Griese
    • Sr. Rocketeer
    • Posts: 249
    • Thanks: 104
    • Lead Developer

    Re: Gantry 5 support for LESS

    Posted 9 years 11 months ago
    • I think I am going to add support of using both at the same time...
    • Gantry 5, enjoy!

Time to create page: 0.053 seconds