You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed when checking several pull requests that there are cases when mixins are inserted not at the beginning of the selector:
.caption {
font-weight: bold;
@include copy-1;
}
I think it's best practice to include mixins at the very top so that you do not accidentally overwrite the styles you wrote earlier. We also need to add a new line after the mixin to improve the reading of the code. Example:
.caption {
@include copy-1;
font-weight: bold;
}
I think it would be nice to add this to the coding standards if it really is best practice. I noticed that we do not have a section with rules for CSS or is it better to add this rule somewhere else?
The text was updated successfully, but these errors were encountered:
While on the topic of adding this to the coding standards, maybe we should also include a section about excessive parenthesis on mixins that do not require any arguments as well?
.caption {
@includecopy-1; // Using this notationfont-weight: bold;
}
.caption {
@includecopy-1(); // In favor of thisfont-weight: bold;
}
I noticed when checking several pull requests that there are cases when mixins are inserted not at the beginning of the selector:
I think it's best practice to include mixins at the very top so that you do not accidentally overwrite the styles you wrote earlier. We also need to add a new line after the mixin to improve the reading of the code. Example:
I think it would be nice to add this to the coding standards if it really is best practice. I noticed that we do not have a section with rules for CSS or is it better to add this rule somewhere else?
The text was updated successfully, but these errors were encountered: