@mixin before-Avatar {
content: '';
width: 90px;
height: 90px;
background: #000000;
position: absolute;
border-radius: 50%;
display: flex;
top: 50%;
transform: translate(-50%, -50%);
left: 50%;
pointer-events: none;
@media (max-width: 768px) {
width: 60px;
height: 60px;
}
}
.tooltipContainerRight {
position: absolute;
right: 0px;
padding-right: 5px;
max-height: 85vh;
overflow-y: auto;
top: 90px;
left: unset;
z-index: 3;
pointer-events: none;
@media (max-width: 768px) {
position: fixed;
top: 0;
right: 0;
left: unset;
width: 75vw;
max-width: 300px;
height: 100vh;
max-height: 100vh;
padding: 0;
z-index: 100;
}
}
.mobileOverlay {
display: none;
@media (max-width: 768px) {
display: block;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.6);
z-index: 99;
}
}
.switchAccountRoot {
@media (max-width: 768px) {
z-index: 5;
}
}
.containerSwichAccount {
display: grid;
font-size: 14px;
grid-template-columns: 1fr 100px;
gap: 25px;
align-items: center;
justify-content: center;
height: 90px;
@media (max-width: 540px) {
grid-template-columns: 60px;
gap: 0;
height: 60px;
justify-content: end;
}
.noAccount {
color: var(--primary-color);
}
& + & {
margin-top: -30px;
}
&:hover {
.btnContainerText {
transform: translateX(-5px);
}
.containerAvatarConnect {
padding: 10px;
}
.containerAvatarConnectTrue {
&::before {
width: 95px;
height: 95px;
}
}
}
}
.content {
display: flex;
justify-content: center;
position: relative;
z-index: 5;
}
.containerSwichAccountList {
display: flex;
flex-direction: column;
min-width: 230px;
padding-bottom: 15px;
opacity: 0;
transition: 0.2s;
background: #0000008c;
backdrop-filter: blur(7px);
@media (max-width: 768px) {
min-width: unset;
width: 100%;
height: 100%;
padding: 80px 0 15px;
background: #000000f0;
backdrop-filter: blur(12px);
transform: translateX(100%);
opacity: 1;
transition: transform 0.3s ease;
gap: 5px;
.containerSwichAccount {
grid-template-columns: 1fr 60px;
height: auto;
min-height: 60px;
gap: 10px;
padding: 5px 0;
}
.containerSwichAccount + .containerSwichAccount {
margin-top: 0;
}
.content {
padding-right: 5px;
align-self: center;
}
}
&_entering {
opacity: 0;
@media (max-width: 768px) {
opacity: 1;
transform: translateX(100%);
}
}
&_entered {
opacity: 1;
pointer-events: auto;
@media (max-width: 768px) {
transform: translateX(0);
}
}
&_exiting {
opacity: 0;
transition: 0.1s;
@media (max-width: 768px) {
opacity: 1;
transform: translateX(100%);
transition: transform 0.3s ease;
}
}
&_exited {
opacity: 0;
visibility: hidden;
height: 0;
padding: 0;
@media (max-width: 768px) {
opacity: 1;
transform: translateX(100%);
visibility: hidden;
}
}
}
.containerAvatarConnect {
width: 90px;
height: 90px;
// padding: 5px;
transition: all 0.2s;
position: relative;
display: flex;
align-items: center;
justify-content: center;
.image {
object-fit: contain;
width: inherit;
height: inherit;
position: relative;
z-index: 1;
}
&False {
&::before {
@include before-Avatar;
box-shadow: 0px 0px 20px rgba(255, 31, 31, 0.4);
}
}
&True {
width: 100%;
&::before {
@include before-Avatar;
box-shadow: 0px 0px 20px #1fcbff66;
transition: 0.2s;
}
}
&TrueGreen {
&::before {
@include before-Avatar;
box-shadow: 0px 0px 20px #36d6ae;
}
}
}
@media (max-width: 768px) {
.containerAvatarConnect {
width: 60px;
height: 60px;
}
}