HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/csb.komma.pro/resources/sass/5-Components/_components.button.scss
/* ==========================================================================
 * Default button
 * ========================================================================== */

/* 1. Color gets inherited and used for nested elements with 'currentColor' property */

.c-button {
	@include border-radius(m);
	@include font-size(m);
	@include font-weight(bold);
	line-height: 0.888888889;
	display: inline-flex;
	align-items: center;
	padding: space(2.5) 0;
	background-color: palette(primary);
	border: none;
	color: palette(neutral, 0); /* 1 */
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms linear;

	&:hover:not(:disabled) {
		background-color: scale-color(palette(primary), $lightness: -20%);
	}
	&:disabled {
		opacity: 0.5;
		cursor: not-allowed;
	}
}

.c-button__text {
	padding: 0 space(3);
	text-align: center;

	.c-button--icon & {
		padding-right: space(2);
	}
}

.c-button__icon {
	display: none; // By default icon is hidden
	position: relative;
	top: 0;
	left: -4px;
	margin-right: 15px;
	transition: transform 0.3s;

	.c-button:hover:not(:disabled) & {
		transform: translateX(4px);
	}

	// When icon comes before the text (in the DOM) switch the margin
	&:first-child {
		margin-right: 0;
		margin-left: 15px;
	}

	.c-button--icon & {
		display: block; // Show when has icon modifier
	}

}