Skip to content
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

Updating extend section based on feedback by @chriseppstein #259

Merged
merged 2 commits into from
Sep 9, 2015

Conversation

davidkpiano
Copy link
Contributor

  • Updated paragraph to clarify avoiding extension of selectors instead of just classes
  • Added paragraph for inherited styles (thanks @chriseppstein for the example)
  • Changed wording: "Use extend on %placeholders primarily" (instead of exclusively)
  • Added bullet point on extending classes
  • Added extra reading article that has more updated and comprehensive information on the mechanics and usage of the @extend directive

@KittyGiraudel
Copy link
Owner

Do you care to review @chriseppstein?

Always try to define relationships via [selector placeholders](http://www.sitepoint.com/sass-reference/placeholders/), not classes. This will give you the freedom to use (and change) any naming convention you have for your selectors, and since relationships are only defined once inside the placeholders, you are far less likely to produce unintended selectors.
Always try to define relationships via [selector placeholders](http://www.sitepoint.com/sass-reference/placeholders/), not actual selectors. This will give you the freedom to use (and change) any naming convention you have for your selectors, and since relationships are only defined once inside the placeholders, you are far less likely to produce unintended selectors.

For inheriting styles, only use `@extend` if the extending `.class` or `%placeholder` selector **is a kind of** the extended selector. For instance, an `.error` is a kind of `.warning`, so `.error` can `@extend .warning`.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use bold please. :)

KittyGiraudel added a commit that referenced this pull request Sep 9, 2015
Updating extend section based on feedback by @chriseppstein
@KittyGiraudel KittyGiraudel merged commit 8bf7cc8 into KittyGiraudel:gh-pages Sep 9, 2015
@KittyGiraudel
Copy link
Owner

Thank you @davidkpiano. :)

This was referenced Sep 17, 2015
KittyGiraudel added a commit that referenced this pull request Sep 18, 2015
Updated German translation with issue #259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants