Last active
August 29, 2015 14:14
-
-
Save just-boris/a86f3646f48683a9bf17 to your computer and use it in GitHub Desktop.
Less var mess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@block: widget-a; | |
.@{block} { | |
color: red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@block: widget-b; | |
.@{block} { | |
color: blue; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "a"; | |
@import "b"; |
Yep. It’s so unpredictable.
In our company, we do not import blocks — we pre-process each block independently. It works fine if you follow the rule “one file — one block”.
Thanks for flagging this problem.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am wondering how
widget-a
becomes awidget-b
when compiling: