-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add rule about spacing #57
Conversation
sass/README.md
Outdated
Use space between neighboring nested blocks, but not before or after. | ||
|
||
### Good | ||
```scss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a space above this block element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so fast :)
will do
sass/README.md
Outdated
color: $green-dark; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this space.
sass/README.md
Outdated
``` | ||
|
||
### Bad | ||
```scss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a space above this block element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the nature of this PR, it seemed appropriate to nit-pick your markdown spacing :)
Inspired by discussion in this PR: https://github.com/codeclimate/app/pull/3973#issuecomment-283774038
a16ed04
to
6cae9dd
Compare
@pbrisbin heh naturally :) updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sass/README.md
Outdated
|
||
```scss | ||
.btn { | ||
font-size: 15px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💄 should probably sort the rules in all examples since that's what we do in real SCSS.
} | ||
``` | ||
|
||
### Bad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this 3rd example is needed: the two examples above sufficiently demonstrate the desired style, so this just makes the file longer without much need IMHO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the third adds to the goldilocks trifecta and there's not much else on this page. Going to leave unless you feel strongly about removing - then let me know!
sass/README.md
Outdated
@@ -16,3 +16,61 @@ Notable exceptions: | |||
* prefer double quotes | |||
|
|||
[1]: http://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/ | |||
|
|||
## whitespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💄 capitalize the headline?
@ABaldwinHunter Is this PR still active? |
Oo yes. Updating and merging |
Inspired by discussion in this PR:
https://github.com/codeclimate/app/pull/3973#issuecomment-283774038