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/slenders/slenders.nl/resources/sass/site/5-Components/_components.textButton.scss
/* ==========================================================================
 * Text button
 * ========================================================================== */

/**
 * 1. Color gets inherited and used for nested elements with 'currentColor' property
 * 2. Reset default button styling
 */

.c-text-button {
	@include flex(center, $display: inline-flex);
	padding: 0; /* 2 */
	background-color: transparent; /* 2 */
	border: none; /* 2 */

	@include font(mid, 24, medium);
	color: palette(primary); // 1
	cursor: pointer;
	text-decoration: none;
	transition: color 0.3s;

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

.c-text-button__icon {
	display: none; // By default icon is hidden
	position: relative;
	width: 8px;
	height: 15px;
	margin-top: 4px;
	margin-left: 25px;
	transition: transform 0.3s;

	svg {
		width: 100%;
	}

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

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

	.c-text-button--icon-down & {
		margin-top: 4px;
		transform: rotate(90deg);
	}

	.c-text-button--icon-down:hover:not(:disabled) & {
		transform: rotate(90deg) translateX(4px);
	}

	.c-text-button--icon-back &{
		margin-left: 0;
		margin-right: 25px;
		transform: scaleX(-1);
	}
	.c-text-button--icon-back:hover:not(:disabled) & {
		transform: scaleX(-1) translateX(4px);
	}
}

.c-text-button--icon-back {
	flex-direction: row-reverse;
}

.c-text-button--on-dark {
	color: white;

	&:hover:not(:disabled){
		color: rgba(white, 0.6);
	}
}

.c-text-button--small {
	.c-text-button__text {
		@include font(x2-small, 12, 500);
	}
	.c-text-button__icon svg {
		transform: scale(0.67);
	}
}