File: D:/HostingSpaces/carrotps/carrotps.com/resources/sass/site/6-Organisms/_organisms.cookieBar.scss
.o-cookie-bar {
@include z(z-cookie);
display: none; // hide by default
position: fixed;
bottom: 0;
left: 0;
height: $site-cookieBar-height;
width: 100%;
background-color: palette(dark);
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 flex(flex-start center);
}
&.is-transitioning-out {
opacity: 0;
transform: translateY(50%);
}
}
.o-cookie-bar__main {
@include flex(center center);
@include mq($max: 374) {
transform: scale(0.9);
}
}
.o-cookie-bar__text {
margin: 0;
color: palette(text-on-dark, 3);
@include mq($max: 375) {
@include font-size(xs);
}
}
.o-cookie-bar__link {
color: inherit;
transition: color 0.3s;
&:hover {
color: rgba(palette(text, 3), 0.75);
}
}
.o-cookie-bar__button {
flex: none;
margin-left: space(5);
@include mq($max: m) {
margin-left: space(2);
}
}