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/stafa/stafa.nl/resources/sass/site/5-Components/_components.language.scss
.c-language {
	position: relative;
}

.c-language__button {
	@include text-style(5);
	@include font-family(base);
	display: flex;
	align-items: center;
	position: relative;
	z-index: 2;
	height: space(5);
	text-align: left;
	background-color: transparent;
	color: palette(action, 300);
	padding-left: 0;
	border: none;
	appearance: none;
	cursor: pointer;
	transition: color 0.15s;

	&:focus, &:hover {
		outline: none;
		color: scale_color(palette(action, 300), $lightness: 40%);
	}
}

.c-language__dropdown {
	@include text-style(5);
	@include font-family(base);
	@include border-radius(m);
	position: absolute;
	left: space(-1);
	top: 100%;
	margin: 0;
	padding: space(1) 0;
	list-style: none;
	background-color: palette(neutral, 0);
	box-shadow: 0 0 12px 1px rgba(black, 0.2);
	transform: translate3d(0, -5px, 0);
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
	transition: opacity 0.3s, transform 0.3s;

	.c-language:hover & {
		opacity: 1;
		pointer-events: auto;
		transform: translate3d(0,0,0);
	}
}

.c-language__link {
	display: flex;
	align-items: center;
	padding: 6px space(2);
	text-decoration: none;
	color: palette(text, 500);
	background-color: transparent;
	transition: background-color 0.3s;

	&:hover {
		color: palette(text, 800);
		background: linear-gradient(rgba(palette(primary, 500), 0.15), rgba(palette(primary, 700), 0.15));
	}
}


.c-language__label {
	flex: none;
	margin-right: space(1);

	&:last-child {
		margin-right: space(2);
	}
}

.c-language__flag {
	flex: none;
	display: block;
	transform: translateY(1px);

	&:first-child {
		margin-right: space(1);
	}
}