Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sass variable inside another sass variable / path? #2

Open
MakePixelsWork opened this issue Oct 27, 2019 · 3 comments
Open

Sass variable inside another sass variable / path? #2

MakePixelsWork opened this issue Oct 27, 2019 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@MakePixelsWork
Copy link
Owner

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 MakePixelsWork added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Oct 27, 2019
@MakePixelsWork
Copy link
Owner Author

Its a SASS bug, not a bug in my own project. I'm still interested in the solution, which has been part of LESS for years, but does not seem to work in SASS.

@MakePixelsWork MakePixelsWork removed bug Something isn't working help wanted Extra attention is needed question Further information is requested labels Mar 30, 2022
@MakePixelsWork
Copy link
Owner Author

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 MakePixelsWork added help wanted Extra attention is needed question Further information is requested labels Apr 7, 2023
@MakePixelsWork
Copy link
Owner Author

Interpolation seems to work, but not for every compiler.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant