From fa980e74e0a2910c736d15efde481c2612df1838 Mon Sep 17 00:00:00 2001 From: zikai <1621362626@qq.com> Date: Wed, 22 Jul 2026 02:44:03 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BD=E6=9D=BF=E9=A1=B5=E5=BC=BA?= =?UTF-8?q?=E5=88=B6=E6=B5=85=E8=89=B2=EF=BC=8C=E9=81=BF=E5=85=8D=E8=A2=AB?= =?UTF-8?q?=20iframe=20=E5=B5=8C=E5=85=A5=E5=88=B0=E6=B5=85=E8=89=B2?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E6=97=B6=E5=87=BA=E7=8E=B0=E9=BB=91=E8=89=B2?= =?UTF-8?q?=E8=83=8C=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - whiteboard.html 加 - whiteboard.css 在 :root 钉死 color-scheme: light 与浅色变量, 覆盖 common.css 的 prefers-color-scheme: dark --- static/whiteboard.css | 14 +++++++++++++- static/whiteboard.html | 3 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/static/whiteboard.css b/static/whiteboard.css index 20830c3..1b8a572 100644 --- a/static/whiteboard.css +++ b/static/whiteboard.css @@ -1,5 +1,17 @@ /* 记事本页专属样式:全屏 textarea、悬浮工具栏、移动端适配。 */ -:root { --bar-h: 52px; } +/* 强制浅色:本页常被 iframe 嵌入浅色站点,覆盖 common.css 的 + color-scheme: light dark 与 prefers-color-scheme: dark,避免深色背景。 */ +:root { + --bar-h: 52px; + color-scheme: light; + --bg: #f6f7f9; + --surface: #ffffff; + --surface-2: rgba(0, 0, 0, 0.02); + --border: #e0e3e7; + --text: #1a1a1a; + --text-dim: #6b7280; + --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06); +} body { overflow: hidden; background: var(--bg); } .wb-app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; } .wb-bar { diff --git a/static/whiteboard.html b/static/whiteboard.html index dfb95c0..7c0ca95 100644 --- a/static/whiteboard.html +++ b/static/whiteboard.html @@ -4,6 +4,9 @@ + + 记事本 - zikai