css icon indicating copy to clipboard operation
css copied to clipboard

Having @include at the beginning of a selector vs the end

Open dan-gamble opened this issue 9 years ago • 1 comments

I'd argue you should have @include at the beginning as they tend to be a base that is added to. If they come at the end of the selector the styles will overwrite the ones you've declared on that declaration already.

dan-gamble avatar Jan 28 '16 09:01 dan-gamble

Like many things put forth by styleguides, I think this too comes down to a matter of perspective. On the flip side, putting @include before the rest of your properties could result in another developer, unfamiliar with the content of the mixin, coming in and unintentionally overriding a property crucial to the intent of the mixin.

¯\_(ツ)_/¯

mikefowler avatar Jan 28 '16 21:01 mikefowler