:host(.menu--language) { align-items: center; display: flex; flex-flow: row; position: absolute; right: 16px; top: 0; @include breakpoint($narrow) { right: 28px; } } :host(.menu--language:not([is-mobile])) { @include breakpoint($narrow) { height: 100%; position: relative; right: auto; top: auto; } } :host(.menu--language__is-open) { &::after { @include breakpoint($wide) { content: ' '; height: 4px; background-color: var(--grayscale-black); display: block; width: 100%; position: absolute; bottom: 0; //bottom: -24px; //left: 0; } } } .menu--language__toggle { @include font-size(14px, 24px); align-items: center; background: var(--grayscale-white); border: 0 none; color: var(--brand-main-nearly-black); display: flex; flex-flow: row; font-family: var(--main-font-family); font-weight: 600; letter-spacing: -0.4px; margin: 0 -4px; padding: 0; text-transform: uppercase; @include breakpoint($extrawide) { @include font-size(12px, 12px); font-weight: 400; letter-spacing: -0.6px; } @include breakpoint($xlarge) { @include font-size(14px, 24px); letter-spacing: -0.5px; } &:focus { outline: solid 2px var(--additional-yellow); outline-offset: 2px; } &:hover { cursor: pointer; } &.is-open { .menu--language__toggle__caret { transform: rotate(180deg); } //background-color: var(--grayscale-background-box); @include breakpoint($wide) { //margin-bottom: -28px; //margin-top: -26px; //padding: 26px 8px 28px; } @include breakpoint($extrawide) { //margin-bottom: -38px; //margin-top: -26px; //padding: 26px 8px 38px; } @include breakpoint($xlarge) { //margin-bottom: -50px; //padding: 26px 12px 50px; } } > * { padding: 0 4px; } span { padding: 0; } } .menu--language__dropdown { display: none; visibility: hidden; &.is-open { background-color: var(--grayscale-white); border-radius: 0 0 5px 5px; box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2); display: flex; flex-flow: column; justify-items: center; left: -15px; margin: 0; padding: 15px; position: absolute; text-transform: uppercase; visibility: visible; width: max-content; z-index: 100; @include breakpoint($wide) { //@todo check side paddings left: -32px; padding: 32px 0 0; } @include breakpoint($xlarge) { left: -40px; padding: 40px 0 0; } a { //@todo check fonts @include font-size(16px, 20px); margin-left: 0; } } } .menu--language__globe-icon svg { @include breakpoint($wide) { height: 16px; width: 16px; } @include breakpoint($extrawide) { height: 12px; width: 12px; } @include breakpoint($xlarge) { height: 16px; width: 16px; } } /* .hy-menu-backdrop { bottom: 0; left: 0; position: absolute; right: 0; top: 0; visibility: hidden; &.is-active { background-color: rgba(0, 0, 0, 0.4); transition: background-color 300ms; visibility: visible; z-index: 99; } } */