<commit_before>/**
* Button mixins
* ------------------------------------------
*/



/**
* @param $bgColor REQUIRED background color
* @param $textColor OPTIONAL text color (calculated from bgColor if unspecified)
*/
@mixin button( $bgColor, $textColor: "" ) {

	@if $textColor == "" {
		@if isDark( $bgColor ) {
			$textColor: getContrastTextColor($bgColor);
		} @else {
			$textColor: getContrastingOffset($bgColor);
		}
	}

	color: $textColor;
}



/**
* @param $bgColor REQUIRED background color
*/
@mixin button-flat( $bgColor ) {

	color: $bgColor;
}<commit_msg>fill in active state<commit_after>/**
* Button mixins
* ------------------------------------------
*/

// TODO: move to main vars file
$buttonFont: "Whitney SSm A", "Whitney SSm B", sans-serif;


/**
* @param $bgColor REQUIRED background color
* @param $textColor OPTIONAL text color (calculated from bgColor if unspecified)
*/
@mixin button( $bgColor: $C_tertiaryGray, $textColor: "" ) {

	@if $textColor == "" {
		@if isDark( $bgColor ) {
			$textColor: getContrastTextColor($bgColor);
		} @else {
			$textColor: getContrastingOffset($bgColor);
		}
	}

	@include round(3px);
	@include box-shadow(0px, 2px, 0px, darken($bgColor, 75%));
	color: $textColor;
	background: $bgColor;
	font-family: $buttonFont;
	font-size: 15px;
	font-weight: 600;
	padding: 9px 18px;

	&:active {
		@include box-shadow(0px, 0px, 0px, darken($bgColor, 75%));
		@include transform(translate(0px, 2px));
		border-bottom: none;
	}

	&:hover {
	}
}



/**
* @param $bgColor REQUIRED background color
*/
@mixin button-flat( $bgColor ) {

	color: $bgColor;
}
{'fraction_non_alphanumeric': 0.20625, 'fraction_numerical': 0.013125, 'mean_word_length': 3.303763440860215, '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': '5976235', 'n_tokens_mistral': 631, 'n_tokens_neox': 562, 'n_words': 138}