// Mixins: Mod Selector
// Mod Queries with Range Selectors from Patrick Clancey:
// http://alistapart.com/article/using-css-mod-queries-with-range-selectors

// Range selector mixin.
@mixin select-range($start, $end) {
  &:nth-child(n + #{$start}):nth-child(-n + #{$end}) {
    @content;
  }
}

// Mod query mixin.
@mixin mod-list($mod, $remainder) {
  &:nth-last-child(#{$mod}n + #{$remainder}):first-child,
  &:nth-last-child(#{$mod}n + #{$remainder}):first-child ~ li {
    @content;
  }
}
