mrcrowl / vscode-easy-less

Easy LESS extension for Visual Studio Code
MIT License
67 stars 23 forks source link

Compiler calculation issue #35

Closed ArnoutPullen closed 6 years ago

ArnoutPullen commented 6 years ago

with less: width: calc(100% + 48px);

is compiled to css: width: calc(148%);

ArnoutPullen commented 6 years ago

found a solution: width: ~"calc(100% + 48px)";

ebernerd commented 6 years ago

Similarly, calc(100% - 100px) compiles to calc(0%).

yume-chan commented 6 years ago

It's unrelated to this extension, it's how the LESS compiler works. Use ~"calc(100% - 10px)" is the official way to avoid interpolation.