<commit_before>//-------------------------------------
//-- Form
//-------------------------------------

//-- Placeholder
input::placeholder {
	color: lighten($common-text-color, 50%);
	font-style: italic;
}


//-- Textfields
#{$nwayo-textfields-selector}, textarea, select {
	//border-radius: 0;
	line-height: 1;
	//appearance: none;
}

textarea, textarea[rows] {
	//
}


//-- Reset select
/**
@include nwayo-select-reset-mixin {
	background-image: none;
}
select {
	box-sizing: border-box;
	border-radius: 0;
	appearance: none;
}
/**/


//-- File upload
/**
input[type="file"] {
	//@include form-element;
	height: auto;

	@include nwayo-input-file-button-mixin {
		//@include button();
		margin: 0;
	}
}
/**/


//-- Radio / Checkbox
/**
$_choice-input-size: rem-calc(18);
$_choice-input-selection-size: rem-calc(8);
$_choice-input-position-size: ($_choice-input-size - $_choice-input-selection-size) / 2;

input[type="checkbox"], input[type="radio"] {
	position: absolute;
	clip: rect(rem-calc(1), rem-calc(1), rem-calc(1), rem-calc(1));

	+ label {
		position: relative;
		padding-left: $_choice-input-size + rem-cal(10);
		cursor: pointer;

		&::before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			display: block;
			width: $_choice-input-size;
			height: $_choice-input-size;
			border: rem-calc(1) solid $common-text-color;
		}
	}

	&:checked + label::after,
	&:checked + label:hover::after {
		content: '';
		position: absolute;
		top: $_choice-input-position-size;
		left: $_choice-input-position-size;
		display: block;
		width: $_choice-input-selection-size;
		height: $_choice-input-selection-size;
		background-color: $common-text-color;
	}

	&:focus + label::before {
		outline: rem-calc(1) dotted $common-text-color;
	}
}

input[type="radio"] + label {
	&::before, &::after {
		border-radius: 50%;
	}
}
/**/<commit_msg>Add vertical centering of the checkbox/radio<commit_after>//-------------------------------------
//-- Form
//-------------------------------------

//-- Placeholder
input::placeholder {
	color: lighten($common-text-color, 50%);
	font-style: italic;
}


//-- Textfields
#{$nwayo-textfields-selector}, textarea, select {
	//border-radius: 0;
	line-height: 1;
	//appearance: none;
}

textarea, textarea[rows] {
	//
}


//-- Reset select
/**
@include nwayo-select-reset-mixin {
	background-image: none;
}
select {
	box-sizing: border-box;
	border-radius: 0;
	appearance: none;
}
/**/


//-- File upload
/**
input[type="file"] {
	//@include form-element;
	height: auto;

	@include nwayo-input-file-button-mixin {
		//@include button();
		margin: 0;
	}
}
/**/


//-- Radio / Checkbox
/**
$_choice-input-size: rem-calc(18);
$_choice-input-selection-size: rem-calc(8);
$_choice-input-position-size: ($_choice-input-size - $_choice-input-selection-size) / 2;
$_choice-input-margin-size: rem-calc(10);

input[type="checkbox"], input[type="radio"] {
	position: absolute;
	clip: rect(rem-calc(1), rem-calc(1), rem-calc(1), rem-calc(1));

	+ label {
		position: relative;
		padding-left: $_choice-input-size + $_choice-input-margin-size;
		cursor: pointer;

		&::before {
			content: '';
			position: absolute;
			top: 50%;
			left: 0;
			display: block;
			width: $_choice-input-size;
			height: $_choice-input-size;
			border: rem-calc(1) solid $common-text-color;
			margin-top: rem-calc(1) - ($_choice-input-size / 2);
		}
	}

	&:checked + label::after,
	&:checked + label:hover::after {
		content: '';
		position: absolute;
		top: 50%;
		left: $_choice-input-position-size;
		display: block;
		width: $_choice-input-selection-size;
		height: $_choice-input-selection-size;
		margin-top: rem-calc(1) - ($_choice-input-selection-size / 2);
		background-color: $common-text-color;
	}

	&:focus + label::before {
		outline: rem-calc(1) dotted $common-text-color;
	}
}

input[type="radio"] + label {
	&::before, &::after {
		border-radius: 50%;
	}
}
/**/
{'fraction_non_alphanumeric': 0.2293483837865572, 'fraction_numerical': 0.013083632632119035, 'mean_word_length': 2.994877049180328, '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': '3303455', 'n_tokens_mistral': 1534, 'n_tokens_neox': 1406, 'n_words': 261}