98 lines
1.9 KiB
CSS
98 lines
1.9 KiB
CSS
.button {
|
|
background-color: transparent;
|
|
font-family: var(--typography-Caption-Regular-fontFamily);
|
|
font-size: var(--typography-Caption-Regular-fontSize);
|
|
border-width: 0;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, max-content) 1fr;
|
|
gap: var(--Spacing-x1);
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.burgundy .button {
|
|
color: var(--Base-Text-High-contrast);
|
|
}
|
|
|
|
.pale .button {
|
|
color: var(--Primary-Dark-On-Surface-Text);
|
|
}
|
|
|
|
.chevron {
|
|
justify-self: end;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.chevron.isExpanded {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.dropdown {
|
|
position: fixed;
|
|
top: var(--main-menu-mobile-height);
|
|
right: -100vw;
|
|
bottom: 0;
|
|
width: 100%;
|
|
background-color: var(--Base-Surface-Primary-light-Normal);
|
|
transition: right 0.3s;
|
|
z-index: var(--menu-overlay-z-index);
|
|
}
|
|
|
|
.dropdown.isExpanded {
|
|
display: block;
|
|
right: 0;
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.languageSwitcher {
|
|
position: relative;
|
|
}
|
|
|
|
.dropdown {
|
|
position: absolute;
|
|
background-color: var(--Base-Surface-Primary-light-Normal);
|
|
border-radius: var(--Corner-radius-Large);
|
|
box-shadow: 0px 0px 14px 6px #0000001a;
|
|
display: none;
|
|
min-width: 12.5rem;
|
|
z-index: 1;
|
|
}
|
|
.top .dropdown {
|
|
top: 2.25rem;
|
|
bottom: auto;
|
|
}
|
|
|
|
.top .dropdown::before {
|
|
top: -1.25rem;
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* Triangle dropdown */
|
|
.dropdown::before {
|
|
content: "";
|
|
position: absolute;
|
|
right: 2.4rem;
|
|
border-width: 0.75rem;
|
|
border-style: solid;
|
|
border-color: var(--Base-Surface-Primary-light-Normal) transparent
|
|
transparent transparent;
|
|
}
|
|
|
|
.bottom .dropdown {
|
|
top: auto;
|
|
bottom: 2.25rem;
|
|
}
|
|
|
|
.bottom .dropdown::before {
|
|
top: 100%;
|
|
}
|
|
|
|
.button {
|
|
grid-template-columns: repeat(3, max-content);
|
|
font-size: var(--typography-Body-Bold-fontSize);
|
|
font-family: var(--typography-Body-Bold-fontFamily);
|
|
}
|
|
}
|