2022-01-08 13:00:08 +08:00
|
|
|
.message {
|
|
|
|
@apply flex flex-row flex-wrap justify-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.messageRight {
|
2022-01-08 16:58:09 +08:00
|
|
|
@apply !justify-end;
|
2022-01-08 13:00:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.message .messageAvatar {
|
|
|
|
@apply relative inline-flex items-center justify-center text-center align-middle h-9 w-9 rounded-full;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message .messageBox {
|
|
|
|
@apply relative w-fit max-w-[55%] px-2 py-[0.375rem] mx-3 my-2 rounded-lg bg-light;
|
|
|
|
}
|
|
|
|
:global(.dark) .message .messageBox {
|
2022-01-08 16:58:09 +08:00
|
|
|
@apply !bg-dark;
|
2022-01-08 13:00:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.message .messageBox::after {
|
|
|
|
content: "";
|
|
|
|
border-bottom: 7px solid;
|
|
|
|
@apply absolute top-0 right-full w-2 h-3 text-light rounded-bl-lg;
|
|
|
|
}
|
|
|
|
:global(.dark) .message .messageBox::after {
|
2022-01-08 16:58:09 +08:00
|
|
|
@apply !text-dark;
|
2022-01-08 13:00:08 +08:00
|
|
|
}
|
|
|
|
.message.messageRight .messageBox::after {
|
|
|
|
@apply !left-full !right-auto !rounded-bl-[0] !rounded-br-lg;
|
|
|
|
}
|