.c-lang {
position: absolute;
- top: 23px;
- margin-right: 217px;
- opacity: 0;
- pointer-events: none;
- transition: opacity 350ms $ease-out;
+ top: 11px;
+
+ width: 150px;
+ right: 50px + 16px;
z-index: $master-layer + 1;
+ display: none;
+
+ @include rwd($break-menu) {
+ display: block;
+ }
- &.is-open {
+ &:has(.c-lang__list:popover-open) {
.c-lang__button {
.icon-arrow-down {
transform: rotate(-180deg);
}
}
- .c-lang__list {
- transform: none;
- opacity: 1;
- pointer-events: all;
- }
}
}
.c-lang__button {
+ border: 0;
+ background: none;
+ padding: 0;
+ font: inherit;
display: flex;
align-items: center;
color: $color-white;
}
}
+
.c-lang__list {
- margin-top: 10px;
+ --focus-ring: #083F4D;
+ position-area: bottom span-right;
+ position: absolute;
+ inset: auto;
+ width: 150px;
+ margin: 10px 0 0 0;
+ border: 0;
border-radius: 10px;
background-color: #F7BA00;
overflow: hidden;
transform: translateY(-10px);
opacity: 0;
- transition: all 350ms $ease-out;
- pointer-events: none;
- a {
+ flex-direction: column;
+ transition: all 350ms $ease-out,
+ display 350ms allow-discrete,
+ overlay 350ms allow-discrete;
+
+ &:popover-open {
+ display: flex;
+ opacity: 1;
+ transform: none;
+ }
+
+ button {
display: block;
padding: 9px 20px;
color: #474747;
+ background-color: transparent;
+ border: 0;
+ cursor: pointer;
+ font-family: "Source Sans Pro";
+ font-size: 16px;
+ line-height: 18.4px;
+ text-align: left;
&:hover {
background-color: #EDAA00;
background-color: #EDAA00;
}
}
-}
\ No newline at end of file
+}
+
+@starting-style {
+ .c-lang__list:popover-open {
+ opacity: 0;
+ transform: translateY(-10px);
+ }
+}