: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; max-width: initial; } .message .content { flex-grow: 1; padding: 0.25rem 1rem 0.25rem 1rem; } .message .content.left { margin-left: 1rem; } .message .content.right { margin-right: 1rem; }