Files
fastway-plugin-webui/web/css/webui.css

502 lines
10 KiB
CSS

/* Fastway BBS - WebUI Theme */
:root, [data-theme="dark"] {
--bg-primary: #0a0e17;
--bg-secondary: #111827;
--bg-card: #1f2937;
--bg-input: #374151;
--text-primary: #f9fafb;
--text-secondary: #9ca3af;
--text-muted: #6b7280;
--accent: #3b82f6;
--accent-hover: #2563eb;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--border: #374151;
--shadow: rgba(0, 0, 0, 0.3);
--msg-unread-color: #f0f6ff;
--msg-unread-bg: rgba(59, 130, 246, 0.15);
--msg-read-color: #4b5563;
--unread-dot: #60a5fa;
--unread-dot-glow: rgba(96, 165, 250, 0.8);
--unread-border: #3b82f6;
}
[data-theme="light"] {
--bg-primary: #f3f4f6;
--bg-secondary: #ffffff;
--bg-card: #ffffff;
--bg-input: #e5e7eb;
--text-primary: #111827;
--text-secondary: #4b5563;
--text-muted: #9ca3af;
--accent: #2563eb;
--accent-hover: #1d4ed8;
--success: #059669;
--warning: #d97706;
--danger: #dc2626;
--border: #d1d5db;
--shadow: rgba(0, 0, 0, 0.1);
--msg-unread-color: #1e3a5f;
--msg-unread-bg: rgba(37, 99, 235, 0.08);
--msg-read-color: #9ca3af;
--unread-dot: #2563eb;
--unread-dot-glow: rgba(37, 99, 235, 0.5);
--unread-border: #2563eb;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ---- Login Page ---- */
.login-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 1rem;
}
.login-box {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 2.5rem;
width: 100%;
max-width: 400px;
box-shadow: 0 4px 24px var(--shadow);
}
.login-box h1 {
text-align: center;
margin-bottom: 0.5rem;
font-size: 1.5rem;
}
.login-box .subtitle {
text-align: center;
color: var(--text-secondary);
margin-bottom: 2rem;
font-size: 0.875rem;
}
/* ---- Form Elements ---- */
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.375rem;
font-size: 0.875rem;
color: var(--text-secondary);
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
width: 100%;
padding: 0.625rem 0.75rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text-primary);
font-size: 0.875rem;
outline: none;
transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
border-color: var(--accent);
}
textarea {
resize: vertical;
font-family: 'Courier New', Courier, monospace;
}
/* ---- Buttons ---- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 1rem;
border: 1px solid transparent;
border-radius: 6px;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
text-decoration: none;
gap: 0.375rem;
}
.btn-primary {
background: var(--accent);
color: #fff;
border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
background: transparent;
color: var(--text-primary);
border-color: var(--border);
}
.btn-outline:hover { background: var(--bg-input); }
.btn-danger {
background: var(--danger);
color: #fff;
}
.btn-sm {
padding: 0.3rem 0.6rem;
font-size: 0.8rem;
}
.btn-block {
width: 100%;
}
/* ---- Navbar ---- */
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1.5rem;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border);
}
.navbar-brand {
font-size: 1.1rem;
font-weight: 600;
color: var(--text-primary);
}
.navbar-brand .version {
font-size: 0.7rem;
color: var(--text-muted);
margin-left: 0.5rem;
}
.navbar-nav {
display: flex;
align-items: center;
gap: 1rem;
list-style: none;
}
.navbar-nav a {
color: var(--text-secondary);
font-size: 0.875rem;
padding: 0.3rem 0.5rem;
border-radius: 4px;
transition: all 0.15s;
}
.navbar-nav a:hover, .navbar-nav a.active {
color: var(--text-primary);
background: var(--bg-input);
text-decoration: none;
}
.navbar-user {
font-size: 0.8rem;
color: var(--text-muted);
}
.theme-toggle {
background: none;
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text-secondary);
cursor: pointer;
padding: 0.3rem 0.5rem;
font-size: 1rem;
line-height: 1;
transition: all 0.15s;
}
.theme-toggle:hover {
background: var(--bg-input);
color: var(--text-primary);
}
/* ---- Content ---- */
.content {
padding: 1.5rem;
max-width: 1400px;
margin: 0 auto;
}
.page-header {
margin-bottom: 1rem;
}
.page-header h1 {
font-size: 1.3rem;
font-weight: 600;
}
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1rem;
}
/* ---- Alert ---- */
.alert {
padding: 0.625rem 1rem;
border-radius: 6px;
margin-bottom: 1rem;
font-size: 0.85rem;
}
.alert-success { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.alert-error { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
/* ---- Message Layout ---- */
.msg-layout {
display: grid;
grid-template-columns: 280px 1fr;
gap: 1rem;
height: calc(100vh - 120px);
}
.area-tree {
overflow-y: auto;
border-right: 1px solid var(--border);
padding-right: 1rem;
}
.conf-group { margin-bottom: 0.5rem; }
.conf-name {
font-weight: 600;
font-size: 0.8rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 0.5rem 0.5rem 0.25rem;
}
.area-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.75rem;
cursor: pointer;
border-radius: 4px;
font-size: 0.85rem;
transition: background 0.15s;
}
.area-item:hover { background: var(--bg-input); }
.area-item.selected {
background: var(--bg-input);
border-left: 3px solid var(--accent);
padding-left: calc(0.75rem - 3px);
}
.area-item .area-name {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.area-badge {
font-size: 0.6rem;
padding: 1px 5px;
border-radius: 3px;
text-transform: uppercase;
font-weight: 600;
}
.area-badge.echo { background: #1e3a5f; color: #60a5fa; }
.area-badge.net { background: #3b1f45; color: #c084fc; }
.area-badge.local { background: #1a3328; color: #4ade80; }
/* ---- Message Panel ---- */
.msg-panel {
display: flex;
flex-direction: column;
overflow: hidden;
}
.msg-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0;
border-bottom: 1px solid var(--border);
margin-bottom: 0.5rem;
}
.msg-toolbar .area-title { font-weight: 600; font-size: 1rem; }
.msg-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
.msg-table th {
text-align: left;
padding: 0.5rem 0.75rem;
font-weight: 600;
color: var(--text-muted);
border-bottom: 1px solid var(--border);
font-size: 0.75rem;
text-transform: uppercase;
}
.msg-table td {
padding: 0.4rem 0.75rem;
border-bottom: 1px solid rgba(55, 65, 81, 0.3);
white-space: nowrap;
}
.msg-table tr { cursor: pointer; transition: background 0.1s; }
.msg-table tbody tr:hover { background: var(--bg-input); }
.msg-viewer { display: none; flex: 1; overflow-y: auto; }
.msg-viewer.active { display: block; }
.msg-header {
display: grid;
grid-template-columns: auto 1fr;
gap: 0.25rem 1rem;
padding: 0.75rem;
background: var(--bg-input);
border-radius: 4px;
margin-bottom: 0.75rem;
font-size: 0.85rem;
}
.msg-header .label {
color: var(--text-muted);
text-align: right;
font-weight: 500;
}
.msg-body {
font-family: 'Courier New', Courier, monospace;
font-size: 0.85rem;
white-space: pre-wrap;
word-wrap: break-word;
padding: 0.75rem;
background: var(--bg-input);
border-radius: 4px;
min-height: 200px;
line-height: 1.4;
}
.msg-meta {
margin-top: 0.75rem;
padding: 0.5rem 0.75rem;
font-size: 0.75rem;
color: var(--text-muted);
font-family: 'Courier New', Courier, monospace;
background: var(--bg-input);
border-radius: 4px;
}
.msg-meta-label { color: var(--accent); font-weight: 600; }
.msg-list-wrap { flex: 1; overflow-y: auto; }
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
padding: 0.5rem;
font-size: 0.8rem;
}
.msg-placeholder {
display: flex;
align-items: center;
justify-content: center;
height: 300px;
color: var(--text-muted);
}
/* Unread indicators */
.msg-unread td { font-weight: 700 !important; color: var(--msg-unread-color) !important; }
.msg-unread td:first-child { border-left: 3px solid var(--unread-border); }
.msg-unread { background: var(--msg-unread-bg) !important; }
.msg-table tbody tr:not(.msg-unread) td { color: var(--msg-read-color) !important; font-weight: 400 !important; opacity: 0.5 !important; }
.msg-table tbody tr:not(.msg-unread) td:first-child { border-left: 3px solid transparent; }
.unread-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--unread-dot);
box-shadow: 0 0 8px var(--unread-dot-glow);
}
.unread-badge {
font-size: 0.65rem;
padding: 0 5px;
border-radius: 8px;
background: var(--accent);
color: #fff;
font-weight: 700;
min-width: 16px;
text-align: center;
line-height: 16px;
}
.area-item.has-unread .area-name { font-weight: bold; }
/* ---- Compose Modal ---- */
.modal-overlay {
display: none;
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 1000;
justify-content: center;
align-items: center;
}
.modal-overlay.active { display: flex; }
.modal {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1.5rem;
width: 90%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
}
.modal h2 { margin-bottom: 1rem; font-size: 1.1rem; }
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
margin-top: 1rem;
}
.compose-form .form-group { margin-bottom: 0.75rem; }
.compose-form label {
display: block;
margin-bottom: 0.25rem;
font-size: 0.8rem;
color: var(--text-muted);
}
.compose-form textarea { min-height: 200px; }
.text-muted { color: var(--text-muted); }