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
I have a scss file with some partial mixins. I want to compile only that mixin, without converting it to CSS. Let me show you the code.
@mixin baseButton() { position: relative; display: inline-block; &:disabled { background-color: gray; } } @mixin button($classname:".midori-button") { #{$classname} { color: gray; @include baseButton(); } } @include button();
Is it possible compile this code into SCSS like the above but not into CSS like:
.midori-button { color: gray; position: relative; display: inline-block; &:disabled { background-color: gray; } }
Thanks.
P.S: Not native.
The text was updated successfully, but these errors were encountered:
I'm sorry, this isn't possible. Sass is designed to compile to valid CSS, so it doesn't have any support for generating CSS extensions.
I have a scss file with some partial mixins. I want to compile only that mixin, without converting it to CSS. Let me show you the code.
Is it possible compile this code into SCSS like the above but not into CSS like:
Thanks.
P.S: Not native.
The text was updated successfully, but these errors were encountered: