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/switch4u.komma.nl/resources/sass/6-Organisms/_organisms.cookieBar.scss
// Component settings: Cookiebar
// ------------------------------------------

$o-cookie-bar: (
	'bgcolor':		palette(neutral, 900),
	'color':		palette(neutral, 0),
);

.o-cookie-bar {
	z-index: -1; // not selectable
	display: none; // hide by default
	position: fixed;
	bottom: 0;
	left: 0;
	height: $site-cookieBar-height;
	width: 100%;
	background-color: map-get($o-cookie-bar, 'bgcolor');
	opacity: 1;
	box-shadow: 0 -4px 6px 0 rgba(0, 0, 0, 0.2);
	transition: opacity 0.5s, transform 0.6s;
	transform: none;

	// When cookies are not yet accepted, show cookiebar
	&:not(.is-accepted) {
		@include z(z-cookie);
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}

	&.is-transitioning-out {
		z-index: -1; // not selectable
		opacity: 0;
		transform: translateY(50%);
	}
}

.o-cookie-bar__main {
	display: flex;
	justify-content: center;
	align-items: center;

	@include mq($max: 374) {
		transform: scale(0.9);
	}
}

.o-cookie-bar__text {
	margin: 0;
	color: map-get($o-cookie-bar, 'color');

	@include mq($max: 375) {
		@include font-size(xs);
	}
}

.o-cookie-bar__link {
	color: inherit;
	transition: color 0.3s;

	&:hover {
		color: rgba(map-get($o-cookie-bar, 'bgcolor'), 0.75);
	}
}

.o-cookie-bar__button {
	flex: none;
	margin-left: space(5);

	@include mq($max: m) {
		margin-left: space(2);
	}
}