less css calling dynamic variables from a loop

后端 未结 2 980
花落未央
花落未央 2021-01-13 15:53

What I\'m trying to do: I have (for now) 7 colors as variables. I want to be able to use them at several places and iterate throught them.

T

2条回答
  •  北海茫月
    2021-01-13 16:17

    Why don't you use them in your CSS file? Why are you trying them in your File? its not a great idea.
    Using the CSS for each DIV will be good. Give it a class with the code Like:

    And just use one CSS for all the conditions. That would be simple.

提交回复
热议问题