_mixins.sass 794 B

12345678910111213141516171819
  1. // Mixins
  2. // --------
  3. // Mixins allow you to define styles that can be re-used / throughout the
  4. // stylesheet without needing to resort to / non-semantic classes like .float-
  5. // left. Mixins can also / contain full CSS rules, and anything else allowed /
  6. // elsewhere in a Sass document. They can even take / arguments which allows you
  7. // to produce a wide variety / of styles with very few mixins.
  8. // For complete documentation:
  9. // Sass mixins: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#mixins
  10. // Bourbon mixins: http://bourbon.io/docs/
  11. // Omega Reset for Bourbon Neat grid
  12. // Read more: http://www.joshfry.me/blog/2013/05/13/omega-reset-for-bourbon-neat
  13. @mixin omega-reset($nth)
  14. &:nth-child(#{$nth})
  15. margin-right: flex-gutter()
  16. &:nth-child(#{$nth}+1)
  17. clear: none