You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
@mixin set-val($property, $value){
padding: $value; // works
border: $(value); // works
$property: 0; // do not work
$(property): 0; // do not work
}
.class {
@include set-val(margin, 0);
}
The text was updated successfully, but these errors were encountered:
Sass/Postcss takes an input and outputs something (compiling).
Just like you can´t dynamically change $vars inside media queries.
Modern browser support this using native css variables--var which can dynamically be changed.
However a preprocessor like sass/postcss can´t do that. Its output will always remain static.
Not able to set property using mixin parameters.
The text was updated successfully, but these errors were encountered: