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/ste.komma.pro/resources/sass/5-Components/_components.button.scss
/* ==========================================================================
 * Default button
 * ========================================================================== */

$c-button-border-size: 1px;

.c-button {
	@include font-size(base);
	@include font-weight(extraBold);
	@include border-radius(xs);
	line-height: 1;
	display: inline-flex;
	align-items: center;
	height: space(6); // set a fixed height
	padding: space(2) 0;
	border: none;
	background-image: linear-gradient(to bottom right, palette(primary, 500), palette(primary, 600));
	color: palette(neutral, 0);
	text-decoration: none;
	cursor: pointer;
	position: relative;
	overflow: hidden;

	&:disabled {
		opacity: 0.5;
		cursor: not-allowed;
	}

	&::before {
		content: '';
		position: absolute;
		z-index: 0;
		height: 100%;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		opacity: 0;
		background-image: linear-gradient(to bottom right, palette(primary, 600), palette(primary, 700));
		//transform: translateY(100%);
		transition: all 300ms linear;//cubic-bezier(0.32, 0.71, 0.07, 1.06);
	}

	&:hover {
		&::before {
			opacity: 1;
			//transform: translateY(0);
		}
	}

}

.c-button__text {
	position: relative;
	z-index: 1;
	padding: 0 space(4);
	text-align: center;

	&::first-letter {
		text-transform: capitalize;
	}

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

	.c-button--align-left & {
		text-align: left;
	}
}




.c-button__icon {
	display: none; // By default icon is hidden
	position: relative;
	top: 0;
	left: 0;
	margin-right: space(2);

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


.c-button--reverse {
	flex-direction: row-reverse;

	.c-button__text {
		padding-right: space(4);
		padding-left: space(2);
	}
	.c-button__icon {
		margin-right: 0;
		margin-left: space(2);
	}
}


.c-button--secondary {
	padding: (space(2) - $c-button-border-size) 0;
	border: $c-button-border-size solid palette(secondary, 400);
	background-image: linear-gradient(to bottom right, palette(secondary, 400), palette(secondary, 500));
	box-shadow: 0 2px 8px 0 rgba(0,55,97,0.10);

	&::before {
		background-image: linear-gradient(to bottom right, scale_color(palette(secondary, 400), $lightness: -7%), scale_color(palette(secondary, 500), $lightness: -7%));
	}
}