MakePixelsWork / CoreBootstrap

CoreBootstrap is a multi-version of the famous Bootstrap. Needs manual version control and compiler software, ie PrePros. Includes almost all major LESS and Sass versions of Twitter Bootstrap v3+, as well as mixin libraries for LessHat and FontAwesome. Released under MIT License, in good faith. No copyright infringement intended.
MIT License
0 stars 0 forks source link

Sass variable inside another sass variable / path? #2

Open MakePixelsWork opened 5 years ago

MakePixelsWork commented 5 years ago

In LESS it is possible to add variables within variables and inject a variable within the path of a folder structure. I've yet to find a solution for this issue for Sass.

Its not a biggy... users are able to update a few instances of code themselves, but its would be handy of this was possible in Sass. This would improve coding a lot. You only need one place to update your framework versioning, and not -like in Font Awesome's case- five updates lines of code.

Example LESS vs Sass vars less-vs-sass

MakePixelsWork commented 2 years ago

Its actually not really a bug, but a limitation of Sass. Would be nice to have, but not super crucial... especially with the ease of this framework settings. To be continued.

MakePixelsWork commented 5 months ago

Interpolation seems to work, but not for every compiler.

https://stackoverflow.com/questions/8608498/have-a-variable-in-images-path-in-sass