321 lines
7.4 KiB
CSS
321 lines
7.4 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 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; }
|
|
.list-tools {
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: #fbfdfb;
|
|
}
|
|
.list-tools label { color: var(--muted); }
|
|
|
|
.conversation-list { overflow: auto; }
|
|
.conversation-item {
|
|
border: 0;
|
|
border-bottom: 1px solid var(--line);
|
|
background: white;
|
|
color: var(--ink);
|
|
border-radius: 0;
|
|
padding: 10px;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 8px;
|
|
align-items: start;
|
|
}
|
|
.conversation-item.active { background: #eaf6f1; }
|
|
.conversation-item.fresh { animation: pulse 1.2s ease-in-out 4; }
|
|
.conversation-open {
|
|
min-width: 0;
|
|
text-align: left;
|
|
display: grid;
|
|
gap: 5px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--ink);
|
|
border-radius: 6px;
|
|
padding: 2px;
|
|
}
|
|
.conversation-open:hover { filter: none; background: #f3f7f4; }
|
|
.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;
|
|
}
|
|
.photo-count {
|
|
flex: 0 0 auto;
|
|
color: var(--brand);
|
|
font-size: 12px;
|
|
}
|
|
.snippet, .preview, .meta { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.list-photo {
|
|
grid-column: 1 / -1;
|
|
width: 100%;
|
|
height: 74px;
|
|
padding: 0;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background: #edf3ef;
|
|
}
|
|
.list-photo img {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
object-fit: cover;
|
|
}
|
|
.conversation-actions {
|
|
grid-column: 1 / -1;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 34px;
|
|
gap: 8px;
|
|
}
|
|
.status-select {
|
|
height: 34px;
|
|
padding: 5px 8px;
|
|
font-size: 12px;
|
|
}
|
|
.status-select.new { border-color: #2f9e44; background: #effaf2; }
|
|
.status-select.open { border-color: #2f80ed; background: #eef5ff; }
|
|
.status-select.resolved { border-color: #87908a; background: #f3f5f3; }
|
|
.status-select.spam { border-color: #d92d20; background: #fff1f0; }
|
|
.delete-chat {
|
|
width: 34px;
|
|
height: 34px;
|
|
padding: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
background: #fff1f0;
|
|
color: #b42318;
|
|
}
|
|
.delete-chat svg { width: 18px; height: 18px; fill: currentColor; }
|
|
.empty-list {
|
|
margin: 0;
|
|
padding: 18px 14px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.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; }
|
|
.attachments {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
.photo-preview {
|
|
width: 116px;
|
|
display: grid;
|
|
gap: 5px;
|
|
padding: 0;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: white;
|
|
color: var(--ink);
|
|
overflow: hidden;
|
|
text-align: left;
|
|
}
|
|
.photo-preview img {
|
|
width: 100%;
|
|
aspect-ratio: 4 / 3;
|
|
object-fit: cover;
|
|
display: block;
|
|
background: #edf3ef;
|
|
}
|
|
.photo-preview span {
|
|
padding: 0 7px 7px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.photo-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 20;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
}
|
|
.photo-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: rgb(0 0 0 / 72%);
|
|
}
|
|
.photo-modal figure {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin: 0;
|
|
max-width: min(1100px, 94vw);
|
|
max-height: 90vh;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
.photo-modal img {
|
|
max-width: 100%;
|
|
max-height: 82vh;
|
|
object-fit: contain;
|
|
border-radius: 8px;
|
|
background: white;
|
|
}
|
|
.photo-modal figcaption {
|
|
color: white;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
}
|
|
.photo-close {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
width: 34px;
|
|
height: 34px;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
background: rgb(0 0 0 / 54%);
|
|
}
|
|
.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; }
|
|
}
|