src/components/game/Chat/StickyChat.module.css
.wrapper {
position: fixed;
bottom: 20px;
right: 20px;
}
.triggerButton {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border-radius: 100%;
color: white;
cursor: pointer;
background-color: #f1c761;
background-image: url("../../../assets/images/chat.png");
background-position: center center;
background-size: 50% 50%;
background-repeat: no-repeat;
box-shadow: 1px 1px 4px rgb(0 0 0 / 10%);
}
.unread::after {
content: attr(data-unread);
display: block;
position: absolute;
top: -5px;
right: -5px;
width: 20px;
height: 20px;
text-align: center;
line-height: 20px;
font-weight: bold;
background-color: #af6268;
color: white;
border-radius: 100%;
}
.popupChat {
position: absolute !important;
bottom: 45px;
right: 45px;
width: 320px;
height: 385px;
color: black;
overflow: hidden;
transition: all 200ms ease;
transition-property: height, width, padding;
cursor: default;
}
.collapsed {
width: 0px;
height: 0px;
padding: 0 !important;
}