feat(v1.2): 亮暗主题、按尾号快速完成、加急置顶、按套餐分日历、大屏升级
1) 全站亮色 / 暗色 - 管理端与大屏都提供切换按钮(顶栏 ☾/☀、大屏右上角),偏好写 cookie,服务端首屏直出,不闪 - 未选择时跟随系统(prefers-color-scheme);两套配色都改成 CSS 变量,色签、热力、表格、抽屉全部适配 - 大屏默认仍是深色记分板,浅色为纸感背景 2) 工作台 → 当日待完成:按手机尾号快速完成 - 输入尾号回车:唯一匹配直接完成并提示 - 同尾号多客户 / 一单多服务:跳到选择面板,默认全选,可多选后一次完成 - 新增 POST /checkins/quick 与 POST /checkins/batch;抽屉标题改为「未完成数 / 总单数」 3) 加急 - 每条任务右侧可勾选/取消加急;加急任务红 tag + 置顶(抽屉与大屏「今日待打」) - 日历格子出现红点,单据色签加红边;大屏热力格也带红点 - 新增表 task_flags(sub_id, service_date, urgent),按 订阅+日期 存,避免和打卡状态耦合 4) 套餐「在日历中独立显示」 - 套餐表单新增勾选项,列表页显示「独立日历」标记 - 勾选后工作台与大屏顶部出现套餐标签页(全部 / 每日任务 / …),可只看某类委托的排单、热量与待办 - 新增列 packages.calendar_separate;老库打开时自动 ALTER,无需手工迁移 5) 大屏 - 热力默认改为「每日待完成单量」,右上角可切回「到期热力」 - 鼠标悬停任意日期格,浮出当日待办明细(客户、套餐、剩余、加急),数据来自 GET /api/screen/day - 底部面板改为「今日到期」(左)+「今日待打」(右,加急置顶),最近追加改为最底部细条 数据库兼容性: - 只做加法:新增 task_flags 表与 packages.calendar_separate 列,原有表结构、字段、接口与已有数据均不变 - 迁移可重复执行(CREATE TABLE IF NOT EXISTS + PRAGMA 检查后 ALTER) 测试: - 新增单元测试:套餐独立日历标记、加急增删查、旧库自动加列与重复迁移 - 新增功能冒烟 33 项(主题 cookie、套餐标签、快速完成单/多匹配、加急排序、大屏接口)全部通过 - 原有 119 项验收回归全绿(3 条断言按新 UI 更新:抽屉标题、热力默认口径、今日待打数取值方式) - go vet / go test ./... 通过;版本号 1.2.0
This commit is contained in:
+201
-42
@@ -1,11 +1,13 @@
|
||||
/* ============================================================
|
||||
代打台 · 管理端(浅色「接单台」)
|
||||
纸感底色 + 墨色文字 + 松墨绿主色;色签(ticket)是唯一强装饰
|
||||
代打台 · 管理端
|
||||
主题::root 为亮色;暗色由系统偏好或 [data-theme] 覆盖
|
||||
设计语汇:纸感底色 + 墨色文字 + 松墨绿主色;色签(ticket)是唯一强装饰
|
||||
============================================================ */
|
||||
|
||||
:root {
|
||||
--paper: #f7f6f2;
|
||||
--surface: #ffffff;
|
||||
--surface-2: #fcfcfa;
|
||||
--ink: #1a1c21;
|
||||
--ink-2: #43474f;
|
||||
--muted: #7a7e86;
|
||||
@@ -20,11 +22,60 @@
|
||||
--warn-soft: #fbf1e3;
|
||||
--info: #41556b;
|
||||
--info-soft: #eaeef2;
|
||||
--hover: #f2f7f4;
|
||||
--shadow: 0 12px 32px -26px rgba(26, 28, 33, 0.8);
|
||||
--radius: 3px;
|
||||
--mono: "Bahnschrift", "Consolas", "SF Mono", ui-monospace, monospace;
|
||||
--sans: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
}
|
||||
|
||||
/* 暗色令牌:系统偏好 + 手动选择共用 */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--paper: #111317;
|
||||
--surface: #181b20;
|
||||
--surface-2: #1e2228;
|
||||
--ink: #e8eaee;
|
||||
--ink-2: #c2c7cf;
|
||||
--muted: #8b929c;
|
||||
--line: #2b3038;
|
||||
--line-2: #23272e;
|
||||
--accent: #6bb8a3;
|
||||
--accent-ink: #8fd0bd;
|
||||
--accent-soft: rgba(107, 184, 163, 0.16);
|
||||
--danger: #e8776f;
|
||||
--danger-soft: rgba(232, 119, 111, 0.16);
|
||||
--warn: #e0a862;
|
||||
--warn-soft: rgba(224, 168, 98, 0.16);
|
||||
--info: #93a7bd;
|
||||
--info-soft: rgba(147, 167, 189, 0.16);
|
||||
--hover: #1f242b;
|
||||
--shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.9);
|
||||
}
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
--paper: #111317;
|
||||
--surface: #181b20;
|
||||
--surface-2: #1e2228;
|
||||
--ink: #e8eaee;
|
||||
--ink-2: #c2c7cf;
|
||||
--muted: #8b929c;
|
||||
--line: #2b3038;
|
||||
--line-2: #23272e;
|
||||
--accent: #6bb8a3;
|
||||
--accent-ink: #8fd0bd;
|
||||
--accent-soft: rgba(107, 184, 163, 0.16);
|
||||
--danger: #e8776f;
|
||||
--danger-soft: rgba(232, 119, 111, 0.16);
|
||||
--warn: #e0a862;
|
||||
--warn-soft: rgba(224, 168, 98, 0.16);
|
||||
--info: #93a7bd;
|
||||
--info-soft: rgba(147, 167, 189, 0.16);
|
||||
--hover: #1f242b;
|
||||
--shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.9);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
[hidden] { display: none !important; }
|
||||
@@ -45,15 +96,17 @@ body {
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; text-underline-offset: 2px; }
|
||||
|
||||
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
|
||||
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
|
||||
h1 { font-size: 22px; }
|
||||
h2 { font-size: 15px; }
|
||||
h3 { font-size: 13px; }
|
||||
h4 { font-size: 13px; }
|
||||
|
||||
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
|
||||
.small { font-size: 12px; }
|
||||
.muted { color: var(--muted); }
|
||||
.right { text-align: right; }
|
||||
.text-urgent { color: var(--danger); }
|
||||
|
||||
/* ---------- 顶栏 ---------- */
|
||||
|
||||
@@ -61,7 +114,7 @@ h3 { font-size: 13px; }
|
||||
position: sticky; top: 0; z-index: 40;
|
||||
display: flex; align-items: center; gap: 14px;
|
||||
padding: 0 20px; height: 56px;
|
||||
background: rgba(247, 246, 242, 0.94);
|
||||
background: color-mix(in srgb, var(--paper) 92%, transparent);
|
||||
backdrop-filter: blur(6px);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
@@ -71,10 +124,10 @@ h3 { font-size: 13px; }
|
||||
.brand-mark {
|
||||
display: grid; place-items: center;
|
||||
width: 26px; height: 26px;
|
||||
background: var(--accent); color: #fff;
|
||||
background: var(--accent); color: var(--paper);
|
||||
font-size: 14px; font-weight: 700;
|
||||
border-radius: 2px;
|
||||
box-shadow: 2px 2px 0 rgba(47, 93, 80, 0.18);
|
||||
box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 22%, transparent);
|
||||
}
|
||||
.brand-name { font-weight: 700; letter-spacing: 0.06em; }
|
||||
|
||||
@@ -102,7 +155,7 @@ h3 { font-size: 13px; }
|
||||
color: var(--ink-2); font-size: 13px;
|
||||
}
|
||||
.nav a:hover { background: var(--surface); text-decoration: none; }
|
||||
.nav a.on { background: var(--accent); color: #fff; }
|
||||
.nav a.on { background: var(--accent); color: var(--paper); }
|
||||
.nav a.nav-screen { color: var(--accent); }
|
||||
|
||||
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
|
||||
@@ -119,6 +172,24 @@ h3 { font-size: 13px; }
|
||||
.pill-due b { color: var(--danger); }
|
||||
.pill-warn b { color: var(--warn); }
|
||||
|
||||
.theme-toggle {
|
||||
display: inline-grid; place-items: center;
|
||||
width: 30px; height: 28px; padding: 0;
|
||||
border: 1px solid var(--line); border-radius: 999px;
|
||||
background: var(--surface); color: var(--ink-2);
|
||||
cursor: pointer; font-size: 14px; line-height: 1;
|
||||
}
|
||||
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
|
||||
.theme-toggle .ic-sun { display: none; }
|
||||
:root[data-theme="dark"] .theme-toggle .ic-sun { display: inline; }
|
||||
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) .theme-toggle .ic-sun { display: inline; }
|
||||
:root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
|
||||
}
|
||||
|
||||
.auth-theme { position: fixed; top: 14px; right: 14px; z-index: 50; background: var(--surface); }
|
||||
|
||||
.me { display: flex; align-items: center; gap: 8px; font-size: 13px; }
|
||||
.me a { color: var(--ink-2); }
|
||||
.link-btn {
|
||||
@@ -134,9 +205,9 @@ h3 { font-size: 13px; }
|
||||
left: 50%; top: 68px; transform: translateX(-50%);
|
||||
max-width: min(680px, calc(100vw - 32px));
|
||||
padding: 9px 16px;
|
||||
background: var(--accent); color: #fff;
|
||||
background: var(--accent); color: var(--paper);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 6px 24px rgba(26, 28, 33, 0.16);
|
||||
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
|
||||
font-size: 13px;
|
||||
animation: flash-in 0.22s ease-out;
|
||||
}
|
||||
@@ -184,10 +255,11 @@ main.with-top { padding-top: 22px; }
|
||||
}
|
||||
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
|
||||
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
||||
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
|
||||
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
|
||||
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
|
||||
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
|
||||
.btn-ghost:hover { background: var(--surface); border-color: var(--line); }
|
||||
.btn-urgent { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
|
||||
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
|
||||
.btn-square { width: 34px; padding: 0; font-size: 18px; line-height: 1; }
|
||||
.btn-block { width: 100%; }
|
||||
@@ -210,7 +282,16 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
|
||||
}
|
||||
.field input[type="color"] { width: 100%; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
|
||||
.fieldset { border: 0; padding: 0; }
|
||||
|
||||
.check-line {
|
||||
display: flex; gap: 10px; align-items: flex-start;
|
||||
padding: 10px 12px; margin-bottom: 14px;
|
||||
border: 1px solid var(--line); border-radius: var(--radius);
|
||||
background: var(--surface); cursor: pointer;
|
||||
}
|
||||
.check-line input { margin-top: 3px; accent-color: var(--accent); }
|
||||
.check-line span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
|
||||
.check-line small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
|
||||
|
||||
.radios { display: grid; gap: 8px; }
|
||||
.radios label {
|
||||
@@ -273,7 +354,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
background: var(--surface); border: 1px solid var(--line);
|
||||
border-top: 3px solid var(--accent);
|
||||
padding: 28px;
|
||||
box-shadow: 0 18px 40px -32px rgba(26, 28, 33, 0.5);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 18px; }
|
||||
.auth-card h1 { font-size: 20px; margin-bottom: 4px; }
|
||||
@@ -281,6 +362,32 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
.auth-foot { margin-top: 16px !important; text-align: center; }
|
||||
.form .btn-block { margin-top: 4px; }
|
||||
|
||||
/* ---------- 套餐标签(日历/大屏共用) ---------- */
|
||||
|
||||
.pkg-tabs {
|
||||
display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap;
|
||||
padding-bottom: 8px; border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.pkg-tabs a {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
height: 30px; padding: 0 12px;
|
||||
border: 1px solid var(--line); border-radius: 999px;
|
||||
background: var(--surface); color: var(--ink-2);
|
||||
font-size: 13px; text-decoration: none;
|
||||
}
|
||||
.pkg-tabs a i {
|
||||
width: 8px; height: 8px; border-radius: 50%;
|
||||
background: var(--tab, var(--accent)); display: inline-block;
|
||||
}
|
||||
.pkg-tabs a em {
|
||||
font-family: var(--mono); font-style: normal; font-size: 11px;
|
||||
color: var(--muted); background: var(--paper);
|
||||
border-radius: 999px; padding: 0 5px;
|
||||
}
|
||||
.pkg-tabs a:hover { border-color: var(--accent); text-decoration: none; }
|
||||
.pkg-tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--paper); }
|
||||
.pkg-tabs a.on em { background: color-mix(in srgb, var(--paper) 25%, transparent); color: var(--paper); }
|
||||
|
||||
/* ---------- 日历 ---------- */
|
||||
|
||||
.cal-page { max-width: 1400px; margin: 0 auto; }
|
||||
@@ -296,6 +403,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
font-family: var(--mono); font-style: normal; font-size: 16px;
|
||||
color: var(--ink); margin-right: 4px;
|
||||
}
|
||||
.cal-stats .text-urgent em { color: var(--danger); }
|
||||
|
||||
.cal-body { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; align-items: start; }
|
||||
|
||||
@@ -326,28 +434,34 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
transition: background 0.12s ease;
|
||||
}
|
||||
.cal-cell:nth-child(7n) { border-right: 0; }
|
||||
.cal-cell:hover { background: #f2f7f4; text-decoration: none; }
|
||||
.cal-cell:hover { background: var(--hover); text-decoration: none; }
|
||||
.cal-cell.out { opacity: 0.4; }
|
||||
.cal-cell.weekend .dnum { color: var(--muted); }
|
||||
.cal-cell.sel { box-shadow: inset 0 0 0 2px var(--accent); z-index: 2; }
|
||||
.cal-cell.today .dnum {
|
||||
background: var(--accent); color: #fff;
|
||||
background: var(--accent); color: var(--paper);
|
||||
border-radius: 50%; width: 22px; height: 22px;
|
||||
display: inline-grid; place-items: center;
|
||||
}
|
||||
.cal-cell.has-due::after {
|
||||
content: ""; position: absolute; left: 6px; right: 6px; bottom: 3px;
|
||||
border-bottom: 1px dashed rgba(180, 35, 31, 0.45);
|
||||
border-bottom: 1px dashed color-mix(in srgb, var(--danger) 45%, transparent);
|
||||
}
|
||||
|
||||
.cal-cell.heat-1 { background: rgba(47, 93, 80, 0.045); }
|
||||
.cal-cell.heat-2 { background: rgba(47, 93, 80, 0.085); }
|
||||
.cal-cell.heat-3 { background: rgba(47, 93, 80, 0.13); }
|
||||
.cal-cell.heat-4 { background: rgba(47, 93, 80, 0.19); }
|
||||
.cal-cell.heat-0:hover, .cal-cell.heat-1:hover { background: #f2f7f4; }
|
||||
.cal-cell.heat-1 { background: color-mix(in srgb, var(--accent) 5%, transparent); }
|
||||
.cal-cell.heat-2 { background: color-mix(in srgb, var(--accent) 9%, transparent); }
|
||||
.cal-cell.heat-3 { background: color-mix(in srgb, var(--accent) 14%, transparent); }
|
||||
.cal-cell.heat-4 { background: color-mix(in srgb, var(--accent) 20%, transparent); }
|
||||
.cal-cell.heat-0:hover, .cal-cell.heat-1:hover { background: var(--hover); }
|
||||
|
||||
.cell-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
|
||||
.cell-badges { display: inline-flex; align-items: center; gap: 4px; }
|
||||
.dnum { font-family: var(--mono); font-size: 13px; font-weight: 700; line-height: 1.4; }
|
||||
.urgent-dot {
|
||||
width: 7px; height: 7px; border-radius: 50%;
|
||||
background: var(--danger); display: inline-block;
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 22%, transparent);
|
||||
}
|
||||
.due-badge {
|
||||
display: inline-flex; align-items: baseline; gap: 2px;
|
||||
font-size: 10px; padding: 0 5px; line-height: 16px;
|
||||
@@ -365,7 +479,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
padding: 1px 5px;
|
||||
font-size: 10.5px; line-height: 16px;
|
||||
border-left: 3px solid var(--tag, var(--accent));
|
||||
background: color-mix(in srgb, var(--tag, var(--accent)) 11%, #fff);
|
||||
background: color-mix(in srgb, var(--tag, var(--accent)) 13%, var(--surface));
|
||||
border-radius: 1px 2px 2px 1px;
|
||||
white-space: nowrap;
|
||||
color: var(--ink-2);
|
||||
@@ -377,6 +491,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
.ticket.done::after { content: "✓"; color: var(--accent); font-size: 10px; }
|
||||
.ticket.skipped { opacity: 0.4; text-decoration: line-through; }
|
||||
.ticket.more { border-left-color: var(--line); background: var(--paper); color: var(--muted); }
|
||||
.ticket.urgent { border-left-color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent); }
|
||||
|
||||
/* ---------- 当日抽屉 ---------- */
|
||||
|
||||
@@ -400,7 +515,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
.drawer-block h3 {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
font-size: 12px; color: var(--ink-2); margin-bottom: 8px;
|
||||
text-transform: none; letter-spacing: 0.02em;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.drawer-block h3 em {
|
||||
font-family: var(--mono); font-style: normal; font-size: 11px;
|
||||
@@ -409,6 +524,39 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
}
|
||||
.drawer-block p { margin: 0; font-size: 12px; }
|
||||
|
||||
/* 快速完成 */
|
||||
.quick-form { display: flex; gap: 6px; margin-bottom: 4px; }
|
||||
.quick-form input[type="text"] {
|
||||
flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 9px;
|
||||
border: 1px solid var(--line); border-radius: var(--radius);
|
||||
background: var(--surface); font: inherit; font-size: 13px; font-family: var(--mono);
|
||||
color: var(--ink);
|
||||
}
|
||||
.quick-form input[type="text"]:focus {
|
||||
outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
|
||||
}
|
||||
.quick-hint { margin: 0 0 10px !important; font-size: 11px; line-height: 1.4; }
|
||||
|
||||
/* 选择面板 */
|
||||
.picker {
|
||||
margin: 8px 0 12px; padding: 10px;
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface-2);
|
||||
}
|
||||
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
|
||||
.picker-head h4 { font-size: 13px; }
|
||||
.pick-list { list-style: none; margin: 0 0 8px; padding: 0; }
|
||||
.pick-list li { border-bottom: 1px dashed var(--line-2); }
|
||||
.pick-list li:last-child { border-bottom: 0; }
|
||||
.pick-list label {
|
||||
display: flex; align-items: center; gap: 7px;
|
||||
padding: 6px 0; cursor: pointer; font-size: 12px;
|
||||
}
|
||||
.pick-list input[type="checkbox"] { accent-color: var(--accent); }
|
||||
.pick-pkg { color: var(--ink-2); }
|
||||
.pick-remain { margin-left: auto; font-family: var(--mono); color: var(--muted); font-size: 11px; }
|
||||
|
||||
.due-list, .task-list, .mini-due, .checkin-list { list-style: none; margin: 0; padding: 0; }
|
||||
|
||||
.due-list li {
|
||||
@@ -422,14 +570,23 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
|
||||
.task { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
|
||||
.task:last-child { border-bottom: 0; }
|
||||
.task.urgent { border-left: 3px solid var(--danger); padding-left: 8px; margin-left: -8px; border-radius: 2px; background: color-mix(in srgb, var(--danger) 5%, transparent); }
|
||||
.task-main { min-width: 0; flex: 1 1 auto; }
|
||||
.task-title { display: flex; align-items: center; gap: 6px; color: var(--ink); }
|
||||
.task-title { display: flex; align-items: center; gap: 6px; color: var(--ink); flex-wrap: wrap; }
|
||||
.task-meta { display: flex; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 2px; }
|
||||
.task-note { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
|
||||
.task-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; max-width: 170px; }
|
||||
.task-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; max-width: 190px; }
|
||||
.task.done .task-title, .task.skipped .task-title { opacity: 0.5; }
|
||||
.task.skipped .task-title .ticket { text-decoration: line-through; }
|
||||
|
||||
.tag-urgent {
|
||||
display: inline-flex; align-items: center;
|
||||
height: 17px; padding: 0 5px;
|
||||
font-size: 10px; line-height: 1;
|
||||
color: #fff; background: var(--danger); border-radius: 2px;
|
||||
letter-spacing: 0.02em; white-space: nowrap;
|
||||
}
|
||||
|
||||
.mini-due li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 12px; }
|
||||
.sm-date { font-family: var(--mono); font-size: 11px; color: var(--muted); }
|
||||
|
||||
@@ -442,12 +599,12 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
border-radius: 2px; border: 1px solid transparent;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.chip-active { background: var(--accent-soft); color: var(--accent-ink); border-color: rgba(47, 93, 80, 0.2); }
|
||||
.chip-pending { background: var(--info-soft); color: var(--info); border-color: rgba(65, 85, 107, 0.2); }
|
||||
.chip-paused { background: var(--info-soft); color: var(--info); border-color: rgba(65, 85, 107, 0.2); }
|
||||
.chip-expired { background: var(--danger-soft); color: var(--danger); border-color: rgba(180, 35, 31, 0.22); }
|
||||
.chip-usedup { background: var(--warn-soft); color: var(--warn); border-color: rgba(168, 94, 18, 0.22); }
|
||||
.chip-closed { background: #f0efeb; color: var(--muted); border-color: var(--line); }
|
||||
.chip-active { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
|
||||
.chip-pending { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
|
||||
.chip-paused { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
|
||||
.chip-expired { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
|
||||
.chip-usedup { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
|
||||
.chip-closed { background: var(--paper); color: var(--muted); border-color: var(--line); }
|
||||
.chip-plain { background: var(--paper); color: var(--ink-2); border-color: var(--line); }
|
||||
|
||||
.tagchip {
|
||||
@@ -481,7 +638,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
}
|
||||
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
|
||||
.table tbody tr:last-child td { border-bottom: 0; }
|
||||
.table tbody tr:hover { background: #fbfcfb; }
|
||||
.table tbody tr:hover { background: var(--hover); }
|
||||
.table.tight td, .table.tight th { padding: 7px 10px; }
|
||||
.table .col-dot { width: 28px; }
|
||||
.table tr.archived { opacity: 0.6; }
|
||||
@@ -501,7 +658,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
display: flex; flex-direction: column; align-items: center; gap: 12px;
|
||||
padding: 56px 20px; text-align: center;
|
||||
border: 1px dashed var(--line); border-radius: var(--radius);
|
||||
background: rgba(255, 255, 255, 0.55);
|
||||
background: color-mix(in srgb, var(--surface) 60%, transparent);
|
||||
}
|
||||
.empty p { margin: 0; color: var(--muted); font-size: 13px; }
|
||||
.empty-mark {
|
||||
@@ -553,7 +710,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
.subcard-foot {
|
||||
display: flex; gap: 4px; flex-wrap: wrap;
|
||||
padding: 8px 12px; border-top: 1px dashed var(--line);
|
||||
background: #fcfcfa;
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
.timeline { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 16px 10px; }
|
||||
@@ -567,7 +724,9 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
.tl-bar.st-closed { background: var(--muted); opacity: 0.6; }
|
||||
.tl-pause {
|
||||
position: absolute; top: 4px; height: 12px;
|
||||
background: repeating-linear-gradient(135deg, #c9c7c0 0 4px, #e6e4dd 4px 8px);
|
||||
background: repeating-linear-gradient(135deg,
|
||||
color-mix(in srgb, var(--muted) 45%, transparent) 0 4px,
|
||||
color-mix(in srgb, var(--muted) 18%, transparent) 4px 8px);
|
||||
border-radius: 1px;
|
||||
}
|
||||
.tl-due { position: absolute; top: 1px; bottom: 1px; width: 2px; background: var(--danger); }
|
||||
@@ -583,7 +742,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface);
|
||||
box-shadow: 0 12px 32px -26px rgba(26, 28, 33, 0.8);
|
||||
box-shadow: var(--shadow);
|
||||
scroll-margin-top: 80px;
|
||||
}
|
||||
.drawer .extend { margin: 12px 14px; }
|
||||
@@ -591,7 +750,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
|
||||
padding: 12px 14px;
|
||||
background: var(--accent-soft);
|
||||
border-bottom: 1px solid rgba(47, 93, 80, 0.2);
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
|
||||
}
|
||||
.extend-head h3 { font-size: 14px; }
|
||||
.extend-head p { margin: 2px 0 0; font-size: 11px; }
|
||||
@@ -620,12 +779,12 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
background: transparent; font: inherit; font-size: 11px; font-family: var(--mono);
|
||||
color: var(--ink-2); cursor: pointer; padding: 0;
|
||||
}
|
||||
.miniday:hover:not(:disabled) { background: var(--accent-soft); border-color: rgba(47, 93, 80, 0.3); }
|
||||
.miniday.out { color: #c3c1ba; }
|
||||
.miniday.old { background: var(--warn-soft); border-color: rgba(168, 94, 18, 0.35); font-weight: 700; }
|
||||
.miniday:hover:not(:disabled) { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
|
||||
.miniday.out { color: color-mix(in srgb, var(--muted) 55%, transparent); }
|
||||
.miniday.old { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); font-weight: 700; }
|
||||
.miniday.today { outline: 1px solid var(--accent); }
|
||||
.miniday.picked { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
|
||||
.miniday:disabled { color: #d6d4cc; cursor: not-allowed; }
|
||||
.miniday.picked { background: var(--accent); color: var(--paper); border-color: var(--accent); font-weight: 700; }
|
||||
.miniday:disabled { color: color-mix(in srgb, var(--muted) 45%, transparent); cursor: not-allowed; }
|
||||
|
||||
/* ---------- 设置页杂项 ---------- */
|
||||
|
||||
@@ -660,7 +819,7 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
.topbar-right { order: 2; margin-left: auto; }
|
||||
main { padding: 0 12px 32px; }
|
||||
.cal-grid { overflow-x: auto; }
|
||||
.cal-week, .cal-dow { min-width: 680px; }
|
||||
.cal-week, .cal-dow { min-width: 640px; }
|
||||
.cal-cell { min-height: 96px; }
|
||||
.grid-2, .grid-3 { grid-template-columns: 1fr; }
|
||||
.cust-tail { font-size: 24px; }
|
||||
|
||||
@@ -106,3 +106,27 @@
|
||||
sync();
|
||||
});
|
||||
})();
|
||||
|
||||
/* ---------- 亮色 / 暗色切换 ----------
|
||||
偏好写 cookie,服务端首屏直接带 data-theme,不闪。
|
||||
没有 cookie 时跟随系统(由 CSS 的 prefers-color-scheme 决定)。 */
|
||||
(function () {
|
||||
'use strict';
|
||||
var KEY = 'daili_theme';
|
||||
var btns = document.querySelectorAll('[data-theme-toggle]');
|
||||
if (!btns.length) return;
|
||||
|
||||
function effective() {
|
||||
var attr = document.documentElement.getAttribute('data-theme');
|
||||
if (attr === 'light' || attr === 'dark') return attr;
|
||||
return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
||||
}
|
||||
|
||||
Array.prototype.forEach.call(btns, function (btn) {
|
||||
btn.addEventListener('click', function () {
|
||||
var next = effective() === 'dark' ? 'light' : 'dark';
|
||||
document.documentElement.setAttribute('data-theme', next);
|
||||
document.cookie = KEY + '=' + next + '; path=/; max-age=31536000; SameSite=Lax';
|
||||
});
|
||||
});
|
||||
})();
|
||||
+334
-163
@@ -1,212 +1,383 @@
|
||||
/* ============================================================
|
||||
代打台 · 可视化大屏(深色「记分板」)
|
||||
代打台 · 可视化大屏(记分板)
|
||||
默认深色;亮色由系统偏好或 [data-theme="light"] 覆盖
|
||||
============================================================ */
|
||||
|
||||
:root {
|
||||
--bg: #070a0f;
|
||||
--panel: #0e141c;
|
||||
--panel-2: #121a24;
|
||||
--line: #1b2530;
|
||||
--ink: #e8eef2;
|
||||
--dim: #7d8b99;
|
||||
--mint: #35e0c6;
|
||||
--mint-dim: rgba(53, 224, 198, 0.14);
|
||||
--amber: #f5a524;
|
||||
--red: #f2555a;
|
||||
--mono: "Bahnschrift", "Consolas", "SF Mono", ui-monospace, monospace;
|
||||
--sans: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
|
||||
--bg: #0c0f12;
|
||||
--panel: #12161b;
|
||||
--panel-2: #171c22;
|
||||
--line: #232a32;
|
||||
--ink: #e9edf1;
|
||||
--ink-2: #aab4bf;
|
||||
--muted: #6f7b87;
|
||||
--accent: #58c1a3;
|
||||
--accent-2: #8bd9c4;
|
||||
--danger: #ef6b62;
|
||||
--warn: #e6ac55;
|
||||
--ok: #58c1a3;
|
||||
--glow: 0 0 24px rgba(88, 193, 163, 0.18);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root:not([data-theme="dark"]) {
|
||||
--bg: #f4f2ec;
|
||||
--panel: #ffffff;
|
||||
--panel-2: #faf9f5;
|
||||
--line: #e0ddd2;
|
||||
--ink: #1b1e23;
|
||||
--ink-2: #4a4f57;
|
||||
--muted: #8a8f97;
|
||||
--accent: #2f7d68;
|
||||
--accent-2: #245c4d;
|
||||
--danger: #b3302a;
|
||||
--warn: #a0600f;
|
||||
--ok: #2f7d68;
|
||||
--glow: 0 0 18px rgba(47, 125, 104, 0.12);
|
||||
}
|
||||
}
|
||||
|
||||
:root[data-theme="light"] {
|
||||
--bg: #f4f2ec;
|
||||
--panel: #ffffff;
|
||||
--panel-2: #faf9f5;
|
||||
--line: #e0ddd2;
|
||||
--ink: #1b1e23;
|
||||
--ink-2: #4a4f57;
|
||||
--muted: #8a8f97;
|
||||
--accent: #2f7d68;
|
||||
--accent-2: #245c4d;
|
||||
--danger: #b3302a;
|
||||
--warn: #a0600f;
|
||||
--ok: #2f7d68;
|
||||
--glow: 0 0 18px rgba(47, 125, 104, 0.12);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body { margin: 0; height: 100%; }
|
||||
html, body { height: 100%; margin: 0; }
|
||||
|
||||
body.screen-body {
|
||||
background:
|
||||
radial-gradient(1200px 600px at 15% -10%, rgba(53, 224, 198, 0.07), transparent 60%),
|
||||
radial-gradient(900px 500px at 100% 0%, rgba(245, 165, 36, 0.05), transparent 55%),
|
||||
var(--bg);
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font-family: var(--sans);
|
||||
font-family: "Bahnschrift", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
|
||||
font-size: 14px;
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
a { color: var(--mint); text-decoration: none; }
|
||||
a:hover { opacity: 0.8; }
|
||||
/* 背景:极淡的网格与光晕 */
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed; inset: 0; z-index: 0; pointer-events: none;
|
||||
background:
|
||||
radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
|
||||
linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 40px,
|
||||
linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 100%;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.scr {
|
||||
display: flex; flex-direction: column;
|
||||
min-height: 100vh;
|
||||
padding: clamp(12px, 1.4vw, 22px) clamp(14px, 1.8vw, 28px);
|
||||
gap: clamp(10px, 1.1vw, 16px);
|
||||
position: relative; z-index: 1;
|
||||
display: grid;
|
||||
grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
|
||||
gap: 10px;
|
||||
height: 100vh;
|
||||
padding: 12px 16px 8px;
|
||||
}
|
||||
|
||||
.scr-head { display: flex; align-items: center; gap: 16px; }
|
||||
.scr-brand {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
font-size: clamp(15px, 1.2vw, 19px); font-weight: 700; letter-spacing: 0.1em;
|
||||
}
|
||||
/* ---------- 头部 ---------- */
|
||||
|
||||
.scr-head { display: flex; align-items: center; gap: 16px; min-height: 40px; }
|
||||
|
||||
.scr-brand { display: flex; align-items: baseline; gap: 6px; font-size: 17px; font-weight: 700; letter-spacing: 0.08em; }
|
||||
.scr-brand .mark {
|
||||
display: grid; place-items: center;
|
||||
width: 30px; height: 30px; border-radius: 3px;
|
||||
background: var(--mint); color: #04211d; font-size: 15px;
|
||||
box-shadow: 0 0 22px rgba(53, 224, 198, 0.45);
|
||||
display: inline-grid; place-items: center;
|
||||
width: 24px; height: 24px; margin-right: 4px;
|
||||
background: var(--accent); color: var(--bg);
|
||||
font-size: 13px; border-radius: 2px;
|
||||
align-self: center;
|
||||
}
|
||||
.scr-brand em { font-style: normal; color: var(--dim); font-weight: 400; letter-spacing: 0.24em; font-size: 0.7em; }
|
||||
.scr-brand em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 0.2em; }
|
||||
|
||||
.scr-clock { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
|
||||
.scr-clock b {
|
||||
font-family: var(--mono); font-size: clamp(24px, 2.4vw, 36px);
|
||||
font-weight: 600; line-height: 1;
|
||||
color: var(--ink); letter-spacing: 0.04em;
|
||||
text-shadow: 0 0 22px rgba(53, 224, 198, 0.25);
|
||||
.scr-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
|
||||
.scr-tabs a {
|
||||
display: inline-flex; align-items: center; gap: 5px;
|
||||
height: 28px; padding: 0 11px;
|
||||
font-size: 12px; color: var(--ink-2); text-decoration: none;
|
||||
border: 1px solid var(--line); border-radius: 999px;
|
||||
background: var(--panel);
|
||||
}
|
||||
.scr-clock span { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.1em; }
|
||||
.scr-links { font-size: 11px; color: var(--dim); }
|
||||
.scr-tabs a::before {
|
||||
content: ""; width: 6px; height: 6px; border-radius: 50%;
|
||||
background: var(--tab, var(--accent));
|
||||
}
|
||||
.scr-tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
|
||||
.scr-tabs a.on::before { background: var(--bg); }
|
||||
|
||||
/* KPI */
|
||||
.scr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 0.9vw, 14px); }
|
||||
.scr-tools { display: flex; align-items: center; gap: 8px; }
|
||||
.scr-switch {
|
||||
height: 28px; padding: 0 10px;
|
||||
display: inline-flex; align-items: center;
|
||||
font-size: 12px; color: var(--accent); text-decoration: none;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
|
||||
border-radius: 999px; background: var(--panel);
|
||||
}
|
||||
.scr-switch:hover { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
|
||||
|
||||
.scr-theme {
|
||||
width: 28px; height: 28px; padding: 0;
|
||||
display: inline-grid; place-items: center;
|
||||
border: 1px solid var(--line); border-radius: 999px;
|
||||
background: var(--panel); color: var(--ink-2);
|
||||
font-size: 13px; cursor: pointer;
|
||||
}
|
||||
.scr-theme .ic-sun { display: none; }
|
||||
:root[data-theme="light"] .scr-theme .ic-sun { display: inline; }
|
||||
:root[data-theme="light"] .scr-theme .ic-moon { display: none; }
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root:not([data-theme="dark"]) .scr-theme .ic-sun { display: inline; }
|
||||
:root:not([data-theme="dark"]) .scr-theme .ic-moon { display: none; }
|
||||
}
|
||||
|
||||
.scr-clock { margin-left: auto; text-align: right; line-height: 1.1; }
|
||||
.scr-clock b { font-family: var(--mono, "Bahnschrift", monospace); font-size: 22px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
|
||||
.scr-clock span { display: block; font-size: 11px; color: var(--muted); }
|
||||
|
||||
.scr-links { font-size: 11px; color: var(--muted); }
|
||||
.scr-links a { color: var(--accent); text-decoration: none; }
|
||||
|
||||
/* ---------- KPI ---------- */
|
||||
|
||||
.scr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
|
||||
.kpi {
|
||||
position: relative; overflow: hidden;
|
||||
background: linear-gradient(180deg, var(--panel-2), var(--panel));
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
padding: clamp(10px, 1vw, 16px) clamp(12px, 1.2vw, 20px);
|
||||
}
|
||||
.kpi::before {
|
||||
content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
|
||||
background: var(--mint); opacity: 0.75;
|
||||
}
|
||||
.kpi-warm::before { background: var(--amber); }
|
||||
.kpi-hot::before { background: var(--red); }
|
||||
.kpi span { display: block; font-size: 11px; color: var(--dim); letter-spacing: 0.16em; }
|
||||
.kpi b {
|
||||
font-family: var(--mono); font-size: clamp(28px, 3.4vw, 52px); font-weight: 700;
|
||||
line-height: 1.15; letter-spacing: -0.01em;
|
||||
}
|
||||
.kpi i { font-style: normal; font-size: 11px; color: var(--dim); margin-left: 4px; }
|
||||
.kpi-hot b { color: var(--red); }
|
||||
.kpi-warm b { color: var(--amber); }
|
||||
|
||||
/* 主区 */
|
||||
.scr-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(10px, 1.1vw, 16px); flex: 1 1 auto; }
|
||||
.panel {
|
||||
position: relative;
|
||||
display: flex; align-items: baseline; gap: 6px;
|
||||
padding: 10px 14px;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
padding: clamp(10px, 1vw, 16px);
|
||||
display: flex; flex-direction: column; min-height: 0;
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
|
||||
.panel-head h2 {
|
||||
margin: 0; font-size: clamp(12px, 0.95vw, 14px); font-weight: 600; letter-spacing: 0.08em;
|
||||
color: var(--ink);
|
||||
.kpi::after {
|
||||
content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
|
||||
background: var(--accent);
|
||||
}
|
||||
.panel-head h2::before {
|
||||
content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px;
|
||||
background: var(--mint); vertical-align: 2px;
|
||||
}
|
||||
.panel-head span { font-size: 11px; color: var(--dim); font-family: var(--mono); }
|
||||
.kpi span { font-size: 12px; color: var(--muted); margin-right: auto; }
|
||||
.kpi b { font-family: "Bahnschrift", monospace; font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
|
||||
.kpi i { font-style: normal; font-size: 11px; color: var(--muted); }
|
||||
.kpi-hot::after { background: var(--danger); }
|
||||
.kpi-hot b { color: var(--danger); }
|
||||
.kpi-warm::after { background: var(--warn); }
|
||||
.kpi-warm b { color: var(--warn); }
|
||||
|
||||
/* 热力月历 */
|
||||
.heat-grid { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
|
||||
.heat-dow, .heat-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
|
||||
.heat-row { flex: 1 1 0; min-height: 0; }
|
||||
.heat-dow { flex: 0 0 auto; }
|
||||
.heat-dow span { text-align: center; font-size: 10px; color: var(--dim); }
|
||||
.heat-cell {
|
||||
position: relative;
|
||||
display: flex; flex-direction: column; justify-content: space-between;
|
||||
min-height: 34px;
|
||||
padding: 5px 6px;
|
||||
/* ---------- 主区 ---------- */
|
||||
|
||||
.scr-main { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; min-height: 0; }
|
||||
|
||||
.panel {
|
||||
display: flex; flex-direction: column; min-height: 0;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 3px;
|
||||
background: #0a1017;
|
||||
overflow: hidden;
|
||||
}
|
||||
.heat-cell span { font-family: var(--mono); font-size: 10px; color: var(--dim); }
|
||||
.heat-cell b {
|
||||
align-self: flex-end; font-family: var(--mono); font-size: clamp(12px, 1.1vw, 16px);
|
||||
color: var(--mint); font-weight: 700;
|
||||
.panel-head {
|
||||
display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
|
||||
padding: 9px 14px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: var(--panel-2);
|
||||
}
|
||||
.panel-head h2 { margin: 0; font-size: 13px; letter-spacing: 0.08em; font-weight: 700; }
|
||||
.panel-head span { font-size: 11px; color: var(--muted); }
|
||||
|
||||
/* 热力 */
|
||||
.heat-grid { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; min-height: 0; }
|
||||
.heat-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
|
||||
.heat-dow span { text-align: center; font-size: 10px; color: var(--muted); }
|
||||
.heat-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
|
||||
.heat-cell {
|
||||
position: relative;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
min-height: 0; aspect-ratio: 2.05 / 1;
|
||||
padding: 4px 7px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 2px;
|
||||
background: var(--panel-2);
|
||||
font-size: 11px; color: var(--muted);
|
||||
transition: transform 0.1s ease, border-color 0.1s ease;
|
||||
}
|
||||
.heat-cell span { font-family: "Bahnschrift", monospace; font-size: 11px; }
|
||||
.heat-cell b { font-family: "Bahnschrift", monospace; font-size: 12px; color: var(--ink-2); }
|
||||
.heat-cell.out { opacity: 0.28; }
|
||||
.heat-cell.today { border-color: var(--mint); box-shadow: 0 0 0 1px rgba(53, 224, 198, 0.35), 0 0 18px rgba(53, 224, 198, 0.16); }
|
||||
.heat-cell.h1 { background: rgba(53, 224, 198, 0.08); border-color: rgba(53, 224, 198, 0.22); }
|
||||
.heat-cell.h2 { background: rgba(53, 224, 198, 0.15); border-color: rgba(53, 224, 198, 0.3); }
|
||||
.heat-cell.h3 { background: rgba(53, 224, 198, 0.24); border-color: rgba(53, 224, 198, 0.42); }
|
||||
.heat-cell.h4 { background: rgba(53, 224, 198, 0.36); border-color: rgba(53, 224, 198, 0.6); }
|
||||
.heat-cell.h3 b, .heat-cell.h4 b { color: #eafffb; }
|
||||
.heat-legend { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 10px; color: var(--dim); flex: 0 0 auto; }
|
||||
.heat-legend i { width: 18px; height: 9px; border-radius: 2px; border: 1px solid #26313d; }
|
||||
.heat-legend .h0 { background: #0a1017; }
|
||||
.heat-legend .h1 { background: rgba(53, 224, 198, 0.16); }
|
||||
.heat-legend .h2 { background: rgba(53, 224, 198, 0.28); }
|
||||
.heat-legend .h3 { background: rgba(53, 224, 198, 0.42); }
|
||||
.heat-legend .h4 { background: rgba(53, 224, 198, 0.6); }
|
||||
.heat-cell.past { opacity: 0.66; }
|
||||
.heat-cell.today { outline: 1px solid var(--accent); outline-offset: -1px; }
|
||||
.heat-cell.today span { color: var(--accent); font-weight: 700; }
|
||||
.heat-cell:hover { transform: translateY(-1px); border-color: var(--accent); z-index: 3; }
|
||||
|
||||
/* TOP10 */
|
||||
.top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
|
||||
.heat-cell.h1 { background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
|
||||
.heat-cell.h2 { background: color-mix(in srgb, var(--accent) 24%, var(--panel-2)); }
|
||||
.heat-cell.h3 { background: color-mix(in srgb, var(--accent) 38%, var(--panel-2)); }
|
||||
.heat-cell.h4 { background: color-mix(in srgb, var(--accent) 56%, var(--panel-2)); }
|
||||
.heat-cell.h3 b, .heat-cell.h4 b { color: var(--bg); }
|
||||
.heat-cell.h3 span, .heat-cell.h4 span { color: color-mix(in srgb, var(--bg) 75%, var(--accent)); }
|
||||
|
||||
.cell-urgent {
|
||||
position: absolute; top: 3px; right: 3px;
|
||||
width: 5px; height: 5px; border-radius: 50%;
|
||||
background: var(--danger);
|
||||
box-shadow: 0 0 6px color-mix(in srgb, var(--danger) 70%, transparent);
|
||||
}
|
||||
|
||||
.heat-legend {
|
||||
display: flex; align-items: center; gap: 4px;
|
||||
padding: 6px 14px 10px;
|
||||
font-size: 10px; color: var(--muted);
|
||||
}
|
||||
.heat-legend span { margin-right: 6px; }
|
||||
.heat-legend i {
|
||||
width: 14px; height: 9px; border-radius: 1px;
|
||||
border: 1px solid var(--line);
|
||||
display: inline-block;
|
||||
}
|
||||
.heat-legend i.h0 { background: var(--panel-2); }
|
||||
.heat-legend i.h1 { background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); }
|
||||
.heat-legend i.h2 { background: color-mix(in srgb, var(--accent) 24%, var(--panel-2)); }
|
||||
.heat-legend i.h3 { background: color-mix(in srgb, var(--accent) 38%, var(--panel-2)); }
|
||||
.heat-legend i.h4 { background: color-mix(in srgb, var(--accent) 56%, var(--panel-2)); }
|
||||
.heat-legend .legend-hint { margin-left: auto; font-style: normal; opacity: 0.7; }
|
||||
|
||||
/* TOP 10 */
|
||||
.top-list { list-style: none; margin: 0; padding: 6px 10px; overflow: hidden; flex: 1 1 auto; }
|
||||
.top-item {
|
||||
display: grid; grid-template-columns: 22px auto 1fr auto auto;
|
||||
grid-template-areas: "rank tail name pkg remain" "rank bar bar bar bar";
|
||||
column-gap: 8px; row-gap: 3px;
|
||||
align-items: center;
|
||||
padding: 5px 8px;
|
||||
border-radius: 3px;
|
||||
background: #0a1017;
|
||||
border-left: 2px solid transparent;
|
||||
display: grid;
|
||||
grid-template-columns: 22px 54px minmax(0, 1fr) auto auto 56px;
|
||||
gap: 8px; align-items: center;
|
||||
padding: 5px 4px;
|
||||
border-bottom: 1px dashed var(--line);
|
||||
font-size: 12px;
|
||||
}
|
||||
.top-item .rank { grid-area: rank; font-family: var(--mono); font-size: 11px; color: var(--dim); }
|
||||
.top-tail { grid-area: tail; font-family: var(--mono); font-size: clamp(13px, 1.15vw, 17px); font-weight: 700; letter-spacing: 0.03em; }
|
||||
.top-name { grid-area: name; font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.top-item:last-child { border-bottom: 0; }
|
||||
.top-item .rank { font-family: "Bahnschrift", monospace; font-size: 11px; color: var(--muted); }
|
||||
.top-item:nth-child(-n+3) .rank { color: var(--accent); font-weight: 700; }
|
||||
.top-tail { font-family: "Bahnschrift", monospace; font-size: 14px; font-weight: 700; letter-spacing: 0.03em; }
|
||||
.top-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
|
||||
.top-pkg {
|
||||
grid-area: pkg; font-size: 10px; color: var(--dim);
|
||||
border-left: 2px solid var(--tag); padding-left: 5px;
|
||||
font-size: 10px; padding: 1px 6px; border-radius: 2px;
|
||||
border-left: 2px solid var(--tag, var(--accent));
|
||||
background: color-mix(in srgb, var(--tag, var(--accent)) 14%, transparent);
|
||||
color: var(--ink-2); white-space: nowrap;
|
||||
}
|
||||
.top-remain { grid-area: remain; font-family: var(--mono); font-size: 12px; color: var(--mint); }
|
||||
.top-bar { grid-area: bar; height: 3px; background: #16202b; border-radius: 999px; overflow: hidden; }
|
||||
.top-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), rgba(53, 224, 198, 0.35)); }
|
||||
.top-item.lv-warn { border-left-color: var(--amber); }
|
||||
.top-item.lv-warn .top-remain { color: var(--amber); }
|
||||
.top-item.lv-warn .top-bar i { background: linear-gradient(90deg, var(--amber), rgba(245, 165, 36, 0.3)); }
|
||||
.top-item.lv-today, .top-item.lv-expired { border-left-color: var(--red); }
|
||||
.top-item.lv-today .top-remain, .top-item.lv-expired .top-remain { color: var(--red); }
|
||||
.top-item.lv-today .top-bar i, .top-item.lv-expired .top-bar i { background: linear-gradient(90deg, var(--red), rgba(242, 85, 90, 0.3)); }
|
||||
.top-remain { font-family: "Bahnschrift", monospace; font-size: 11px; white-space: nowrap; }
|
||||
.top-item.lv-today .top-remain { color: var(--danger); font-weight: 700; }
|
||||
.top-item.lv-warn .top-remain { color: var(--warn); }
|
||||
.top-bar { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
|
||||
.top-bar i { display: block; height: 100%; background: var(--accent); }
|
||||
.top-item.lv-today .top-bar i { background: var(--danger); }
|
||||
.top-item.lv-warn .top-bar i { background: var(--warn); }
|
||||
|
||||
/* 底部 */
|
||||
.scr-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(10px, 1.1vw, 16px); }
|
||||
.today-list, .recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; max-height: 22vh; overflow: hidden; }
|
||||
/* ---------- 底部两块 ---------- */
|
||||
|
||||
.scr-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 150px; max-height: 30vh; }
|
||||
.today-list { list-style: none; margin: 0; padding: 4px 10px 8px; overflow: auto; }
|
||||
.today-list li {
|
||||
display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
|
||||
padding: 4px 6px; border-bottom: 1px solid rgba(27, 37, 48, 0.6);
|
||||
display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
|
||||
gap: 8px; align-items: center;
|
||||
padding: 5px 6px;
|
||||
border-bottom: 1px dashed var(--line);
|
||||
font-size: 12px;
|
||||
}
|
||||
.today-list li:last-child { border-bottom: 0; }
|
||||
.today-list li.urgent {
|
||||
background: color-mix(in srgb, var(--danger) 9%, transparent);
|
||||
border-left: 2px solid var(--danger);
|
||||
padding-left: 8px;
|
||||
}
|
||||
.tchip {
|
||||
display: inline-flex; align-items: baseline; gap: 3px;
|
||||
padding: 1px 6px; font-size: 11px;
|
||||
border-left: 3px solid var(--tag);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border-radius: 1px 2px 2px 1px;
|
||||
padding: 1px 6px;
|
||||
border-left: 2px solid var(--tag, var(--accent));
|
||||
background: color-mix(in srgb, var(--tag, var(--accent)) 14%, transparent);
|
||||
border-radius: 1px; white-space: nowrap;
|
||||
}
|
||||
.tchip b { font-family: var(--mono); font-size: 12px; color: var(--ink); }
|
||||
.today-list .pkg, .recent-list .pkg { font-size: 11px; color: var(--dim); }
|
||||
.today-list .rem { font-family: var(--mono); font-size: 11px; color: var(--mint); }
|
||||
.tchip b { font-family: "Bahnschrift", monospace; font-size: 13px; }
|
||||
.today-list .pkg { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.today-list .rem { font-family: "Bahnschrift", monospace; font-size: 11px; color: var(--ink-2); white-space: nowrap; }
|
||||
|
||||
.recent-list li { display: flex; align-items: center; gap: 8px; padding: 3px 4px; font-size: 11px; border-bottom: 1px solid rgba(27, 37, 48, 0.6); }
|
||||
.recent-list .time { color: var(--dim); font-size: 10px; }
|
||||
.recent-list .who b { font-family: var(--mono); font-size: 12px; margin-right: 4px; }
|
||||
.recent-list .plus { margin-left: auto; color: var(--mint); font-family: var(--mono); font-style: normal; }
|
||||
.recent-list .op { color: var(--dim); }
|
||||
.tag-urgent {
|
||||
font-size: 9px; line-height: 1; padding: 2px 4px;
|
||||
background: var(--danger); color: #fff; border-radius: 2px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.scr-foot { font-size: 10px; color: #47535f; text-align: right; letter-spacing: 0.12em; }
|
||||
.scr-empty { margin: auto; color: var(--dim); font-size: 12px; text-align: center; }
|
||||
.scr-empty, .scr-empty-inline { color: var(--muted); font-size: 12px; padding: 16px; text-align: center; margin: 0; }
|
||||
.scr-empty-inline { padding: 0; text-align: left; }
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.scr-kpis { grid-template-columns: repeat(2, 1fr); }
|
||||
/* ---------- 最近追加 ---------- */
|
||||
|
||||
.scr-recent {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 5px 12px;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line); border-radius: 3px;
|
||||
font-size: 11px; color: var(--muted);
|
||||
overflow: hidden;
|
||||
}
|
||||
.recent-label { flex: 0 0 auto; letter-spacing: 0.12em; color: var(--accent); font-size: 10px; }
|
||||
.recent-track { display: flex; gap: 18px; overflow: hidden; white-space: nowrap; }
|
||||
.recent-item { color: var(--ink-2); }
|
||||
.recent-item b { font-family: "Bahnschrift", monospace; font-size: 12px; color: var(--ink); margin-right: 3px; }
|
||||
.recent-item em { font-style: normal; color: var(--accent); margin-left: 3px; }
|
||||
|
||||
.scr-foot { text-align: center; font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
|
||||
|
||||
/* ---------- 当日明细浮层 ---------- */
|
||||
|
||||
.day-pop {
|
||||
position: fixed; z-index: 60;
|
||||
width: 340px; max-height: 62vh; overflow: auto;
|
||||
padding: 10px 12px;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), var(--glow);
|
||||
font-size: 12px;
|
||||
pointer-events: none;
|
||||
}
|
||||
.day-pop[hidden] { display: none; }
|
||||
.day-pop h4 {
|
||||
margin: 0 0 6px; display: flex; align-items: baseline; justify-content: space-between;
|
||||
font-size: 12px; color: var(--ink);
|
||||
}
|
||||
.day-pop h4 small { font-weight: 400; color: var(--muted); font-size: 10px; }
|
||||
.day-pop .pop-meta { display: flex; gap: 10px; margin-bottom: 6px; font-size: 10px; color: var(--muted); }
|
||||
.day-pop .pop-meta b { color: var(--ink-2); font-family: "Bahnschrift", monospace; }
|
||||
.day-pop ul { list-style: none; margin: 0; padding: 0; }
|
||||
.day-pop li {
|
||||
display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
gap: 6px; align-items: center;
|
||||
padding: 3px 0; border-bottom: 1px dashed var(--line);
|
||||
}
|
||||
.day-pop li:last-child { border-bottom: 0; }
|
||||
.day-pop li.urgent { color: var(--danger); }
|
||||
.day-pop li.done { opacity: 0.45; text-decoration: line-through; }
|
||||
.day-pop .pop-tail { font-family: "Bahnschrift", monospace; font-size: 12px; font-weight: 700; }
|
||||
.day-pop .pop-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
|
||||
.day-pop .pop-rem { font-size: 10px; color: var(--muted); white-space: nowrap; }
|
||||
.day-pop .pop-more { margin-top: 6px; font-size: 10px; color: var(--muted); text-align: right; }
|
||||
.day-pop .pop-empty { color: var(--muted); text-align: center; padding: 8px 0; }
|
||||
|
||||
/* ---------- 小屏适配(笔记本投屏也常见) ---------- */
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.scr-main { grid-template-columns: 1fr 1fr; }
|
||||
.scr-kpis .kpi b { font-size: 24px; }
|
||||
.top-item { grid-template-columns: 20px 48px minmax(0, 1fr) auto 48px; }
|
||||
.top-item .top-pkg { display: none; }
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
body { overflow: auto; }
|
||||
.scr { height: auto; }
|
||||
.scr-main, .scr-bottom { grid-template-columns: 1fr; }
|
||||
.heat-cell { min-height: 34px; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* { animation: none !important; transition: none !important; }
|
||||
.scr-tabs, .scr-links { display: none; }
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* 大屏:时钟 + 全屏快捷键 */
|
||||
/* 大屏:时钟 + 全屏 + 主题 + 日历悬停明细 */
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
@@ -26,4 +26,107 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* ---------- 主题切换 ---------- */
|
||||
var THEME_KEY = 'daili_theme';
|
||||
function effectiveTheme() {
|
||||
var attr = document.documentElement.getAttribute('data-theme');
|
||||
if (attr === 'light' || attr === 'dark') return attr;
|
||||
return window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';
|
||||
}
|
||||
document.querySelectorAll('[data-theme-toggle]').forEach(function (btn) {
|
||||
btn.addEventListener('click', function () {
|
||||
var next = effectiveTheme() === 'dark' ? 'light' : 'dark';
|
||||
document.documentElement.setAttribute('data-theme', next);
|
||||
document.cookie = THEME_KEY + '=' + next + '; path=/; max-age=31536000; SameSite=Lax';
|
||||
});
|
||||
});
|
||||
|
||||
/* ---------- 日历格子悬停明细 ---------- */
|
||||
var root = document.querySelector('.scr');
|
||||
var pop = document.getElementById('day-pop');
|
||||
if (!root || !pop) return;
|
||||
|
||||
var api = root.getAttribute('data-api') || '/api/screen/day';
|
||||
var pkg = root.getAttribute('data-pkg') || '0';
|
||||
var cache = {};
|
||||
var hideTimer = null;
|
||||
|
||||
function esc(s) {
|
||||
return String(s == null ? '' : s).replace(/[&<>"']/g, function (c) {
|
||||
return { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c];
|
||||
});
|
||||
}
|
||||
|
||||
function place(cell) {
|
||||
var r = cell.getBoundingClientRect();
|
||||
var w = 340, h = Math.min(360, pop.offsetHeight || 240);
|
||||
var left = r.right + 8;
|
||||
if (left + w > window.innerWidth - 8) left = Math.max(8, r.left - w - 8);
|
||||
var top = r.top + r.height / 2 - h / 2;
|
||||
top = Math.max(8, Math.min(top, window.innerHeight - h - 8));
|
||||
pop.style.left = left + 'px';
|
||||
pop.style.top = top + 'px';
|
||||
}
|
||||
|
||||
function render(data, cell) {
|
||||
if (!data) {
|
||||
pop.innerHTML = '<div class="pop-empty">读取失败</div>';
|
||||
return;
|
||||
}
|
||||
var d = new Date(data.date + 'T00:00:00');
|
||||
var label = data.date + ' 周' + '日一二三四五六'.charAt(d.getDay());
|
||||
var html = '<h4>' + esc(label) + '<small>' + data.total + ' 单 · 已完成 ' + data.done +
|
||||
(data.urgent ? ' · <span style="color:var(--danger)">加急 ' + data.urgent + '</span>' : '') + '</small></h4>';
|
||||
if (!data.items || !data.items.length) {
|
||||
html += '<div class="pop-empty">这天没有排单</div>';
|
||||
} else {
|
||||
html += '<ul>';
|
||||
data.items.forEach(function (it) {
|
||||
html += '<li class="' + (it.urgent ? 'urgent ' : '') + (it.done ? 'done' : '') + '">' +
|
||||
'<span class="pop-tail">' + esc(it.tail) + '</span>' +
|
||||
'<span class="pop-name">' + esc(it.name) + ' · ' + esc(it.pkg) + '</span>' +
|
||||
'<span class="pop-rem">' + (it.urgent ? '加急 · ' : '') + esc(it.remain) + '</span>' +
|
||||
'</li>';
|
||||
});
|
||||
html += '</ul>';
|
||||
if (data.more > 0) html += '<div class="pop-more">另有 ' + data.more + ' 单未显示</div>';
|
||||
}
|
||||
pop.innerHTML = html;
|
||||
pop.hidden = false;
|
||||
place(cell);
|
||||
}
|
||||
|
||||
function show(cell) {
|
||||
clearTimeout(hideTimer);
|
||||
var date = cell.getAttribute('data-date');
|
||||
var key = date + '|' + pkg;
|
||||
pop.hidden = false;
|
||||
pop.innerHTML = '<div class="pop-empty">载入中…</div>';
|
||||
place(cell);
|
||||
if (cache[key]) {
|
||||
render(cache[key], cell);
|
||||
return;
|
||||
}
|
||||
fetch(api + '?date=' + encodeURIComponent(date) + '&pkg=' + encodeURIComponent(pkg), {
|
||||
headers: { 'Accept': 'application/json' }
|
||||
}).then(function (r) {
|
||||
if (!r.ok) throw new Error('bad');
|
||||
return r.json();
|
||||
}).then(function (data) {
|
||||
cache[key] = data;
|
||||
render(data, cell);
|
||||
}).catch(function () {
|
||||
pop.innerHTML = '<div class="pop-empty">读取失败</div>';
|
||||
});
|
||||
}
|
||||
|
||||
function hideSoon() {
|
||||
hideTimer = setTimeout(function () { pop.hidden = true; }, 160);
|
||||
}
|
||||
|
||||
document.querySelectorAll('.heat-cell[data-date]').forEach(function (cell) {
|
||||
cell.addEventListener('mouseenter', function () { show(cell); });
|
||||
cell.addEventListener('mouseleave', hideSoon);
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user