feat(SW-2782): Updated header as per design, added language switcher and user menu * feat(SW-2782): Updated header as per design, added language switcher and user menu * feat(SW-2782): Updated UI as per design * feat(SW-2782): Optimised code with use of Popover and modal from RAC Approved-by: Anton Gunnarsson
103 lines
1.8 KiB
CSS
103 lines
1.8 KiB
CSS
.languageSwitcher {
|
|
.triggerButton {
|
|
gap: var(--Space-x1);
|
|
padding: var(--Space-x1);
|
|
justify-content: flex-start;
|
|
width: 100%;
|
|
border: 0 none;
|
|
}
|
|
|
|
.triggerText {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
color: var(--Text-sas-20);
|
|
}
|
|
}
|
|
|
|
.languageSwitcherContent {
|
|
background: white;
|
|
gap: var(--Space-x3);
|
|
padding: 0 var(--Space-x2);
|
|
flex-direction: column;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
|
|
.arrowBack {
|
|
color: var(--TEMP-sas-40);
|
|
padding: var(--Space-x2) 0;
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.languageSwitcherListItem .link {
|
|
padding: var(--Space-x1);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-radius: var(--Space-x1);
|
|
}
|
|
|
|
.languageModalOverlay {
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.languageModal {
|
|
position: fixed;
|
|
top: calc(var(--main-menu-mobile-height) + var(--sitewide-alert-height));
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: white;
|
|
z-index: 1001;
|
|
|
|
.closeModal {
|
|
position: fixed;
|
|
top: var(--Space-x2);
|
|
right: var(--Space-x2);
|
|
background-color: transparent;
|
|
color: transparent;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.languageSwitcher {
|
|
.triggerText {
|
|
color: white;
|
|
}
|
|
|
|
.triggerButton {
|
|
color: white;
|
|
padding: 0;
|
|
}
|
|
|
|
.triggerButton:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.triggerButton[aria-expanded="true"] .chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
|
|
.languageSwitcherContent {
|
|
min-width: 200px;
|
|
border-radius: var(--Space-x15);
|
|
padding: var(--Space-x2) var(--Space-x3);
|
|
box-shadow: 0 0 14px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.chevron {
|
|
transition: 0.3s;
|
|
}
|
|
}
|