/**
 *
 * Firefox browser mixins
 *
**/

/**
 *
 * Firefox only
 *
 * Usage:
 *
 * @include firefox_only() {
 *   selector {
 *     property: value;
 *   }
 * }
 *
**/
@mixin firefox_only() {
  @-moz-document url-prefix() {
    @content;
  }
}

/**
 *
 * firefox2_only (Firefox 1.5/2)
 *
 * Usage:
 *
 * @include firefox2_only() {
 *   selector {
 *     property: value;
 *   }
 * }
 *
**/
@mixin firefox2_only() {
  body:empty {
    @content;
  }
}

/**
 *
 * firefox6_above_only (Firefox >= 6)
 *
 * Usage:
 *
 * @include firefox6_above_only(selector) {
 *   property: value;
 * }
 *
**/
@mixin firefox6_above_only($selector) {
  _::-moz-progress-bar,
  body:last-child #{$selector} {
    @content;
  }
}

/**
 *
 * firefox16_above_only (Firefox >= 16)
 *
 * Usage:
 *
 * @include firefox16_above_only() {
 *   selector {
 *     property: value;
 *   }
 * }
 *
**/
@mixin firefox16_above_only() {
  @supports (-moz-appearance: meterbar) {
    @content;
  }
}

/**
 *
 * firefox21_above_only (Firefox >= 21)
 *
 * Usage:
 *
 * @include firefox21_above_only('selector') {
 *   property: value;
 * }
 *
**/
@mixin firefox21_above_only($selector) {
  _::-moz-range-track,
  body:last-child #{$selector} {
    @content;
  }
}

/**
 *
 * firefox24_above_only (Firefox >= 24)
 *
 * Usage:
 *
 * @include firefox24_above_only() {
 *   selector {
 *     property: value;
 *   }
 * }
 *
**/
@mixin firefox24_above_only() {
  @supports (-moz-appearance: meterbar) and (cursor: zoom-in) {
    @content;
  }
}

/**
 *
 * firefox25_above_only (Firefox >= 25)
 *
 * Usage:
 *
 * @include firefox25_above_only() {
 *   selector {
 *     property: value;
 *   }
 * }
 *
**/
@mixin firefox25_above_only() {
  @supports (-moz-appearance: meterbar) and (background-attachment: local) {
    @content;
  }
}

/**
 *
 * firefox26_above_only (Firefox >= 26)
 *
 * Usage:
 *
 * @include firefox26_above_only() {
 *   selector {
 *     property: value;
 *   }
 * }
 *
**/
@mixin firefox26_above_only() {
  $degrees: 90deg;

  @supports (-moz-appearance: meterbar) and (image-orientation: $degrees) {
    @content;
  }
}

/**
 *
 * firefox27_above_only (Firefox >= 27)
 *
 * Usage:
 *
 * @include firefox27_above_only() {
 *   selector {
 *     property: value;
 *   }
 * }
 *
**/
@mixin firefox27_above_only() {
  @supports (-moz-appearance: meterbar) and (all: initial) {
    @content;
  }
}

/**
 *
 * firefox28_above_only (Firefox >= 28)
 *
 * Usage:
 *
 * @include firefox28_above_only() {
 *   .test-class {
 *     color: red;
 *   }
 * }
 *
**/
@mixin firefox28_above_only() {
  @supports (-moz-appearance: meterbar) and (list-style-type: japanese-formal) {
    @content;
  }
}

/**
 *
 * firefox30_above_only (Firefox >= 30)
 *
 * Usage:
 *
 * @include firefox30_above_only() {
 *   selector {
 *     property: value;
 *   }
 * }
 *
**/
@mixin firefox30_above_only() {
  @supports (-moz-appearance: meterbar) and (background-blend-mode: difference,normal) {
    @content;
  }
}
