-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use of Sass indented syntax #156
Comments
Anybody from @thoughtbot/design have an opinion on this? |
I have briefly tried the other way around: There is also the problem of context switching. In many cases, I have both open side by side and I end up typing |
This seems like such a strange idea, I'd love to see that blog post. I agree with kaishin that refactoring and abstracting code out of existing styles is going to be your main problem. Separating out mixins, variables and extends is a good idea, but I would stick to whichever syntax you are using in the rest of your project. |
I believe this was the essay I was talking about. |
Any further thoughts here? Is there an action-item here? Close until we get a pull request? ping @thoughtbot/design |
I personally prefer |
I recently tried to organize my stylesheets workflow which has always been somehow messy. I stumbled upon some posts which promoted the idea of using SCSS for non-CSS-outputting code (
@mixins
,%placeholders
,$variables
) while using Sass (indent syntax) for everything that ouputs CSS.So the logically resulting project structure I used has been this:
This is nice since I can write mixins, functions and placeholders more carefully and in a more structured way. For example, I can use one line blocks like
which is way clearer then using three lines per vendor prefix.
Writing actual CSS-outputting code in Sass has its advantages too.
For example I can
@include
mixins using using just+
. Without having to write{};
everywhere, I feel more proficent and the resulting code looks cleaner to me.Also, this helps with separation of logic (
.scss
) and presentation (.sass
).What do you think? I'm curious about this technique.
The text was updated successfully, but these errors were encountered: