-
Notifications
You must be signed in to change notification settings - Fork 1
Josh styleguide #54
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
base: master
Are you sure you want to change the base?
Josh styleguide #54
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,15 +7,25 @@ $base-font-family: "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, " | |
| // Base typography | ||
| // ---------------------------------------------- | ||
|
|
||
| h1, | ||
| h1 { | ||
| margin: 0; | ||
| padding: 0; | ||
| font-weight: 700; | ||
| } | ||
| h2, | ||
| h3, | ||
| h4, | ||
| h5, | ||
| h6 { | ||
| margin: 0; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Margins and paddings don't need to be repeated since they'll cascade from the initial rule.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand what you are saying, but what would be the correct syntax in this example?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. h1-h6 have the same base margins, so you would want to cascade your changes in rules below the shared rule: h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
font-weight: 400;
}
h1 {
font-weight: 700;
}
h5 {
font-weight: normal;
text-transform: uppercase;
} |
||
| padding: 0; | ||
| font-weight: 400; | ||
| font-weight: 500; | ||
| } | ||
|
|
||
| h5 { | ||
| margin: 0; | ||
| padding: 0; | ||
| font-weight: normal; | ||
| text-transform: uppercase; | ||
| } | ||
|
|
||
| body { | ||
|
|
@@ -28,12 +38,12 @@ strong { | |
| } | ||
|
|
||
| // Create placeholder selectors | ||
| %h1 { font-size: round(2.5 * $base-font-size); } // 35px | ||
| %h2 { font-size: round(2 * $base-font-size); } // 28px | ||
| %h3 { font-size: round(1.65 * $base-font-size); } // 23px | ||
| %h4 { font-size: round(1.42 * $base-font-size); } // 20px | ||
| %h5 { font-size: round(1.28 * $base-font-size); } // 18px | ||
| %h6 { font-size: round($base-font-size); } // 14px | ||
| %h1 { font-size: round(1.72 * $base-font-size); } // 24px | ||
| %h2 { font-size: round(1.45 * $base-font-size); } // 20px | ||
| %h3 { font-size: round(1.15 * $base-font-size); } // 16px | ||
| %h4 { font-size: round($base-font-size); } // 14px | ||
| %h5 { font-size: round($base-font-size / 1.2); } // 12px | ||
| %h6 { font-size: round($base-font-size / 1.2); } // 12px | ||
|
|
||
| h1 { @extend %h1; } | ||
| h2 { @extend %h2; } | ||
|
|
@@ -51,4 +61,4 @@ h1 .secondary, | |
| h2 .secondary, | ||
| h3 .secondary { | ||
| font-weight: 300; | ||
| } | ||
| } | ||
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.
Extra text here