1191 lines
21 KiB
CSS
1191 lines
21 KiB
CSS
@import url('../shared/theme.css');
|
|
|
|
:root {
|
|
--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;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font);
|
|
background:
|
|
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: 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;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
overflow: hidden;
|
|
padding-bottom: 32px;
|
|
}
|
|
|
|
.sidebar, .right-sidebar {
|
|
background: var(--bg-secondary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sidebar {
|
|
border-right: 1px solid var(--border-color);
|
|
}
|
|
|
|
.right-sidebar {
|
|
border-left: 1px solid var(--border-color);
|
|
}
|
|
|
|
.sidebar-header {
|
|
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 {
|
|
font-size: 1rem;
|
|
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;
|
|
gap: 0.5rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: var(--accent-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
transition: transform 0.15s;
|
|
}
|
|
|
|
.avatar:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.user-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-info input {
|
|
width: 100%;
|
|
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.95rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.user-info input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.public-key {
|
|
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 {
|
|
color: var(--accent-secondary);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.section-header h3 {
|
|
font-size: 0.78rem;
|
|
text-transform: uppercase;
|
|
color: var(--text-secondary);
|
|
font-weight: 700;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.btn-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: none;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.rooms-section, .users-section {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
.room-list, .user-list {
|
|
list-style: none;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.room {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.6rem 1rem;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.room:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.room.active {
|
|
background: var(--accent-primary);
|
|
color: #0a0a10;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.room-icon {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.room.active .room-icon {
|
|
color: #0a0a10;
|
|
}
|
|
|
|
.room-name {
|
|
flex: 1;
|
|
}
|
|
|
|
.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(10, 10, 16, 0.22);
|
|
color: #0a0a10;
|
|
}
|
|
|
|
.user-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
padding: 0.5rem 1rem;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.user-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.user-item .avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.user-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.user-status {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-status.online { background: var(--online); }
|
|
.user-status.away { background: var(--away); }
|
|
.user-status.offline { background: var(--offline); }
|
|
|
|
.chat-area {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-primary);
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chat-info h2 {
|
|
font-size: 1.2rem;
|
|
color: var(--text-primary);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.room-topic {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.chat-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
min-height: 0;
|
|
}
|
|
|
|
.message {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.message:hover {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.message.own {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.message .avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 0.9rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.message-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.message-header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.2rem;
|
|
}
|
|
|
|
.message.own .message-header {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.message-author {
|
|
font-weight: 700;
|
|
color: #7dd3fc;
|
|
}
|
|
|
|
.message.own .message-author {
|
|
color: #5eead4;
|
|
}
|
|
|
|
.message-time {
|
|
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 */
|
|
.message-text p {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.message-text p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.message-text code {
|
|
background: var(--bg-tertiary);
|
|
padding: 0.1rem 0.4rem;
|
|
border-radius: 4px;
|
|
font-family: 'SF Mono', Monaco, 'Courier New', monospace;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.message-text pre {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
padding: 0.75rem;
|
|
overflow-x: auto;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.message-text pre code {
|
|
background: none;
|
|
padding: 0;
|
|
font-family: 'SF Mono', Monaco, 'Courier New', monospace;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Fallback syntax colors if highlight.js fails to load */
|
|
.message-text .hljs {
|
|
background: var(--bg-tertiary);
|
|
color: #abb2bf;
|
|
}
|
|
|
|
.message-text .hljs-keyword { color: #c678dd; }
|
|
.message-text .hljs-string { color: #98c379; }
|
|
.message-text .hljs-number { color: #d19a66; }
|
|
.message-text .hljs-function { color: #61afef; }
|
|
.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; }
|
|
.message-text .hljs-literal { color: #56b6c2; }
|
|
.message-text .hljs-attr { color: #d19a66; }
|
|
.message-text .hljs-property { color: #e06c75; }
|
|
.message-text .hljs-title { color: #61afef; }
|
|
.message-text .hljs-params { color: #abb2bf; }
|
|
.message-text .hljs-bullet { color: #e5c07b; }
|
|
.message-text .hljs-code { color: #98c379; }
|
|
.message-text .hljs-addition { color: #98c379; background-color: #2d4a3e; }
|
|
.message-text .hljs-deletion { color: #e06c75; background-color: #4a2d2d; }
|
|
|
|
.message-text blockquote {
|
|
border-left: 3px solid var(--accent-primary);
|
|
padding-left: 0.75rem;
|
|
margin: 0.5rem 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.message-text ul, .message-text ol {
|
|
margin: 0.5rem 0;
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
.message-text li {
|
|
margin: 0.25rem 0;
|
|
}
|
|
|
|
.message-text a {
|
|
color: var(--accent-secondary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.message-text a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.message-text img {
|
|
max-width: 100%;
|
|
border-radius: 8px;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.message-text table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.message-text th, .message-text td {
|
|
border: 1px solid var(--border-color);
|
|
padding: 0.4rem 0.6rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.message-text th {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.message-text hr {
|
|
border: none;
|
|
border-top: 1px solid var(--border-color);
|
|
margin: 0.75rem 0;
|
|
}
|
|
|
|
.message-text input[type="checkbox"] {
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.message-file {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
background: var(--bg-tertiary);
|
|
padding: 0.75rem;
|
|
border-radius: 8px;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.message-file .file-icon {
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
.message-file .file-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.message-file .file-name {
|
|
font-weight: 500;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.message-file .file-size {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.btn-download {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.35rem 0.75rem;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
transition: background 0.15s;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.btn-download:hover {
|
|
background: var(--accent-primary-hover);
|
|
}
|
|
|
|
.typing-indicator {
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
font-weight: 500;
|
|
display: none;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.typing-indicator.active {
|
|
display: block;
|
|
}
|
|
|
|
.compose-area {
|
|
padding: 0.75rem 1rem;
|
|
background: var(--bg-secondary);
|
|
border-top: 1px solid var(--border-color);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.compose-tools {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
margin-bottom: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn-tool {
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.btn-tool:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-tool:active {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.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;
|
|
min-width: 0;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
padding: 0.65rem 0.8rem;
|
|
color: var(--text-primary);
|
|
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 {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.6rem 1.2rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.btn-send:hover {
|
|
background: var(--accent-primary-hover);
|
|
}
|
|
|
|
.btn-send:disabled {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-muted);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.sidebar-section {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.sidebar-section h3 {
|
|
font-size: 0.78rem;
|
|
text-transform: uppercase;
|
|
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.9rem;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.info-item .label {
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.file-list {
|
|
list-style: none;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.file-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.file-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--accent-secondary);
|
|
}
|
|
|
|
.file-item .file-icon {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.file-item .file-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.setting-item {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.setting-item label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.setting-item input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
accent-color: var(--accent-primary);
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0,0,0,0.7);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
animation: modalIn 0.2s ease;
|
|
}
|
|
|
|
@keyframes modalIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.modal-content h3 {
|
|
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(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
padding: 0.65rem 0.75rem;
|
|
color: var(--text-primary);
|
|
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 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 0.88rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
justify-content: flex-end;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
border: none;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.btn.primary {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.btn.primary:hover {
|
|
background: var(--accent-primary-hover);
|
|
}
|
|
|
|
.btn.secondary {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn.secondary:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: 2.5rem;
|
|
right: 1rem;
|
|
z-index: 1001;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.toast {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 0.75rem 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
animation: slideIn 0.3s ease;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.toast.success { border-left: 3px solid var(--success); }
|
|
.toast.error { border-left: 3px solid var(--error); }
|
|
.toast.info { border-left: 3px solid var(--accent-secondary); }
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.status-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--bg-secondary);
|
|
border-top: 1px solid var(--border-color);
|
|
padding: 0.5rem 1rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.8rem;
|
|
z-index: 100;
|
|
}
|
|
|
|
.status {
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.connection-status {
|
|
color: var(--offline);
|
|
}
|
|
|
|
.connection-status.connected {
|
|
color: var(--online);
|
|
}
|
|
|
|
.connection-status.connecting {
|
|
color: var(--away);
|
|
}
|
|
|
|
.message.system-message {
|
|
display: block;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
padding: 0.55rem;
|
|
background: transparent;
|
|
}
|
|
|
|
.emoji-picker {
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 0;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 0.5rem;
|
|
display: grid;
|
|
grid-template-columns: repeat(8, 1fr);
|
|
gap: 0.25rem;
|
|
max-height: 250px;
|
|
overflow-y: auto;
|
|
z-index: 1000;
|
|
box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.emoji {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
font-size: 1.25rem;
|
|
transition: transform 0.1s, background 0.1s;
|
|
border: none;
|
|
background: transparent;
|
|
padding: 0;
|
|
color: inherit;
|
|
}
|
|
|
|
.emoji:hover {
|
|
background: var(--bg-hover);
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
textarea {
|
|
field-sizing: content;
|
|
min-height: 40px;
|
|
max-height: 120px;
|
|
}
|
|
|
|
/* Scrollbar styling */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Highlight.js theme adjustments */
|
|
.hljs {
|
|
background: transparent !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.app-container {
|
|
grid-template-columns: 220px 1fr 200px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.mobile-bar { display: flex; }
|
|
.bs-back-link { top: 3.15rem; }
|
|
.app-container {
|
|
grid-template-columns: 1fr;
|
|
padding-top: 44px;
|
|
}
|
|
.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);
|
|
}
|
|
.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;
|
|
}
|
|
}
|
|
|
|
@media (max-height: 600px) {
|
|
.sidebar-header {
|
|
padding: 0.5rem;
|
|
}
|
|
.sidebar-header h2 {
|
|
font-size: 0.9rem;
|
|
}
|
|
.user-profile {
|
|
padding: 0.5rem;
|
|
}
|
|
.user-profile .avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
.compose-area {
|
|
padding: 0.5rem;
|
|
}
|
|
.messages {
|
|
padding: 0.5rem;
|
|
}
|
|
}
|