<commit_before>
// ===================================
// ============= Mixins ==============
// ===================================

// Coloring support
// ===================================

@mixin lui_button_coloring($scheme) {

	// Style - regular
	// ====
	&:not(.inverted):not(.flat):not(.filling):not(.wired) {
		background: map-get($scheme, color);
		color: map-get($scheme, text);
		&:hover,
		&:focus { 
			background: lighten(map-get($scheme, color), 5);
		}
		&:active,
		&.active { 
			background: darken(map-get($scheme, color), 5); 
		}
	}

	// Style - inverted
	// ====
	&.inverted:not(.flat) {
		background: transparent;
		&:hover, 
		&:focus {
			background: transparent;
			box-shadow: 0 0 0 luiTheme(element, button, wired, borderWidth) map-get($scheme, color) inset;
			color: map-gets($scheme, color);
		}
		&.filling{
			&:hover,
			&:focus{
				color: map-gets($scheme, text);
			}
		}

		&[class*="with addon"] > .addon {
			border-color: map-get($scheme, color);
		}
	}

	// Style - filling
	// ====
	&.filling {
		&:hover, &:focus, &:active, &.active {
			background: map-gets($scheme, color);
			color: map-gets($scheme, text);
		}
	}

	// Style - Wired
	&.wired {
		background: transparent;
		color: map-get($scheme, text);

		&:not(.inverted):hover,
		&:not(.inverted):focus,
		&:not(.inverted):active,
		&:not(.inverted).active {
			box-shadow: 0 0 0 luiTheme(element, button, wired, borderWidth) map-get($scheme, color) inset;
			color: map-get($scheme, color);

			&[class*="with addon"] > .addon {
				border-color: map-get($scheme, color);
			}
		}
	}

	// Status icon
	// ====
	&.status.ok,
	&.status.failure {
		&:after, > .addon:after {
			color: map-get($scheme, text) !important;
		}
	}
	@if luiIsLod($scheme) {
		&.status.loading:not([class*="with addon"]),
		&.status.loading[class*="with addon"] > .addon {
			&:before { border-color: rgba(255, 255, 255, 0.25); }
			&:after { border-color: rgba(255, 255, 255, 0.75) transparent transparent transparent; }
		}
	}
};


// ===================================
// ============= Element =============
// ===================================

@if luiTheme(element, button, enabled) {
	@at-root #{$namespace} {
		$vars: luiTheme(element, button);

		// Normalize-css override
		[type=submit], [type=reset], button, html [type=button] {
			-webkit-appearance: none;
		}

		%lui_button_sizing {
			line-height: 1;

			display: inline-block;
			vertical-align: middle;
			box-sizing: border-box;

			min-height: map-gets($vars, minHeight);<commit_msg>[lui][fix] wired button default color<commit_after>
// ===================================
// ============= Mixins ==============
// ===================================

// Coloring support
// ===================================

@mixin lui_button_coloring($scheme) {

	// Style - regular
	// ====
	&:not(.inverted):not(.flat):not(.filling):not(.wired) {
		background: map-get($scheme, color);
		color: map-get($scheme, text);
		&:hover,
		&:focus { 
			background: lighten(map-get($scheme, color), 5);
		}
		&:active,
		&.active { 
			background: darken(map-get($scheme, color), 5); 
		}
	}

	// Style - inverted
	// ====
	&.inverted:not(.flat) {
		background: transparent;
		&:hover, 
		&:focus {
			background: transparent;
			box-shadow: 0 0 0 luiTheme(element, button, wired, borderWidth) map-get($scheme, color) inset;
			color: map-gets($scheme, color);
		}
		&.filling{
			&:hover,
			&:focus{
				color: map-gets($scheme, text);
			}
		}

		&[class*="with addon"] > .addon {
			border-color: map-get($scheme, color);
		}
	}

	// Style - filling
	// ====
	&.filling {
		color: luiPalette(grey, color);

		&:hover, &:focus, &:active, &.active {
			background: map-gets($scheme, color);
			color: map-gets($scheme, text);
		}
	}

	// Style - Wired
	&.wired {
		background: transparent;
		color: luiPalette(grey, color);

		&:not(.inverted):hover,
		&:not(.inverted):focus,
		&:not(.inverted):active,
		&:not(.inverted).active {
			box-shadow: 0 0 0 luiTheme(element, button, wired, borderWidth) map-get($scheme, color) inset;
			color: map-get($scheme, color);

			&[class*="with addon"] > .addon {
				border-color: map-get($scheme, color);
			}
		}
	}

	// Status icon
	// ====
	&.status.ok,
	&.status.failure {
		&:after, > .addon:after {
			color: map-get($scheme, text) !important;
		}
	}
	@if luiIsLod($scheme) {
		&.status.loading:not([class*="with addon"]),
		&.status.loading[class*="with addon"] > .addon {
			&:before { border-color: rgba(255, 255, 255, 0.25); }
			&:after { border-color: rgba(255, 255, 255, 0.75) transparent transparent transparent; }
		}
	}
};


// ===================================
// ============= Element =============
// ===================================

@if luiTheme(element, button, enabled) {
	@at-root #{$namespace} {
		$vars: luiTheme(element, button);

		// Normalize-css override
		[type=submit], [type=reset], button, [type=button] {
			-webkit-appearance: none;
		}

		%lui_button_sizing {
			line-height: 1;

			display: inline-block;
			vertical-align: middle;
			box-sizing: border-box;

			min-height: map-gets($vars, minHeight);
{'fraction_non_alphanumeric': 0.27191098965449934, 'fraction_numerical': 0.012883076322467305, 'mean_word_length': 3.645512239347235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1761245', 'n_tokens_mistral': 2134, 'n_tokens_neox': 1805, 'n_words': 345}