a24c48179a
Left panel: scrollable sender list with filter, email count, unread badge. Right panel: infinite-scroll email list, quick actions, click row to view detail (subject, meta, snippet, open in Gmail). Back button returns to list. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
342 lines
16 KiB
CSS
342 lines
16 KiB
CSS
:root {
|
|
--bg: #0f1420;
|
|
--panel: #1a2030;
|
|
--panel-2: #222a3d;
|
|
--text: #e6e9f0;
|
|
--muted: #8b93a7;
|
|
--accent: #4f8cff;
|
|
--danger: #eb5757;
|
|
--ok: #6fcf97;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); }
|
|
|
|
.topbar { display: flex; align-items: center; gap: 18px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid #2c3550; }
|
|
.brand { font-weight: 700; font-size: 18px; }
|
|
.topbar nav a { color: var(--muted); text-decoration: none; margin-right: 14px; }
|
|
.topbar nav a.active, .topbar nav a:hover { color: var(--text); }
|
|
.spacer { flex: 1; }
|
|
|
|
/* ── Search bar ── */
|
|
.search-form { display: flex; align-items: center; gap: 0; flex: 1; max-width: 420px; }
|
|
.search-input {
|
|
flex: 1; background: var(--panel-2); border: 1px solid #2c3550; border-right: none;
|
|
color: var(--text); border-radius: 6px 0 0 6px; padding: 7px 10px; font-size: 13px;
|
|
min-width: 0;
|
|
}
|
|
.search-input:focus { outline: none; border-color: var(--accent); }
|
|
.search-btn {
|
|
background: var(--panel-2); border: 1px solid #2c3550; border-left: none;
|
|
color: var(--muted); border-radius: 0 6px 6px 0; padding: 7px 10px; cursor: pointer; font-size: 13px;
|
|
}
|
|
.search-btn:hover { color: var(--text); border-color: var(--accent); }
|
|
.user { color: var(--muted); font-size: 13px; }
|
|
|
|
/* ── App body (sidebar + main) ── */
|
|
.app-body { display: flex; min-height: calc(100vh - 53px); }
|
|
|
|
.sidebar {
|
|
width: 216px; flex-shrink: 0;
|
|
background: var(--panel); border-right: 1px solid #2c3550;
|
|
display: flex; flex-direction: column; overflow-y: auto;
|
|
transition: width 0.2s ease;
|
|
}
|
|
.sidebar--collapsed { width: 48px; }
|
|
|
|
.sidebar-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 12px 8px 10px;
|
|
border-bottom: 1px solid #2c3550;
|
|
min-height: 42px; flex-shrink: 0;
|
|
}
|
|
.sidebar-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-left: 6px; }
|
|
.sidebar-toggle { padding: 2px 6px; font-size: 17px; line-height: 1; color: var(--muted); flex-shrink: 0; }
|
|
.sidebar-toggle:hover { color: var(--text); }
|
|
|
|
/* Section headings */
|
|
.section-head {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
width: 100%; background: none; border: none; border-bottom: 1px solid #2c3550;
|
|
padding: 7px 10px 7px 12px; cursor: pointer;
|
|
color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
|
|
}
|
|
.section-head:hover { color: var(--text); }
|
|
.section-title { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; }
|
|
.section-arrow { font-size: 13px; transform: rotate(90deg); display: inline-block; transition: transform 0.15s; }
|
|
.section-arrow--closed { transform: rotate(0deg); }
|
|
|
|
/* Folder items */
|
|
.folder-list { list-style: none; margin: 0; padding: 2px 0; }
|
|
.folder-item {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 6px 10px 6px 12px;
|
|
color: var(--muted); text-decoration: none; font-size: 13px;
|
|
border-left: 3px solid transparent;
|
|
white-space: nowrap; overflow: hidden;
|
|
transition: background 0.1s, color 0.1s;
|
|
}
|
|
.folder-item:hover { background: var(--panel-2); color: var(--text); }
|
|
.folder-item:hover .fav-pin { opacity: 1; }
|
|
.folder-item--active { border-left-color: var(--accent); color: var(--text); background: var(--panel-2); }
|
|
.folder-icon { font-size: 14px; flex-shrink: 0; }
|
|
.folder-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
|
|
.folder-spacer { flex: 1; }
|
|
.folder-badge {
|
|
font-size: 10px; font-weight: 600; color: var(--muted);
|
|
background: var(--panel-2); border-radius: 8px; padding: 1px 5px;
|
|
flex-shrink: 0;
|
|
}
|
|
.folder-item--active .folder-badge { background: #2c3550; color: var(--accent); }
|
|
|
|
/* Favorite pin/unpin button */
|
|
.fav-pin {
|
|
background: none; border: none; padding: 0 2px; cursor: pointer;
|
|
font-size: 12px; color: var(--muted); opacity: 0;
|
|
transition: opacity 0.1s, color 0.1s; flex-shrink: 0; line-height: 1;
|
|
}
|
|
.fav-pin:hover { color: var(--accent); }
|
|
.fav-pin--remove { opacity: 1; color: var(--danger); }
|
|
.fav-pin--remove:hover { color: #ff7070; }
|
|
|
|
main { padding: 20px; flex: 1; min-width: 0; }
|
|
|
|
button, .btn { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 8px 14px; cursor: pointer; text-decoration: none; font-size: 14px; }
|
|
button.danger, .btn.danger { background: var(--danger); }
|
|
button:disabled { opacity: 0.5; cursor: default; }
|
|
|
|
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
|
|
.widget-toggles { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
|
|
|
|
.grid-item { background: var(--panel); border: 1px solid #2c3550; border-radius: 10px; overflow: hidden; }
|
|
.widget { padding: 14px; height: 100%; display: flex; flex-direction: column; }
|
|
.widget h3 { margin: 0 0 10px; font-size: 14px; cursor: move; }
|
|
.widget--link { cursor: pointer; }
|
|
.widget--link:hover { border-color: var(--accent); }
|
|
.mini-row--link { cursor: pointer; }
|
|
.mini-row--link:hover td { color: var(--accent); }
|
|
.chm-label--link { cursor: pointer; text-decoration: underline dotted; }
|
|
.chm-label--link:hover { color: var(--accent); }
|
|
.widget canvas { flex: 1; min-height: 0; }
|
|
|
|
.stat { align-items: flex-start; justify-content: center; }
|
|
.stat-value { font-size: 34px; font-weight: 700; }
|
|
.stat-label { color: var(--muted); font-size: 13px; cursor: move; }
|
|
|
|
.health-score { font-size: 46px; font-weight: 800; }
|
|
.health-score span { font-size: 18px; color: var(--muted); }
|
|
.grade-A { color: var(--ok); } .grade-B { color: #9bdf6f; } .grade-C { color: #f2c94c; }
|
|
.grade-D { color: #f2994a; } .grade-F { color: var(--danger); }
|
|
.recs { margin: 8px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); }
|
|
|
|
table.mini, table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
table.mini td { padding: 3px 0; }
|
|
table.grid th, table.grid td { padding: 8px; border-bottom: 1px solid #2c3550; text-align: left; }
|
|
.num { text-align: right; }
|
|
.muted { color: var(--muted); font-size: 12px; }
|
|
|
|
.heatmap { display: flex; flex-direction: column; gap: 2px; }
|
|
.hm-row { display: flex; align-items: center; gap: 2px; }
|
|
.hm-day { width: 30px; font-size: 10px; color: var(--muted); }
|
|
.hm-cell { width: 10px; height: 10px; background: var(--accent); border-radius: 2px; }
|
|
|
|
/* Category heatmap */
|
|
.cat-heatmap { display: flex; flex-direction: column; gap: 3px; overflow: auto; }
|
|
.chm-row { display: grid; grid-template-columns: 92px repeat(7, 1fr); gap: 3px; align-items: stretch; }
|
|
.chm-head .chm-col { font-size: 10px; color: var(--muted); text-align: center; }
|
|
.chm-label { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.chm-cell { background: var(--accent); border-radius: 3px; min-height: 22px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; }
|
|
|
|
/* react-grid-layout resize handle — make it clearly visible on the dark theme */
|
|
.react-resizable-handle {
|
|
opacity: 0; transition: opacity 0.15s;
|
|
}
|
|
.grid-item:hover .react-resizable-handle { opacity: 1; }
|
|
.react-resizable-handle::after {
|
|
content: ''; position: absolute; right: 4px; bottom: 4px;
|
|
width: 9px; height: 9px;
|
|
border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
|
|
border-bottom-right-radius: 2px;
|
|
}
|
|
.react-grid-item.react-grid-placeholder { background: var(--accent); opacity: 0.25; border-radius: 10px; }
|
|
|
|
/* ── Senders master-detail ─────────────────────────────────────────────── */
|
|
.senders-master-detail {
|
|
display: grid;
|
|
grid-template-columns: 280px 1fr;
|
|
height: calc(100vh - 56px); /* fill below topbar */
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Left panel — sender list */
|
|
.sl-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-right: 1px solid #2c3550;
|
|
overflow: hidden;
|
|
}
|
|
.sl-search-wrap { padding: 10px 12px 6px; }
|
|
.sl-search {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
background: var(--panel-2);
|
|
border: 1px solid #2c3550;
|
|
color: var(--text);
|
|
border-radius: 6px;
|
|
padding: 7px 10px;
|
|
font-size: 13px;
|
|
}
|
|
.sl-count { padding: 0 14px 6px; font-size: 11px; color: var(--muted); }
|
|
.sl-list { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
|
|
.sl-item {
|
|
display: block; width: 100%; text-align: left;
|
|
background: none; border: none; cursor: pointer;
|
|
padding: 10px 14px; border-bottom: 1px solid #1e2540;
|
|
color: var(--text);
|
|
}
|
|
.sl-item:hover { background: var(--panel-2); }
|
|
.sl-item--active { background: var(--panel-2); border-left: 3px solid var(--accent); padding-left: 11px; }
|
|
.sl-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.sl-addr { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; }
|
|
.sl-meta { display: flex; align-items: baseline; gap: 8px; }
|
|
.sl-email-count { font-size: 13px; font-weight: 700; color: var(--accent); }
|
|
.sl-unread { font-size: 11px; color: var(--muted); }
|
|
|
|
/* Right panel — email list for selected sender */
|
|
.sd-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
padding: 0;
|
|
}
|
|
.sd-panel-header {
|
|
padding: 16px 20px 12px;
|
|
border-bottom: 1px solid #2c3550;
|
|
background: var(--panel);
|
|
position: sticky; top: 0; z-index: 1;
|
|
}
|
|
.sd-panel-name { font-size: 16px; font-weight: 700; }
|
|
.sd-panel-addr { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
|
|
.sd-panel-count { font-size: 12px; color: var(--muted); }
|
|
|
|
/* Single email detail view */
|
|
.sd-detail { padding: 20px; max-width: 760px; }
|
|
.sd-back {
|
|
display: inline-flex; align-items: center; gap: 4px;
|
|
background: none; border: 1px solid #2c3550; border-radius: 6px;
|
|
color: var(--text); font-size: 13px; cursor: pointer;
|
|
padding: 5px 12px; margin-bottom: 18px;
|
|
}
|
|
.sd-back:hover { background: var(--panel-2); }
|
|
.sd-detail-header { margin-bottom: 14px; }
|
|
.sd-detail-subject { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
|
|
.sd-detail-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
|
|
.sd-detail-sep { opacity: 0.4; }
|
|
.sd-snippet { background: var(--panel); border: 1px solid #2c3550; border-radius: 8px; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; margin-bottom: 18px; }
|
|
.sd-detail-actions { display: flex; gap: 10px; }
|
|
.btn-sm {
|
|
background: var(--accent); color: #fff; border: none; border-radius: 6px;
|
|
padding: 7px 14px; font-size: 13px; cursor: pointer; font-weight: 600;
|
|
}
|
|
.btn-sm:hover { opacity: 0.85; }
|
|
|
|
.page { max-width: 900px; }
|
|
.form-row { display: flex; gap: 10px; margin: 14px 0; }
|
|
.form-row input { flex: 1; }
|
|
input, select { background: var(--panel-2); border: 1px solid #2c3550; color: var(--text); border-radius: 6px; padding: 8px; }
|
|
.card { background: var(--panel); border: 1px solid #2c3550; border-radius: 10px; padding: 14px; margin-top: 12px; }
|
|
.card.success { border-color: var(--ok); }
|
|
.card ul { font-size: 13px; color: var(--muted); }
|
|
|
|
/* ── Dev banner ── */
|
|
.dev-banner {
|
|
background: repeating-linear-gradient(45deg, #3a2e12, #3a2e12 12px, #332810 12px, #332810 24px);
|
|
color: #ffce6b; font-size: 13px; font-weight: 600; text-align: center;
|
|
padding: 6px 12px; border-bottom: 1px solid #5a4718;
|
|
}
|
|
|
|
/* ── Shared buttons ── */
|
|
.brand-link { text-decoration: none; color: var(--text); display: inline-flex; }
|
|
.ghost { background: transparent; border: 1px solid #36405c; color: var(--text); }
|
|
.ghost:hover { border-color: var(--accent); }
|
|
.cta {
|
|
background: var(--accent); color: #fff; border: none; border-radius: 8px;
|
|
padding: 12px 22px; font-size: 16px; font-weight: 700; cursor: pointer;
|
|
text-decoration: none; display: inline-block;
|
|
}
|
|
.cta:hover { background: #5d97ff; }
|
|
|
|
/* ── Landing page ── */
|
|
.landing { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }
|
|
.landing-bar { display: flex; align-items: center; padding: 18px 0; }
|
|
.hero { text-align: center; padding: 48px 0 36px; }
|
|
.hero h1 { font-size: 42px; margin: 18px 0 10px; letter-spacing: -0.02em; }
|
|
.hero .sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 24px; line-height: 1.5; }
|
|
.hero-cta { margin: 8px 0; }
|
|
.fineprint { color: var(--muted); font-size: 12px; margin-top: 14px; }
|
|
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
|
|
.feature { background: var(--panel); border: 1px solid #2c3550; border-radius: 12px; padding: 20px; }
|
|
.feature-icon { font-size: 26px; }
|
|
.feature h3 { margin: 10px 0 6px; font-size: 17px; }
|
|
.feature p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
|
|
.closing { text-align: center; margin: 56px 0 20px; }
|
|
.closing h2 { font-size: 28px; margin-bottom: 18px; }
|
|
.landing-footer { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2c3550; }
|
|
|
|
/* ── Folder view ── */
|
|
.folder-view { max-width: 960px; }
|
|
.folder-view-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
|
|
.folder-view-title { margin: 0; font-size: 20px; font-weight: 700; }
|
|
.folder-view-count { color: var(--muted); font-size: 13px; }
|
|
.fv-loading, .fv-empty { color: var(--muted); font-size: 14px; padding: 32px 0; }
|
|
.fv-error { color: var(--danger); font-size: 14px; padding: 12px 0; }
|
|
|
|
.email-list { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
.email-row { border-bottom: 1px solid #2c3550; cursor: pointer; }
|
|
.email-row:hover { background: var(--panel); }
|
|
.email-row--unread .el-sender,
|
|
.email-row--unread .el-subj-text { font-weight: 700; color: var(--text); }
|
|
|
|
.el-unread { width: 14px; padding: 10px 4px 10px 0; }
|
|
.unread-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
|
|
.el-sender { width: 180px; padding: 10px 12px 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
|
|
.el-subject { padding: 10px 8px; overflow: hidden; }
|
|
.el-subj-text { color: var(--text); }
|
|
.el-snippet { color: var(--muted); }
|
|
.el-meta { width: 80px; padding: 10px 8px; text-align: right; white-space: nowrap; }
|
|
.el-attach { margin-right: 4px; font-size: 12px; }
|
|
.el-size { font-size: 11px; color: var(--muted); }
|
|
.el-date { width: 70px; padding: 10px 0 10px 8px; text-align: right; color: var(--muted); white-space: nowrap; font-size: 12px; }
|
|
|
|
.el-actions { width: 80px; padding: 0 6px; text-align: right; white-space: nowrap; }
|
|
.action-btn {
|
|
background: none; border: none; padding: 3px 4px; cursor: pointer;
|
|
font-size: 13px; opacity: 0; transition: opacity 0.1s, color 0.1s;
|
|
border-radius: 4px; color: var(--muted);
|
|
}
|
|
.action-btn:hover { background: var(--panel-2); opacity: 1 !important; }
|
|
.action-btn--active { opacity: 1 !important; }
|
|
.action-btn--danger:hover { color: var(--danger); }
|
|
.email-row:hover .action-btn { opacity: 0.6; }
|
|
.email-row--acting { opacity: 0.6; pointer-events: none; }
|
|
.action-btn--unsub { font-size: 11px; }
|
|
.action-btn--done { opacity: 1 !important; color: var(--ok); }
|
|
|
|
.fv-sentinel { height: 1px; }
|
|
.fv-loading-more { color: var(--muted); font-size: 13px; padding: 16px 0; text-align: center; }
|
|
.fv-end { color: var(--muted); font-size: 12px; padding: 20px 0 8px; text-align: center; }
|
|
|
|
/* ── Sync splash ── */
|
|
.splash {
|
|
position: fixed; inset: 0; z-index: 1000;
|
|
background: rgba(10, 14, 22, 0.92); backdrop-filter: blur(4px);
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
.splash-card { text-align: center; max-width: 440px; padding: 32px; }
|
|
.splash-card h2 { margin: 16px 0 6px; }
|
|
.progress-track { height: 10px; background: var(--panel-2); border-radius: 6px; overflow: hidden; margin: 20px 0 10px; }
|
|
.progress-fill { height: 100%; background: linear-gradient(90deg, #4f8cff, #6fcf97); border-radius: 6px; transition: width 0.4s ease; }
|
|
.progress-fill[data-indeterminate="true"] { animation: indet 1.2s ease-in-out infinite; }
|
|
@keyframes indet { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
|
|
.progress-label { color: var(--muted); font-size: 13px; }
|