Rev 16006 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@use '../../../../css/shared/variables.scss';
.message {
padding: 0.6rem 0.6rem 1.3rem 0.6rem;
margin-bottom: 0.5rem;
position: relative;
min-width: 4rem;
max-width: 70%;
display: flex;
align-items: center;
&_sent {
justify-self: flex-end;
align-self: flex-end;
background-color: #d8f1e4;
border-radius: 5px 0 5px 5px;
&::before {
border-left: 10px solid #d8f1e4;
right: -10px;
}
}
&_received {
justify-self: flex-start;
align-self: flex-start;
background-color: #efefef;
border-radius: 0 5px 5px 5px;
&::before {
border-right: 10px solid #fff;
left: -10px;
}
}
&__time {
position: absolute;
color: variables.$light-gray;
right: 5px;
bottom: 5px;
font-size: 0.6rem;
}
&::before {
content: "";
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
position: absolute;
top: 0;
}
&:first-child {
margin-top: .5rem;
}
}
.chatImg {
max-width: 200px;
max-height: 400px;
object-fit: contain;
}
.downloadBtn {
font-size: 1.5rem;
margin-left: 0.2rem;
color: black;
}
.pdfImage {
width: 50px;
}
.userName {
font-size: 0.7rem;
color: variables.$light-font;
align-self: flex-start;
margin-bottom: 0.2rem;
}
.messageContainer {
display: flex;
flex-direction: column;
}