File: D:/HostingSpaces/marisrental/boldt.tech/resources/sass/site/5-Components/_components.language.scss
.c-language {
position: relative;
margin-left: 30px;
padding-top: 42px;
@include mq(900, 1300) {
top: -20px;
}
}
.c-language__current {
position: relative;
z-index: 2;
display: block;
width: 100%;
padding: 13px 25px 13px 15px;
@include mq(900, 1300) {
padding: 8px 25px 8px 15px;
}
color: palette(action);
@include font(base, 22);
text-align: left;
appearance: none;
cursor: pointer;
@supports(clip-path: polygon(calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 0) ) {
clip-path: polygon(calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 0);
&:after {
content: "";
position: absolute;
top: 0;
right: 0;
border-width: 0 17.5px 17.5px 0;
border-style: solid;
border-color: transparent palette(action);
transition: border-color 0.3s;
}
}
&:focus, &:hover,
&.c-button--ghost:hover:not(:disabled){
outline: none;
color: palette(dark);
background-color: palette(action);
.c-language__arrow {
color: palette(dark);
}
@supports(clip-path: polygon(calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 0) ) {
&:after {
border-color: transparent palette(dark);
}
}
}
}
.c-language__dropdown
{
position: absolute;
left: 0;
top: calc(100% - 1px);
border: 1px solid currentColor;
background-color: palette(dark);
list-style: none;
width: 100%;
//padding: 0 0 5px;
margin: 0;
opacity: 0;
transform: translate3d(0, 5px, 0);
transition: opacity 0.3s, transform 0.3s;
.c-language:hover &{
opacity: 1;
transform: translate3d(0,0,0);
}
}
.c-language__link{
display: block;
padding: 13px;
text-decoration: none;
color: palette(action);
background-color: transparent;
transition: background-color 0.3s;
&:hover{
color: palette(dark);
background-color: palette(action);
}
}
.c-language__arrow {
position: absolute;
z-index: 3;
right: 12px;
top: 20px;
font-size: 8px;
color: palette(action);
pointer-events: none;
@include mq(900, 1300) {
top: 15px;
}
}