-
Notifications
You must be signed in to change notification settings - Fork 29
Conversation
v0.0.1 - To be reviewed and commented on by front end guild team.
v0.1.0 For review and comment by full dev team. Has been through comment and review by front end guild team.
TODO: - Table of contents. - Continued feedback from gov pattern library team. - Collapse rationale sections?
} | ||
|
||
@include media($sm) { | ||
margin-top: $amount +10em; |
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.
Missing a space after +
:
margin-top: $amount + 10em;
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.
Also, should this be wrapped in parentheses?
One other thing re: expressions. I think we should state clearly in the style guide that spaces should separate values and operators in Sass expressions. For instance: // good
foo {
font-size: ($font-size + 2em);
}
// bad
foo {
font-size: ($font-size+2em);
font-size: ($font-size +2em);
} I suppose that this is also an important way to disambiguate negative values from the minus operator, although I can't think of a good example. |
3. @include directives | ||
4. properties | ||
- Within properties, you may use alphabetical order or type order—just pick one and keep the whole project consistent. | ||
- Put a new line before nested selectors. |
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 move to merge this and make changes via issues. @msecret, @meiqimichelle? |
Suggest we wait for @msecret to weigh in -- he tries to keep this github version in line with the google doc, where most of the commenting happens, but I'm not sure if this github version represents the latest work. In general, I agree that we need to get the latest here, deprecate the google doc (now that we have a relatively stable version), and move to a changes-via-issues model. |
@shawnbot I included a rule for correct spacing in expressions: e426616#diff-03e8e7d4493dc9cdf873d08611a76b50R91 I've already deprecated the doc and am ready to publish. |
v0.1.0
Google doc for commenting: https://docs.google.com/a/gsa.gov/document/d/1t6Rjslq9I20reFF3xfW3FVeV2NWFaDKauDj_LQJC5mc/edit?usp=sharing