@import "bourbon";
@import "neat";
@import "grid-settings";

/// Function reference - http://sass-lang.com/documentation/Sass/Script/Functions.html#nth-instance_method

@mixin omega($query) {

  @if length($query) == 1 {

    @include nth-child($query);

    } @else if length($query) == 2 {

    @include nth-child(nth($query, 1));

    } @else {

    @include -neat-warn("Too many arguments passed to the omega() mixin.");

    }

  }

@mixin nth-child($query) {

  @if type-of($query) == number and unit($query) == "n" {
    &:nth-child(#{$query}+1) {
      clear: left;
      }
    }

  }

@mixin lsow-container() {

  &::after {
    clear: both;
    content: "";
    display: block;
    }
  }

// Custom Mixins for LiveMesh framework - utilizes other libs like Bourbon
$tablet_size: 767;
$mobile_size: 479;

@mixin center {
  margin: 0 auto;
  text-align: center;
  }

@mixin clear() {
  &:before, &:after {
    content: "\0020";
    display: block;
    height: 0;
    overflow: hidden;
    }
  &:after {
    clear: both;
    }
  }

@mixin linkTextOffscreen() {
  text-indent: -9999px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  font-size: 0;
  text-align: start;
  }

@mixin hoverActiveFocus($property, $value) {
  &:hover, &:active, &:focus {
    #{$property}: $value;
    }
  }

@mixin respond-to-max($point) {
  @media only screen and (max-width: $point+px) { @content; }
  }

@mixin respond-between($point1, $point2) {
  @media only screen and (min-width: $point1+px) and (max-width: $point2+px) { @content; }
  }

@mixin respond-to-min($point) {
  @media only screen and (min-width: $point+px) { @content; }
  }
@mixin respond-to-retina() {
  @media only screen and (-webkit-min-device-pixel-ratio: 2) { @content; }
  }

@mixin bottom-line($width: 35, $height: 2, $color: $theme_color) {
  &:after {
    width: $width + px;
    height: $height + px;
    background: $color;
    display: block;
    content: "";
    @content;
    }
  }

@mixin lsow-icon-font() {
  font-family: 'lsow-icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  }

@mixin lsow-heading-style() {
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 1px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  clear: none;
  margin-top: 0;
  margin-bottom: 10px;
  }

@mixin lsow-body-font() {
  font-size: 15px;
  line-height: 24px;
  }

@mixin meta-font() {
  font-style: italic;
  color: #888;
  }