feat(tokens): M4-B1 壳层收敛 —— 标签唯一一套 + 尺度接口落地
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 44s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 44s
- 标签:5 套变体 → 1 套。其中 3 套是死代码(iwb-drawer-tab / iwb-rail-tab / iwb-res-tab 在 dist/app.js 里出现 0 次:抽屉已被停靠栏取代、右竖栏只剩手势 排除列表里的名字、资源中心的 e2e 点的是不存在的元素),直接删除;活着的 那一套收敛激活态为唯一一条:品牌 14% 底 + brand-text + 600(暗色 22%), 亮/暗与底色的差分别是 17 / 16 级 - 新增可迁移的尺度接口(B1 的前提:原 SCALE 里的 @deprecated 注释指向 --iwb-space-* / --iwb-radius-* / --iwb-font-*,那些名字当时并不存在): 间距 13 档(像素命名)、圆角 6 档、字号 6 档、组件尺寸 3 个 (--iwb-chrome-h / --iwb-tab-h / --iwb-tab-radius) - 36px 收口 6 处到 --iwb-chrome-h:标签条高度 + dockarea / home-panel / landing-panel / canvas-topbar / wsrail 的让位 top(原来各写一遍,改高度必漏) - dock / toolbar / statusbar 14 处圆角与字号等值换 token;阴影与 z-index 留 B2 - 4 处单测的「.iwb-res-tabs 必须存在」断言改成「不得复活」——其中两处注释 早就写着「已下线,钉点移除」,断言却还在钉它存在,死 CSS 才一直不敢删 - 12 张视觉基线 10 变 2 不变,diff 只在顶部激活标签与设置侧栏选中项; 节点/控件/工具栏零 diff(D10 未被带坏);verify:ci 全绿
This commit is contained in:
1 parent
846a59b4c2
commit
015e427627
22 files changed
+251
-85
No files matched your search
@@ -172,10 +172,10 @@ button { font-family: inherit; }
|
||||
.iwb-out-img { width: 100%; border-radius: 8px; border: 1px solid var(--iwb-border); }
|
||||
.iwb-out-meta { font-size: 10px; color: var(--iwb-text2); margin-top: 3px; }
|
||||
.iwb-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
|
||||
.iwb-toolbar { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; flex-wrap: wrap; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; padding: 8px 10px; z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
|
||||
.iwb-toolbar-title { font-weight: 700; font-size: 13px; margin-right: 2px; }
|
||||
.iwb-toolbar { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; flex-wrap: wrap; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-panel); padding: 8px 10px; z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
|
||||
.iwb-toolbar-title { font-weight: 700; font-size: var(--iwb-font-md); margin-right: 2px; }
|
||||
.iwb-toolbar-sep { width: 1px; height: 18px; background: var(--iwb-border2); margin: 0 2px; }
|
||||
.iwb-statusbar { position: absolute; top: 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 60px); justify-content: flex-end; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 10px; padding: 6px 12px; z-index: 10; font-size: 11px; color: var(--iwb-text2); box-shadow: 0 4px 16px rgba(0,0,0,0.12); transition: right 0.15s; }
|
||||
.iwb-statusbar { position: absolute; top: 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 60px); justify-content: flex-end; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-card); padding: 6px 12px; z-index: 10; font-size: var(--iwb-font-xs); color: var(--iwb-text2); box-shadow: 0 4px 16px rgba(0,0,0,0.12); transition: right 0.15s; }
|
||||
.iwb-status-err { color: var(--iwb-err); }
|
||||
.iwb-status-ok { color: var(--iwb-ok); }
|
||||
/* 生成中状态:直接附着在顶部计时/状态背景,确保不依赖画布节点可见性 */
|
||||
@@ -356,10 +356,6 @@ button { font-family: inherit; }
|
||||
.iwb-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--iwb-text); }
|
||||
.iwb-hdrbox { min-height: 54px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; resize: vertical; }
|
||||
|
||||
/* ---- v2 P3:4-Tab 设置 ---- */
|
||||
.iwb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--iwb-border); padding: 8px 12px 0; }
|
||||
.iwb-tab { border-bottom: none; }
|
||||
.iwb-tab-active { border-color: var(--iwb-border); }
|
||||
.iwb-addrrow { gap: 6px; margin-bottom: 6px; }
|
||||
.iwb-speed { border: 1px solid var(--iwb-border); border-radius: 8px; padding: 6px 8px; margin: 6px 0; background: var(--iwb-layer); }
|
||||
.iwb-speed-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 11px; }
|
||||
@@ -424,7 +420,6 @@ button { font-family: inherit; }
|
||||
.iwb-settings-modal .iwb-modal-head { padding: 14px 20px; }
|
||||
.iwb-settings-modal .iwb-modal-body { font-size: 14px; gap: 16px; padding: 18px 22px; }
|
||||
.iwb-settings-modal .iwb-toolbar-title { font-size: 16px; }
|
||||
.iwb-settings-modal .iwb-tabs { padding: 8px 20px 0; }
|
||||
.iwb-settings-modal .iwb-tab { padding: 8px 16px; font-size: 13px; }
|
||||
.iwb-settings-modal .iwb-input { font-size: 14px; padding: 7px 11px; background: var(--iwb-panel); border-color: var(--iwb-border); }
|
||||
/* 设置弹窗固定高度:切换 Tab 不改变窗口大小;内容区内部滚动 */
|
||||
@@ -470,7 +465,7 @@ button { font-family: inherit; }
|
||||
@keyframes iwb-fadein { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
|
||||
|
||||
/* ---- v3:左侧多工作台 ---- */
|
||||
.iwb-wsrail { position: absolute; left: 0; top: 36px; bottom: 0; width: 52px; background: var(--iwb-panel); border-right: 1px solid var(--iwb-border); z-index: 25; display: flex; flex-direction: column; align-items: stretch; transition: width 0.15s; }
|
||||
.iwb-wsrail { position: absolute; left: 0; top: var(--iwb-chrome-h); bottom: 0; width: 52px; background: var(--iwb-panel); border-right: 1px solid var(--iwb-border); z-index: 25; display: flex; flex-direction: column; align-items: stretch; transition: width 0.15s; }
|
||||
.iwb-wsrail-title { align-items: center; gap: 4px; padding: 14px 12px; font-weight: 800; font-size: 18px; color: var(--iwb-text); border-bottom: 1px solid var(--iwb-border); cursor: default; user-select: none; white-space: nowrap; flex: 0 0 auto; justify-content: center; }
|
||||
.iwb-wsrail-title:hover { background: var(--iwb-hover); }
|
||||
/* 展开态标题行右侧 ⋯ 三点菜单(Portal 挂 body + fixed 定位:右侧展开不切割、层级高于画布) */
|
||||
@@ -533,10 +528,6 @@ button { font-family: inherit; }
|
||||
|
||||
/* ---- 右侧统一面板抽屉(提示词库 / 节点组 / 图片历史) ---- */
|
||||
.iwb-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 330px; background: var(--iwb-panel); border-left: 1px solid var(--iwb-border); z-index: 22; display: flex; flex-direction: column; }
|
||||
.iwb-drawer-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; }
|
||||
.iwb-drawer-tab { background: none; border: 1px solid transparent; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--iwb-text2); cursor: pointer; white-space: nowrap; }
|
||||
.iwb-drawer-tab:hover { color: var(--iwb-text); }
|
||||
.iwb-drawer-tab-active { background: var(--iwb-layer); border-color: var(--iwb-border); color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; }
|
||||
.iwb-drawer-body { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
|
||||
.iwb-drawer-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 21; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-right: none; border-radius: 8px 0 0 8px; padding: 12px 5px; cursor: pointer; font-size: 12px; color: var(--iwb-text2); box-shadow: -4px 0 12px rgba(0,0,0,0.1); letter-spacing: 2px; }
|
||||
.iwb-drawer-toggle:hover { color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||||
@@ -569,7 +560,7 @@ button { font-family: inherit; }
|
||||
.iwb-history-manage-tools { display: inline-flex; align-items: center; gap: 4px; }
|
||||
|
||||
/* 工具栏放大 */
|
||||
.iwb-toolbar-bottom { position: static; padding: 10px 14px; gap: 8px; width: auto; max-width: 100%; pointer-events: auto; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
|
||||
.iwb-toolbar-bottom { position: static; padding: 10px 14px; gap: 8px; width: auto; max-width: 100%; pointer-events: auto; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-panel); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
|
||||
.iwb-toolbar-bottom .iwb-btn { padding: 7px 10px; background: transparent !important; border: none !important; color: var(--iwb-text2); opacity: 0.75; transition: opacity 0.12s, color 0.12s; }
|
||||
.iwb-toolbar-bottom .iwb-btn:hover { opacity: 1; color: var(--iwb-text); }
|
||||
.iwb-toolbar-bottom .iwb-btn:active { opacity: 1; color: var(--iwb-text); }
|
||||
@@ -579,7 +570,7 @@ button { font-family: inherit; }
|
||||
**从 fork 快照起就没有任何 JS 生产者**(git log -S 可查),是上游遗留的死选择器,
|
||||
所以不是「按钮高亮失效的 bug」,而是「永不生效的规则」。要真做工具栏选中态请显式加类并走 token。 */
|
||||
.iwb-toolbar-bottom .iwb-ic { width: 18px; height: 18px; }
|
||||
.iwb-toolbar-bottom .iwb-tgroup { padding: 4px 8px; font-size: 11px; background: transparent !important; color: var(--iwb-text2); }
|
||||
.iwb-toolbar-bottom .iwb-tgroup { padding: 4px 8px; font-size: var(--iwb-font-xs); background: transparent !important; color: var(--iwb-text2); }
|
||||
|
||||
/* ---- 统一悬停说明(data-tip 自定义 tooltip) ---- */
|
||||
[data-tip] { position: relative; }
|
||||
@@ -683,7 +674,6 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
.iwb-num { width: 76px; min-width: 76px; flex: none; }
|
||||
.iwb-keyname { flex: 0 0 110px; min-width: 110px; }
|
||||
.iwb-addr-tag { flex: 0 0 26px; text-align: right; }
|
||||
.iwb-drawer-tab { display: inline-flex; align-items: center; gap: 5px; }
|
||||
.iwb-wsrail-title-text { display: inline-flex; align-items: center; gap: 6px; }
|
||||
.iwb-wsrail-title .iwb-ic { width: 20px; height: 20px; }
|
||||
.iwb-wsrail-label { display: flex; align-items: center; gap: 5px; }
|
||||
@@ -700,11 +690,6 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
|
||||
/* ---- 右侧竖向面板栏(与左侧栏统一:无阴影) ---- */
|
||||
.iwb-rightrail { position: absolute; right: 0; top: 0; bottom: 0; width: 48px; background: transparent; z-index: 24; display: flex; flex-direction: column; align-items: center; padding: 12px 4px; gap: 8px; }
|
||||
.iwb-rail-tab { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 40px; padding: 9px 2px; border-radius: 8px; background: var(--iwb-layer); border: 1px solid var(--iwb-border); color: var(--iwb-text2); font-size: 12px; cursor: pointer; }
|
||||
.iwb-rail-tab:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||||
.iwb-rail-tab-active { border-color: var(--iwb-brand); background: color-mix(in srgb, var(--iwb-brand) 14%, transparent); color: var(--iwb-text); font-weight: 700; }
|
||||
.iwb-rail-tab .iwb-ic { width: 16px; height: 16px; }
|
||||
.iwb-rail-tab .iwb-btn-text { writing-mode: vertical-rl; font-size: 11px; letter-spacing: 2px; }
|
||||
.iwb-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; }
|
||||
.iwb-drawer-toggle { display: none; }
|
||||
|
||||
@@ -1172,14 +1157,18 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
.iwb-canvas-meta .iwb-status-err { color: var(--iwb-err); }
|
||||
.iwb-canvas-topbar .iwb-top-nav-icon { width: 30px; height: 30px; }
|
||||
/* S12:顶部标签条(浏览器式多画布标签)——UX_SPEC §4 单框扁平 token(容器透明、active 品牌色扁平高亮、只用 CSS 变量) */
|
||||
.iwb-tabstrip { position: absolute; left: 0; right: 0; top: 0; height: 36px; z-index: 36; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--iwb-chrome); box-sizing: border-box; border-bottom: 1px solid var(--iwb-border); overflow-x: auto; scrollbar-width: none; pointer-events: none; }
|
||||
.iwb-tabstrip { position: absolute; left: 0; right: 0; top: 0; height: var(--iwb-chrome-h); z-index: 36; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--iwb-chrome); box-sizing: border-box; border-bottom: 1px solid var(--iwb-border); overflow-x: auto; scrollbar-width: none; pointer-events: none; }
|
||||
.iwb-tabstrip .iwb-tab { pointer-events: auto; }
|
||||
.iwb-tabstrip::-webkit-scrollbar { display: none; }
|
||||
.iwb-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--iwb-text2); font-size: 12px; cursor: pointer; white-space: nowrap; max-width: 190px; transition: background .15s ease, color .15s ease; }
|
||||
.iwb-tab:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
|
||||
.iwb-tab-active { background: color-mix(in srgb, var(--iwb-tint) 9%, transparent); color: var(--iwb-text); font-weight: 600; }
|
||||
/* 暗色下标签条本身是中灰:用「近黑 9%」叠上去几乎看不出选中 ⇒ 改为**提亮**一档(2026-11-01 用户反馈) */
|
||||
.theme-dark .iwb-tabstrip .iwb-tab-active { background: var(--iwb-hover); }
|
||||
/* 标签:**全项目只有这一套**(v3.27.1 收敛)。高度/圆角/字号/内距走 token,改一档全局一致。
|
||||
* 激活态只有一条规则:品牌淡底 + 品牌字 + 600。此前 5 套变体里的抽屉 / 右竖栏 / 资源中心
|
||||
* 三套已被新 UI 取代且无任何生产者(dist 里搜不到类名),规则连同父容器一并删除;
|
||||
* 设置侧栏原先单独写了一份激活态,现在直接继承这一条。 */
|
||||
.iwb-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: var(--iwb-tab-h); padding: 0 var(--iwb-space-12); border: 0; border-radius: var(--iwb-tab-radius); background: transparent; color: var(--iwb-text2); font-size: var(--iwb-font-sm); cursor: pointer; white-space: nowrap; max-width: 190px; transition: background .15s ease, color .15s ease; }
|
||||
.iwb-tab:hover { background: var(--iwb-hover); color: var(--iwb-text); }
|
||||
.iwb-tab-active { background: color-mix(in srgb, var(--iwb-brand) 14%, transparent); color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 600; }
|
||||
/* 暗色下品牌 14% 叠在 #121212 上几乎看不出 ⇒ 加深到 22%;文字走 brand-text 保证对比度 */
|
||||
.theme-dark .iwb-tab-active { background: color-mix(in srgb, var(--iwb-brand) 22%, transparent); }
|
||||
.iwb-tab:focus-visible { outline: var(--iwb-focus-ring); outline-offset: 1px; }
|
||||
/* 首页激活胶囊走灰阶(首页整体灰色系;画布标签仍用品牌色) */
|
||||
.iwb-tab-home.iwb-tab-active { background: transparent; color: var(--iwb-text); }
|
||||
@@ -1190,9 +1179,9 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
/* 标签条完成态圆点:生成完成=绿、失败/中断=红(运行中为默认品牌色) */
|
||||
.iwb-tab-dot-ok { background: var(--iwb-ok); }
|
||||
.iwb-tab-dot-err { background: var(--iwb-err); }
|
||||
.iwb-tab-new { color: var(--iwb-text2); font-weight: 700; padding: 0 10px; font-size: 15px; line-height: 1; }
|
||||
.iwb-tab-new { color: var(--iwb-text2); font-weight: 700; padding: 0 var(--iwb-space-8); font-size: var(--iwb-font-lg); line-height: 1; }
|
||||
.iwb-tab-new:hover { background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||||
.iwb-tab-close { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 31px; /* 与标签名留约 3 个字的间距(gap 5px + 31px ≈ 36px) */ border: 0; border-radius: 4px; background: transparent; color: var(--iwb-text2); cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0; }
|
||||
.iwb-tab-close { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 31px; /* 与标签名留约 3 个字的间距(gap 5px + 31px ≈ 36px) */ border: 0; border-radius: var(--iwb-radius-chip); background: transparent; color: var(--iwb-text2); cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0; }
|
||||
.iwb-tab:hover .iwb-tab-close { opacity: 1; }
|
||||
.iwb-tab-close:hover { background: color-mix(in srgb, var(--iwb-text2) 16%, transparent); color: var(--iwb-text); }
|
||||
.iwb-tab-close .iwb-ic { width: 12px; height: 12px; }
|
||||
@@ -1214,13 +1203,6 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
/* 顶栏资源按钮激活态 */
|
||||
.iwb-top-nav-icon-active { background: var(--iwb-layer2); color: var(--iwb-text); }
|
||||
|
||||
/* 资源中心(全屏版三 tab)—— 单框扁平设计:容器透明无边框,active 用品牌色扁平高亮(统一设计语言) */
|
||||
.iwb-res-tabs { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; flex: 0 0 auto; }
|
||||
.iwb-res-tab { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--iwb-text2); cursor: pointer; font-size: 12px; white-space: nowrap; transition: background .15s, color .15s; }
|
||||
.iwb-res-tab:hover { color: var(--iwb-text); background: color-mix(in srgb, var(--iwb-text2) 10%, transparent); }
|
||||
.iwb-res-tab-active { color: var(--iwb-text); background: color-mix(in srgb, var(--iwb-panel) 55%, transparent); font-weight: 600; }
|
||||
.iwb-res-tab .iwb-ic { width: 14px; height: 14px; }
|
||||
.iwb-fullpanel .iwb-res-tabs { margin-left: 12px; }
|
||||
/* 资源中心非提示词库 tab 内容撑满容器 */
|
||||
.iwb-full-main > .iwb-groups-embedded, .iwb-full-main > .iwb-history-embedded { width: 100%; flex: 1 1 auto; }
|
||||
|
||||
@@ -1678,8 +1660,8 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
}
|
||||
|
||||
/* S13:统一标签栏——首页/landing 面板下移 36px 让出常驻标签条 */
|
||||
.iwb-overlay .iwb-home-panel { top: 36px; }
|
||||
.iwb-overlay .iwb-landing-panel { top: 36px; }
|
||||
.iwb-overlay .iwb-home-panel { top: var(--iwb-chrome-h); }
|
||||
.iwb-overlay .iwb-landing-panel { top: var(--iwb-chrome-h); }
|
||||
|
||||
.iwb-plugin-row { padding: 8px 0; border-bottom: 1px solid var(--iwb-border); }
|
||||
.iwb-plugin-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--iwb-border); border-radius: 999px; font-size: 11px; color: var(--iwb-text2); background: var(--iwb-layer2); }
|
||||
@@ -1689,7 +1671,6 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
.iwb-set-nav { width: 232px; flex: 0 0 232px; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; overflow: auto; border-right: 1px solid var(--iwb-border); background: var(--iwb-layer); }
|
||||
.iwb-set-nav-group { font-size: 12px; font-weight: 600; color: var(--iwb-text2); margin: 10px 8px 4px; }
|
||||
.iwb-set-nav-item { width: 100%; height: auto; padding: 7px 9px; justify-content: flex-start; text-align: left; gap: 8px; }
|
||||
.iwb-set-nav-item.iwb-tab-active { background: color-mix(in srgb, var(--iwb-brand) 16%, transparent); color: var(--iwb-text); font-weight: 600; }
|
||||
.iwb-set-page-title { font-size: 16px; font-weight: 700; margin: 2px 0 4px; }
|
||||
.iwb-set-page-head { display: flex; align-items: flex-start; gap: 10px; }
|
||||
.iwb-set-page-headtext { min-width: 0; flex: 1 1 auto; }
|
||||
@@ -2053,7 +2034,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
/* ===== 左右停靠栏(v3.25.35,Obsidian 式) =====
|
||||
* 画布始终 inset:0 不动;只有工具栏/小地图/提示条按 --iwb-dock-l/--iwb-dock-r 让位。
|
||||
*/
|
||||
.iwb-dockarea { position: absolute; left: 0; right: 0; bottom: 0; top: 36px; z-index: 24; pointer-events: none; }
|
||||
.iwb-dockarea { position: absolute; left: 0; right: 0; bottom: 0; top: var(--iwb-chrome-h); z-index: 24; pointer-events: none; }
|
||||
/* 左右栏只在画布视图出现:首页/落地页必须整块隐藏(网页面板是原生子 webview,盖在 DOM 之上,
|
||||
只有让它 rect 归零被 park,才不会把首页糊住) */
|
||||
.iwb-overlay.iwb-view-home .iwb-dockarea,
|
||||
@@ -2073,7 +2054,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
.iwb-dock.right .iwb-dock-head { justify-content: flex-start; }
|
||||
.iwb-dock-btn {
|
||||
width: 30px; height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
|
||||
border: 0; border-radius: 7px; background: transparent; color: var(--iwb-text2); cursor: pointer;
|
||||
border: 0; border-radius: var(--iwb-tab-radius); background: transparent; color: var(--iwb-text2); cursor: pointer;
|
||||
position: relative; padding: 0;
|
||||
}
|
||||
.iwb-dock-btn:hover { background: color-mix(in srgb, var(--iwb-tint) 4%, transparent); color: var(--iwb-text); }
|
||||
@@ -2084,7 +2065,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
.iwb-dock-body { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; overscroll-behavior: contain; }
|
||||
.iwb-dock-body > * { min-height: 0; }
|
||||
.iwb-dock-plugin { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
|
||||
.iwb-dock-empty { padding: 16px; font-size: 12px; color: var(--iwb-text2); }
|
||||
.iwb-dock-empty { padding: var(--iwb-space-16); font-size: var(--iwb-font-sm); color: var(--iwb-text2); }
|
||||
.iwb-dock-resize { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 3; }
|
||||
.iwb-dock.left .iwb-dock-resize { right: -4px; }
|
||||
.iwb-dock.right .iwb-dock-resize { left: -4px; }
|
||||
@@ -2100,12 +2081,12 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
.iwb-dock-drop { position: absolute; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--iwb-brand); pointer-events: none; }
|
||||
.iwb-dock-ghost {
|
||||
position: fixed; z-index: 1000; pointer-events: none; display: inline-flex; align-items: center; gap: 6px;
|
||||
height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12px;
|
||||
height: 26px; padding: 0 var(--iwb-space-8); border-radius: var(--iwb-tab-radius); font-size: var(--iwb-font-sm);
|
||||
background: var(--iwb-panel); color: var(--iwb-text); border: 1px solid var(--iwb-border2);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,.18); white-space: nowrap;
|
||||
}
|
||||
/* 顶栏与标签条随左右栏内缩(标题跟着缩进;画布仍不动) */
|
||||
.iwb-canvas-topbar { padding-left: 10px; padding-right: 14px; box-shadow: none !important; background: transparent !important; height: 56px; border-bottom: 0 !important; padding: 0 14px; gap: 8px; top: 36px; pointer-events: none; left: var(--iwb-dock-l, 0px) !important; right: var(--iwb-dock-r, 0px) !important; }
|
||||
.iwb-canvas-topbar { padding-left: 10px; padding-right: 14px; box-shadow: none !important; background: transparent !important; height: 56px; border-bottom: 0 !important; padding: 0 14px; gap: 8px; top: var(--iwb-chrome-h); pointer-events: none; left: var(--iwb-dock-l, 0px) !important; right: var(--iwb-dock-r, 0px) !important; }
|
||||
.iwb-tabstrip { left: 0 !important; right: 0 !important; }
|
||||
.iwb-tab-spacer { flex: 1 1 auto; }
|
||||
.iwb-tab-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; pointer-events: auto; }
|
||||
@@ -2133,7 +2114,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
|
||||
/* ── 一级导航(v3.25.59):最左 52px 纯图标栏 ─────────────────────────── */
|
||||
.iwb-navrail {
|
||||
position: absolute; left: 0; top: 36px; bottom: 0; width: 52px; z-index: 27;
|
||||
position: absolute; left: 0; top: var(--iwb-chrome-h); bottom: 0; width: 52px; z-index: 27;
|
||||
display: flex; flex-direction: column; align-items: center; gap: 6px;
|
||||
padding: 10px 0 12px; background: var(--iwb-home-bg);
|
||||
border-right: 1px solid var(--iwb-border); box-sizing: border-box;
|
||||
|
||||
Reference in new issue
Block a user