- threads: reply counts, ChatThreadPane with replies, live replies and thread mute - channel pins in ChatPinsPanel; a refused pin hides the action for the session - reactions, attachments with upload progress and bearer downloads, inline edits, the delete dialog (moderators also in channels) - link cards with the registerEmbedRenderer registry; linkify for escaped text - slash commands: the command picker over chatbots, dispatch with sender-only answers - slots conversation-actions (DMs only) and sidebar-footer - chat-tokens.css and chat-base.css, EN and PL copy, README
1256 lines
23 KiB
CSS
1256 lines
23 KiB
CSS
/*
|
|
* vue-chat-layer neutral styles. Every value comes from chat-tokens.css;
|
|
* every selector starts with .chat- so nothing leaks into the app.
|
|
*/
|
|
|
|
.chat-page,
|
|
.chat-floating,
|
|
.chat-dialog {
|
|
font-family: var(--chat-font);
|
|
font-size: var(--chat-font-size);
|
|
line-height: var(--chat-line-height);
|
|
color: var(--chat-color-text);
|
|
}
|
|
|
|
.chat-page *,
|
|
.chat-floating *,
|
|
.chat-dialog * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.chat-sr {
|
|
position: absolute !important;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.chat-icon {
|
|
width: 1.125rem;
|
|
height: 1.125rem;
|
|
flex: none;
|
|
}
|
|
|
|
/* Buttons */
|
|
|
|
.chat-btn,
|
|
.chat-icon-btn,
|
|
.chat-link-btn,
|
|
.chat-row,
|
|
.chat-msg-action,
|
|
.chat-thread-link,
|
|
.chat-msg-file,
|
|
.chat-staging-remove,
|
|
.chat-reaction-chip,
|
|
.chat-reaction-add,
|
|
.chat-reaction-pick {
|
|
font: inherit;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-1);
|
|
min-height: var(--chat-target);
|
|
padding: 0 var(--chat-space-3);
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-bg);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-btn--small {
|
|
min-height: 2rem;
|
|
font-size: var(--chat-font-size-sm);
|
|
}
|
|
|
|
.chat-btn--primary {
|
|
background: var(--chat-color-accent);
|
|
border-color: var(--chat-color-accent);
|
|
color: var(--chat-color-on-accent);
|
|
}
|
|
|
|
.chat-btn--danger {
|
|
background: var(--chat-color-danger);
|
|
border-color: var(--chat-color-danger);
|
|
color: var(--chat-color-on-accent);
|
|
}
|
|
|
|
.chat-btn--ghost {
|
|
background: transparent;
|
|
}
|
|
|
|
.chat-btn:disabled,
|
|
.chat-icon-btn:disabled,
|
|
.chat-msg-action:disabled,
|
|
.chat-reaction-add:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
.chat-btn-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--chat-space-2);
|
|
margin-top: var(--chat-space-2);
|
|
}
|
|
|
|
.chat-icon-btn {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: var(--chat-target);
|
|
min-height: var(--chat-target);
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: var(--chat-radius);
|
|
background: transparent;
|
|
color: var(--chat-color-muted);
|
|
}
|
|
|
|
.chat-icon-btn:hover:not(:disabled),
|
|
.chat-icon-btn[aria-pressed='true'] {
|
|
background: var(--chat-color-hover);
|
|
color: var(--chat-color-text);
|
|
}
|
|
|
|
.chat-link-btn {
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
color: var(--chat-color-accent);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.chat-btn:focus-visible,
|
|
.chat-icon-btn:focus-visible,
|
|
.chat-link-btn:focus-visible,
|
|
.chat-row:focus-visible,
|
|
.chat-msg-action:focus-visible,
|
|
.chat-list:focus-visible,
|
|
.chat-thread-list:focus-visible,
|
|
.chat-floating-toggle:focus-visible {
|
|
outline: 2px solid var(--chat-color-accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Text helpers */
|
|
|
|
.chat-muted {
|
|
color: var(--chat-color-muted);
|
|
margin: var(--chat-space-2) 0;
|
|
}
|
|
|
|
.chat-error {
|
|
color: var(--chat-color-danger);
|
|
font-size: var(--chat-font-size-sm);
|
|
margin: var(--chat-space-2) 0;
|
|
}
|
|
|
|
.chat-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 0 var(--chat-space-1);
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-surface);
|
|
color: var(--chat-color-muted);
|
|
font-size: var(--chat-font-size-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-tag .chat-icon {
|
|
width: 0.875rem;
|
|
height: 0.875rem;
|
|
}
|
|
|
|
.chat-tag--me {
|
|
background: var(--chat-color-accent-soft);
|
|
color: var(--chat-color-accent);
|
|
}
|
|
|
|
.chat-eyebrow {
|
|
display: block;
|
|
color: var(--chat-color-muted);
|
|
font-size: var(--chat-font-size-sm);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.chat-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 1.25rem;
|
|
height: 1.25rem;
|
|
padding: 0 0.375rem;
|
|
border-radius: var(--chat-radius-pill);
|
|
background: var(--chat-color-accent);
|
|
color: var(--chat-color-on-accent);
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
}
|
|
|
|
.chat-badge--mention {
|
|
background: var(--chat-color-danger);
|
|
}
|
|
|
|
.chat-skeletons {
|
|
display: grid;
|
|
gap: var(--chat-space-2);
|
|
padding: var(--chat-space-3);
|
|
}
|
|
|
|
.chat-skeleton {
|
|
height: 2.5rem;
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-surface);
|
|
animation: chat-pulse 1.4s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes chat-pulse {
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.chat-skeleton {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
/* The page: sidebar, conversation, thread */
|
|
|
|
.chat-page {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: var(--chat-sidebar) minmax(0, 1fr);
|
|
height: var(--chat-height);
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius-card);
|
|
background: var(--chat-color-bg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-page.has-thread {
|
|
grid-template-columns: var(--chat-sidebar) minmax(0, 1fr) var(--chat-side);
|
|
}
|
|
|
|
.chat-sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--chat-space-3);
|
|
min-height: 0;
|
|
padding: var(--chat-space-3) var(--chat-space-2);
|
|
border-right: 1px solid var(--chat-color-border);
|
|
background: var(--chat-color-surface);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.chat-main,
|
|
.chat-side {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.chat-side {
|
|
border-left: 1px solid var(--chat-color-border);
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.chat-page,
|
|
.chat-page.has-thread {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.chat-page.is-open .chat-sidebar,
|
|
.chat-page:not(.is-open) .chat-main {
|
|
display: none;
|
|
}
|
|
|
|
.chat-page .chat-side {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 2;
|
|
background: var(--chat-color-bg);
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.chat-page .chat-back {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.chat-section-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.chat-section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-1);
|
|
margin: 0 var(--chat-space-2);
|
|
font-size: var(--chat-font-size-sm);
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--chat-color-muted);
|
|
}
|
|
|
|
.chat-section-subtitle {
|
|
margin: var(--chat-space-3) var(--chat-space-2) var(--chat-space-1);
|
|
font-size: var(--chat-font-size-sm);
|
|
font-weight: 600;
|
|
color: var(--chat-color-muted);
|
|
}
|
|
|
|
.chat-rows {
|
|
list-style: none;
|
|
margin: var(--chat-space-1) 0 0;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 2px;
|
|
}
|
|
|
|
.chat-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-2);
|
|
width: 100%;
|
|
min-height: var(--chat-target);
|
|
padding: var(--chat-space-1) var(--chat-space-2);
|
|
border: 0;
|
|
border-radius: var(--chat-radius);
|
|
background: transparent;
|
|
text-align: left;
|
|
}
|
|
|
|
.chat-row--static {
|
|
cursor: default;
|
|
justify-content: space-between;
|
|
color: var(--chat-color-muted);
|
|
}
|
|
|
|
.chat-row:hover:not(.chat-row--static):not(:disabled) {
|
|
background: var(--chat-color-hover);
|
|
}
|
|
|
|
.chat-row.is-active {
|
|
background: var(--chat-color-accent-soft);
|
|
}
|
|
|
|
.chat-row.is-unread .chat-row-name {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chat-row-name {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chat-dm-text {
|
|
display: grid;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.chat-dm-preview {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--chat-color-muted);
|
|
font-size: var(--chat-font-size-sm);
|
|
}
|
|
|
|
.chat-dm-meta {
|
|
display: grid;
|
|
justify-items: end;
|
|
gap: 2px;
|
|
color: var(--chat-color-muted);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.chat-dms-empty {
|
|
margin: var(--chat-space-2);
|
|
font-size: var(--chat-font-size-sm);
|
|
}
|
|
|
|
/* Avatars */
|
|
|
|
.chat-avatar {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: none;
|
|
border-radius: 50%;
|
|
background: var(--chat-color-muted);
|
|
color: var(--chat-av-text);
|
|
font-weight: 700;
|
|
user-select: none;
|
|
}
|
|
|
|
.chat-avatar--24 {
|
|
width: 24px;
|
|
height: 24px;
|
|
font-size: 0.625rem;
|
|
}
|
|
|
|
.chat-avatar--32 {
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.chat-avatar--44 {
|
|
width: 44px;
|
|
height: 44px;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.chat-avatar--me {
|
|
background: var(--chat-color-text);
|
|
}
|
|
|
|
/* The conversation */
|
|
|
|
.chat-panel,
|
|
.chat-thread {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
|
|
.chat-panel-empty {
|
|
display: grid;
|
|
place-content: center;
|
|
height: 100%;
|
|
padding: var(--chat-space-5);
|
|
text-align: center;
|
|
}
|
|
|
|
.chat-panel-empty-title {
|
|
margin: 0;
|
|
font-size: var(--chat-font-size-lg);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chat-head {
|
|
padding: var(--chat-space-2) var(--chat-space-3);
|
|
border-bottom: 1px solid var(--chat-color-border);
|
|
}
|
|
|
|
.chat-head-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-2);
|
|
}
|
|
|
|
.chat-head-name {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.chat-title {
|
|
margin: 0;
|
|
font-size: var(--chat-font-size-lg);
|
|
font-weight: 700;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chat-head-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-1);
|
|
}
|
|
|
|
.chat-back .chat-badge {
|
|
position: absolute;
|
|
top: -2px;
|
|
right: -4px;
|
|
}
|
|
|
|
.chat-presence {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-1);
|
|
color: var(--chat-color-muted);
|
|
font-size: var(--chat-font-size-sm);
|
|
}
|
|
|
|
.chat-presence-stack {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.chat-presence-stack .chat-avatar + .chat-avatar {
|
|
margin-left: -6px;
|
|
box-shadow: 0 0 0 2px var(--chat-color-bg);
|
|
}
|
|
|
|
.chat-presence-dot {
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
border-radius: 50%;
|
|
background: var(--chat-color-success);
|
|
}
|
|
|
|
.chat-strip {
|
|
margin: 0;
|
|
padding: var(--chat-space-1) var(--chat-space-3);
|
|
background: var(--chat-color-surface);
|
|
color: var(--chat-color-muted);
|
|
font-size: var(--chat-font-size-sm);
|
|
}
|
|
|
|
.chat-list-wrap {
|
|
position: relative;
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.chat-list,
|
|
.chat-thread-list {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: var(--chat-space-2) 0;
|
|
}
|
|
|
|
.chat-start {
|
|
margin: var(--chat-space-3);
|
|
color: var(--chat-color-muted);
|
|
font-size: var(--chat-font-size-sm);
|
|
text-align: center;
|
|
}
|
|
|
|
.chat-day,
|
|
.chat-new,
|
|
.chat-thread-divider {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-2);
|
|
margin: var(--chat-space-3) var(--chat-space-3) var(--chat-space-2);
|
|
color: var(--chat-color-muted);
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.chat-day::before,
|
|
.chat-day::after,
|
|
.chat-new::before,
|
|
.chat-new::after,
|
|
.chat-thread-divider::after {
|
|
content: '';
|
|
flex: 1;
|
|
border-top: 1px solid var(--chat-color-border);
|
|
}
|
|
|
|
.chat-new {
|
|
color: var(--chat-color-danger);
|
|
}
|
|
|
|
.chat-new::before,
|
|
.chat-new::after {
|
|
border-color: var(--chat-color-danger);
|
|
}
|
|
|
|
.chat-jump {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: var(--chat-space-2);
|
|
transform: translateX(-50%);
|
|
box-shadow: var(--chat-shadow);
|
|
}
|
|
|
|
.chat-typing {
|
|
min-height: 1.25rem;
|
|
padding: 0 var(--chat-space-3);
|
|
color: var(--chat-color-muted);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Messages */
|
|
|
|
.chat-msg {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: 2.5rem minmax(0, 1fr);
|
|
gap: var(--chat-space-2);
|
|
padding: var(--chat-space-1) var(--chat-space-3);
|
|
margin-top: var(--chat-space-2);
|
|
}
|
|
|
|
.chat-msg.is-follow {
|
|
margin-top: 0;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.chat-msg:hover,
|
|
.chat-msg.is-actions-open {
|
|
background: var(--chat-color-surface);
|
|
}
|
|
|
|
.chat-msg.is-mention {
|
|
background: var(--chat-color-mention);
|
|
box-shadow: inset 3px 0 0 var(--chat-color-danger);
|
|
}
|
|
|
|
.chat-msg-gutter {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.chat-msg.is-follow .chat-msg-gutter .chat-msg-time {
|
|
visibility: hidden;
|
|
font-size: 0.6875rem;
|
|
padding-top: 0.2rem;
|
|
}
|
|
|
|
.chat-msg.is-follow:hover .chat-msg-gutter .chat-msg-time {
|
|
visibility: visible;
|
|
}
|
|
|
|
.chat-msg-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: var(--chat-space-2);
|
|
}
|
|
|
|
.chat-msg-name {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chat-msg-time,
|
|
.chat-msg-edited {
|
|
color: var(--chat-color-muted);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.chat-msg-body {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.chat-msg-body a {
|
|
color: var(--chat-color-accent);
|
|
}
|
|
|
|
.chat-msg-body code {
|
|
padding: 0 0.25em;
|
|
border-radius: 4px;
|
|
background: var(--chat-color-surface);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.chat-msg-body .mention {
|
|
padding: 0 0.15em;
|
|
border-radius: 4px;
|
|
background: var(--chat-color-accent-soft);
|
|
color: var(--chat-color-accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-msg-deleted {
|
|
margin: 0;
|
|
color: var(--chat-color-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
.chat-msg-edit textarea,
|
|
.chat-composer textarea,
|
|
.chat-field input {
|
|
width: 100%;
|
|
padding: var(--chat-space-2);
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-bg);
|
|
color: inherit;
|
|
font: inherit;
|
|
line-height: 24px;
|
|
resize: none;
|
|
}
|
|
|
|
.chat-msg-actions {
|
|
position: absolute;
|
|
top: -0.875rem;
|
|
right: var(--chat-space-3);
|
|
display: none;
|
|
gap: 2px;
|
|
padding: 2px;
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-bg);
|
|
box-shadow: var(--chat-shadow);
|
|
}
|
|
|
|
.chat-msg:hover .chat-msg-actions,
|
|
.chat-msg:focus-within .chat-msg-actions,
|
|
.chat-msg.is-actions-open .chat-msg-actions {
|
|
display: flex;
|
|
}
|
|
|
|
.chat-msg-action {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--chat-color-muted);
|
|
}
|
|
|
|
.chat-msg-action:hover:not(:disabled),
|
|
.chat-msg-action[aria-pressed='true'] {
|
|
background: var(--chat-color-hover);
|
|
color: var(--chat-color-text);
|
|
}
|
|
|
|
.chat-msg-action--danger:hover:not(:disabled) {
|
|
color: var(--chat-color-danger);
|
|
}
|
|
|
|
.chat-msg-files {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--chat-space-2);
|
|
margin: var(--chat-space-1) 0 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.chat-msg-file,
|
|
.chat-embed {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-2);
|
|
max-width: 100%;
|
|
padding: var(--chat-space-2) var(--chat-space-3);
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-bg);
|
|
text-align: left;
|
|
}
|
|
|
|
.chat-msg-file-name {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chat-msg-file-size {
|
|
color: var(--chat-color-muted);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.chat-msg-embeds {
|
|
display: grid;
|
|
gap: var(--chat-space-1);
|
|
margin-top: var(--chat-space-1);
|
|
}
|
|
|
|
.chat-embed {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
border-left: 3px solid var(--chat-color-accent);
|
|
}
|
|
|
|
.chat-embed:hover {
|
|
background: var(--chat-color-surface);
|
|
}
|
|
|
|
.chat-embed-main {
|
|
display: grid;
|
|
min-width: 0;
|
|
}
|
|
|
|
.chat-embed-host {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-embed-path {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--chat-color-muted);
|
|
font-size: var(--chat-font-size-sm);
|
|
}
|
|
|
|
.chat-thread-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-1);
|
|
margin-top: var(--chat-space-1);
|
|
padding: 2px var(--chat-space-2);
|
|
border: 0;
|
|
border-radius: var(--chat-radius);
|
|
background: transparent;
|
|
color: var(--chat-color-accent);
|
|
font-size: var(--chat-font-size-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-thread-link:hover {
|
|
background: var(--chat-color-accent-soft);
|
|
}
|
|
|
|
/* Reactions */
|
|
|
|
.chat-reactions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--chat-space-1);
|
|
margin-top: var(--chat-space-1);
|
|
}
|
|
|
|
.chat-reaction-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
height: 1.75rem;
|
|
padding: 0 var(--chat-space-2);
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius-pill);
|
|
background: var(--chat-color-bg);
|
|
font-size: var(--chat-font-size-sm);
|
|
}
|
|
|
|
.chat-reaction-chip[aria-pressed='true'] {
|
|
border-color: var(--chat-color-accent);
|
|
background: var(--chat-color-accent-soft);
|
|
}
|
|
|
|
.chat-reaction-add-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
.chat-reaction-add {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 1.75rem;
|
|
height: 1.75rem;
|
|
padding: 0;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--chat-radius-pill);
|
|
background: transparent;
|
|
color: var(--chat-color-muted);
|
|
}
|
|
|
|
.chat-reaction-add:hover:not(:disabled) {
|
|
border-color: var(--chat-color-border);
|
|
}
|
|
|
|
.chat-reaction-pop {
|
|
position: absolute;
|
|
bottom: calc(100% + 4px);
|
|
left: 0;
|
|
z-index: 5;
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 2.25rem);
|
|
gap: 4px;
|
|
padding: var(--chat-space-2);
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-bg);
|
|
box-shadow: var(--chat-shadow);
|
|
}
|
|
|
|
.chat-reaction-pop.is-below {
|
|
top: calc(100% + 4px);
|
|
bottom: auto;
|
|
}
|
|
|
|
.chat-reaction-pick {
|
|
width: 2.25rem;
|
|
height: 2.25rem;
|
|
border: 0;
|
|
border-radius: var(--chat-radius);
|
|
background: transparent;
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.chat-reaction-pick:hover,
|
|
.chat-reaction-pick:focus-visible {
|
|
background: var(--chat-color-hover);
|
|
}
|
|
|
|
/* Slash command answers */
|
|
|
|
.chat-ephemeral {
|
|
margin: var(--chat-space-2) var(--chat-space-3);
|
|
padding: var(--chat-space-2) var(--chat-space-3);
|
|
border: 1px dashed var(--chat-color-border);
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-surface);
|
|
}
|
|
|
|
.chat-ephemeral-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-2);
|
|
color: var(--chat-color-muted);
|
|
font-size: var(--chat-font-size-sm);
|
|
}
|
|
|
|
.chat-ephemeral-input {
|
|
flex: 1;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-ephemeral-text {
|
|
margin-top: var(--chat-space-1);
|
|
}
|
|
|
|
/* Composer */
|
|
|
|
.chat-composer {
|
|
padding: var(--chat-space-2) var(--chat-space-3) var(--chat-space-3);
|
|
}
|
|
|
|
.chat-composer-field {
|
|
position: relative;
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius-card);
|
|
background: var(--chat-color-bg);
|
|
}
|
|
|
|
.chat-composer-field:focus-within {
|
|
border-color: var(--chat-color-accent);
|
|
}
|
|
|
|
.chat-composer .chat-composer-field textarea {
|
|
display: block;
|
|
border: 0;
|
|
background: transparent;
|
|
outline: none;
|
|
}
|
|
|
|
.chat-composer-tools {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-1);
|
|
padding: 0 var(--chat-space-1) var(--chat-space-1);
|
|
}
|
|
|
|
.chat-composer-gap {
|
|
flex: 1;
|
|
}
|
|
|
|
.chat-pop {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: calc(100% + 4px);
|
|
z-index: 5;
|
|
max-height: 16rem;
|
|
margin: 0;
|
|
padding: var(--chat-space-1);
|
|
overflow-y: auto;
|
|
list-style: none;
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-bg);
|
|
box-shadow: var(--chat-shadow);
|
|
}
|
|
|
|
.chat-pop-option,
|
|
.chat-pop-empty {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-2);
|
|
padding: var(--chat-space-1) var(--chat-space-2);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.chat-pop-option {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-pop-option.is-active {
|
|
background: var(--chat-color-accent-soft);
|
|
}
|
|
|
|
.chat-pop-empty {
|
|
color: var(--chat-color-muted);
|
|
}
|
|
|
|
.chat-pop-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-pop-meta {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--chat-color-muted);
|
|
font-size: var(--chat-font-size-sm);
|
|
}
|
|
|
|
.chat-staging {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--chat-space-2);
|
|
margin: 0 0 var(--chat-space-2);
|
|
padding: 0;
|
|
}
|
|
|
|
.chat-staging-chip {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-2);
|
|
max-width: 100%;
|
|
padding: var(--chat-space-1) var(--chat-space-1) var(--chat-space-1) var(--chat-space-2);
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-surface);
|
|
font-size: var(--chat-font-size-sm);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-staging-chip.is-failed {
|
|
border-color: var(--chat-color-danger);
|
|
}
|
|
|
|
.chat-staging-name {
|
|
max-width: 12rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chat-staging-size,
|
|
.chat-staging-failed {
|
|
color: var(--chat-color-muted);
|
|
}
|
|
|
|
.chat-staging-failed {
|
|
color: var(--chat-color-danger);
|
|
}
|
|
|
|
.chat-staging-remove {
|
|
display: inline-flex;
|
|
padding: 2px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--chat-color-muted);
|
|
}
|
|
|
|
.chat-staging-progress {
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
height: 2px;
|
|
background: var(--chat-color-accent);
|
|
}
|
|
|
|
/* Pins */
|
|
|
|
.chat-pins {
|
|
max-height: 45%;
|
|
overflow-y: auto;
|
|
border-bottom: 1px solid var(--chat-color-border);
|
|
background: var(--chat-color-surface);
|
|
}
|
|
|
|
.chat-pins-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--chat-space-1) var(--chat-space-2) 0;
|
|
}
|
|
|
|
.chat-pins-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0 0 var(--chat-space-2);
|
|
}
|
|
|
|
.chat-pins .chat-muted,
|
|
.chat-pins .chat-error {
|
|
margin: var(--chat-space-2) var(--chat-space-3);
|
|
}
|
|
|
|
/* Dialogs */
|
|
|
|
.chat-dialog {
|
|
width: min(28rem, calc(100vw - 2rem));
|
|
padding: var(--chat-space-4);
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius-card);
|
|
background: var(--chat-color-bg);
|
|
box-shadow: var(--chat-shadow);
|
|
}
|
|
|
|
.chat-dialog::backdrop {
|
|
background: var(--chat-color-backdrop);
|
|
}
|
|
|
|
.chat-dialog-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.chat-dialog-title {
|
|
margin: 0 0 var(--chat-space-2);
|
|
font-size: var(--chat-font-size-lg);
|
|
}
|
|
|
|
.chat-field {
|
|
display: grid;
|
|
gap: var(--chat-space-1);
|
|
margin: var(--chat-space-2) 0;
|
|
}
|
|
|
|
.chat-field label {
|
|
font-weight: 600;
|
|
font-size: var(--chat-font-size-sm);
|
|
}
|
|
|
|
.chat-picker-results {
|
|
max-height: 20rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Notices */
|
|
|
|
.chat-notices {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: var(--chat-space-4);
|
|
z-index: 10;
|
|
transform: translateX(-50%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.chat-notice {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-2);
|
|
margin: 0;
|
|
padding: var(--chat-space-1) var(--chat-space-1) var(--chat-space-1) var(--chat-space-3);
|
|
border-radius: var(--chat-radius);
|
|
background: var(--chat-color-text);
|
|
color: var(--chat-color-bg);
|
|
font-size: var(--chat-font-size-sm);
|
|
box-shadow: var(--chat-shadow);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.chat-notice .chat-icon-btn {
|
|
color: inherit;
|
|
}
|
|
|
|
/* The floating panel */
|
|
|
|
.chat-floating {
|
|
position: fixed;
|
|
right: var(--chat-floating-offset);
|
|
bottom: var(--chat-floating-offset);
|
|
z-index: var(--chat-z-floating);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: var(--chat-space-2);
|
|
}
|
|
|
|
.chat-floating-toggle {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 3.25rem;
|
|
height: 3.25rem;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
background: var(--chat-color-accent);
|
|
color: var(--chat-color-on-accent);
|
|
box-shadow: var(--chat-shadow);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-floating-toggle .chat-icon {
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
}
|
|
|
|
.chat-floating-toggle .chat-badge {
|
|
position: absolute;
|
|
top: -4px;
|
|
right: -4px;
|
|
background: var(--chat-color-danger);
|
|
}
|
|
|
|
.chat-floating-box {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: var(--chat-floating-width);
|
|
max-width: calc(100vw - 2 * var(--chat-floating-offset));
|
|
height: var(--chat-floating-height);
|
|
border: 1px solid var(--chat-color-border);
|
|
border-radius: var(--chat-radius-card);
|
|
background: var(--chat-color-bg);
|
|
box-shadow: var(--chat-shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-floating-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--chat-space-2);
|
|
padding: var(--chat-space-2) var(--chat-space-3);
|
|
border-bottom: 1px solid var(--chat-color-border);
|
|
}
|
|
|
|
.chat-floating-title {
|
|
flex: 1;
|
|
margin: 0;
|
|
font-size: var(--chat-font-size);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chat-floating-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.chat-floating-body > .chat-dms {
|
|
padding: var(--chat-space-2);
|
|
}
|
|
|
|
.chat-floating-body .chat-panel {
|
|
flex: 1;
|
|
}
|