- full design system rewrite (dark theme, system tokens) - chat shell: server rail / channel sidebar / message area / members - message rows with avatars, author + time; empty/loading states - login screen redesign; add-guild moved to a modal - removed debug v1/v2/v4 panel toggles; members toggle in topbar Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
643 lines
11 KiB
CSS
643 lines
11 KiB
CSS
:root {
|
|
--rail: #18191c;
|
|
--side: #1f2125;
|
|
--main: #26282d;
|
|
--elevated: #1a1b1e;
|
|
--input: #1a1b1e;
|
|
--hover: rgba(255, 255, 255, 0.04);
|
|
--active: rgba(168, 85, 247, 0.16);
|
|
|
|
--text: #dbdee1;
|
|
--text-muted: #949ba4;
|
|
--text-faint: #6d7178;
|
|
--text-h: #f2f3f5;
|
|
|
|
--border: #303237;
|
|
--accent: #a855f7;
|
|
--accent-strong: #9333ea;
|
|
--accent-soft: rgba(168, 85, 247, 0.14);
|
|
--danger: #f23f42;
|
|
--online: #23a55a;
|
|
|
|
--radius: 10px;
|
|
--radius-sm: 7px;
|
|
--sans: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
|
|
--mono: ui-monospace, 'SF Mono', Consolas, monospace;
|
|
|
|
color-scheme: dark;
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
font: 15px/1.5 var(--sans);
|
|
color: var(--text);
|
|
background: var(--main);
|
|
}
|
|
|
|
#root {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
color: var(--text-h);
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
button {
|
|
font-family: inherit;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: #00000050;
|
|
border-radius: 8px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
/* ---------- shared controls ---------- */
|
|
.input {
|
|
width: 100%;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px 12px;
|
|
background: var(--input);
|
|
color: var(--text-h);
|
|
font-size: 14px;
|
|
outline: none;
|
|
transition: border-color 0.12s ease;
|
|
}
|
|
.input::placeholder {
|
|
color: var(--text-faint);
|
|
}
|
|
.input:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px 16px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
background: var(--accent);
|
|
cursor: pointer;
|
|
transition:
|
|
background 0.12s ease,
|
|
opacity 0.12s ease,
|
|
transform 0.05s ease;
|
|
}
|
|
.btn:hover {
|
|
background: var(--accent-strong);
|
|
}
|
|
.btn:active {
|
|
transform: translateY(1px);
|
|
}
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
.btn-secondary {
|
|
background: #3a3d44;
|
|
color: var(--text-h);
|
|
}
|
|
.btn-secondary:hover {
|
|
background: #44474f;
|
|
}
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
}
|
|
.btn-ghost:hover {
|
|
background: var(--hover);
|
|
color: var(--text-h);
|
|
}
|
|
.btn-danger {
|
|
background: var(--danger);
|
|
}
|
|
.btn-danger:hover {
|
|
background: #d83a3d;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--text-muted);
|
|
}
|
|
.error-text {
|
|
color: #f87171;
|
|
}
|
|
.list-reset {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
/* ---------- login ---------- */
|
|
.login-screen {
|
|
flex: 1;
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
background:
|
|
radial-gradient(900px 500px at 50% -10%, rgba(168, 85, 247, 0.22), transparent 60%),
|
|
var(--main);
|
|
}
|
|
.login-card {
|
|
width: min(420px, 100%);
|
|
background: var(--side);
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
padding: 32px;
|
|
box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
|
|
}
|
|
.login-card h1 {
|
|
font-size: 24px;
|
|
margin-bottom: 4px;
|
|
}
|
|
.login-sub {
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
margin-bottom: 24px;
|
|
}
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.field label {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
}
|
|
.login-card .btn {
|
|
width: 100%;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* ---------- chat shell ---------- */
|
|
.dc-shell {
|
|
flex: 1;
|
|
height: 100vh;
|
|
display: flex;
|
|
overflow: hidden;
|
|
background: var(--main);
|
|
}
|
|
|
|
/* server rail */
|
|
.dc-rail {
|
|
width: 72px;
|
|
background: var(--rail);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 0;
|
|
overflow-y: auto;
|
|
}
|
|
.dc-rail::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.rail-btn {
|
|
position: relative;
|
|
width: 48px;
|
|
height: 48px;
|
|
border: none;
|
|
border-radius: 24px;
|
|
background: var(--side);
|
|
color: var(--text-h);
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
cursor: pointer;
|
|
transition:
|
|
border-radius 0.15s ease,
|
|
background 0.15s ease;
|
|
}
|
|
.rail-btn:hover {
|
|
border-radius: 16px;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
}
|
|
.rail-btn.active {
|
|
border-radius: 16px;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
}
|
|
.rail-btn.active::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 4px;
|
|
height: 28px;
|
|
background: #fff;
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
.rail-add {
|
|
background: transparent;
|
|
color: var(--online);
|
|
border: 1px solid var(--border);
|
|
font-size: 22px;
|
|
line-height: 1;
|
|
}
|
|
.rail-add:hover {
|
|
background: var(--online);
|
|
color: #fff;
|
|
}
|
|
.rail-sep {
|
|
width: 32px;
|
|
height: 1px;
|
|
background: var(--border);
|
|
flex: none;
|
|
}
|
|
|
|
/* channel sidebar */
|
|
.dc-sidebar {
|
|
width: 248px;
|
|
background: var(--side);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.dc-sidebar-head {
|
|
height: 50px;
|
|
padding: 0 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
font-weight: 700;
|
|
color: var(--text-h);
|
|
border-bottom: 1px solid #00000040;
|
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
|
|
}
|
|
.dc-sidebar-scroll {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px 8px;
|
|
}
|
|
.dc-section-label {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 8px 4px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--text-faint);
|
|
}
|
|
.dc-section-label button {
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-faint);
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
padding: 0 4px;
|
|
}
|
|
.dc-section-label button:hover {
|
|
color: var(--text-h);
|
|
}
|
|
.chan-btn {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
text-align: left;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: var(--radius-sm);
|
|
padding: 8px 10px;
|
|
margin: 1px 0;
|
|
color: var(--text-muted);
|
|
font-size: 15px;
|
|
cursor: pointer;
|
|
}
|
|
.chan-btn .hash {
|
|
color: var(--text-faint);
|
|
font-weight: 600;
|
|
}
|
|
.chan-btn:hover {
|
|
background: var(--hover);
|
|
color: var(--text);
|
|
}
|
|
.chan-btn.active {
|
|
background: var(--active);
|
|
color: var(--text-h);
|
|
}
|
|
.chan-tag {
|
|
margin-left: auto;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
border: 1px solid var(--accent);
|
|
border-radius: 4px;
|
|
padding: 0 4px;
|
|
}
|
|
.dc-empty {
|
|
color: var(--text-faint);
|
|
font-size: 13px;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
/* user bar */
|
|
.dc-userbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
background: var(--elevated);
|
|
}
|
|
.dc-userbar .who {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.dc-userbar .who .nm {
|
|
color: var(--text-h);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.dc-userbar .who .sub {
|
|
color: var(--text-muted);
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.icon-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
border-radius: 7px;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font-size: 15px;
|
|
cursor: pointer;
|
|
}
|
|
.icon-btn:hover {
|
|
background: var(--hover);
|
|
color: var(--text-h);
|
|
}
|
|
|
|
/* avatar */
|
|
.avatar {
|
|
flex: none;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
background: linear-gradient(135deg, var(--accent), #6d28d9);
|
|
}
|
|
.avatar.lg {
|
|
width: 40px;
|
|
height: 40px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* main column */
|
|
.dc-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--main);
|
|
}
|
|
.dc-topbar {
|
|
height: 50px;
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 0 16px;
|
|
border-bottom: 1px solid #00000040;
|
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
|
|
}
|
|
.dc-topbar .title {
|
|
font-weight: 700;
|
|
color: var(--text-h);
|
|
}
|
|
.dc-topbar .hash {
|
|
color: var(--text-faint);
|
|
margin-right: 2px;
|
|
}
|
|
.dc-topbar .spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.dc-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 18px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
.msg {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 6px 8px;
|
|
border-radius: 8px;
|
|
}
|
|
.msg:hover {
|
|
background: rgba(0, 0, 0, 0.12);
|
|
}
|
|
.msg .body {
|
|
min-width: 0;
|
|
}
|
|
.msg .meta {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
.msg .author {
|
|
font-weight: 600;
|
|
color: var(--text-h);
|
|
font-size: 14px;
|
|
}
|
|
.msg .time {
|
|
font-size: 11px;
|
|
color: var(--text-faint);
|
|
}
|
|
.msg .text {
|
|
color: var(--text);
|
|
word-break: break-word;
|
|
}
|
|
.msg.deleted .text {
|
|
color: var(--text-faint);
|
|
font-style: italic;
|
|
}
|
|
.dc-empty-center {
|
|
margin: auto;
|
|
text-align: center;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
/* composer */
|
|
.dc-composer {
|
|
flex: none;
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 0 16px 20px;
|
|
}
|
|
.dc-composer .input {
|
|
background: #303237;
|
|
padding: 12px 14px;
|
|
}
|
|
.dc-composer .btn {
|
|
flex: none;
|
|
}
|
|
|
|
/* members */
|
|
.dc-members {
|
|
width: 232px;
|
|
background: var(--side);
|
|
padding: 16px 8px;
|
|
overflow-y: auto;
|
|
}
|
|
.dc-members .dc-section-label {
|
|
cursor: default;
|
|
}
|
|
.member-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 6px 8px;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
.member-row:hover {
|
|
background: var(--hover);
|
|
}
|
|
.member-row .nm {
|
|
color: var(--text);
|
|
font-size: 14px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.member-row .you {
|
|
color: var(--text-faint);
|
|
font-size: 11px;
|
|
margin-left: 4px;
|
|
}
|
|
.dot {
|
|
position: relative;
|
|
}
|
|
.dot::after {
|
|
content: '';
|
|
position: absolute;
|
|
right: -1px;
|
|
bottom: -1px;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--online);
|
|
border: 2px solid var(--side);
|
|
}
|
|
|
|
/* ---------- modal ---------- */
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: blur(2px);
|
|
display: grid;
|
|
place-items: center;
|
|
z-index: 50;
|
|
padding: 20px;
|
|
}
|
|
.modal-card {
|
|
width: min(460px, 100%);
|
|
max-height: 84vh;
|
|
overflow: auto;
|
|
background: var(--side);
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
padding: 22px;
|
|
box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
|
|
}
|
|
.modal-card h3 {
|
|
font-size: 18px;
|
|
margin-bottom: 14px;
|
|
}
|
|
.modal-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
margin: 10px 0;
|
|
max-height: 240px;
|
|
overflow: auto;
|
|
}
|
|
.check-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 10px;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
}
|
|
.check-row:hover {
|
|
background: var(--hover);
|
|
}
|
|
.check-row input {
|
|
accent-color: var(--accent);
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 18px;
|
|
}
|
|
.modal-actions .btn {
|
|
flex: 1;
|
|
}
|