<commit_before>// HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
@mixin hidpi($ratio: 1.3) {
  @media only screen and (-webkit-min-device-pixel-ratio: $ratio),
  only screen and (min--moz-device-pixel-ratio: $ratio),
  only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),
  only screen and (min-resolution: #{round($ratio*96)}dpi),
  only screen and (min-resolution: #{$ratio}dppx) {
    @content;
  }
}<commit_msg>add hidpi min & max-width media queries<commit_after>/**
 * HiDPI mixin.
 * @include hidpi-min() { ... };
 * Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
 */
@mixin hidpi($ratio: 1.5) {
	@media only screen and (-webkit-min-device-pixel-ratio: $ratio),
	only screen and (min--moz-device-pixel-ratio: $ratio),
	only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),
	only screen and (min-resolution: #{round($ratio*96)}dpi),
	only screen and (min-resolution: #{$ratio}dppx) {
		@content;
	}
}

/**
 * Hidpi with a minimum width media query
 * @include hidpi-min($bp-mid, 1.5) { ... };
 */
@mixin hidpi-min($width, $ratio: 1.5) {
	$width-em: em($width);
	@media only screen and (min-width: $width-em) and (-webkit-min-device-pixel-ratio: $ratio),
	only screen and (min-width: $width-em) and (min--moz-device-pixel-ratio: $ratio),
	only screen and (min-width: $width-em) and (-o-min-device-pixel-ratio: #{$ratio}/1),
	only screen and (min-width: $width-em) and (min-resolution: #{round($ratio*96)}dpi),
	only screen and (min-width: $width-em) and (min-resolution: #{$ratio}dppx) {
		@content;
	}
}


/**
 * Hidpi with a max width media query
 * @include hidpi-max($bp-mid, 1.3) { ... };
 */
@mixin hidpi-max($width, $ratio: 1.3) {
	$width-em: em($width);
	@media only screen and (max-width: $width-em) and (-webkit-min-device-pixel-ratio: $ratio),
	only screen and (max-width: $width-em) and (min--moz-device-pixel-ratio: $ratio),
	only screen and (max-width: $width-em) and (-o-min-device-pixel-ratio: #{$ratio}/1),
	only screen and (max-width: $width-em) and (min-resolution: #{round($ratio*96)}dpi),
	only screen and (max-width: $width-em) and (min-resolution: #{$ratio}dppx) {
		@content;
	}
}
{'fraction_non_alphanumeric': 0.19884083816317433, 'fraction_numerical': 0.013374944271065538, 'mean_word_length': 3.986666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5360370', 'n_tokens_mistral': 868, 'n_tokens_neox': 830, 'n_words': 211}