2024-10-16 08:25:29 +02:00
|
|
|
:root {
|
|
|
|
--message-accent-border-color: var(--primary-triad-1-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
:root {
|
|
|
|
--message-accent-border-color: var(--tertiary-triad-1-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bubble {
|
|
|
|
position: relative;
|
|
|
|
outline: 1px solid var(--border-color);
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tail:before {
|
|
|
|
content: '';
|
|
|
|
background-color: var(--background-color);
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-width: 1px;
|
|
|
|
border-color: var(--border-color);
|
|
|
|
transform: rotate(45deg);
|
|
|
|
-webkit-transform: rotate(45deg);
|
|
|
|
-moz-transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.bubble.accent, .bubble.accent .tail.left, .bubble.accent.tail.left::before {
|
|
|
|
outline-color: var(--message-accent-border-color);
|
|
|
|
border-color: var(--message-accent-border-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tail.right:before {
|
|
|
|
right: -6px;
|
|
|
|
top: 18px;
|
|
|
|
border-style: solid solid none none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tail.left:before {
|
|
|
|
left: -6px;
|
|
|
|
top: 18px;
|
|
|
|
border-style: none none solid solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message {
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message .avatar {
|
|
|
|
align-self: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message .avatar img {
|
|
|
|
border-radius: 50%;
|
|
|
|
height: 64px;
|
|
|
|
width: 64px;
|
2024-12-01 08:09:56 +01:00
|
|
|
max-width: initial;
|
2024-10-16 08:25:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.message .content {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: 0.25rem 1rem 0.25rem 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message .content.left {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message .content.right {
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
|
|
|