-
Notifications
You must be signed in to change notification settings - Fork 18
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
Get rid of "default" flag for SASS #1
Comments
When scss files were transformed to css files, variables substitutions would be the nearest variable definition before the selector, but not the last variable definition. That's different from less. So all the generated theme files would have the same content. original scss: $content: "First content";
.main {
content: $content;
}
$content: "Second content"; css: .main {
content: "First content";
} To solve the problem, theme-level variables will be imported before default variables and default variables should be marked with
Actually sass has the |
Ah, ok, got it. But stiil fill uncomfartable with this !default) Thank you |
Indeed, it's different from other style formats in sass, only the variables marked with |
Is it possible to set scss variables without
!default
directive? It looks bad and bit confusing (css or sass rules don't have "default" rule, it's some unnecessary artifact)The text was updated successfully, but these errors were encountered: