Skip to content

Instantly share code, notes, and snippets.

@bpainter
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bpainter/9169168 to your computer and use it in GitHub Desktop.
Save bpainter/9169168 to your computer and use it in GitHub Desktop.
http://codepen.io/bpainter/pen/IkByq
A little nesting goes a long way.
http://codepen.io/bpainter/pen/aophg
- Only be as specific as you need to be.
- General rule of thumb - Don't nest more than 3 levels. It's a good indicator that you're being overly specific with your selectors.
- Always review your output (especially when you're first starting out). If the CSS being generated starts to look a bit off, review how you're writing your Sass.
http://codepen.io/bpainter/pen/fztwl
@bpainter
Copy link
Author

You can reference parent selectors by using the '&'. The Parent reference selector is a powerful feature to be used along with nesting. A simple example:

A Tags

@bpainter
Copy link
Author

@bpainter
Copy link
Author

@bpainter
Copy link
Author

@bpainter
Copy link
Author

@bpainter
Copy link
Author

@bpainter
Copy link
Author

Mixin vs Extend - Part 1
http://codepen.io/bpainter/pen/qKEmL

@bpainter
Copy link
Author

Mixin vs Extend - Part 2
http://codepen.io/bpainter/pen/fEirL

@bpainter
Copy link
Author

Mixin vs Extend - Part 3
http://codepen.io/bpainter/pen/rnHgt

@bpainter
Copy link
Author

Mixin vs Extend - Part 4

http://codepen.io/bpainter/pen/BDhuf

@bpainter
Copy link
Author

@bpainter
Copy link
Author

@bpainter
Copy link
Author

@bpainter
Copy link
Author

@bpainter
Copy link
Author

Media Queries - Simple
http://codepen.io/bpainter/pen/zjJvG

@bpainter
Copy link
Author

Media Queries - Super smooth
http://codepen.io/bpainter/pen/rJeLA

@bpainter
Copy link
Author

@guywithabeard
Copy link

StackIcons, related to mapping svg to keycodes: http://css-tricks.com/stackicons-icon-fonts/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment