: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($medium) { position: relative; right: auto; top: auto; } } .menu--language__toggle { @include font-size(14px, 24px); align-items: center; background: transparent; border: 0 none; color: var(--brand-main-nearly-black); display: flex; flex-flow: row; font-weight: 600; letter-spacing: -0.4px; margin: 0 -4px; padding: 0; text-transform: uppercase; @include breakpoint($extrawide) { @include font-size(12px, 24px); } @include breakpoint($overwide) { @include font-size(14px, 24px); } &: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($overwide) { margin-bottom: -50px; padding: 26px 12px 50px; } } > * { padding: 0 4px; } span { padding: 0; } } .menu--language__dropdown { 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; margin: 0; padding: 15px; position: absolute; right: 5px; text-transform: uppercase; top: 40px; visibility: hidden; @include breakpoint($wide) { padding: 32px 0 0; top: 70px; } @include breakpoint($extrawide) { top: 80px; } @include breakpoint($overwide) { top: 90px; } &.is-open { visibility: visible; z-index: 100; a { @include font-size(16px, 20px); margin-left: 0; } } } .menu--language__globe-icon svg { @include breakpoint($wide) { height: 16px; width: 16px; } @include breakpoint($overwide) { height: 14px; width: 14px; } @include breakpoint($extrawide) { 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; } }