216 lines
4.1 KiB
CSS
216 lines
4.1 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--page-padding: 16px;
|
|
--app-height: 100dvh;
|
|
--viewport-offset-top: 0px;
|
|
--safe-top: env(safe-area-inset-top, 0px);
|
|
--safe-bottom: env(safe-area-inset-bottom, 0px);
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html, body {
|
|
margin: 0;
|
|
height: 100%;
|
|
min-height: 100%;
|
|
overflow: hidden;
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
background: #111827;
|
|
color: #e5e7eb;
|
|
}
|
|
body {
|
|
min-height: var(--app-height);
|
|
}
|
|
.app {
|
|
height: var(--app-height);
|
|
max-height: var(--app-height);
|
|
display: grid;
|
|
grid-template-columns: 320px minmax(0, 1fr);
|
|
gap: 16px;
|
|
padding: var(--page-padding);
|
|
overflow: hidden;
|
|
}
|
|
.card {
|
|
background: #1f2937;
|
|
border: 1px solid #374151;
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
}
|
|
.sidebar, .chat-panel {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
min-width: 0;
|
|
}
|
|
.toolbar, .send-row, .image-row, .chat-header {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
.chat-header {
|
|
justify-content: space-between;
|
|
}
|
|
.chat-header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
.chat-heading {
|
|
min-width: 0;
|
|
}
|
|
.chat-title {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
line-height: 1.35;
|
|
}
|
|
.chat-subtitle {
|
|
margin-top: 2px;
|
|
font-size: 13px;
|
|
color: #9ca3af;
|
|
line-height: 1.4;
|
|
word-break: break-word;
|
|
}
|
|
.chat-panel > .card {
|
|
flex-shrink: 0;
|
|
}
|
|
.chat-panel > #messages {
|
|
flex-shrink: 1;
|
|
}
|
|
.card-fill {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.toolbar-spaced {
|
|
margin-top: 12px;
|
|
}
|
|
.field-compact {
|
|
max-width: 160px;
|
|
}
|
|
.sidebar-section-header {
|
|
margin-bottom: 12px;
|
|
}
|
|
label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
font-size: 14px;
|
|
color: #d1d5db;
|
|
flex: 1;
|
|
min-width: 180px;
|
|
}
|
|
.field-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 18px;
|
|
}
|
|
input, textarea, button {
|
|
border-radius: 8px;
|
|
border: 1px solid #4b5563;
|
|
background: #111827;
|
|
color: #f9fafb;
|
|
padding: 10px 12px;
|
|
font: inherit;
|
|
}
|
|
textarea {
|
|
min-height: 80px;
|
|
resize: vertical;
|
|
width: 100%;
|
|
}
|
|
button {
|
|
cursor: pointer;
|
|
background: #2563eb;
|
|
border-color: #2563eb;
|
|
}
|
|
button.secondary {
|
|
background: #374151;
|
|
border-color: #4b5563;
|
|
}
|
|
button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
button,
|
|
input,
|
|
textarea {
|
|
transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
|
|
}
|
|
button:focus-visible,
|
|
input:focus-visible,
|
|
textarea:focus-visible,
|
|
.sidebar-tab:focus-visible,
|
|
.conversation-item:focus-visible,
|
|
.friend-item:focus-visible,
|
|
.group-item:focus-visible,
|
|
.picker-item:focus-visible,
|
|
.emoticon-option:focus-visible {
|
|
outline: none;
|
|
border-color: #60a5fa;
|
|
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
|
|
}
|
|
.sidebar-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(2, 6, 23, 0.7);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s ease;
|
|
z-index: 35;
|
|
}
|
|
.sidebar-backdrop.open {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
.sidebar-mobile-header,
|
|
.mobile-nav-button {
|
|
display: none;
|
|
}
|
|
.feedback-status {
|
|
font-size: 14px;
|
|
color: #93c5fd;
|
|
margin-top: 12px;
|
|
min-height: 20px;
|
|
}
|
|
.connection-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 32px;
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid #334155;
|
|
background: #111827;
|
|
color: #cbd5e1;
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
}
|
|
.connection-chip-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 999px;
|
|
background: #f59e0b;
|
|
box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
|
|
}
|
|
.connection-chip.is-connected .connection-chip-dot {
|
|
background: #22c55e;
|
|
box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
|
|
}
|
|
.connection-chip.is-error .connection-chip-dot,
|
|
.connection-chip.is-disconnected .connection-chip-dot {
|
|
background: #ef4444;
|
|
box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
|
|
}
|
|
.connection-chip.is-connecting .connection-chip-dot {
|
|
background: #f59e0b;
|
|
box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
|
|
}
|
|
.empty-state {
|
|
color: #9ca3af;
|
|
text-align: center;
|
|
margin: auto 0;
|
|
}
|