172 lines
4.5 KiB
CSS
172 lines
4.5 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
--line: #dfe6e2;
|
|
--ink: #17211d;
|
|
--muted: #627067;
|
|
--brand: #0f8f6f;
|
|
--bg: #f5f7f4;
|
|
--panel: #ffffff;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
body { margin: 0; background: var(--bg); color: var(--ink); }
|
|
button, input, textarea, select { font: inherit; }
|
|
button {
|
|
border: 0;
|
|
background: var(--brand);
|
|
color: white;
|
|
border-radius: 6px;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
}
|
|
button:hover { filter: brightness(0.96); }
|
|
input, textarea, select {
|
|
width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 6px;
|
|
padding: 9px 10px;
|
|
background: white;
|
|
color: var(--ink);
|
|
}
|
|
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
|
|
|
|
.hidden { display: none !important; }
|
|
.shell { min-height: 100vh; }
|
|
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
|
|
.panel {
|
|
width: min(360px, 100%);
|
|
display: grid;
|
|
gap: 14px;
|
|
background: white;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 24px;
|
|
}
|
|
.panel h1 { margin: 0 0 6px; }
|
|
.error { min-height: 20px; color: #b42318; margin: 0; }
|
|
|
|
.app {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
grid-template-columns: 330px minmax(0, 1fr);
|
|
}
|
|
.sidebar {
|
|
border-right: 1px solid var(--line);
|
|
background: var(--panel);
|
|
display: grid;
|
|
grid-template-rows: auto auto minmax(0, 1fr);
|
|
}
|
|
.brand, .sitebar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
.brand h1 { margin: 0; font-size: 20px; }
|
|
.brand button, .sitebar button { background: #edf3ef; color: var(--ink); }
|
|
.switch { display: flex; align-items: center; gap: 8px; }
|
|
.switch input { width: auto; }
|
|
|
|
.conversation-list { overflow: auto; }
|
|
.conversation-item {
|
|
width: 100%;
|
|
text-align: left;
|
|
border: 0;
|
|
border-bottom: 1px solid var(--line);
|
|
background: white;
|
|
color: var(--ink);
|
|
border-radius: 0;
|
|
padding: 12px 14px;
|
|
display: grid;
|
|
gap: 5px;
|
|
}
|
|
.conversation-item.active { background: #eaf6f1; }
|
|
.conversation-item.fresh { animation: pulse 1.2s ease-in-out 4; }
|
|
.row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
|
|
.status {
|
|
font-size: 12px;
|
|
color: white;
|
|
background: #456257;
|
|
border-radius: 999px;
|
|
padding: 2px 8px;
|
|
}
|
|
.snippet, .preview, .meta { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
.conversation { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; min-width: 0; }
|
|
.conversation-header {
|
|
min-height: 74px;
|
|
padding: 16px 20px;
|
|
background: white;
|
|
border-bottom: 1px solid var(--line);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
}
|
|
.conversation-header h2 { margin: 0 0 5px; font-size: 20px; }
|
|
.conversation-header p { margin: 0; color: var(--muted); font-size: 13px; }
|
|
.conversation-header select { width: 150px; align-self: start; }
|
|
.messages {
|
|
overflow: auto;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.message {
|
|
max-width: min(680px, 86%);
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--line);
|
|
background: white;
|
|
}
|
|
.message.admin { align-self: flex-end; background: #ecf8f3; border-color: #c7e8dc; }
|
|
.message .by { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
|
|
.message p { margin: 0; white-space: pre-wrap; }
|
|
.message a { color: var(--brand); display: inline-block; margin-top: 6px; }
|
|
.typing { padding: 0 20px 10px; color: var(--brand); font-size: 13px; }
|
|
.reply {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 10px;
|
|
padding: 14px;
|
|
background: white;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.settings {
|
|
position: fixed;
|
|
inset: 0 0 0 auto;
|
|
width: min(430px, 100%);
|
|
overflow: auto;
|
|
background: white;
|
|
border-left: 1px solid var(--line);
|
|
padding: 16px;
|
|
box-shadow: -12px 0 30px rgb(0 0 0 / 12%);
|
|
}
|
|
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
.settings h2 { margin: 0 0 12px; }
|
|
.settings h3 { margin: 20px 0 8px; }
|
|
.settings form { display: grid; gap: 12px; }
|
|
pre {
|
|
white-space: pre-wrap;
|
|
overflow: auto;
|
|
padding: 12px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: #f7faf8;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { background: white; }
|
|
50% { background: #dff7eb; }
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.app { grid-template-columns: 1fr; }
|
|
.sidebar { min-height: 42vh; border-right: 0; border-bottom: 1px solid var(--line); }
|
|
.conversation { min-height: 58vh; }
|
|
}
|