Merged in feat/SW-2782-create-sas-branded-header (pull request #2878)
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
This commit is contained in:
107
apps/partner-sas/components/Menu/UserMenu/user-menu.module.css
Normal file
107
apps/partner-sas/components/Menu/UserMenu/user-menu.module.css
Normal file
@@ -0,0 +1,107 @@
|
||||
.userMenu {
|
||||
position: relative;
|
||||
|
||||
.userName {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--Space-x1);
|
||||
cursor: pointer;
|
||||
color: white;
|
||||
padding: 0;
|
||||
|
||||
&:hover {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.userMenu .avatar {
|
||||
background-color: white;
|
||||
color: var(--TEMP-sas-default);
|
||||
|
||||
span {
|
||||
color: currentColor;
|
||||
}
|
||||
}
|
||||
|
||||
.userDetailsContainer {
|
||||
padding: var(--Space-x1);
|
||||
color: var(--Text-sas-20);
|
||||
}
|
||||
|
||||
.logoutLink,
|
||||
.loginLink {
|
||||
color: var(--Text-sas-20);
|
||||
font-weight: 400;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.modal {
|
||||
position: fixed;
|
||||
top: calc(var(--main-menu-mobile-height) + var(--sitewide-alert-height));
|
||||
right: auto;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background-color: var(--Base-Surface-Primary-light-Normal);
|
||||
transition: right 0.3s;
|
||||
z-index: var(--menu-overlay-z-index);
|
||||
}
|
||||
|
||||
.dialog {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
align-content: space-between;
|
||||
padding: var(--Space-x3) var(--Space-x2) var(--Space-x4);
|
||||
flex-direction: column;
|
||||
gap: var(--Space-x2);
|
||||
|
||||
.closeModal {
|
||||
position: fixed;
|
||||
top: var(--Space-x2);
|
||||
right: var(--Space-x2);
|
||||
background-color: var(--TEMP-sas-default);
|
||||
padding: var(--Space-x05);
|
||||
color: white;
|
||||
|
||||
&:hover,
|
||||
&:hover:not(:disabled) {
|
||||
background-color: var(--TEMP-sas-default);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pointsDetails {
|
||||
display: flex;
|
||||
gap: var(--Space-x1);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.userMenu {
|
||||
padding: 0;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.userDetailsContainer {
|
||||
background-color: white;
|
||||
border-radius: 12px;
|
||||
padding: var(--Space-x2) var(--Space-x3);
|
||||
box-shadow: 0 0 14px 6px rgba(0, 0, 0, 0.1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--Space-x2);
|
||||
}
|
||||
|
||||
.loginLink {
|
||||
color: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--Space-x1);
|
||||
|
||||
&:hover {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user