5a23783e07
- Add missing modal CSS (.modal-overlay/.modal-dialog/.modal-header): the "Connect to Microsoft" auth modal was rendering unstyled inline at the bottom of the page. Now a centered dialog with backdrop. - Surface OAuth connect errors in the modal instead of silently reopening it with no explanation. - MainLayout: implement IDisposable so event handlers are actually unsubscribed (Dispose existed but was never invoked). - Wire up the Settings theme selector (was a dead control): drop the unsupported Dark option, call sptb.setTheme on save and on load, resolve System via prefers-color-scheme. - Add branded 404 page via UseStatusCodePagesWithReExecute + Routes <NotFound> (blank white page before). - Add .progress-fill.indeterminate animation and .progress-panel. - Home: replace inline JS hover handlers with a .feature-card CSS class. - Define missing --surface-2 variable referenced by MainLayout. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
205 lines
8.9 KiB
CSS
205 lines
8.9 KiB
CSS
:root {
|
|
--sidebar-width: 220px;
|
|
--sidebar-collapsed-width: 54px;
|
|
--bg: #f5f5f5;
|
|
--sidebar-bg: #1a1a2e;
|
|
--sidebar-text: #e0e0e0;
|
|
--sidebar-hover: #2d2d4e;
|
|
--sidebar-active: #0078d4;
|
|
--card-bg: #fff;
|
|
--border: #e0e0e0;
|
|
--accent: #0078d4;
|
|
--accent-dark: #005a9e;
|
|
--danger: #d13438;
|
|
--success: #107c10;
|
|
--warn: #797673;
|
|
--text: #323130;
|
|
--text-muted: #605e5c;
|
|
--surface-2: #2d2d4e;
|
|
--font: 'Segoe UI', system-ui, sans-serif;
|
|
}
|
|
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0; padding: 0; font-family: var(--font); font-size: 14px;
|
|
background: var(--bg); color: var(--text);
|
|
}
|
|
|
|
/* ── Layout ── */
|
|
.app-layout { display: flex; height: 100vh; overflow: hidden; }
|
|
|
|
.sidebar {
|
|
width: var(--sidebar-width); min-width: var(--sidebar-width);
|
|
background: var(--sidebar-bg); color: var(--sidebar-text);
|
|
display: flex; flex-direction: column;
|
|
transition: width 0.2s, min-width 0.2s;
|
|
overflow: hidden;
|
|
}
|
|
.sidebar.collapsed { width: var(--sidebar-collapsed-width); min-width: var(--sidebar-collapsed-width); }
|
|
.sidebar.collapsed .nav-label,
|
|
.sidebar.collapsed .profile-name,
|
|
.sidebar.collapsed .logo-text,
|
|
.sidebar.collapsed .nav-divider { display: none; }
|
|
|
|
.sidebar-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.1);
|
|
flex-shrink: 0;
|
|
}
|
|
.logo-text { font-weight: 700; font-size: 15px; color: #fff; white-space: nowrap; }
|
|
.toggle-btn { background: none; border: none; color: var(--sidebar-text); cursor: pointer; font-size: 18px; padding: 2px 4px; }
|
|
|
|
.profile-badge {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 8px 12px; background: rgba(255,255,255,.07);
|
|
border-bottom: 1px solid rgba(255,255,255,.08);
|
|
font-size: 12px;
|
|
}
|
|
.profile-icon { font-size: 16px; }
|
|
.profile-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
.nav-menu { flex: 1; overflow-y: auto; padding: 8px 0; }
|
|
.nav-divider { padding: 12px 12px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.4); }
|
|
|
|
.nav-item {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 9px 14px; color: var(--sidebar-text); text-decoration: none;
|
|
font-size: 13.5px; border-left: 3px solid transparent;
|
|
transition: background 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
.nav-item:hover { background: var(--sidebar-hover); }
|
|
.nav-item.active { background: rgba(0,120,212,.2); border-left-color: var(--accent); color: #fff; }
|
|
.nav-icon { font-size: 16px; min-width: 22px; text-align: center; }
|
|
|
|
.content { flex: 1; overflow-y: auto; padding: 24px 28px; }
|
|
|
|
/* ── Cards ── */
|
|
.card { background: var(--card-bg); border-radius: 6px; border: 1px solid var(--border); padding: 20px; margin-bottom: 16px; }
|
|
.card-title { font-size: 16px; font-weight: 600; margin: 0 0 12px 0; color: var(--text); }
|
|
|
|
/* ── Forms ── */
|
|
.form-group { margin-bottom: 14px; }
|
|
.form-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
|
|
.form-input, .form-select, .form-textarea {
|
|
width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px;
|
|
font-size: 14px; font-family: var(--font); background: #fff;
|
|
transition: border-color 0.15s;
|
|
}
|
|
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
|
|
.form-textarea { min-height: 80px; resize: vertical; }
|
|
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
|
|
.form-row .form-group { flex: 1; min-width: 180px; }
|
|
|
|
/* ── Buttons ── */
|
|
.btn {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 8px 16px; border-radius: 4px; cursor: pointer;
|
|
font-size: 14px; font-family: var(--font); font-weight: 500;
|
|
border: 1px solid transparent; transition: background 0.15s, opacity 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
.btn:disabled { opacity: .5; cursor: not-allowed; }
|
|
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent-dark); }
|
|
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }
|
|
.btn-secondary { background: #fff; color: var(--text); border-color: #ccc; }
|
|
.btn-secondary:hover:not(:disabled) { background: #f0f0f0; }
|
|
.btn-danger { background: var(--danger); color: #fff; border-color: #a4262c; }
|
|
.btn-danger:hover:not(:disabled) { background: #a4262c; }
|
|
.btn-sm { padding: 5px 10px; font-size: 12px; }
|
|
|
|
/* ── Progress ── */
|
|
.progress-bar { height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; margin: 8px 0; }
|
|
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }
|
|
.progress-msg { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
|
|
|
|
/* ── Tables ── */
|
|
.data-table-wrap { overflow-x: auto; }
|
|
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
.data-table th { background: #f0f0f0; padding: 8px 12px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); white-space: nowrap; }
|
|
.data-table td { padding: 6px 12px; border-bottom: 1px solid var(--border); word-break: break-word; }
|
|
.data-table tr:hover td { background: #f7f9fd; }
|
|
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
|
|
|
|
/* ── Alerts ── */
|
|
.alert { padding: 10px 14px; border-radius: 4px; margin: 8px 0; font-size: 13px; }
|
|
.alert-error { background: #fde7e9; border: 1px solid #f4abab; color: #831111; }
|
|
.alert-success { background: #dff6dd; border: 1px solid #92c47a; color: #215732; }
|
|
.alert-info { background: #e8f4fd; border: 1px solid #84bae3; color: #1b4b72; }
|
|
.alert-warn { background: #fff4ce; border: 1px solid #ffd966; color: #523a00; }
|
|
|
|
/* ── Tags / Chips ── */
|
|
.chip { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
|
|
.chip-blue { background: #dbeafe; color: #1e40af; }
|
|
.chip-green { background: #d1fae5; color: #065f46; }
|
|
.chip-red { background: #fee2e2; color: #991b1b; }
|
|
.chip-yellow { background: #fef3c7; color: #92400e; }
|
|
.chip-gray { background: #f3f4f6; color: #374151; }
|
|
|
|
/* ── Misc ── */
|
|
.page-title { font-size: 20px; font-weight: 700; margin: 0 0 20px 0; color: var(--text); }
|
|
.page-subtitle { font-size: 13px; color: var(--text-muted); margin: -14px 0 20px 0; }
|
|
.flex-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
.spacer { flex: 1; }
|
|
.mt-8 { margin-top: 8px; }
|
|
.mt-16 { margin-top: 16px; }
|
|
.text-muted { color: var(--text-muted); font-size: 12px; }
|
|
.count-badge { background: var(--accent); color: #fff; border-radius: 12px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
|
|
|
|
/* ── Site picker ── */
|
|
.site-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 4px; }
|
|
.site-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 13px; }
|
|
.site-item:hover { background: #f5f5f5; }
|
|
.site-item.selected { background: #e8f1fb; }
|
|
|
|
/* ── CSV validation table ── */
|
|
.val-valid td { background: #f0fff4; }
|
|
.val-error td { background: #fff0f0; }
|
|
.val-error-msg { color: var(--danger); font-size: 11px; }
|
|
|
|
/* ── No-profile state ── */
|
|
.no-profile { text-align: center; padding: 60px 20px; color: var(--text-muted); }
|
|
.no-profile h2 { color: var(--text); }
|
|
|
|
/* ── Modal ── */
|
|
.modal-overlay {
|
|
position: fixed; inset: 0; z-index: 1000;
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: rgba(0, 0, 0, .45);
|
|
padding: 20px;
|
|
animation: modal-fade .15s ease-out;
|
|
}
|
|
.modal-dialog {
|
|
background: var(--card-bg); border-radius: 8px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
|
|
width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
|
|
padding: 24px;
|
|
animation: modal-rise .15s ease-out;
|
|
}
|
|
.modal-header { margin-bottom: 16px; }
|
|
.modal-header h3 { margin: 0 0 6px 0; font-size: 18px; font-weight: 600; color: var(--text); }
|
|
.modal-header .text-muted { margin: 0; line-height: 1.4; }
|
|
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
|
|
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
|
|
@keyframes modal-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
|
|
|
/* ── Progress panel ── */
|
|
.progress-panel { margin: 8px 0; }
|
|
.progress-fill.indeterminate {
|
|
width: 40%;
|
|
background: var(--accent);
|
|
animation: indeterminate 1.1s ease-in-out infinite;
|
|
}
|
|
@keyframes indeterminate {
|
|
0% { margin-left: -40%; }
|
|
100% { margin-left: 100%; }
|
|
}
|
|
|
|
/* ── Feature cards (Home) ── */
|
|
.feature-card { cursor: pointer; transition: box-shadow .15s, transform .15s; }
|
|
.feature-card:hover { box-shadow: 0 2px 8px rgba(0, 120, 212, .2); transform: translateY(-1px); }
|
|
|
|
/* ── Theme (light-only palette; System resolves via JS) ── */
|
|
[data-theme="light"] { color-scheme: light; }
|