billymoon / Stylus

Stylus Package for Sublime Text 2 / 3
Other
129 stars 31 forks source link

Style Mixins differently from selectors #38

Closed zackkrida closed 9 years ago

zackkrida commented 10 years ago

Currently, this package doesn't differentiate styling between selectors (.class) and mixins (mixin(), mixin).

2014-08-29 15_19_31-c__users_zack cote_documents_rtrwordpress_wp-content_themes_revivetheroots_src_s 2014-08-29 15_19_41-c__users_zack cote_documents_rtrwordpress_wp-content_themes_revivetheroots_src_s

In this case, I'd want to see the blue on the last two div's in the //scss example applied to the last two divs of the //stylus example. Any thoughts on changing this?

grassator commented 9 years ago

I think that distinction between @include and regular property doesn't exist in styles because functions can be called completely transparent to the user, like in the case of nib.

Call to block-style mixi theoretically can be distinguished from the rest but I also don't feel real need because it's definition can't be properly recognized.

Also as far as actual semantics (scope) that SCSS assigns to these things is not in anyway more logical then what is assigned in stylus.

To top it of this color distinction only exists in several color themes and it is possible for you to add additional scopes to match the desired coloring, at least for function calls.

All in all I feel like this is a won't fix.