Forums

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

Home Forums CSS [Solved] SASS map + @each variable output and camelCase

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #173761
    Alan C
    Participant

    So I’m trying to write a list of colors in a map then output them with an @each loop. However the variables are being output as all lower case. Is there any fix or work around for this?
    This new method is far more efficient than writing it all out by hand, however I cannot use lower case because this has been used on past projects and it is too late to revert the classes.
    Here is an example of what I mean, you can see it in the code preview.
    http://codepen.io/codingcarpenter/pen/BdCor

    #173842
    Alan C
    Participant

    Dude pure genius, something so small working perfectly. Thank you very much, I hadn’t even considered strings.

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