Files
piik/src/client/channel/components/channel-conversation.css
T

57 lines
5.0 KiB
CSS

.c3-conversation { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; container: conversation / size; }
.c3-conversation[hidden] { display: none; }
.c3-workspace:not(.has-screens) .c3-conversation { width: 100%; max-width: 820px; margin-inline: auto; }
.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; }
.c3-message-log { flex: 1; min-height: 0; overflow-y: auto; overflow-wrap: anywhere; padding: 2px 3px; scrollbar-width: thin; }
.c3-message-log: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: 24px 0 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.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; }
.c3-workspace.has-screens .c3-room-start { margin-block: 12px 24px; }
.c3-workspace.has-screens .c3-room-start-mark { width: 48px; height: 48px; border-radius: 16px; }
.c3-workspace.has-screens .c3-room-start h3 { font-size: 16px; }
@container (max-width: 800px) {
.c3-workspace.has-screens .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: 20px 0; }
.c3-message:first-child { margin-top: 8px; }
.c3-message > svg { width: 29px; height: 36px; flex: none; }
.c3-message-body { flex: 1; min-width: 0; }
.c3-message-meta { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.c3-message-meta strong { font-size: 13px; font-weight: 700; }
.c3-message-meta time { font-size: 10px; color: var(--muted); }
.c3-message p { white-space: pre-wrap; font-size: 14px; line-height: 1.65; margin-top: 3px; }
.c3-message.is-continuation { margin-top: -14px; padding-inline-start: 40px; }
.c3-composer { display: flex; align-items: flex-end; gap: 10px; border: 1px solid var(--line); background: var(--wall); border-radius: 16px; padding: 10px; flex: none; }
.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: 10px; 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: 12px; background: var(--wall); padding: 10px; margin-top: 8px; }
.c3-attachment-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c3-attachment-file > svg { flex: none; color: var(--muted); }
.c3-attachment-file > div { flex: 1; min-width: 0; }
.c3-attachment-file strong { display: block; 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: 6px; 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: 14px; line-height: 1.6; padding: 7px 4px; min-height: 36px; max-height: min(140px, 35cqb); resize: none; field-sizing: content; }
.c3-composer textarea:focus { outline: 0; }