Preserve explicit App approval, expose playback and transfer progress, and keep shared identity and native window presentation coherent. Retain terminal fallback, cancel external input safely, and reject withdrawn UDP preparation before adoption. Reuse exact Web artifacts across matched targets and extend the existing text participant with typed history, replies and reactions. Verified Rust/WASM/protocol checks, 1614 Web tests, Windows capture compilation and five external input lifecycle tests.
113 lines
9.9 KiB
CSS
113 lines
9.9 KiB
CSS
.c3-conversation { flex: 1; min-width: 0; min-height: min-content; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; container: conversation / inline-size; }
|
|
.c3-conversation[hidden] { display: none; }
|
|
.c3-workspace:not(.has-screens) .c3-conversation { width: 100%; }
|
|
.c3-workspace:not(.has-screens) .c3-chat-heading { display: none; }
|
|
.c3-chat-heading { display: flex; align-items: center; gap: 7px; font-size: 12px; }
|
|
.c3-chat-heading > span { color: var(--muted); margin-inline-start: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
/* History yields space; the composer and a readable message remain part of the minimum. */
|
|
.c3-message-log { flex: 1; min-height: 2lh; container: message-log / size; overflow-y: auto; overflow-wrap: anywhere; padding: 2px 3px; scrollbar-width: thin; }
|
|
.c3-message-content { display: flow-root; min-height: 100%; }
|
|
.c3-message-content:has(> .c3-room-start.is-empty) { display: flex; flex-direction: column; }
|
|
.c3-conversation-loading { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
|
|
.c3-room-start { display: flex; align-items: center; gap: 15px; margin: 16px 0 24px; }
|
|
.c3-room-start-mark { display: grid; place-items: center; flex: none; width: 62px; height: 62px; border: 1px solid var(--line); border-radius: 20px; background: var(--wall); color: var(--couch-dark); }
|
|
.c3-room-start h3 { margin: 0; font-size: 21px; line-height: 1.4; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: balance; }
|
|
.c3-room-start p { max-width: 34ch; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; text-wrap: pretty; }
|
|
.c3-room-start.is-empty { flex: none; flex-direction: column; gap: 14px; width: min(390px, 100%); margin: auto; padding: 16px 12px; border: 0; text-align: center; }
|
|
.c3-room-start.is-empty > div { min-width: 0; max-width: 100%; }
|
|
.c3-room-start.is-empty .c3-room-start-mark { width: 78px; height: 78px; border-radius: 25px; }
|
|
@container message-log (max-height: 13em) {
|
|
.c3-message-log .c3-room-start.is-empty { flex-direction: row; justify-content: center; gap: 8px; margin: auto; padding: 0; text-align: start; }
|
|
.c3-message-log .c3-room-start.is-empty .c3-room-start-mark { width: 36px; height: 36px; border-radius: var(--c3-inset-radius); }
|
|
.c3-message-log .c3-room-start.is-empty .c3-room-start-mark > svg { width: 26px; height: 26px; }
|
|
.c3-message-log .c3-room-start.is-empty h3 { font-size: 15px; }
|
|
.c3-message-log .c3-room-start.is-empty p { margin-top: 2px; font-size: 12px; line-height: 1.5; }
|
|
}
|
|
.c3-chat-panel .c3-room-start { margin-block: 12px 24px; }
|
|
.c3-chat-panel .c3-room-start-mark { width: 48px; height: 48px; border-radius: var(--c3-surface-radius); }
|
|
.c3-chat-panel .c3-room-start h3 { font-size: 16px; }
|
|
@container (max-width: 800px) {
|
|
.c3-chat-panel .c3-room-start-mark { display: none; }
|
|
}
|
|
@media (max-width: 700px) {
|
|
.c3-conversation { padding: 16px 14px; gap: 12px; }
|
|
.c3-room-start h3 { font-size: 19px; }
|
|
}
|
|
.c3-message { display: flex; align-items: flex-start; gap: 11px; margin: 16px 0 0; }
|
|
.c3-message:first-child { margin-top: 8px; }
|
|
.c3-message > svg { width: 29px; height: 36px; flex: none; }
|
|
.c3-message-content-body { display: flow-root; font-size: 14px; line-height: 1.65; margin-top: 3px; }
|
|
.c3-message.is-continuation .c3-message-content-body { margin-top: 0; }
|
|
.c3-message-body { flex: 0 1 auto; width: fit-content; max-width: 100%; min-width: 0; }
|
|
.c3-message-content-body { --message-action-size: 24px; max-width: 80ch; }
|
|
.c3-message-content-body > .c3-message-reactions { display: inline; position: static; margin: 0; }
|
|
.c3-message-content-body .c3-content-actions { margin-inline-start: 6px; vertical-align: middle; visibility: hidden; }
|
|
.c3-message:is(:hover, :focus-within, :has([aria-expanded="true"])) .c3-content-actions { visibility: visible; }
|
|
.c3-message .c3-content-actions .lr-btn { --button-size: var(--message-action-size); --button-icon-size: 16px; min-width: var(--message-action-size); height: var(--message-action-size); padding: 0 2px; line-height: 1; }
|
|
.c3-message-content-body .c3-message-reaction-counts:not(:empty) { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-inline-start: 6px; vertical-align: middle; }
|
|
.c3-mention-author { font-size: 17px; }
|
|
@media (pointer: coarse) {
|
|
.c3-message-content-body { --message-action-size: 32px; }
|
|
}
|
|
.c3-message-meta { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
|
|
.c3-message-meta strong { font-size: 13px; font-weight: 650; }
|
|
.c3-message-meta time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
.c3-message p { white-space: pre-wrap; font-size: inherit; line-height: inherit; margin: 0; }
|
|
.c3-message.is-continuation { margin-top: 4px; padding-inline-start: 40px; }
|
|
.c3-message-date { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--muted); font-size: 11px; line-height: 1.5; }
|
|
.c3-message-date::before, .c3-message-date::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
|
|
.c3-message-date > time { flex: none; }
|
|
.c3-message-date + .c3-message { margin-top: 12px; }
|
|
.c3-composer { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); background: var(--wall); border-radius: var(--c3-surface-radius); padding: 10px; flex: none; }
|
|
.c3-compose-input { display: flex; align-items: flex-end; gap: 10px; width: 100%; min-width: 0; }
|
|
.c3-compose-reply { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
|
|
.c3-compose-reply > span:first-child { flex: 1; min-width: 0; }
|
|
.c3-compose-reply > .lr-comic-tip-wrap { flex: none; }
|
|
.c3-compose-reply strong, .c3-compose-reply small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
|
|
.c3-compose-reply small { margin-top: 3px; color: var(--muted); }
|
|
.c3-reply-notify { flex: none; font-size: 19px; }
|
|
.c3-message-reference { display: flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; padding: 3px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; text-align: start; cursor: pointer; }
|
|
.c3-message-reference > svg, .c3-message-reference > strong { flex: none; }
|
|
.c3-message-reference > strong { max-width: 35%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.c3-message-reference > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.c3-message-mention { padding: 0 2px; border-radius: 3px; color: var(--action); background: var(--control-hover); }
|
|
.c3-message-mention.is-self { font-weight: 650; background: color-mix(in srgb, var(--action) 22%, var(--paper)); }
|
|
.c3-unread-divider { color: var(--action); }
|
|
.c3-unread-divider::before, .c3-unread-divider::after { border-color: var(--action); }
|
|
.c3-message { border-radius: 4px; }
|
|
.c3-message:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
|
|
.c3-message:focus:not(:focus-visible) { outline: none; }
|
|
.c3-message:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
|
|
.c3-message .c3-message-reaction { box-shadow: none; }
|
|
.c3-message .c3-content-actions .lr-btn:is(:hover, :focus-visible) { border-color: transparent; }
|
|
.c3-message.is-mentioned { background: color-mix(in srgb, var(--action) 8%, transparent); box-shadow: -3px 0 0 var(--action); }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.c3-message:focus { background: color-mix(in srgb, var(--action) 12%, transparent); }
|
|
}
|
|
.c3-composer:focus-within { border-color: var(--action); }
|
|
.c3-history-more { display: flex; justify-content: center; margin-bottom: 14px; }
|
|
.c3-draft-files { display: grid; gap: 6px; max-height: 150px; overflow-y: auto; }
|
|
.c3-draft-files > div { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 8px; background: var(--wall); border-radius: var(--c3-inset-radius); font-size: 12px; }
|
|
.c3-draft-files > div > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
.c3-draft-files > div > svg { flex: none; }
|
|
.c3-draft-files small { color: var(--muted); white-space: nowrap; }
|
|
.c3-draft-files .lr-btn { width: var(--control-compact-size); padding-inline: 0; }
|
|
.c3-file-error { font-size: 12px; line-height: 1.6; color: var(--danger); }
|
|
.c3-file-retry { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
|
|
.c3-attachment { display: grid; gap: 8px; max-width: 440px; border: 1px solid var(--line); border-radius: var(--c3-inset-radius); background: var(--wall); padding: 10px; margin-top: 8px; }
|
|
.c3-message-content-body > .c3-attachment:first-child { margin-top: 0; }
|
|
.c3-attachment-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
|
|
.c3-attachment-file > svg { flex: none; color: var(--muted); }
|
|
.c3-attachment-file > div { flex: 1 1 14ch; min-width: 0; }
|
|
.c3-attachment-file .lr-comic-tip-wrap { display: block; }
|
|
.c3-attachment-file strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
|
|
.c3-attachment small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
|
|
.c3-attachment > .lr-btn { justify-self: start; }
|
|
.c3-attachment img { display: block; max-width: 100%; max-height: 260px; border-radius: max(0px, calc(var(--c3-inset-radius) - 10px)); object-fit: contain; }
|
|
.c3-composer textarea { flex: 1; min-width: 0; width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; padding: calc((var(--control-compact-size, 44px) - 1lh) / 2) 4px; min-height: var(--control-compact-size, 44px); max-height: min(160px, 30dvh); overflow-y: auto; resize: none; field-sizing: content; }
|
|
.c3-composer textarea:focus { outline: 0; }
|
|
|
|
.c3-attachment-progress { min-width: 0; }
|
|
.c3-attachment-progress > progress { display: block; width: 100%; height: 8px; accent-color: var(--ink); }
|
|
.c3-attachment-progress > small { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|