Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Less: not compiling shorthand hex colors?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #37815
    freese
    Participant

    I have a simple question regarding less. I pretty excited about it but I noticed something that I don’t like about the less compiler. I’m actually using Codekit but using the less.js too, I got the same “issue”.
    If I declare a variable like:

    @white: #fff;

    less compiles the shorthand hex notation to the long “normal” one:

    #ffffff

    I know this is not a very mig issue but it’s good practice to use short hand notation where possible (Efficient CSS with shorthand properties)

    Is there some way to tweak the compiler to generate colors with the short hand notation?

    Thank you!

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.