<commit_before>/**
 *
 * Font Mixins
 *
 * @author <NAME> @ Space-Time Inc.
 * @version 2018-11-07
 *
 */


@import 'base';

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700,400i,700i');  // Laten
@import url('https://fonts.googleapis.com/css?family=Spectral:300,600,300i,600i');  // Laten Serif


$stile-font-sans-serif-laten        : 'Open Sans';
$stile-font-serif-laten             : 'Spectral';
$stile-font-chrome-text-stroke-width: 0.28px;


$stile-font-sans-serif:
	$stile-font-sans-serif-laten,
	'Yu Gothic C', 'Yu Gothic Medium', 'Yu Gothic', 'YuGothic',  // 'Yu Gothic Medium' is for Chrome
	Verdana, Meiryo, sans-serif;

$stile-font-sans-serif-ie:
	$stile-font-sans-serif-laten,
	Verdana, Meiryo, sans-serif;

$stile-font-sans-serif-ios:
	-apple-system, sans-serif;

$stile-font-sans-serif-android:
	Verdana, sans-serif;


$stile-font-serif:
	$stile-font-serif-laten,
	'Yu Mincho',
	'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'HG Mincho',
	Georgia, Meiryo, serif;

$stile-font-serif-ie:
	$stile-font-serif-laten,
	'HG Mincho',
	Georgia, Meiryo, serif;

$stile-font-serif-ios:
	serif;

$stile-font-serif-android:
	Verdana, sans-serif;


$stile-font-monospace:
	'Noto Sans Mono CJK JP', 'Source Han Code JP N', 'IPA Gothic',
	Monaco, Consolas, Courier, 'Courier New',
	'Osaka-Mono',
	monospace;


// -----------------------------------------------------------------------------


@font-face {
	font-family: 'Yu Gothic C';
	font-weight: 100;
	src: local('Yu Gothic Medium'), local('YuGothic-Medium'), local('YuGothic-Regular');
}

@font-face {
	font-family: 'Yu Gothic C';
	font-weight: 200;
	src: local('Yu Gothic Medium'), local('YuGothic-Medium'), local('YuGothic-Regular');
}

@font-face {
	font-family: 'Yu Gothic C';
	font-weight: 300;
	src: local('Yu Gothic Medium'), local('YuGothic-Medium'), local('YuGothic-Regular');
}

@font-face {
	font-family: 'Yu Gothic C';
	font-weight: 400;
	src: local('Yu Gothic Medium'), local('YuGothic-Medium'), local('YuGothic-Regular');
}

@font-face {
	font-family: 'Yu Gothic C';
	font-weight: normal;
	src: local('Yu Gothic Medium'), local('YuGothic-Medium'), local('YuGothic-Regular');
}

@font-face {
	font-family: 'Yu Gothic C';
	font-weight: bold;
	src: local('Yu Gothic Bold'), local('YuGothic-Bold');
}


// -----------------------------------------------------------------------------


@font-face {
	font-family: 'Yu Mincho';
	font-weight: 100;
	src: local('Yu Mincho Regular'), local('YuMincho-Regular');
}

@font-face {
	font-family: 'Yu Mincho';
	font-weight: 200;
	src: local('Yu Mincho Regular'), local('YuMincho-Regular');
}

@font-face {
	font-family: 'Yu Mincho';
	font-weight: 300;
	src: local('Yu Mincho Regular'), local('YuMincho-Regular');
}

@font-face {
	font-family: 'Yu Mincho';
	font-weight: 400;
	src: local('Yu Mincho Regular'), local('YuMincho-Regular');
}

@font-face {
	font-family: 'Yu Mincho';
	font-weight: normal;
	src: local('Yu Mincho Regular'), local('YuMincho-Regular');
}

@font-face {
	font-family: 'Yu Mincho';
	font-weight: bold;
	src: local('Yu Mincho Demibold'), local('YuMincho-Demibold');
}


// -----------------------------------------------------------------------------


@font-face {  // for Italic Japanese on IE11
	font-family: Meiryo;
	font-weight: normal;
	src: local('Meiryo');
}

@font-face {  // for Bold Japanese on IE11
	font-family: Meiryo;
	font-weight: bold;
	src: local('Meiryo Bold');
}

@font-face {  // for Serif Japanese on IE11 but bad quality when small size
	font-family: 'HG Mincho';
	font-weight: normal;
	src: local('HGMinchoB');
}

@font-face {  // for Serif Japanese on IE11 but bad quality when small size
	font-family: 'HG Mincho';
	font-weight: bold;
	src: local('HGMinchoE');
}


// -----------------------------------------------------------------------------


@mixin font-family($pc-specific: false) {
	@if $pc-specific {
		font-family: $pc-specific, $stile-font-sans-serif;
		@include for-ie {
			font-family: $pc-specific, $stile-font-sans-serif-ie;
		}
	} @else {
		font-family: $stile-font-sans-serif;
		@include for-ie {
			font-family: $stile-font-sans-serif-ie;
		}
	}
	&.ios, .ios & {  // need to use user-agent.js
		font-family: $stile-font-sans-serif-ios;
	}
	&.android, .android & {  // need to use user-agent.js
		font-family: $stile-font-sans-serif-android;
	}
}

@mixin font-family-serif {
	font-family: $stile-font-serif;
	@include for-ie {
		font-family: $stile-font-serif-ie;
	}
	&.ios, .ios & {  // need to use user-agent.js
		font-family: $stile-font-serif-ios;
	}
	&.android, .android & {  // need to use user-agent.js
		font-family: $stile-font-serif-android;
	}
}

@mixin font-family-monospace {
	font-family: $stile-font-monospace;
}<commit_msg>Add a parameter to the mixin font-family-serif<commit_after>/**
 *
 * Font Mixins
 *
 * @author <NAME> @ Space-Time Inc.
 * @version 2019-01-27
 *
 */


@import 'base';

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700,400i,700i');  // Laten
@import url('https://fonts.googleapis.com/css?family=Spectral:300,600,300i,600i');  // Laten Serif


$stile-font-sans-serif-laten        : 'Open Sans';
$stile-font-serif-laten             : 'Spectral';
$stile-font-chrome-text-stroke-width: 0.28px;


$stile-font-sans-serif:
	$stile-font-sans-serif-laten,
	'Yu Gothic C', 'Yu Gothic Medium', 'Yu Gothic', 'YuGothic',  // 'Yu Gothic Medium' is for Chrome
	Verdana, Meiryo, sans-serif;

$stile-font-sans-serif-ie:
	$stile-font-sans-serif-laten,
	Verdana, Meiryo, sans-serif;

$stile-font-sans-serif-ios:
	-apple-system, sans-serif;

$stile-font-sans-serif-android:
	Verdana, sans-serif;


$stile-font-serif:
	$stile-font-serif-laten,
	'Yu Mincho',
	'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'HG Mincho',
	Georgia, Meiryo, serif;

$stile-font-serif-ie:
	$stile-font-serif-laten,
	'HG Mincho',
	Georgia, Meiryo, serif;

$stile-font-serif-ios:
	serif;

$stile-font-serif-android:
	Verdana, sans-serif;


$stile-font-monospace:
	'Noto Sans Mono CJK JP', 'Source Han Code JP N', 'IPA Gothic',
	Monaco, Consolas, Courier, 'Courier New',
	'Osaka-Mono',
	monospace;


// -----------------------------------------------------------------------------


@font-face {
	font-family: 'Yu Gothic C';
	font-weight: 100;
	src: local('Yu Gothic Medium'), local('YuGothic-Medium'), local('YuGothic-Regular');
}

@font-face {
	font-family: 'Yu Gothic C';
	font-weight: 200;
	src: local('Yu Gothic Medium'), local('YuGothic-Medium'), local('YuGothic-Regular');
}

@font-face {
	font-family: 'Yu Gothic C';
	font-weight: 300;
	src: local('Yu Gothic Medium'), local('YuGothic-Medium'), local('YuGothic-Regular');
}

@font-face {
	font-family: 'Yu Gothic C';
	font-weight: 400;
	src: local('Yu Gothic Medium'), local('YuGothic-Medium'), local('YuGothic-Regular');
}

@font-face {
	font-family: 'Yu Gothic C';
	font-weight: normal;
	src: local('Yu Gothic Medium'), local('YuGothic-Medium'), local('YuGothic-Regular');
}

@font-face {
	font-family: 'Yu Gothic C';
	font-weight: bold;
	src: local('Yu Gothic Bold'), local('YuGothic-Bold');
}


// -----------------------------------------------------------------------------


@font-face {
	font-family: 'Yu Mincho';
	font-weight: 100;
	src: local('Yu Mincho Regular'), local('YuMincho-Regular');
}

@font-face {
	font-family: 'Yu Mincho';
	font-weight: 200;
	src: local('Yu Mincho Regular'), local('YuMincho-Regular');
}

@font-face {
	font-family: 'Yu Mincho';
	font-weight: 300;
	src: local('Yu Mincho Regular'), local('YuMincho-Regular');
}

@font-face {
	font-family: 'Yu Mincho';
	font-weight: 400;
	src: local('Yu Mincho Regular'), local('YuMincho-Regular');
}

@font-face {
	font-family: 'Yu Mincho';
	font-weight: normal;
	src: local('Yu Mincho Regular'), local('YuMincho-Regular');
}

@font-face {
	font-family: 'Yu Mincho';
	font-weight: bold;
	src: local('Yu Mincho Demibold'), local('YuMincho-Demibold');
}


// -----------------------------------------------------------------------------


@font-face {  // for Italic Japanese on IE11
	font-family: Meiryo;
	font-weight: normal;
	src: local('Meiryo');
}

@font-face {  // for Bold Japanese on IE11
	font-family: Meiryo;
	font-weight: bold;
	src: local('Meiryo Bold');
}

@font-face {  // for Serif Japanese on IE11 but bad quality when small size
	font-family: 'HG Mincho';
	font-weight: normal;
	src: local('HGMinchoB');
}

@font-face {  // for Serif Japanese on IE11 but bad quality when small size
	font-family: '<NAME>';
	font-weight: bold;
	src: local('HGMinchoE');
}


// -----------------------------------------------------------------------------


@mixin font-family($pc-specific: false) {
	@if $pc-specific {
		font-family: $pc-specific, $stile-font-sans-serif;
		@include for-ie {
			font-family: $pc-specific, $stile-font-sans-serif-ie;
		}
	} @else {
		font-family: $stile-font-sans-serif;
		@include for-ie {
			font-family: $stile-font-sans-serif-ie;
		}
	}
	&.ios, .ios & {  // need to use user-agent.js
		font-family: $stile-font-sans-serif-ios;
	}
	&.android, .android & {  // need to use user-agent.js
		font-family: $stile-font-sans-serif-android;
	}
}

@mixin font-family-serif($pc-specific: false) {
	@if $pc-specific {
		font-family: $pc-specific, $stile-font-serif;
		@include for-ie {
			font-family: $pc-specific, $stile-font-serif-ie;
		}
	} @else {
		font-family: $stile-font-serif;
		@include for-ie {
			font-family: $stile-font-serif-ie;
		}
	}
	&.ios, .ios & {  // need to use user-agent.js
		font-family: $stile-font-serif-ios;
	}
	&.android, .android & {  // need to use user-agent.js
		font-family: $stile-font-serif-android;
	}
}

@mixin font-family-monospace {
	font-family: $stile-font-monospace;
}
{'fraction_non_alphanumeric': 0.23518461061123178, 'fraction_numerical': 0.013858723756334677, 'mean_word_length': 2.899193548387097, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 4, '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': '485118', 'n_tokens_mistral': 4143, 'n_tokens_neox': 3648, 'n_words': 763}