@@ -1,23 +1,26 @@
|
||||
@import url('../shared/theme.css');
|
||||
|
||||
:root {
|
||||
--bg-primary: var(--bg);
|
||||
--bg-secondary: var(--panel);
|
||||
--bg-tertiary: var(--panel-2);
|
||||
--bg-hover: #283548;
|
||||
--border-color: var(--border);
|
||||
--text-primary: var(--text);
|
||||
--text-secondary: var(--muted);
|
||||
--text-muted: var(--faint);
|
||||
--accent-primary: var(--accent);
|
||||
--accent-primary-hover: var(--accent-hover);
|
||||
--accent-secondary: var(--accent-2);
|
||||
--success: var(--ok);
|
||||
--warning: #f59e0b;
|
||||
--error: var(--danger);
|
||||
--online: var(--ok);
|
||||
--away: #f59e0b;
|
||||
--offline: var(--faint);
|
||||
--bg-primary: #0e0e14;
|
||||
--bg-secondary: #17171f;
|
||||
--bg-tertiary: #22222c;
|
||||
--bg-hover: #2c2c38;
|
||||
--border-color: #3a3a48;
|
||||
/* High-contrast text (do not use faint gray for body copy) */
|
||||
--text-primary: #f4f4f8;
|
||||
--text-secondary: #d0d0dc;
|
||||
--text-muted: #a8a8b8;
|
||||
--accent-primary: #2dd4bf;
|
||||
--accent-primary-hover: #5eead4;
|
||||
--accent-secondary: #7dd3fc;
|
||||
--success: #4ade80;
|
||||
--warning: #fbbf24;
|
||||
--error: #fb7185;
|
||||
--online: #4ade80;
|
||||
--away: #fbbf24;
|
||||
--offline: #8b8b9a;
|
||||
--input-bg: #1c1c26;
|
||||
--input-border: #4a4a5a;
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -34,13 +37,62 @@ html, body {
|
||||
body {
|
||||
font-family: var(--font);
|
||||
background:
|
||||
radial-gradient(900px 400px at 0% 0%, var(--glow-blue), transparent 50%),
|
||||
radial-gradient(900px 400px at 0% 0%, rgba(45, 212, 191, 0.1), transparent 50%),
|
||||
radial-gradient(700px 360px at 100% 0%, rgba(125, 211, 252, 0.08), transparent 55%),
|
||||
var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
font-size: 15px;
|
||||
line-height: 1.55;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.hidden { display: none !important; }
|
||||
|
||||
.bs-back-link {
|
||||
position: fixed;
|
||||
top: 0.45rem;
|
||||
left: 0.65rem;
|
||||
z-index: 60;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
padding: 0.2rem 0.45rem;
|
||||
border-radius: 6px;
|
||||
background: rgba(12, 12, 16, 0.55);
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
.bs-back-link:hover { color: var(--accent-primary); }
|
||||
|
||||
.mobile-bar {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 44px;
|
||||
z-index: 55;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
padding: 0 0.5rem;
|
||||
background: var(--bg-secondary);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
.mobile-title {
|
||||
font-weight: 700;
|
||||
font-family: var(--font-display, var(--font));
|
||||
color: var(--accent-secondary);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.drawer-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.55);
|
||||
z-index: 70;
|
||||
}
|
||||
.drawer-backdrop.hidden { display: none !important; }
|
||||
|
||||
.app-container {
|
||||
display: grid;
|
||||
grid-template-columns: 240px 1fr 220px;
|
||||
@@ -70,6 +122,10 @@ body {
|
||||
padding: 0.75rem 1rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.sidebar-header h2 {
|
||||
@@ -77,6 +133,23 @@ body {
|
||||
color: var(--accent-secondary);
|
||||
}
|
||||
|
||||
.btn-leave {
|
||||
font-size: 0.7rem !important;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
padding: 0.25rem 0.5rem !important;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.btn-leave:hover:not(:disabled) {
|
||||
border-color: var(--error);
|
||||
color: var(--error);
|
||||
}
|
||||
.btn-leave:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
|
||||
.user-profile {
|
||||
padding: 0.75rem;
|
||||
display: flex;
|
||||
@@ -111,12 +184,13 @@ body {
|
||||
|
||||
.user-info input {
|
||||
width: 100%;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border-color);
|
||||
background: var(--input-bg);
|
||||
border: 1px solid var(--input-border);
|
||||
border-radius: 6px;
|
||||
padding: 0.4rem 0.6rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.9rem;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.user-info input:focus {
|
||||
@@ -125,13 +199,14 @@ body {
|
||||
}
|
||||
|
||||
.public-key {
|
||||
font-size: 0.65rem;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.72rem;
|
||||
color: var(--text-secondary);
|
||||
margin-top: 0.3rem;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-family: var(--font-mono, ui-monospace, monospace);
|
||||
}
|
||||
|
||||
.public-key:hover {
|
||||
@@ -146,10 +221,10 @@ body {
|
||||
}
|
||||
|
||||
.section-header h3 {
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.78rem;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
@@ -196,6 +271,8 @@ body {
|
||||
padding: 0.6rem 1rem;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.room:hover {
|
||||
@@ -204,15 +281,16 @@ body {
|
||||
|
||||
.room.active {
|
||||
background: var(--accent-primary);
|
||||
color: white;
|
||||
color: #0a0a10;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.room-icon {
|
||||
color: var(--text-muted);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.room.active .room-icon {
|
||||
color: white;
|
||||
color: #0a0a10;
|
||||
}
|
||||
|
||||
.room-name {
|
||||
@@ -222,12 +300,15 @@ body {
|
||||
.room-count {
|
||||
font-size: 0.75rem;
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-secondary);
|
||||
padding: 0.1rem 0.4rem;
|
||||
border-radius: 10px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.room.active .room-count {
|
||||
background: rgba(255,255,255,0.2);
|
||||
background: rgba(10, 10, 16, 0.22);
|
||||
color: #0a0a10;
|
||||
}
|
||||
|
||||
.user-item {
|
||||
@@ -253,6 +334,8 @@ body {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.user-status {
|
||||
@@ -286,11 +369,14 @@ body {
|
||||
|
||||
.chat-info h2 {
|
||||
font-size: 1.2rem;
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.room-topic {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.chat-actions {
|
||||
@@ -349,22 +435,25 @@ body {
|
||||
}
|
||||
|
||||
.message-author {
|
||||
font-weight: 600;
|
||||
color: var(--accent-secondary);
|
||||
font-weight: 700;
|
||||
color: #7dd3fc;
|
||||
}
|
||||
|
||||
.message.own .message-author {
|
||||
color: var(--accent-primary);
|
||||
color: #5eead4;
|
||||
}
|
||||
|
||||
.message-time {
|
||||
font-size: 0.7rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.message-text {
|
||||
word-wrap: break-word;
|
||||
line-height: 1.6;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.98rem;
|
||||
}
|
||||
|
||||
/* Markdown styling */
|
||||
@@ -409,7 +498,7 @@ body {
|
||||
.message-text .hljs-string { color: #98c379; }
|
||||
.message-text .hljs-number { color: #d19a66; }
|
||||
.message-text .hljs-function { color: #61afef; }
|
||||
.message-text .hljs-comment { color: #5c6370; font-style: italic; }
|
||||
.message-text .hljs-comment { color: #9aa0ad; font-style: italic; }
|
||||
.message-text .hljs-class { color: #e5c07b; }
|
||||
.message-text .hljs-variable { color: #e06c75; }
|
||||
.message-text .hljs-built_in { color: #e5c07b; }
|
||||
@@ -530,9 +619,10 @@ body {
|
||||
|
||||
.typing-indicator {
|
||||
padding: 0.5rem 1rem;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
display: none;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -580,26 +670,92 @@ body {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.compose-input {
|
||||
.empty-state, .empty-hint {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.9rem;
|
||||
text-align: center;
|
||||
padding: 1.5rem 1rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
.empty-hint {
|
||||
list-style: none;
|
||||
text-align: left;
|
||||
padding: 0.5rem 0.25rem;
|
||||
}
|
||||
|
||||
.file-attachment {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
padding: 0.65rem 0.75rem;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
.file-attachment .muted { color: var(--text-muted); font-size: 0.8rem; }
|
||||
.btn-download {
|
||||
margin-left: auto;
|
||||
border: 1px solid var(--accent-border, rgba(45, 212, 191, 0.35));
|
||||
background: var(--accent-dim, rgba(45, 212, 191, 0.12));
|
||||
color: var(--accent-primary);
|
||||
border-radius: 6px;
|
||||
padding: 0.35rem 0.65rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn-download:hover { filter: brightness(1.08); }
|
||||
|
||||
.file-item .file-meta {
|
||||
display: block;
|
||||
font-size: 0.7rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.status.error { color: var(--error); }
|
||||
|
||||
.compose-input {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.compose-input textarea {
|
||||
flex: 1;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border-color);
|
||||
min-width: 0;
|
||||
background: var(--input-bg);
|
||||
border: 1px solid var(--input-border);
|
||||
border-radius: 8px;
|
||||
padding: 0.6rem;
|
||||
padding: 0.65rem 0.8rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.95rem;
|
||||
font-size: 1rem;
|
||||
line-height: 1.45;
|
||||
resize: none;
|
||||
font-family: inherit;
|
||||
font-weight: 450;
|
||||
}
|
||||
|
||||
.compose-input textarea::placeholder {
|
||||
color: #9a9aac;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.compose-input textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-primary);
|
||||
box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.18);
|
||||
}
|
||||
|
||||
.compose-input textarea:disabled {
|
||||
opacity: 0.55;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn-tool:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn-send {
|
||||
@@ -629,21 +785,26 @@ body {
|
||||
}
|
||||
|
||||
.sidebar-section h3 {
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.78rem;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
color: var(--text-secondary);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.85rem;
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.info-item .label {
|
||||
color: var(--text-muted);
|
||||
color: var(--text-secondary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.file-list {
|
||||
@@ -687,7 +848,9 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.85rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -735,23 +898,44 @@ body {
|
||||
}
|
||||
|
||||
.modal-content h3 {
|
||||
margin-bottom: 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.modal-hint {
|
||||
font-size: 0.88rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 0.85rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
.join-error {
|
||||
color: var(--error) !important;
|
||||
background: rgba(251, 113, 133, 0.1);
|
||||
border: 1px solid rgba(251, 113, 133, 0.3);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 0.65rem;
|
||||
}
|
||||
|
||||
.modal-content input {
|
||||
width: 100%;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border-color);
|
||||
background: var(--input-bg);
|
||||
border: 1px solid var(--input-border);
|
||||
border-radius: 6px;
|
||||
padding: 0.6rem;
|
||||
padding: 0.65rem 0.75rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.95rem;
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.modal-content input::placeholder {
|
||||
color: #9a9aac;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.modal-content input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-primary);
|
||||
box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.18);
|
||||
}
|
||||
|
||||
.form-group {
|
||||
@@ -760,9 +944,10 @@ body {
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 0.3rem;
|
||||
font-size: 0.88rem;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.modal-actions {
|
||||
@@ -852,7 +1037,8 @@ body {
|
||||
}
|
||||
|
||||
.status {
|
||||
color: var(--text-muted);
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.connection-status {
|
||||
@@ -867,11 +1053,14 @@ body {
|
||||
color: var(--away);
|
||||
}
|
||||
|
||||
.system-message {
|
||||
.message.system-message {
|
||||
display: block;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.8rem;
|
||||
padding: 0.5rem;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
padding: 0.55rem;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.emoji-picker {
|
||||
@@ -902,6 +1091,10 @@ body {
|
||||
border-radius: 6px;
|
||||
font-size: 1.25rem;
|
||||
transition: transform 0.1s, background 0.1s;
|
||||
border: none;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.emoji:hover {
|
||||
@@ -940,33 +1133,38 @@ textarea {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
@media (max-width: 1100px) {
|
||||
.app-container {
|
||||
grid-template-columns: 200px 1fr;
|
||||
}
|
||||
.right-sidebar {
|
||||
display: none;
|
||||
grid-template-columns: 220px 1fr 200px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
@media (max-width: 900px) {
|
||||
.mobile-bar { display: flex; }
|
||||
.bs-back-link { top: 3.15rem; }
|
||||
.app-container {
|
||||
grid-template-columns: 1fr;
|
||||
padding-top: 44px;
|
||||
}
|
||||
.sidebar {
|
||||
.sidebar,
|
||||
.right-sidebar {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 44px;
|
||||
bottom: 32px;
|
||||
width: min(300px, 86vw);
|
||||
z-index: 80;
|
||||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
.user-profile {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
.sidebar { left: 0; border-right: 1px solid var(--border-color); }
|
||||
.right-sidebar { right: 0; border-left: 1px solid var(--border-color); }
|
||||
.app-container.drawer-left .sidebar { display: flex; }
|
||||
.app-container.drawer-right .right-sidebar { display: flex; }
|
||||
.user-profile .avatar {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.public-key {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-height: 600px) {
|
||||
|
||||
Reference in New Issue
Block a user