File: D:/HostingSpaces/SBogers10/reiskick.komma.nl/resources/sass/5-Components/_components.language.scss
.c-language {
position: relative;
}
.c-language__button {
font-size: 0.75rem;
line-height: 1.6;
@include border-radius;
display: flex;
position: relative;
width: 100%;
padding: space(1);
text-align: left;
background: transparent;
color: palette(neutral, 800);
border: none;
appearance: none;
transition: background-color 150ms, box-shadow 150ms;
&:focus {
outline: none;
}
}
.c-language__icon {
flex: none;
pointer-events: none;
}
.c-language__label {
margin-left: space(0.5);
font-weight: bold;
}
.c-language__dropdown {
position: absolute;
right: 0;
top: 100%;
min-width: 100%;
margin: 0;
opacity: 0;
list-style: none;
border-radius: map-get($border-radius, s);
box-shadow: 0 0 12px 1px rgba(palette(neutral, 1000), 0.15);
pointer-events: none;
transform: translate3d(0, -5px, 0);
transition: opacity 300ms, transform 300ms;
.c-language:hover & {
opacity: 1;
pointer-events: all;
transform: translate3d(0,0,0);
}
}
.c-language__item {
overflow: hidden;
background-color: palette(neutral, 0);
&:nth-child(even) {
background-color: palette(neutral, 200);
}
&:first-child {
border-radius: map-get($border-radius, s) map-get($border-radius, s) 0 0;
}
&:last-child {
border-radius: 0 0 map-get($border-radius, s) map-get($border-radius, s);
}
&:first-child:last-child {
border-radius: map-get($border-radius, s);
}
}
.c-language__link {
display: block;
padding: space(0.5) space(1);
text-align: center;
font-weight: bold;
text-decoration: none;
color: palette(neutral, 900);
transition: background-color 300ms;
&:hover {
color: palette(neutral, 0);
background-color: palette(neutral, 500);
}
}