170 lines
2.9 KiB
CSS
170 lines
2.9 KiB
CSS
.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(--SAS-Default);
|
|
|
|
span {
|
|
color: currentColor;
|
|
}
|
|
}
|
|
|
|
.userDetailsContainer {
|
|
padding: var(--Space-x1);
|
|
color: var(--SAS-Gray-20);
|
|
}
|
|
|
|
.logoutLink,
|
|
.loginLink {
|
|
color: var(--SAS-Gray-20);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.userDetailsContainer .logoutLink {
|
|
text-decoration: none;
|
|
font-weight: normal;
|
|
|
|
&:hover {
|
|
color: var(--SAS-Gray-20);
|
|
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);
|
|
|
|
.closeModalBtn {
|
|
position: fixed;
|
|
top: calc(var(--Space-x2) + var(--sitewide-alert-height));
|
|
right: var(--Space-x15);
|
|
background-color: var(--SAS-Default);
|
|
border: none;
|
|
padding: var(--Space-x05);
|
|
color: white;
|
|
justify-self: flex-start;
|
|
padding: 19px 8px 18px;
|
|
user-select: none;
|
|
|
|
&:hover,
|
|
&:hover:not(:disabled) {
|
|
background-color: var(--SAS-Default);
|
|
}
|
|
|
|
.bar,
|
|
.bar::after,
|
|
.bar::before {
|
|
background: white;
|
|
border-radius: 2.3px;
|
|
display: block;
|
|
height: 3px;
|
|
position: relative;
|
|
width: 32px;
|
|
}
|
|
.bar {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.bar::after,
|
|
.bar::before {
|
|
content: "";
|
|
left: 0;
|
|
position: absolute;
|
|
transform-origin: 2.286px center;
|
|
}
|
|
|
|
.bar::after {
|
|
top: -8px;
|
|
animation: openUpAfter 0.3s ease forwards;
|
|
}
|
|
|
|
.bar::before {
|
|
top: 8px;
|
|
animation: openUpBefore 0.3s ease forwards;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes openUpAfter {
|
|
to {
|
|
top: 0;
|
|
transform-origin: 50% 50%;
|
|
width: 32px;
|
|
transform: rotate(-45deg);
|
|
}
|
|
}
|
|
@keyframes openUpBefore {
|
|
to {
|
|
top: 0;
|
|
transform-origin: 50% 50%;
|
|
width: 32px;
|
|
transform: rotate(45deg);
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|