缺陷 1(复制落点):Ctrl+D 复制节点时 copyOffset 用整窗画布尺寸算可放范围,
未扣停靠栏 ⇒ 允许把副本放到屏幕左侧。实测原节点 x=398,副本落在 x=78(整块被 318px 左栏盖住)。
- copyOffset 的 bounds 改用 canvasSafeInsets(与 doFit 同口径)
- findSpot 的浮层禁区补 .iwb-dock(新建/粘贴节点同一类问题)
缺陷 2(暗色可读性):暗色主题的节点文字已是浅色 #e3e3e3,但自定义底色的暗色令牌仍是
中灰(yellow #c7bf9a)⇒ 实测对比度 1.4(要求 ≥7),文字几乎不可读。
- 新增 .theme-dark .iwb-node[data-bg] { --iwb-node-text: #1d1d1f }(实测对比度 ≈9.4)
- 修正 style.css 里「暗色=中灰底+近黑字」的过时注释
顺带加固(同一类:启动时停靠栏还没挂载):
- ui-dock 写入 --iwb-dock-l/-r 后广播 iwb:dock-insets
- Workbench 监听:仅当视口仍是「自动适应」的产物(用户没缩放/平移过)才按新占位重新适应
⇒ 修掉「首帧算错后不纠正」,且不会覆盖用户早期的缩放操作
棘轮:app.js 8315→8326、Workbench 2169→2180(+11,见 commit 说明);文档数字已 sync。
验证:verify:ci 全绿;视觉基线 24/24 无 diff。
2509 lines
220 KiB
CSS
2509 lines
220 KiB
CSS
/* 生图工作台 Image Workbench — 独立版样式(亮/暗主题手动切换,设置 → 通用 → 主题)
|
||
* 亮色配色:节点背景灰、内容区(输入框/标题栏/参数区)白,保证文字清晰阅读
|
||
*
|
||
* ⚠ 设计 token(颜色 / 间距 / 圆角 / 字号 / 阴影 / 动效)**不在这里**:
|
||
* 它们由 src/theme-tokens.js 生成到 src/design-tokens.css,构建时内联在本文件前面。
|
||
* 本文件只写组件规则:颜色/间距一律引用 token 变量,不要再写死色值(M5 起由 token-lint 拦)。
|
||
*/
|
||
|
||
* { box-sizing: border-box; }
|
||
html, body { margin: 0; height: 100%; }
|
||
body {
|
||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
|
||
background: var(--iwb-bg);
|
||
color: var(--iwb-text);
|
||
font-size: 14px;
|
||
}
|
||
/* 表单控件不继承 body 字体:Windows 下 textarea/input 默认回落宋体(SimSun)→ 强制继承黑体栈 */
|
||
input, textarea, select, button { font-family: inherit; }
|
||
button { font-family: inherit; }
|
||
|
||
.iwb-overlay { position: fixed; inset: 0; z-index: 100; background: var(--iwb-bg); }
|
||
/* Tab 循环界面模式:0=纯画布(隐藏左右栏 + 底部工具栏) */
|
||
.iwb-canvas { position: absolute; inset: 0; overflow: hidden; cursor: default; user-select: none; background: var(--iwb-canvas-bg); }
|
||
/* 抓手工具(H):整块画布给「可抓」光标,按下拖动时变抓紧 */
|
||
.iwb-canvas.iwb-tool-pan { cursor: grab; }
|
||
.iwb-canvas.iwb-tool-pan:active { cursor: grabbing; }
|
||
.iwb-grid { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; pointer-events: none; will-change: transform; background-repeat: repeat; background-image: radial-gradient(circle, var(--iwb-grid-dot) var(--iwb-grid-size), transparent calc(var(--iwb-grid-size) + 0.4px)); background-size: var(--iwb-grid-gap) var(--iwb-grid-gap); background-repeat: repeat; opacity: calc(0.85 * var(--iwb-grid-on)); }
|
||
/* 亮色主题:网格点更浅,降低与背景对比度(暗色主题不受影响) */
|
||
|
||
.iwb-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
|
||
.iwb-edges { position: absolute; left: 0; top: 0; pointer-events: none; }
|
||
.iwb-edge-hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
|
||
.iwb-edge-hit:hover { stroke: color-mix(in srgb, var(--iwb-brand) 16%, transparent); }
|
||
.iwb-edge-hit:hover + .iwb-edge { stroke-width: calc(var(--iwb-edge-w) + 0.6px); stroke: var(--iwb-edge-hot); }
|
||
.iwb-edge { fill: none; stroke: var(--iwb-edge); stroke-width: var(--iwb-edge-w); stroke-dasharray: var(--iwb-edge-dash); pointer-events: stroke; cursor: pointer; }
|
||
.iwb-edge:hover { stroke: var(--iwb-edge-hot); stroke-dasharray: none; }
|
||
.iwb-edge-sel { stroke: var(--iwb-warn); stroke-width: 2.4; stroke-dasharray: none; }
|
||
.iwb-edge-hot { stroke: var(--iwb-edge-hot); stroke-width: 2.4; stroke-dasharray: none; }
|
||
.iwb-edge-upstream { stroke: var(--iwb-edge-hot); stroke-width: 1.2; opacity: 1; stroke-dasharray: none; }
|
||
.iwb-edge-downstream { stroke: var(--iwb-edge-hot); stroke-width: 1.2; opacity: 1; stroke-dasharray: none; }
|
||
.iwb-edge-detach { stroke: var(--iwb-err); stroke-width: 2.4; stroke-dasharray: 6 4; }
|
||
.iwb-edge-temp { stroke: var(--iwb-edge-hot); stroke-dasharray: 6 4; pointer-events: none; }
|
||
.iwb-node { position: absolute; --iwb-text: var(--iwb-node-text); --iwb-text2: var(--iwb-node-text2); background: var(--iwb-node-bg); border: 1px solid var(--iwb-border); border-top: 1px solid var(--iwb-border); border-radius: var(--iwb-node-radius); box-shadow: none; font-size: var(--iwb-font-sm); color: var(--iwb-text); display: flex; flex-direction: column; cursor: move; contain: layout style; }
|
||
.iwb-node-selected { border-color: var(--iwb-brand); box-shadow: 0 0 0 var(--iwb-node-sel-w) var(--iwb-brand), var(--iwb-elevation-2); }
|
||
.iwb-node:hover { z-index: 4; }
|
||
.iwb-node input, .iwb-node select, .iwb-node button { cursor: auto; }
|
||
.iwb-node .iwb-textarea:read-only { cursor: move; }
|
||
.iwb-node .iwb-textarea:not(:read-only) { cursor: text; }
|
||
.iwb-dragging .iwb-node:hover { z-index: auto; }
|
||
.iwb-dragging .iwb-node-dragging { z-index: 20 !important; }
|
||
.iwb-dragging .iwb-node:not(.iwb-node-dragging) .iwb-port:hover { box-shadow: none; }
|
||
/* 节点标题带:节点外框上方、左对齐节点左边(参考设计稿:小图标 + 标题文字,无重边框)。
|
||
bottom:100% 相对节点 padding box 顶部(上边框 2px),margin-bottom:8px → 净间隙 6px,标题带总高 28px(世界坐标)。
|
||
高度恒定是气泡抬升公式 NODE_HEAD_H/NODE_HEAD_FB_GAP 成立的前提,故 .iwb-node-title 必须单行省略。 */
|
||
.iwb-node-head { display: flex; position: absolute; left: 0; bottom: 100%; align-items: center; gap: var(--iwb-space-6); height: 22px; max-width: 190px; margin-bottom: var(--iwb-space-8); padding: 0 var(--iwb-space-6); cursor: move; background: transparent; border-radius: var(--iwb-radius-control); font-weight: 600; }
|
||
.iwb-node-head:hover { background: var(--iwb-field); }
|
||
/* 标题带画在画布上(透明底),所以不能吃节点/界面的文字色 —— 用画布专用色。
|
||
专用色对 --iwb-canvas-bg 按 6:1 派生,抵消 opacity .8 合成后的衰减;实测合成后 ≥4.5。 */
|
||
.iwb-node-headicon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--iwb-color-text-on-canvas, var(--iwb-text2)); opacity: .75; }
|
||
.iwb-node-headicon .iwb-ic { width: 13px; height: 13px; }
|
||
/* 标题统一灰色(不再按节点类型着色;类型由左侧图标区分) */
|
||
.iwb-node-title { font-size: var(--iwb-font-sm); color: var(--iwb-color-text-on-canvas, var(--iwb-text2)); opacity: 0.8; font-weight: 500; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .15s, font-weight .15s; }
|
||
.iwb-node-selected .iwb-node-title { opacity: 1; font-weight: 600; }
|
||
/* 头部操作按钮继续隐藏:其功能在气泡 / 右键菜单中已有,显示后会与气泡重复。 */
|
||
.iwb-node-head .iwb-node-headbtns { display: none; }
|
||
/* 选中时顶部浮动气泡操作条(复刻 infinite-canvas/opentu) */
|
||
/* --iwb-fb-k:气泡尺寸随视口缩放(见 app.js floatbarScale)。transform-origin 取贴边中点,
|
||
保证缩放后 bottom-center 仍精确落在 left/top 锚点上 → 位置公式无需随 k 改变。 */
|
||
.iwb-node-floatbar { position: absolute; z-index: 70; display: flex; align-items: center; gap: var(--iwb-space-2); padding: var(--iwb-space-4); border-radius: var(--iwb-radius-popover); background: var(--iwb-panel); border: 1px solid var(--iwb-border); box-shadow: var(--iwb-elevation-2); transform: translate(-50%, -100%) scale(var(--iwb-fb-k, 1)); transform-origin: 50% 100%; pointer-events: auto; left: 50%; top: -6px; }
|
||
/* 上方放不下时改挂节点下方(避免被 .iwb-canvas 的 overflow:hidden 裁掉):origin 改为上边中点 */
|
||
.iwb-node-floatbar.iwb-node-floatbar-below { transform: translate(-50%, 0) scale(var(--iwb-fb-k, 1)); transform-origin: 50% 0; }
|
||
.iwb-node-floatbar button { width: 30px; height: 28px; border: 0; border-radius: var(--iwb-radius-control); background: transparent; color: var(--iwb-text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
|
||
.iwb-node-floatbar label { width: 30px; height: 28px; border: 0; border-radius: var(--iwb-radius-control); background: transparent; color: var(--iwb-text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
|
||
.iwb-node-floatbar button:hover, .iwb-node-floatbar label:hover { background: color-mix(in srgb, var(--iwb-text) 10%, transparent); color: var(--iwb-text); }
|
||
.iwb-node-floatbar button:disabled, .iwb-node-floatbar label:disabled { opacity: 0.4; cursor: default; background: transparent; }
|
||
.iwb-node-floatbar-title { font-size: var(--iwb-font-sm); font-weight: 600; color: var(--iwb-text); padding: var(--iwb-space-4) var(--iwb-space-10); border-radius: var(--iwb-radius-control); cursor: default; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
|
||
.iwb-node-floatbar-title:hover { background: color-mix(in srgb, var(--iwb-text) 10%, transparent); }
|
||
/* 气泡删除按钮(2026-11-09 恢复;用户 2026-10-30 曾以「防误删」为由移除)。
|
||
方案 B:静态态与其它气泡按钮完全一致(灰图标、透明底),只有 hover 才亮红 ——
|
||
不做红底常驻,避免把删除变成常驻视觉焦点;误删由 Ctrl+Z(deleteNodes 会 pushHistory)兜底。
|
||
红色复用既有 token --iwb-err(与右键菜单「删除」同语义),不新增变量。 */
|
||
.iwb-node-floatbar button.iwb-fb-del:hover { color: var(--iwb-err); background: var(--iwb-err-bg); }
|
||
.iwb-node-headbtns { display: flex; gap: var(--iwb-space-2); }
|
||
.iwb-node-del { background: none; border: none; color: var(--iwb-text2); cursor: pointer; font-size: var(--iwb-font-sm); padding: 0 var(--iwb-space-2); display: inline-flex; align-items: center; justify-content: center; }
|
||
.iwb-node-del:hover { color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-node-body { padding: var(--iwb-space-8) var(--iwb-space-10); overflow: visible; flex: 1 1 auto; min-height: 0; }
|
||
/* 插件自定义节点体容器(2026-11-14):宿主只提供一块稳定画布(防 React 重建导致输入框失焦),
|
||
内部排版(缩略图 / 变量行 / 开关)全由插件自己的 CSS 决定,这里不给内边距也不预设布局。 */
|
||
.iwb-plugin-node-body { padding: 0; display: flex; flex-direction: column; overflow: visible; }
|
||
/* LOD 低细节占位体(v3.24.77 起):节点在屏幕上宽 < 64px 时**不渲染** body 内容。
|
||
不给暗示的话,缩小后整块画布会变成一堆空心框,看起来像「图丢了」。 */
|
||
.iwb-node-body-lod { padding: var(--iwb-space-8) var(--iwb-space-10); display: flex; flex-direction: column; justify-content: center; gap: var(--iwb-space-4); }
|
||
.iwb-lod-img { padding: 0; margin: var(--iwb-space-8); border-radius: var(--iwb-radius-control); flex: 1 1 auto; min-height: 20px; background: color-mix(in srgb, var(--iwb-border) 55%, transparent); }
|
||
.iwb-lod-text::before, .iwb-lod-text::after { content: ''; display: block; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--iwb-border) 55%, transparent); }
|
||
.iwb-lod-text::after { width: 58%; }
|
||
/* LOD lite 档(v3.24.78):灰块认不出是哪个节点 —— 图片节点画一张代表图,文本节点画首行文字。
|
||
仍然不建 textarea / 图片网格 / 按钮 / 事件,成本只比纯占位多一个 <img>。 */
|
||
.iwb-lod-lite.iwb-lod-img { overflow: hidden; }
|
||
.iwb-lod-thumb { display: block; width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; border-radius: var(--iwb-radius-control); }
|
||
.iwb-lod-has-text { justify-content: flex-start; }
|
||
.iwb-lod-has-text::before, .iwb-lod-has-text::after { display: none; }
|
||
.iwb-lod-line { font-size: var(--iwb-font-xs); line-height: 1.3; color: var(--iwb-text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
/* 提示词节点:文本内容与外框再留大一点边距(参考截图) */
|
||
.iwb-node:has(.iwb-textarea-plain) .iwb-node-body { padding: var(--iwb-space-12) var(--iwb-space-16); }
|
||
.iwb-node-relay { width: 72px !important; min-height: 72px !important; border-radius: 50%; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
|
||
.iwb-node-relay .iwb-node-body { padding: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
|
||
.iwb-relay-ring { position: absolute; inset: 0; border-radius: 50%; border: 10px solid var(--iwb-node-bg); background: transparent; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
|
||
/* 中继节点设了背景色时:**圆环**取色、中间保持透明(2026-11-01 用户要求,避免整块实心圆) */
|
||
.iwb-node.iwb-node-relay[data-bg] { background: transparent; border-color: transparent; }
|
||
.iwb-node.iwb-node-relay[data-bg] .iwb-relay-ring { border-color: var(--iwb-node-color); }
|
||
.iwb-ref-actions { display: flex; gap: var(--iwb-space-6); padding: var(--iwb-space-2) 0 0; }
|
||
.iwb-ref-actions .iwb-ref-change { white-space: nowrap; }
|
||
.iwb-textarea { min-height: 56px; overflow-y: auto; }
|
||
.iwb-resize { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; cursor: nwse-resize; z-index: 6; }
|
||
.iwb-resize::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 7px; height: 7px; border-right: 2px solid var(--iwb-border2); border-bottom: 2px solid var(--iwb-border2); }
|
||
.iwb-label { font-size: 11px; color: var(--iwb-text2); margin: 6px 0 3px; }
|
||
.iwb-grow { flex: 1; }
|
||
.iwb-row { display: flex; gap: 6px; align-items: center; }
|
||
.iwb-actions { margin-top: 8px; }
|
||
/* 端口描边不能吃 --iwb-border2:深色下它是 #4d4d4d,与端口填充 --iwb-field(#494949) 同色,
|
||
描边等于没有,12px 的小圆点会糊成一团。改用「文字色 55%」派生:
|
||
亮 #828282 / 暗 #9e9e9e,对填充各 4.6:1 / 3.4:1(非文字元素红线 3:1),两个主题都是同一档锐度。 */
|
||
.iwb-port { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--iwb-field); border: 1.5px solid color-mix(in srgb, var(--iwb-text) 55%, transparent); transform: translate(-50%, -50%); z-index: 7; }
|
||
.iwb-node:hover .iwb-port { border-color: var(--iwb-brand); background: var(--iwb-field); }
|
||
.iwb-port:hover { border-color: var(--iwb-brand) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--iwb-brand) 25%, transparent); }
|
||
.iwb-port::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; }
|
||
/* 端口「+」提示(2026-11-01 用户要求,参照参考图):hover 靠近、或选中节点且该端口未连线时显示加号。
|
||
已连线的端口(.iwb-port-linked)不显示,避免误以为还能再加一条。
|
||
纯 CSS 伪元素 ⇒ 不改色/不 hover 时零开销。 */
|
||
.iwb-port::before {
|
||
content: ''; position: absolute; inset: 2px; opacity: 0; transition: opacity .12s;
|
||
background:
|
||
linear-gradient(currentColor, currentColor) center / 1.4px 100% no-repeat,
|
||
linear-gradient(currentColor, currentColor) center / 100% 1.4px no-repeat;
|
||
color: var(--iwb-text); pointer-events: none;
|
||
}
|
||
/* 选中且未连线:加号放大(约 2 倍视觉,2026-11-01 用户要求) */
|
||
.iwb-node-selected .iwb-port:not(.iwb-port-linked) { width: 22px; height: 22px; }
|
||
.iwb-node-selected .iwb-port:not(.iwb-port-linked)::before { opacity: 1; inset: var(--iwb-space-4); }
|
||
/* 已连线:选中(未 hover)不显示加号,避免误以为还能加 */
|
||
.iwb-node-selected .iwb-port-linked::before { opacity: 0; }
|
||
/* 鼠标靠近端点:**再放大一档**,且**已连线的端口也显示**(节点可多连)。
|
||
选择器带上 .iwb-node-selected 前缀,保证优先级压过上面的选中规则。 */
|
||
.iwb-port:hover, .iwb-node-selected .iwb-port:hover { width: 24px; height: 24px; transition: width .12s, height .12s; }
|
||
.iwb-port:hover::before,
|
||
.iwb-node-selected .iwb-port:hover::before,
|
||
.iwb-node-selected .iwb-port-linked:hover::before { opacity: 1; inset: var(--iwb-space-4); }
|
||
.iwb-port:hover { border-color: var(--iwb-brand); background: color-mix(in srgb, var(--iwb-brand) 18%, var(--iwb-field)); }
|
||
.iwb-node-selected .iwb-port:not(.iwb-port-linked) { background: color-mix(in srgb, var(--iwb-brand) 18%, var(--iwb-field)); }
|
||
.iwb-connecting .iwb-port-in { border-color: var(--iwb-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--iwb-brand) 30%, transparent); }
|
||
.iwb-port-in { left: 0; cursor: crosshair; }
|
||
.iwb-port-out { left: 100%; cursor: crosshair; }
|
||
.iwb-ref-thumb { width: 100%; height: 84px; object-fit: cover; border-radius: var(--iwb-radius-chip); border: 1px solid var(--iwb-border); }
|
||
.iwb-ref-empty { height: 84px; display: flex; align-items: center; justify-content: center; color: var(--iwb-text2); border: 1px dashed var(--iwb-border2); border-radius: var(--iwb-radius-chip); font-size: var(--iwb-font-sm); }
|
||
.iwb-ref-images { display: flex; flex-direction: column; gap: var(--iwb-space-6); }
|
||
.iwb-ref-imgrow { display: flex; align-items: center; gap: var(--iwb-space-6); }
|
||
.iwb-ref-idx { flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--iwb-brand); color: var(--iwb-on-brand); font-size: var(--iwb-font-2xs); display: flex; align-items: center; justify-content: center; }
|
||
.iwb-ref-img { flex: 1; max-height: 90px; object-fit: contain; border-radius: var(--iwb-radius-chip); border: 1px solid var(--iwb-border); background: var(--iwb-field); cursor: move; min-width: 0; }
|
||
.iwb-ref-imgactions { flex: 0 0 auto; display: flex; flex-direction: column; gap: var(--iwb-space-2); }
|
||
.iwb-file { display: inline-block; margin-top: 6px; padding: 4px 10px; border: 1px dashed var(--iwb-border2); border-radius: 6px; font-size: 12px; cursor: pointer; color: var(--iwb-text2); }
|
||
.iwb-file:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-hint { font-size: var(--iwb-font-2xs); color: var(--iwb-text2); margin-top: var(--iwb-space-4); }
|
||
.iwb-results { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
|
||
.iwb-rgroup { width: 100%; }
|
||
.iwb-rlabel { font-size: var(--iwb-font-2xs); color: var(--iwb-text2); margin: 4px 0 3px; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-result-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid var(--iwb-border); }
|
||
.iwb-rimg { position: relative; }
|
||
.iwb-rimg-actions { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; gap: 4px; justify-content: center; }
|
||
.iwb-rimg-actions .iwb-btn { font-size: var(--iwb-font-2xs); padding: 1px 5px; background: var(--iwb-panel); } /*iwb:raw-until=3.28.0*/
|
||
.iwb-err { font-size: 11px; color: var(--iwb-err); margin-top: 4px; word-break: break-all; }
|
||
.iwb-out-item { margin-bottom: 8px; }
|
||
.iwb-out-block { border-top: 1px dashed var(--iwb-border2); padding-top: 6px; margin-top: 6px; }
|
||
.iwb-out-block:first-child { border-top: none; padding-top: 0; margin-top: 0; }
|
||
.iwb-out-imgwrap { margin-top: 4px; }
|
||
.iwb-out-img { width: 100%; border-radius: 8px; border: 1px solid var(--iwb-border); }
|
||
.iwb-out-meta { font-size: var(--iwb-font-2xs); color: var(--iwb-text2); margin-top: 3px; } /*iwb:raw-until=3.28.0*/
|
||
.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: 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: 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 .15s; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-status-err { color: var(--iwb-err); }
|
||
.iwb-status-ok { color: var(--iwb-ok); }
|
||
/* 生成中状态:直接附着在顶部计时/状态背景,确保不依赖画布节点可见性 */
|
||
/* 保存状态:固定宽度占位(空时不收缩),避免保存/空闲切换导致状态栏伸缩跳动 */
|
||
.iwb-status-save { min-width: 56px; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
|
||
/* 保存中:小圆环旋转动画 + 文案脉冲 */
|
||
.iwb-save-spinner { width: 10px; height: 10px; border: 2px solid color-mix(in srgb, var(--iwb-text2) 30%, transparent); border-top-color: var(--iwb-brand); border-radius: 50%; display: inline-block; animation: iwb-spin 0.8s linear infinite; flex: 0 0 auto; }
|
||
.iwb-save-saving { animation: iwb-pulse 1.2s ease-in-out infinite; }
|
||
@keyframes iwb-spin { to { transform: rotate(360deg); } }
|
||
@keyframes iwb-pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
|
||
.iwb-hint-bottom { position: absolute; bottom: 10px; transform: translateX(-50%); font-size: var(--iwb-font-2xs); color: var(--iwb-text2); background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-control); padding: 3px 10px; z-index: 9; opacity: 0.8; white-space: nowrap; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-boxsel { position: absolute; border: 1px dashed var(--iwb-brand); background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); z-index: 3; pointer-events: none; }
|
||
/* v3.26.18:右栏挤压到工具栏时自动隐藏(避免两者重叠) */
|
||
.iwb-minimap.iwb-minimap-tight { opacity: 0; transform: translateY(6px); pointer-events: none; }
|
||
|
||
.iwb-mini-node { position: absolute; border-radius: 2px; opacity: 0.85; }
|
||
.iwb-mini-view { position: absolute; border: 1px solid var(--iwb-brand); border-radius: 2px; pointer-events: none; }
|
||
.iwb-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: var(--iwb-z-modal); display: flex; align-items: center; justify-content: center; }
|
||
.iwb-modal { width: 680px; max-width: calc(100vw - 60px); max-height: 82vh; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: var(--iwb-radius-popover); display: flex; flex-direction: column; overflow: hidden; }
|
||
.iwb-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--iwb-border); }
|
||
.iwb-modal-body { padding: 14px 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; max-height: 62vh; }
|
||
.iwb-modal-foot { padding: 12px 16px; border-top: 1px solid var(--iwb-border); display: flex; justify-content: flex-end; }
|
||
.iwb-provider-card { border: 1px solid var(--iwb-border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
|
||
.iwb-keyrow { display: flex; gap: 6px; align-items: center; }
|
||
.iwb-lib { position: absolute; top: 0; right: 0; bottom: 0; background: var(--iwb-panel); border-left: 1px solid var(--iwb-border2); z-index: 20; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,0.15); }
|
||
.iwb-lib-head { display: flex; align-items: center; gap: var(--iwb-space-8); padding: var(--iwb-space-12) var(--iwb-space-12); border-bottom: 1px solid var(--iwb-border); }
|
||
.iwb-lib-body { flex: 1; overflow: hidden; padding: var(--iwb-space-12) var(--iwb-space-12); display: flex; flex-direction: column; gap: var(--iwb-space-8); }
|
||
.iwb-lib-fixed { flex: 0 0 auto; display: flex; flex-direction: column; gap: var(--iwb-space-8); }
|
||
.iwb-lib-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--iwb-space-8); padding-right: var(--iwb-space-2); }
|
||
/* 提示词库:分类胶囊行 + 分组管理 */
|
||
.iwb-lib-chips { display: flex; gap: var(--iwb-space-6); flex-wrap: nowrap; align-items: center; padding-bottom: var(--iwb-space-4); min-width: 0; }
|
||
/* 分类胶囊行(2026-10-20):分组多了不再换行挤矮卡片区 ⇒ 单行横向滚动 + 右侧渐隐提示 */
|
||
.iwb-lib-chips-scroll { display: flex; gap: var(--iwb-space-6); flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: var(--iwb-space-2); }
|
||
.iwb-lib-chips-scroll::-webkit-scrollbar { display: none; }
|
||
.iwb-lib-chips-scroll > .iwb-chip:last-child { margin-right: var(--iwb-space-16); }
|
||
/* 右侧渐隐:提示「右边还有内容,可横向滚动」 */
|
||
.iwb-lib-chips-scroll { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent 100%); }
|
||
/* 搜索范围提示(2026-10-20):搜索是全局的,明确告诉用户当前在搜什么范围 */
|
||
.iwb-lib-searchscope { display: inline-flex; align-items: center; gap: var(--iwb-space-4); flex: 0 0 auto; font-size: var(--iwb-font-xs); color: var(--iwb-text2); background: color-mix(in srgb, var(--iwb-brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--iwb-brand) 28%, transparent); border-radius: 999px; padding: var(--iwb-space-2) var(--iwb-space-4) var(--iwb-space-2) var(--iwb-space-8); white-space: nowrap; }
|
||
.iwb-lib-searchscope-back { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; padding: 0; border: none; border-radius: 999px; background: transparent; color: var(--iwb-text2); font-size: var(--iwb-font-md); line-height: 1; cursor: pointer; }
|
||
.iwb-lib-searchscope-back:hover { background: color-mix(in srgb, var(--iwb-tint) 12%, transparent); color: var(--iwb-text); }
|
||
.iwb-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--iwb-space-4); background: var(--iwb-layer); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-full); padding: 3px 10px; font-size: var(--iwb-font-sm); color: var(--iwb-text2); cursor: pointer; white-space: nowrap; transition: all .15s; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-chip:hover { color: var(--iwb-text); border-color: var(--iwb-border2); }
|
||
.iwb-chip-active { background: var(--iwb-panel); border-color: var(--iwb-border2); color: var(--iwb-text); font-weight: 600; }
|
||
.iwb-chip-active:hover { color: var(--iwb-text); }
|
||
.iwb-chip-count { font-size: var(--iwb-font-2xs); opacity: 0.8; }
|
||
.iwb-chip-add { font-weight: 700; }
|
||
.iwb-gmgr-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px dashed var(--iwb-border); }
|
||
.iwb-gmgr-name { flex: 1 1 auto; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.iwb-gmgr-count { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; }
|
||
/* 提示词库:全屏管理视图(面板占满视口,内部区域各自滚动,适配小分辨率) */
|
||
/* 提示词库活动窗口(可拖动标题栏移动、右下角缩放;尺寸/位置由 fsWin 控制) */
|
||
.iwb-fullmask { position: fixed; z-index: var(--iwb-z-sheet); display: flex; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: var(--iwb-radius-popover); box-shadow: var(--iwb-elevation-4); overflow: hidden; padding: 0; }
|
||
.iwb-fullpanel { width: 100%; height: 100%; max-width: none; max-height: none; background: var(--iwb-panel); border: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; overflow: hidden; }
|
||
.iwb-full-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; cursor: move; user-select: none; }
|
||
.iwb-full-head .iwb-toolbar-title { white-space: nowrap; }
|
||
/* 资源中心面板的缩放手柄(2026-10-20 重做)
|
||
*
|
||
* 背景:此前 CSS 里有**三套互相冲突**的规则(基类三角 / 四边条 / 4 角 L 形括号),
|
||
* 后写的 `background: transparent` 把前两套的斜角三角**全部覆盖失效**,
|
||
* 实际显示的是「L 形括号 + 圆角边框」套在**方形面板**上(面板 border-radius: 0)
|
||
* ⇒ 视觉上是几截半截的线头(用户反馈"样式不好看")。
|
||
*
|
||
* 现在的设计(4 角 + 4 边全部**不可见**,功能保留):
|
||
* - 静止时面板边缘完全干净,没有任何装饰性角标;
|
||
* - 「能缩放」的信息改由 ① 标题栏的尺寸文字 + ② 边缘 hover 时的淡入提示 传递;
|
||
* - 拖动热区尺寸不变(20px 角 / 7px 边)⇒ 既有交互手感不受影响。
|
||
*
|
||
* 注:手柄元素仍保留在 DOM 里(src/ui-lib-sidebar.js),`cursor` 与拖动逻辑照旧 ——
|
||
* 只是**不可见**(transparent 而非 display:none,否则就没有热区了)。
|
||
*/
|
||
.iwb-full-resize { position: absolute; z-index: 6; background: transparent; }
|
||
.iwb-full-resize:hover { background: transparent; }
|
||
/* 4 角:20×20 热区,方向光标提示可缩放 */
|
||
.iwb-full-resize-tl, .iwb-full-resize-tr, .iwb-full-resize-bl, .iwb-full-resize-br { width: 20px; height: 20px; }
|
||
.iwb-full-resize-tl { left: 0; top: 0; right: auto; bottom: auto; cursor: nwse-resize; }
|
||
.iwb-full-resize-tr { right: 0; top: 0; left: auto; bottom: auto; cursor: nesw-resize; }
|
||
.iwb-full-resize-bl { left: 0; bottom: 0; right: auto; top: auto; cursor: nesw-resize; }
|
||
.iwb-full-resize-br { right: 0; bottom: 0; left: auto; top: auto; cursor: nwse-resize; }
|
||
/* 4 边:7px 细条热区 */
|
||
.iwb-full-resize-r { right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
|
||
.iwb-full-resize-l { left: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
|
||
.iwb-full-resize-t { top: 0; left: 0; right: 0; height: 7px; cursor: ns-resize; }
|
||
.iwb-full-resize-b { bottom: 0; left: 0; right: 0; height: 7px; cursor: ns-resize; }
|
||
/* 边缘 hover 的淡入提示:只在「主动去找」时出现,静止时完全干净 */
|
||
.iwb-full-resize-r:hover, .iwb-full-resize-l:hover, .iwb-full-resize-t:hover, .iwb-full-resize-b:hover { background: color-mix(in srgb, var(--iwb-brand) 14%, transparent); }
|
||
.iwb-fullpanel .iwb-lib-chips { flex: 0 0 auto; padding: var(--iwb-space-8) var(--iwb-space-12) var(--iwb-space-6); border-bottom: 1px solid var(--iwb-border); }
|
||
.iwb-full-batch { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: color-mix(in srgb, var(--iwb-tint) 5%, transparent); border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; }
|
||
.iwb-full-batch-info { font-size: 12px; font-weight: 600; color: var(--iwb-text2); white-space: nowrap; }
|
||
.iwb-full-batch-move { width: 170px; }
|
||
.iwb-full-main { flex: 1 1 auto; min-height: 0; display: flex; }
|
||
.iwb-full-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; overflow: hidden; }
|
||
.iwb-full-left .iwb-full-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; align-content: start; padding-right: 2px; }
|
||
.iwb-full-collapsed { flex: 0 0 26px; border-left: 1px solid var(--iwb-border); background: var(--iwb-layer); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--iwb-text2); font-size: 12px; writing-mode: vertical-rl; }
|
||
.iwb-full-collapsed:hover { color: var(--iwb-text); }
|
||
.iwb-pcard-full { cursor: pointer; transition: border-color var(--iwb-motion-base) var(--iwb-ease-out), box-shadow var(--iwb-motion-base) var(--iwb-ease-out); }
|
||
.iwb-pcard-full:hover { border-color: var(--iwb-border2); transition-duration: var(--iwb-motion-fast); }
|
||
.iwb-pcard-selected { border-color: var(--iwb-border2); box-shadow: 0 0 0 1px var(--iwb-border2); }
|
||
.iwb-pcard-check { accent-color: var(--iwb-text); margin-right: 4px; }
|
||
.iwb-full-split { flex: 0 0 4px; cursor: col-resize; background: var(--iwb-border); transition: background .15s; }
|
||
.iwb-full-split:hover { background: var(--iwb-text2); }
|
||
.iwb-full-edit { flex: 0 0 auto; border-left: 1px solid var(--iwb-border); background: var(--iwb-layer); display: flex; flex-direction: column; min-height: 0; }
|
||
.iwb-full-edit-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; }
|
||
.iwb-full-editor { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
|
||
.iwb-full-editor { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
|
||
.iwb-full-editor-title { font-size: 13px; font-weight: 700; color: var(--iwb-text); }
|
||
.iwb-full-editor-text { min-height: 220px; resize: vertical; }
|
||
.iwb-full-editor-empty { color: var(--iwb-text2); font-size: 12px; justify-content: center; align-items: center; height: 100%; text-align: center; }
|
||
.iwb-btn-starred { color: var(--iwb-text); }
|
||
/* 提示词卡片按钮:无底色、浅灰图标 */
|
||
.iwb-pcard .iwb-btn { background: transparent; border: none; padding: 2px 4px; color: var(--iwb-text2); opacity: var(--iwb-opacity-muted); box-shadow: none; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-pcard .iwb-btn:hover { opacity: 1; color: var(--iwb-text); background: transparent; }
|
||
.iwb-pcard .iwb-btn-starred { color: var(--iwb-text); opacity: 1; }
|
||
/* 搜索高亮 */
|
||
.iwb-hl { background: color-mix(in srgb, var(--iwb-tint) 14%, transparent); color: var(--iwb-text); border-radius: 2px; font-weight: 700; }
|
||
/* 面板卡片:窄面板单列,加宽自动多列 */
|
||
.iwb-lib-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--iwb-space-8); align-content: start; }
|
||
.iwb-ptext-clickable { cursor: pointer; }
|
||
.iwb-ptext-clickable:hover { color: var(--iwb-text); }
|
||
.iwb-ptext-open { -webkit-line-clamp: unset; overflow: visible; }
|
||
.iwb-pcard-foot { margin-top: 6px; align-items: center; }
|
||
.iwb-pcard { border: 1px solid var(--iwb-border); border-radius: 8px; padding: 8px 10px; background: var(--iwb-panel); }
|
||
.iwb-pname { font-weight: 600; font-size: 12px; }
|
||
.iwb-pbtns { margin-left: auto; display: flex; gap: 4px; }
|
||
.iwb-ptext { font-size: 11px; color: var(--iwb-text2); margin-top: 4px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||
.iwb-tag { display: inline-block; background: color-mix(in srgb, var(--iwb-tint) 7%, transparent); color: var(--iwb-text2); border-radius: var(--iwb-radius-chip); font-size: var(--iwb-font-2xs); padding: 1px 6px; margin: 3px 4px 0 0; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-pedit { border: 1px solid var(--iwb-border); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
|
||
.iwb-tasks { margin-top: var(--iwb-space-8); display: flex; flex-direction: column; gap: var(--iwb-space-8); }
|
||
.iwb-gen-head { display: flex; align-items: center; justify-content: space-between; gap: var(--iwb-space-6); }
|
||
.iwb-gen-title { font-weight: 600; }
|
||
/* 2026-10-30:参数区**不再叠一层灰底卡片**(用户反馈「三层边缘、左边间距不统一」)。
|
||
现在只有两层:节点卡 + 选择框;左右内边距统一由 .iwb-node-body(10px) 提供,
|
||
按钮/信息行/任务行/标题全部左对齐。 */
|
||
.iwb-gen-settings { margin-top: var(--iwb-space-8); border: none; border-bottom: 1px solid var(--iwb-border); border-radius: 0; padding: var(--iwb-space-4) 0 var(--iwb-space-8); margin-bottom: var(--iwb-space-4); background: transparent; display: flex; flex-direction: column; gap: var(--iwb-space-4); }
|
||
.iwb-task { border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-control); padding: var(--iwb-space-6) var(--iwb-space-8); background: var(--iwb-field); }
|
||
.iwb-task-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--iwb-space-6); }
|
||
.iwb-task-title { font-size: var(--iwb-font-md); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--iwb-text); }
|
||
.iwb-task-title-text { font-size: var(--iwb-font-xs); font-weight: 400; color: var(--iwb-text2); margin-left: var(--iwb-space-2); }
|
||
.iwb-task-refs { display: flex; gap: var(--iwb-space-4); margin-top: var(--iwb-space-6); flex-wrap: wrap; }
|
||
.iwb-task-ref { object-fit: cover; border-radius: var(--iwb-radius-chip); border: 1px solid var(--iwb-border); cursor: zoom-in; }
|
||
|
||
.iwb-ref-head { display: flex; align-items: center; gap: var(--iwb-space-8); margin-bottom: var(--iwb-space-4); }
|
||
.iwb-ref-single { width: 100%; min-height: 60px; max-height: 340px; object-fit: contain; object-position: center; border-radius: var(--iwb-radius-chip); border: 1px solid var(--iwb-border); background: var(--iwb-field); cursor: move; }
|
||
.iwb-history { position: absolute; left: 12px; right: 12px; bottom: 46px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-panel); z-index: 30; box-shadow: var(--iwb-elevation-2); padding: 8px 12px; max-height: 180px; display: flex; flex-direction: column; }
|
||
.iwb-history-grid { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px; flex: 1; }
|
||
.iwb-history-item { position: relative; flex: 0 0 110px; }
|
||
.iwb-history-item img { width: 110px; height: 82px; object-fit: contain; border-radius: 6px; border: 1px solid var(--iwb-border); background: var(--iwb-layer2); cursor: pointer; }
|
||
.iwb-history-actions { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; gap: var(--iwb-space-4); justify-content: center; opacity: 0; transition: opacity .15s; }
|
||
.iwb-history-item:hover .iwb-history-actions { opacity: 1; }
|
||
.iwb-history-actions .iwb-btn { font-size: var(--iwb-font-2xs); padding: 1px 5px; background: var(--iwb-panel); text-decoration: none; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-modal-sm { width: 460px; }
|
||
.iwb-pickrow { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; cursor: pointer; font-size: 12px; }
|
||
.iwb-picktext { color: var(--iwb-text); line-height: 1.4; word-break: break-all; }
|
||
|
||
.iwb-ref-upload { flex: 1 1 auto; min-height: 110px; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--iwb-border2); border-radius: var(--iwb-radius-control); color: var(--iwb-text2); font-size: var(--iwb-font-md); cursor: move; }
|
||
.iwb-ref-upload:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-ref-emptybox { flex: 1 1 auto; min-height: 110px; display: flex; flex-direction: column; gap: var(--iwb-space-6); }
|
||
.iwb-ref-url-row { display: flex; gap: var(--iwb-space-4); align-items: center; }
|
||
.iwb-ref-url-row .iwb-ref-upload-link { background: var(--iwb-field); border-color: var(--iwb-border); color: var(--iwb-text2); }
|
||
.iwb-ref-upload-link:hover { background: color-mix(in srgb, var(--iwb-brand) 10%, var(--iwb-field)); border-color: var(--iwb-border2); color: var(--iwb-text); }
|
||
.iwb-ref-url-input { min-width: 0; flex: 1 1 auto; font-size: var(--iwb-font-xs); }
|
||
.iwb-ref-url-current { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--iwb-text2); font-size: var(--iwb-font-2xs); }
|
||
.iwb-ref-show { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
|
||
.iwb-ref-miniactions .iwb-btn { font-size: var(--iwb-font-2xs); padding: var(--iwb-space-2) var(--iwb-space-6); text-decoration: none; }
|
||
.iwb-task-ref { width: 28px; height: 28px; }
|
||
.iwb-refmini { position: relative; }
|
||
.iwb-refmini-empty { width: 28px; height: 28px; border-radius: var(--iwb-radius-chip); border: 1px solid var(--iwb-border); background: var(--iwb-field); display: flex; align-items: center; justify-content: center; color: #9aa1ad; }
|
||
.iwb-refmini-empty .iwb-refmini-warn { display: inline-flex; }
|
||
.iwb-refmini .iwb-refmini-idx { position: absolute; left: -3px; top: -3px; background: var(--iwb-brand); color: var(--iwb-on-brand); font-size: 8px; min-width: 12px; height: 12px; border-radius: var(--iwb-radius-chip); display: flex; align-items: center; justify-content: center; padding: 0 var(--iwb-space-2); z-index: 2; }
|
||
|
||
/* ---- v2 P2:图片传输设置 + 出图清理 ---- */
|
||
.iwb-section { border-top: 1px solid var(--iwb-border); margin-top: 16px; padding-top: 12px; }
|
||
.iwb-section-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
|
||
.iwb-section-sub { font-weight: 600; font-size: 12px; margin: 10px 0 6px; color: var(--iwb-text2); }
|
||
.iwb-mode-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
|
||
.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; }
|
||
|
||
.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; }
|
||
.iwb-speed-ms { flex: 0 0 74px; font-weight: 600; }
|
||
.iwb-speed-fast { color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-speed-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--iwb-text2); }
|
||
.iwb-modellist { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0; }
|
||
.iwb-modelrow { padding: 2px 8px; border: 1px solid var(--iwb-border); border-radius: 6px; background: var(--iwb-layer); }
|
||
|
||
/* ---- v2 P4:提示词库分组/管理/拖拽 ---- */
|
||
.iwb-tag-group { background: color-mix(in srgb, var(--iwb-tint) 4%, transparent); color: var(--iwb-text2); }
|
||
.iwb-pcard { cursor: grab; }
|
||
.iwb-pcard:active { cursor: grabbing; }
|
||
|
||
/* ---- v2 P6:节点编组 ---- */
|
||
/* 节点组外框:pointer-events 改为 auto —— 框内空白处即可整组拖动(节点在框之上,点中节点仍是节点自己的交互) */
|
||
/* 节点组外框:5% 透明底色 + 1px 实线描边(v3.24.25 曾去掉边框,但纯 5% 底在画布上几乎看不出组范围;
|
||
v3.24.27 补回**实线**细边,颜色跟 --iwb-text 混出 32% —— 亮色下是浅灰线、暗色下是深灰线,两主题都可见,
|
||
且比虚线安静,不与节点边框/连线抢视线)。hover/整组选中时逐步加深,表达层级。 */
|
||
.iwb-group { position: absolute; border: 1px solid color-mix(in srgb, var(--iwb-tint) 50%, transparent); border-radius: 18px; pointer-events: auto; cursor: move; z-index: 0; background: color-mix(in srgb, var(--iwb-brand) 5%, transparent); }
|
||
.iwb-group:hover { border-color: color-mix(in srgb, var(--iwb-tint) 64%, transparent); background: color-mix(in srgb, var(--iwb-brand) 6%, transparent); }
|
||
.iwb-group-sel { border-color: color-mix(in srgb, var(--iwb-tint) 78%, transparent); background: color-mix(in srgb, var(--iwb-brand) 7%, transparent); }
|
||
/* 缩放手柄:默认隐藏,hover 或整组选中时显示(触屏靠"点一下框 = 选中整组"进入选中态) */
|
||
.iwb-group-handle { position: absolute; width: 9px; height: 9px; background: var(--iwb-panel); border: var(--iwb-bw-strong) solid var(--iwb-brand); border-radius: 2px; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 6; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-group:hover .iwb-group-handle, .iwb-group-sel .iwb-group-handle { pointer-events: auto; opacity: 1; }
|
||
.iwb-gh-nw { left: -6px; top: -6px; cursor: nwse-resize; }
|
||
.iwb-gh-n { left: 50%; top: -6px; margin-left: -4.5px; cursor: ns-resize; }
|
||
.iwb-gh-ne { right: -6px; top: -6px; cursor: nesw-resize; }
|
||
.iwb-gh-e { right: -6px; top: 50%; margin-top: -4.5px; cursor: ew-resize; }
|
||
.iwb-gh-se { right: -6px; bottom: -6px; cursor: nwse-resize; }
|
||
.iwb-gh-s { left: 50%; bottom: -6px; margin-left: -4.5px; cursor: ns-resize; }
|
||
.iwb-gh-sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
|
||
.iwb-gh-w { left: -6px; top: 50%; margin-top: -4.5px; cursor: ew-resize; }
|
||
/* 操作栏:高度固定 40px(与 app.js 的 GROUP_BAR_H 同步);整条栏(含图标周围留白)都是整组拖拽热区。
|
||
v3.24.25 改白底黑字(原 --iwb-brand 深灰底白字在浅色画布上一块深色很跳);
|
||
v3.24.26 整体再放大一档(36→40 / 组名 14→16)+ 描边提到 --iwb-border2:
|
||
原来 1px --iwb-border(var(--iwb-border)) 与画布底色(var(--iwb-canvas-bg))几乎同色,白药丸等于没有边。 */
|
||
.iwb-group-bar { position: absolute; top: -10px; left: 10px; display: flex; align-items: center; gap: 8px; height: 40px; box-sizing: border-box; background: var(--iwb-panel); color: var(--iwb-text); border: 1px solid var(--iwb-border2); border-radius: 11px; padding: 0 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.12); pointer-events: auto; cursor: move; z-index: 5; }
|
||
/* 组名:图标 18px + 名称 16px/600 + 节点数 14px 灰(主次分明,原来全塞在一串 12px 加粗里) */
|
||
.iwb-group-name { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--iwb-text); white-space: nowrap; user-select: none; }
|
||
.iwb-group-name .iwb-ic { width: var(--iwb-icon-lg); height: var(--iwb-icon-lg); flex: 0 0 auto; color: var(--iwb-text2); }
|
||
/* 节点数:比组名小两档并偏灰,且与组名之间多留 2px(总 10px)—— 否则 16px 名字 + 14px 数字会读成「分组 1 2 节点」一整串 */
|
||
.iwb-group-count { font-size: 13px; font-weight: 400; color: var(--iwb-text2); margin-left: 2px; }
|
||
/* 组名就地编辑框(双击组名进入) */
|
||
.iwb-group-bar .iwb-group-name-input { width: 148px; height: 28px; padding: 0 9px; font-size: 14px; font-weight: 600; color: var(--iwb-text); background: var(--iwb-layer); border: 1px solid var(--iwb-border2); border-radius: 8px; outline: none; }
|
||
.iwb-group-bar .iwb-group-name-input::placeholder { color: var(--iwb-text2); }
|
||
/* v3.24.28:收藏 / 复制 / 解组三个按钮已移除 —— 它们与多选「节点组」气泡完全重复,
|
||
统一由气泡提供(气泡在整组选中时本来就出现)。操作栏只留「组图标 + 组名 + 节点数」,
|
||
整条栏仍是整组拖拽热区。原先为分隔标题区/操作区画的 .iwb-group-sep 与按钮样式一并删除。 */
|
||
/* 选中态:去掉虚线框后,唯一的强提示落在操作栏描边(底色 7% 同时在) */
|
||
.iwb-group-sel .iwb-group-bar { border-color: color-mix(in srgb, var(--iwb-tint) 34%, transparent); box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
|
||
.iwb-lib .iwb-pcard { margin-bottom: 8px; }
|
||
|
||
/* ---- v2 P8:增强 ---- */
|
||
.iwb-history-more { text-align: center; padding: 6px 0; }
|
||
.iwb-help { gap: 10px; }
|
||
.iwb-help-row { font-size: 14px; line-height: 1.6; }
|
||
.iwb-help-row b { color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; margin-right: 6px; }
|
||
/* 设置面板:字号 +2、间距加大,方便阅读 */
|
||
.iwb-settings-modal .iwb-modal-head { padding: var(--iwb-space-12) var(--iwb-space-20); }
|
||
.iwb-settings-modal .iwb-modal-body { font-size: var(--iwb-font-md); gap: var(--iwb-space-16); padding: var(--iwb-space-16) var(--iwb-space-24); }
|
||
.iwb-settings-modal .iwb-toolbar-title { font-size: var(--iwb-font-lg); }
|
||
.iwb-settings-modal .iwb-tab { padding: var(--iwb-space-8) var(--iwb-space-16); font-size: var(--iwb-font-md); }
|
||
.iwb-settings-modal .iwb-input { height: var(--iwb-control-h); font-size: var(--iwb-font-md); padding: var(--iwb-space-6) var(--iwb-space-12); background: var(--iwb-panel); border-color: var(--iwb-border); }
|
||
/* 设置弹窗固定高度:切换 Tab 不改变窗口大小;内容区内部滚动 */
|
||
.iwb-help-modal { width: 640px; }
|
||
.iwb-settings-modal .iwb-label { font-size: var(--iwb-font-md); margin: var(--iwb-space-8) 0 var(--iwb-space-4); }
|
||
/* 数据备份与恢复弹窗 */
|
||
.iwb-backup-modal { width: 560px; }
|
||
/* 嵌入设置面板时:不要外框、不要固定宽度(用户反馈「不要框住了」) */
|
||
.iwb-backup-embedded { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 760px; }
|
||
.iwb-backup-embedded .iwb-modal-body { display: flex; flex-direction: column; gap: 14px; padding: 0; }
|
||
.iwb-backup-modal .iwb-modal-body { font-size: 14px; gap: 14px; }
|
||
.iwb-backup-sec { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; border: 1px solid var(--iwb-border); border-radius: 10px; background: color-mix(in srgb, var(--iwb-layer) 30%, transparent); }
|
||
.iwb-backup-sec-title { font-weight: 700; color: var(--iwb-brand-text, var(--iwb-brand)); font-size: 13px; }
|
||
.iwb-backup-item { display: flex; align-items: center; gap: 8px; font-size: var(--iwb-font-md); cursor: pointer; padding: 2px 0; }
|
||
.iwb-backup-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--iwb-brand); cursor: pointer; }
|
||
.iwb-backup-item-name { flex: 0 0 auto; }
|
||
.iwb-backup-item-count { margin-left: auto; color: var(--iwb-text2); font-size: 12px; }
|
||
.iwb-backup-all .iwb-backup-item-name { font-weight: 700; }
|
||
.iwb-backup-keys { padding-left: 22px; }
|
||
.iwb-backup-keys .iwb-backup-item-name { color: var(--iwb-err); }
|
||
.iwb-warn { color: var(--iwb-err); }
|
||
.iwb-backup-actions { display: flex; gap: 8px; margin-top: 4px; }
|
||
.iwb-backup-actions .iwb-btn { font-size: 13px; }
|
||
.iwb-backup-file { font-size: var(--iwb-font-sm); color: var(--iwb-text2); padding: 2px 0 4px; }
|
||
.iwb-backup-note { font-size: 12px; color: var(--iwb-text2); line-height: 1.6; }
|
||
.iwb-settings-modal .iwb-hint { font-size: var(--iwb-font-md); }
|
||
.iwb-settings-modal .iwb-btn { height: var(--iwb-control-h); font-size: var(--iwb-font-md); }
|
||
.iwb-settings-modal .iwb-section-title { font-size: var(--iwb-font-lg); margin: var(--iwb-space-6) 0 var(--iwb-space-8); }
|
||
.iwb-settings-modal .iwb-section-sub { font-size: var(--iwb-font-md); }
|
||
.iwb-settings-modal .iwb-provider-card { padding: var(--iwb-space-12); gap: var(--iwb-space-8); }
|
||
.iwb-settings-modal .iwb-row { gap: var(--iwb-space-8); }
|
||
.iwb-settings-modal .iwb-keyrow, .iwb-settings-modal .iwb-speed-row, .iwb-settings-modal .iwb-mode-row { padding: var(--iwb-space-6) 0; gap: var(--iwb-space-8); }
|
||
.iwb-settings-modal .iwb-modellist .iwb-check { font-size: var(--iwb-font-md); }
|
||
.iwb-toolbar { overflow: visible; }
|
||
|
||
.iwb-node-fixed .iwb-node-body { display: flex; flex-direction: column; overflow: visible; min-height: 0; }
|
||
.iwb-node-fixed .iwb-textarea { flex: 1 1 auto; max-height: none; min-height: 56px; height: auto !important; }
|
||
|
||
/* ---- v3:toast 提示 ---- */
|
||
.iwb-toast { position: fixed; left: 50%; top: 56px; transform: translateX(-50%); z-index: var(--iwb-z-toast); background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: var(--iwb-radius-card); padding: 10px 18px; box-shadow: var(--iwb-elevation-2); font-size: var(--iwb-font-md); font-weight: 600; animation: iwb-fadein 0.18s ease; }
|
||
.iwb-toast-ok { border-left: 3px solid var(--iwb-brand); }
|
||
.iwb-toast-err { border-left: 3px solid var(--iwb-err); }
|
||
@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: 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 .15s; } /*iwb:raw-until=3.28.0*/
|
||
.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 定位:右侧展开不切割、层级高于画布) */
|
||
.iwb-wsrail-title-more-wrap { position: relative; margin-left: auto; display: inline-flex; align-items: center; }
|
||
.iwb-ws-title-more { flex: 0 0 24px; width: 24px; height: 24px; padding: 0; }
|
||
.iwb-ws-more { position: fixed; z-index: var(--iwb-z-modal-menu); min-width: 210px; padding: 6px; background: var(--iwb-bg-menu); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-panel); box-shadow: var(--iwb-elevation-2); display: flex; flex-direction: column; gap: 2px; }
|
||
.iwb-ws-more .iwb-ctx-item { white-space: nowrap; }
|
||
.iwb-ws-more-ver { font-size: 11px; color: var(--iwb-text2); padding: 4px 10px 2px; user-select: none; }
|
||
.iwb-wsrail-title-more .iwb-ws-title-more { color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
/* 展开状态下顶部标题字号翻倍(含内部文字 span,覆盖 .iwb-btn-text 固定 12px) */
|
||
.ws-expanded .iwb-wsrail-title { font-size: 18px; }
|
||
.ws-expanded .iwb-wsrail-title .iwb-btn-text { font-size: inherit; }
|
||
.iwb-wsrail-label { font-size: var(--iwb-font-2xs); color: var(--iwb-text2); font-weight: 700; letter-spacing: 1px; margin: 2px 2px 4px; user-select: none; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-wsrail-foot { flex: 0 0 auto; border-top: 1px solid var(--iwb-border); padding: 10px; flex-direction: column; gap: 8px; }
|
||
.iwb-wsrail-footrow { display: flex; gap: 6px; }
|
||
.iwb-wsrail-footrow .iwb-btn { flex: 1 1 auto; justify-content: center; font-size: 11px; }
|
||
/* 组合来源停用标记 */
|
||
.iwb-combine-src-off { color: var(--iwb-text2); opacity: 0.55; text-decoration: line-through; }
|
||
/* 页面加载动画:logo 弹跳 + 进度条光斑 + 淡出 */
|
||
.iwb-splash { position: fixed; inset: 0; z-index: var(--iwb-z-splash); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--iwb-bg); transition: opacity 0.5s ease; }
|
||
.iwb-splash-fade { opacity: 0; pointer-events: none; }
|
||
.iwb-splash-logo { width: 54px; height: 54px; color: var(--iwb-brand-text, var(--iwb-brand)); animation: iwb-splash-bounce 1.2s ease-in-out infinite; }
|
||
.iwb-splash-title { font-size: 18px; font-weight: 700; color: var(--iwb-text); letter-spacing: 1px; }
|
||
.iwb-splash-sub { font-size: 12px; color: var(--iwb-text2); }
|
||
.iwb-splash-bar { width: 240px; height: 5px; border-radius: 3px; background: var(--iwb-layer); overflow: hidden; position: relative; border: 1px solid var(--iwb-border); }
|
||
.iwb-splash-bar-fill { position: absolute; top: 0; bottom: 0; width: 38%; border-radius: 3px; background: linear-gradient(90deg, var(--iwb-brand), color-mix(in srgb, var(--iwb-brand) 55%, #ffffff)); animation: iwb-splash-load 1.1s ease-in-out infinite; }
|
||
@keyframes iwb-splash-load { 0% { transform: translateX(-120%); } 100% { transform: translateX(380%); } }
|
||
@keyframes iwb-splash-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
|
||
|
||
/* 节点停用(M 键):不参与执行,半透明 + 灰色虚线边 */
|
||
.iwb-node-disabled { opacity: 0.55; filter: grayscale(0.35); }
|
||
.iwb-node-disabled .iwb-node-head { background: color-mix(in srgb, var(--iwb-field) 60%, transparent); }
|
||
.iwb-node-disabled .iwb-port { opacity: var(--iwb-opacity-disabled); }
|
||
.iwb-canvas { transition: left var(--iwb-motion-slow) var(--iwb-ease-in-out); }
|
||
.iwb-toolbar-wrap { position: absolute; left: 0; right: 60px; bottom: 14px; display: flex; justify-content: center; pointer-events: none; z-index: 10; }
|
||
.iwb-overlay.has-minimap .iwb-toolbar-wrap { right: 244px; }
|
||
|
||
/* ---- v3:工具栏分组 ---- */
|
||
.iwb-tgroup { display: inline-flex; align-items: center; gap: var(--iwb-space-4); padding: 3px 6px; border-radius: var(--iwb-radius-control); background: var(--iwb-layer); font-size: var(--iwb-font-2xs); color: var(--iwb-text2); } /*iwb:raw-until=3.28.0*/
|
||
.iwb-tgroup:empty { display: none; }
|
||
.iwb-task-count { display: inline-flex; align-items: center; }
|
||
.iwb-toolbar { gap: 6px; }
|
||
.iwb-toolbar .iwb-btn { padding: 4px 7px; }
|
||
|
||
/* ---- v3.1:参数行压缩 / 全屏编辑弹窗 / 面板互斥 ---- */
|
||
.iwb-paramrow { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
|
||
.iwb-plabel { flex: 0 0 64px; font-size: 11px; color: var(--iwb-text2); }
|
||
.iwb-paramrow .iwb-input { flex: 1 1 auto; min-width: 0; }
|
||
.iwb-modal-lg { width: min(900px, 94vw); height: min(84vh, 760px); }
|
||
.iwb-modal-lg .iwb-modal-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
|
||
.iwb-modal-lg .iwb-textarea { flex: 1 1 auto; min-height: 200px; }
|
||
|
||
/* ---- 参考图节点:图片随框自适应 / 底部操作栏 / 固定高度填满 ---- */
|
||
.iwb-ref-body { display: flex; flex-direction: column; gap: var(--iwb-space-6); min-height: 0; position: relative; }
|
||
.iwb-ref-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--iwb-space-6); }
|
||
.iwb-node-fixed .iwb-ref-single { flex: 1 1 auto; min-height: 0; max-height: none; height: auto; }
|
||
.iwb-node-fixed .iwb-ref-show { flex: 1 1 auto; min-height: 0; }
|
||
|
||
/* ---- 右侧统一面板抽屉(提示词库 / 节点组 / 图片历史) ---- */
|
||
.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-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)); }
|
||
/* 嵌入抽屉时面板填满 */
|
||
.iwb-lib-embedded, .iwb-groups-embedded { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
|
||
/* 节点组卡片:删除按钮默认隐藏,悬停卡片时显示 */
|
||
.iwb-groups-embedded .iwb-pcard .iwb-pbtns { visibility: hidden; }
|
||
.iwb-groups-embedded .iwb-pcard:hover .iwb-pbtns { visibility: visible; }
|
||
.iwb-groups-embedded .iwb-pcard:focus-within .iwb-pbtns { visibility: visible; }
|
||
/* 节点组卡片删除按钮:红色醒目(不受浅灰卡片按钮规则影响) */
|
||
.iwb-groups-embedded .iwb-pcard .iwb-btn-danger { color: var(--iwb-err); opacity: 1; }
|
||
.iwb-groups-embedded .iwb-pcard .iwb-btn-danger:hover { color: var(--iwb-err); opacity: 1; background: transparent; }
|
||
/* 节点组卡片:双击标题原位置改名(编辑态高亮、禁拖拽光标) */
|
||
.iwb-pcard-editing { border-color: var(--iwb-brand); box-shadow: 0 0 0 1px var(--iwb-brand); cursor: text; }
|
||
.iwb-pcard-editing:active { cursor: text; }
|
||
.iwb-pname-input { font-size: 12px; font-weight: 600; padding: 2px 6px; min-width: 0; }
|
||
.iwb-history-embedded { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 12px; gap: 8px; overflow: hidden; }
|
||
.iwb-history-embedded .iwb-history-grid { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; display: flex; align-items: flex-start; gap: 8px; padding: 2px 2px 8px; }
|
||
.iwb-history-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
|
||
.iwb-history-embedded .iwb-history-item { position: relative; flex: none; width: 100%; }
|
||
.iwb-history-embedded .iwb-history-item img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--iwb-border); background: var(--iwb-layer2); cursor: pointer; }
|
||
|
||
/* ---- SVG 图标 / 底部工具栏 ---- */
|
||
.iwb-ic { width: var(--iwb-icon-md); height: var(--iwb-icon-md); flex: 0 0 auto; }
|
||
.iwb-btn-primary .iwb-ic { width: 15px; height: 15px; }
|
||
.iwb-btn-text { font-size: 12px; }
|
||
.iwb-wsrail-foot .iwb-btn .iwb-ic { width: var(--iwb-icon-sm); height: var(--iwb-icon-sm); }
|
||
|
||
/* ---- 图库管理操作(点选后出现) ---- */
|
||
.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: 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 .12s, color .12s; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-toolbar-bottom .iwb-btn:hover { opacity: 1; color: var(--iwb-text); }
|
||
.iwb-toolbar-bottom .iwb-btn:active { opacity: 1; color: var(--iwb-text); }
|
||
.iwb-toolbar-bottom .iwb-btn:disabled { opacity: 0.32; }
|
||
/* 2026-11-23 清账:这里原有两条规则引用 `--iwb-accent`(全仓从未定义),已删除。
|
||
复核结论比原判断更彻底 —— `.iwb-btn-active` 与 `.iwb-layout-lock-state` 这两个类
|
||
**从 fork 快照起就没有任何 JS 生产者**(git log -S 可查),是上游遗留的死选择器,
|
||
所以不是「按钮高亮失效的 bug」,而是「永不生效的规则」。要真做工具栏选中态请显式加类并走 token。 */
|
||
.iwb-toolbar-bottom .iwb-ic { width: var(--iwb-icon-lg); height: var(--iwb-icon-lg); }
|
||
.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; }
|
||
[data-tip]::after {
|
||
content: attr(data-tip);
|
||
position: absolute;
|
||
bottom: calc(100% + 8px);
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
background: var(--iwb-text);
|
||
color: var(--iwb-bg);
|
||
padding: 4px 9px;
|
||
border-radius: 6px;
|
||
font-size: 11px;
|
||
font-weight: 500;
|
||
line-height: 1.3;
|
||
white-space: nowrap;
|
||
z-index: 80;
|
||
pointer-events: none;
|
||
opacity: 0;
|
||
visibility: hidden;
|
||
transition: opacity .12s, visibility .12s;
|
||
box-shadow: 0 3px 10px rgba(0,0,0,0.25);
|
||
}
|
||
[data-tip]:hover::after { opacity: 1; visibility: visible; }
|
||
.iwb-node [data-tip]::after { bottom: auto; top: calc(100% + 6px); }
|
||
.iwb-toolbar-bottom [data-tip]::after { bottom: calc(100% + 8px); }
|
||
/* 节点气泡操作栏(2026-10-30):气泡在节点上方 ⇒ 提示朝上;气泡翻到节点下方 ⇒ 提示朝下。
|
||
禁用按钮默认收不到鼠标事件,但「编组/解组/下载」常态就是禁用的 —— 恰恰最需要提示解释原因,
|
||
所以给禁用态放开 pointer-events(点击仍是禁用的,只恢复 hover 命中)。 */
|
||
.iwb-node-floatbar [data-tip]::after { bottom: calc(100% + 8px); }
|
||
.iwb-node-floatbar.iwb-node-floatbar-below [data-tip]::after { bottom: auto; top: calc(100% + 8px); }
|
||
.iwb-node-floatbar button:disabled { pointer-events: auto; }
|
||
|
||
/* ---- 滚动条(全站):白底 → 浅灰底;thumb 中灰,亮暗主题自适应(v3.1.0 首页协调) ---- */
|
||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||
::-webkit-scrollbar-track { background: color-mix(in srgb, var(--iwb-bg) 70%, var(--iwb-canvas-bg) 30%); }
|
||
::-webkit-scrollbar-thumb { background: var(--iwb-border2); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
|
||
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--iwb-text2) 70%, transparent); background-clip: padding-box; border: 2px solid transparent; }
|
||
::-webkit-scrollbar-corner { background: transparent; }
|
||
html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in srgb, var(--iwb-bg) 70%, var(--iwb-canvas-bg) 30%); }
|
||
|
||
/* ---- 统一按钮 / 输入框设计 ---- */
|
||
.iwb-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
background: var(--iwb-layer2);
|
||
border: 1px solid var(--iwb-border);
|
||
color: var(--iwb-text);
|
||
border-radius: var(--rd);
|
||
padding: 5px 10px;
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
transition: border-color var(--tr-fast), background var(--tr-fast), color var(--tr-fast), box-shadow var(--tr-fast);
|
||
}
|
||
.iwb-btn:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-btn:active { transform: translateY(1px); }
|
||
.iwb-btn:focus-visible { outline: var(--iwb-focus-ring); outline-offset: 2px; }
|
||
/* D8 补齐:菜单项 / 右键菜单项 / 停靠栏按钮 / 下拉,此前用鼠标没问题、纯键盘走查全靠猜 */
|
||
.iwb-ctx-item:focus-visible,
|
||
.iwb-home-menu-item:focus-visible,
|
||
.iwb-dock-btn:focus-visible,
|
||
.iwb-nav-item:focus-visible,
|
||
.iwb-wsrail-title:focus-visible { outline: var(--iwb-focus-ring); outline-offset: -2px; }
|
||
.iwb-btn:disabled { opacity: var(--iwb-opacity-disabled); cursor: not-allowed; transform: none; }
|
||
.iwb-btn-primary { background: var(--iwb-brand); border-color: var(--iwb-brand); color: var(--iwb-on-brand); }
|
||
.iwb-btn-primary:hover { background: color-mix(in srgb, var(--iwb-brand) 85%, #000); border-color: var(--iwb-brand); color: var(--iwb-on-brand); }
|
||
/* 常驻选中态(画布工具组的「当前工具」):底栏按钮本身是「无边框 + 透明底」,所以这里用淡填充药丸表示
|
||
「当前工具」,与 :hover 的瞬时反馈区分开。!important 是必须的——上面 .iwb-btn 的 background/border 就是 !important。 */
|
||
.iwb-toolbar-bottom .iwb-btn-on { background: color-mix(in srgb, var(--iwb-tint) 12%, transparent) !important; border-radius: 8px; color: var(--iwb-text) !important; opacity: 1 !important; }
|
||
.iwb-btn-sm { padding: 3px 7px; font-size: var(--iwb-font-xs); }
|
||
.iwb-btn-danger { color: var(--iwb-err); }
|
||
.iwb-btn-danger:hover { border-color: var(--iwb-err); color: var(--iwb-err); }
|
||
.iwb-input, .iwb-textarea {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
outline: none;
|
||
background: var(--iwb-layer2);
|
||
border: 1px solid var(--iwb-border);
|
||
border-radius: var(--rd);
|
||
color: var(--iwb-text);
|
||
font-size: var(--iwb-font-sm);
|
||
padding: 6px 9px;
|
||
transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
|
||
}
|
||
.iwb-textarea { resize: none; line-height: 1.5; }
|
||
.iwb-textarea-plain { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
|
||
.iwb-textarea-plain:focus { border-color: transparent; box-shadow: none; }
|
||
.iwb-input:focus, .iwb-textarea:focus { border-color: var(--iwb-brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 20%, transparent); }
|
||
/* 输入框提示文字统一淡色(层级:placeholder < 输入值 < 标签) */
|
||
.iwb-input::placeholder, .iwb-textarea::placeholder { color: color-mix(in srgb, var(--iwb-text) 34%, transparent); opacity: 1; }
|
||
/* 节点卡里的**控件**吃「卡片内控件面」(D10);正文文本区例外,见下一条。
|
||
基础 .iwb-input 用的是 --iwb-layer2,在暗色等于面板色:铺在 #3d 的节点上就是一块近黑方框。
|
||
弹窗/抽屉里的输入框不受影响(它们不在 .iwb-node 内,仍用 layer2)。 */
|
||
.iwb-node .iwb-input, .iwb-node .iwb-textarea:not(.iwb-textarea-plain) { background: var(--iwb-field); }
|
||
/* 节点正文文本区(提示词 / 文本 / 插件正文):**不是控件面**,不铺 --iwb-field。
|
||
它只是画在卡片上的一段文字,必须透明继承卡片底色(包括 data-bg 自定义底色);
|
||
常态、聚焦、编辑态都不画控件边框/圆角/聚焦光晕 —— 编辑状态由 .iwb-node-selected 的
|
||
选中框表达,控件框会在灰色卡片里再套出一张白卡片和一个方框(用户 2026-11-23 反馈)。
|
||
:focus-visible 的全局 D8 焦点环(2px solid + 2px offset)也必须在这里关掉 —— 它同样会
|
||
画成一个方框;此处的焦点反馈由 .iwb-node-selected 承担,其余控件照旧保留 D8 环。
|
||
必须带 .iwb-node 前缀且放在基础 .iwb-textarea:focus 之后:旧写法
|
||
.iwb-textarea-plain:focus(0,2,0) 被后面的 .iwb-textarea:focus 同优先级覆盖,
|
||
于是编辑时 2px 聚焦光晕又冒出来成了「方框」。 */
|
||
.iwb-node .iwb-textarea-plain {
|
||
background: transparent;
|
||
border: 0;
|
||
border-radius: 0;
|
||
padding: 0;
|
||
box-shadow: none;
|
||
}
|
||
.iwb-node .iwb-textarea-plain:focus,
|
||
.iwb-node .iwb-textarea-plain:focus-visible {
|
||
outline: none;
|
||
border-color: transparent;
|
||
box-shadow: none;
|
||
}
|
||
/* 设置面板:单行输入框/选择框限宽,不横向布满(表单化);行内组合(grow/num/keyname)与多行文本保持弹性 */
|
||
.iwb-settings-modal .iwb-input:not(.iwb-grow):not(.iwb-num):not(.iwb-keyname):not(.iwb-llm-keyname):not(.iwb-hdrbox) { max-width: 460px; }
|
||
/* 宽度/弹性覆盖(必须在 .iwb-input 定义之后,否则 width:100% 覆盖固定宽度类导致排版错位) */
|
||
.iwb-grow { flex: 1 1 0%; min-width: 0; }
|
||
.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-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; }
|
||
.iwb-wsrail-foot .iwb-btn { border-radius: 8px; background: color-mix(in srgb, var(--iwb-layer) 42%, transparent); border-color: color-mix(in srgb, var(--iwb-border2) 40%, transparent); }
|
||
.iwb-drawer-toggle { align-items: center; gap: 4px; writing-mode: initial; }
|
||
|
||
/* 窄屏时压缩工具栏避免换行 */
|
||
@media (max-width: 760px) {
|
||
.iwb-toolbar-bottom { padding: 6px 8px; gap: 4px; }
|
||
.iwb-toolbar-bottom .iwb-btn { padding: 4px 6px; }
|
||
.iwb-toolbar-bottom .iwb-ic { width: 15px; height: 15px; }
|
||
.iwb-toolbar-bottom .iwb-tgroup { padding: 2px 4px; font-size: var(--iwb-font-2xs); } /*iwb:raw-until=3.28.0*/
|
||
}
|
||
|
||
/* ---- 右侧竖向面板栏(与左侧栏统一:无阴影) ---- */
|
||
.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-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; }
|
||
|
||
.iwb-ws-headicon { flex: 0 0 26px; width: 26px; height: 24px; padding: 0; justify-content: center; background: transparent !important; border: none !important; color: var(--iwb-text2); opacity: 0.75; transition: opacity .12s, color .12s; }
|
||
.iwb-ws-headicon:hover { opacity: 1; color: var(--iwb-text); }
|
||
.iwb-ws-headicon:active { opacity: 1; color: var(--iwb-text); }
|
||
.iwb-ws-headicon.iwb-btn-primary { background: transparent !important; border: none !important; color: var(--iwb-brand-text, var(--iwb-brand)); opacity: 1; }
|
||
.iwb-ws-headicon .iwb-ic { width: var(--iwb-icon-sm); height: var(--iwb-icon-sm); }
|
||
|
||
.iwb-toolbar-bottom .iwb-btn-fit .iwb-ic { width: 15px; height: 15px; }
|
||
.iwb-toolbar-bottom .iwb-btn-fit { padding: 7px 7px; }
|
||
|
||
/* ---- 连线拖拽反馈:可连接绿框 / 不可连接红框 ---- */
|
||
.iwb-node.iwb-conn-ok { border-color: var(--iwb-ok) !important; box-shadow: 0 0 0 2px var(--iwb-ok-bd), var(--iwb-elevation-2) !important; }
|
||
.iwb-node.iwb-conn-bad { border-color: var(--iwb-err) !important; box-shadow: 0 0 0 2px var(--iwb-err-bd), var(--iwb-elevation-2) !important; }
|
||
.iwb-conn-hint { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 6; padding: var(--iwb-space-4) var(--iwb-space-6); border-radius: var(--iwb-radius-chip); color: var(--iwb-err); background: rgba(254, 226, 226, 0.96); border: 1px solid rgba(239, 68, 68, 0.35); font-size: var(--iwb-font-xs); line-height: 1.25; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.iwb-command-mask { position: fixed; inset: 0; z-index: var(--iwb-z-command); display: flex; justify-content: center; align-items: flex-start; padding-top: 13vh; background: rgba(10, 12, 18, 0.32); }
|
||
.iwb-command { width: min(560px, calc(100vw - 32px)); max-height: min(560px, 72vh); overflow: hidden; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: var(--iwb-radius-panel); box-shadow: var(--iwb-elevation-3); display: flex; flex-direction: column; }
|
||
.iwb-command-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--iwb-border); }
|
||
.iwb-command-icon { color: var(--iwb-brand-text, var(--iwb-brand)); font-size: 11px; font-weight: 800; }
|
||
.iwb-command-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--iwb-text); font-size: 14px; }
|
||
.iwb-command-list { overflow-y: auto; padding: 6px; }
|
||
.iwb-command-item { width: 100%; display: flex; align-items: center; gap: var(--iwb-space-10); padding: 9px 10px; border: 0; border-radius: var(--iwb-radius-chip); background: transparent; color: var(--iwb-text); text-align: left; cursor: pointer; font-size: var(--iwb-font-md); } /*iwb:raw-until=3.28.0*/
|
||
.iwb-command-item:hover, .iwb-command-item:focus { outline: 0; background: var(--iwb-layer2); color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-command-item-active { outline: 0; background: var(--iwb-layer2); color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-command-item .iwb-ic { width: var(--iwb-icon-md); height: var(--iwb-icon-md); flex: 0 0 auto; }
|
||
.iwb-command-empty { padding: 22px 12px; text-align: center; color: var(--iwb-text2); font-size: 12px; }
|
||
.iwb-command-foot { padding: 8px 14px; border-top: 1px solid var(--iwb-border); color: var(--iwb-text2); font-size: 11px; }
|
||
.iwb-edge-temp.iwb-edge-ok { stroke: var(--iwb-ok) !important; }
|
||
.iwb-edge-temp.iwb-edge-bad { stroke: var(--iwb-err) !important; }
|
||
|
||
/* 任务失败详情 */
|
||
.iwb-task-err-toggle { display: block; width: 100%; text-align: left; margin-top: var(--iwb-space-6); font-size: var(--iwb-font-xs); color: var(--iwb-err); background: var(--iwb-err-bg); border: 1px solid var(--iwb-err-bd); border-radius: var(--iwb-radius-chip); cursor: pointer; padding: var(--iwb-space-4) var(--iwb-space-6); }
|
||
.iwb-task-err-toggle:hover { background: var(--iwb-err-bg); }
|
||
.iwb-task-err { margin-top: var(--iwb-space-6); border: 1px solid var(--iwb-err-bd); border-radius: var(--iwb-radius-chip); background: var(--iwb-err-bg); padding: var(--iwb-space-6) var(--iwb-space-8); }
|
||
.iwb-task-errline { font-size: var(--iwb-font-xs); color: var(--iwb-err); word-break: break-all; line-height: 1.6; padding: var(--iwb-space-2) 0; }
|
||
/* 失败分类颜色:连接=红、资源/额度=橙、密钥=紫、服务商=红棕、其他=灰 */
|
||
.iwb-err-conn { color: var(--iwb-err); }
|
||
.iwb-err-quota { color: var(--iwb-warn); }
|
||
.iwb-err-auth { color: var(--iwb-err); } /* 鉴权失败=错误语义,紫改红 */
|
||
.iwb-err-srv { color: var(--iwb-err); }
|
||
.iwb-err-other { color: var(--iwb-text2); }
|
||
.iwb-err-unknown { color: var(--iwb-warn); font-weight: 600; }
|
||
.iwb-err-cancelled { color: var(--iwb-text2); font-weight: 600; }
|
||
|
||
/* ---- 窄屏适配(轻量) ---- */
|
||
@media (max-width: 860px) {
|
||
.iwb-drawer { width: 300px; }
|
||
/* 全屏提示词库:窄屏限制编辑区宽度、批量行可换行 */
|
||
.iwb-full-edit { max-width: 80vw; }
|
||
.iwb-full-batch { flex-wrap: wrap; }
|
||
.iwb-full-batch-move { width: 130px; }
|
||
}
|
||
@media (max-width: 720px) {
|
||
.iwb-statusbar .iwb-status-item:nth-child(3), .iwb-statusbar .iwb-status-item:nth-child(4) { display: none; }
|
||
.iwb-minimap { display: none; }
|
||
.iwb-overlay.has-minimap .iwb-toolbar-wrap { right: 24px; }
|
||
.iwb-toolbar-bottom { max-width: calc(100vw - 40px); }
|
||
/* 全屏提示词库:小屏缩小编辑区/编辑器输入高度,内容区滚动 */
|
||
.iwb-full-left { padding: 8px 10px; }
|
||
.iwb-full-editor-text { min-height: 120px; }
|
||
.iwb-full-edit { max-width: 72vw; }
|
||
.iwb-full-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
|
||
}
|
||
|
||
/* ---- 自定义右键菜单 ---- */
|
||
.iwb-ctxmask { position: fixed; inset: 0; background: transparent; z-index: var(--iwb-z-ctx); }
|
||
.iwb-ctxmenu { position: fixed; min-width: 196px; max-width: 240px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 6px; background: var(--iwb-bg-menu); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-panel); box-shadow: var(--iwb-elevation-2); z-index: var(--iwb-z-ctx-menu); display: flex; flex-direction: column; gap: 2px; }
|
||
/* 提示词/节点组的右键「移动到分组」菜单已 portal 到 body:需高于 .iwb-overlay(z-index:100),否则被应用层盖住 */
|
||
.iwb-ctxmenu.iwb-lib-group-menu,
|
||
/* 导航栏「更多」菜单同为挂 body 的 portal 菜单;不并入这条会落到 .iwb-ctxmenu 的 91,被 .iwb-overlay(100) 整页盖住(2026-11-25 实测) */
|
||
.iwb-ctxmenu.iwb-nav-more-menu { z-index: var(--iwb-z-sheet-menu); /* 面板内的 portal 菜单:> sheet、< modal,见 tokens 层级表 */ }
|
||
.iwb-ctx-title { font-size: var(--iwb-font-2xs); font-weight: 700; color: var(--iwb-text2); letter-spacing: 1px; padding: 6px 10px 2px; text-transform: uppercase; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-ctx-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: none; border-radius: 8px; background: transparent; color: var(--iwb-text); font-size: var(--iwb-font-sm); cursor: pointer; text-align: left; }
|
||
.iwb-ctx-item .iwb-ic { width: var(--iwb-icon-sm); height: var(--iwb-icon-sm); flex: 0 0 auto; color: var(--iwb-text2); }
|
||
.iwb-ctx-item:hover:not(:disabled) { background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); color: var(--iwb-text); }
|
||
.iwb-ctx-item:hover:not(:disabled) .iwb-ic { color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-ctx-item:disabled { opacity: 0.38; cursor: default; }
|
||
.iwb-ctx-item.iwb-ctx-danger { color: var(--iwb-err); }
|
||
.iwb-ctx-item.iwb-ctx-danger .iwb-ic { color: var(--iwb-err); }
|
||
.iwb-ctx-item.iwb-ctx-danger:hover:not(:disabled) { background: var(--iwb-err-bg); color: var(--iwb-err); }
|
||
.iwb-ctx-sep { height: 1px; margin: 4px 6px; background: var(--iwb-border); flex: 0 0 auto; }
|
||
/* ---- 二级菜单(2026-11-19 用户要求:一级太长了)----
|
||
* 「选中操作」「该节点」两组收进子菜单,一级只留入口。纯 CSS 展开(:hover + :focus-within),
|
||
* 不占 React 状态:鼠标悬停或键盘 Tab 到入口都会展开,点击入口也会(button 获得焦点)。
|
||
* 定位:默认贴父项右侧(一级菜单永远离视口右边 ≥210px,见 app.js 的 left 夹取,放得下 200px 子菜单);
|
||
* 最后一项「该节点」用 .iwb-ctx-sub-up 改为底对齐,避免向下溢出视口。 */
|
||
.iwb-ctx-subwrap { position: relative; display: flex; flex-direction: column; }
|
||
.iwb-ctx-arrow { margin-left: auto; padding-left: var(--iwb-space-10); font-style: normal; font-size: var(--iwb-font-2xs); line-height: 1; color: var(--iwb-text2); opacity: var(--iwb-opacity-muted); }
|
||
.iwb-ctx-sub { position: absolute; left: calc(100% + 6px); bottom: -6px; display: none; min-width: 200px; overflow: visible; max-height: none; }
|
||
/* 6px 缝隙也要能滑过去,否则鼠标一移就收起来了。注意子菜单必须 overflow:visible,
|
||
* 否则这条桥接用的伪元素会被 .iwb-ctxmenu 继承来的 overflow-y:auto 裁掉,等于没加。 */
|
||
.iwb-ctx-sub::before { content: ''; position: absolute; left: -8px; top: 0; width: 8px; height: 100%; }
|
||
/* 兜底:入口本身就在菜单最顶上时改用向下展开 */
|
||
.iwb-ctx-sub-down { top: -6px; bottom: auto; }
|
||
.iwb-ctx-subwrap:hover > .iwb-ctx-sub, .iwb-ctx-subwrap:focus-within > .iwb-ctx-sub { display: flex; }
|
||
/* 一级菜单开了这个类就不再裁剪:overflow-y:auto 的祖先会把绝对定位的子菜单切掉 */
|
||
.iwb-ctxmenu.iwb-ctx-noclip { overflow: visible; max-height: none; }
|
||
|
||
/* ---- 历史图片:常量可选(单击选择 / 双击放大)+ 单图操作 ---- */
|
||
/* 选中有值(iwb-history-managed)时未选图片微暗,突出已选;基础 cursor 已统一为 pointer */
|
||
/* 多选:只轻微降亮,不再用 .82 把深色缩略图压成黑块;选中格靠勾选点 + 双环区分 */
|
||
.iwb-history-managed img { opacity: 0.94; }
|
||
.iwb-history-managed:hover img { opacity: 0.98; }
|
||
.iwb-history-selected { background: var(--iwb-selection-bg); border-radius: var(--iwb-radius-chip, 6px); }
|
||
.iwb-history-selected img {
|
||
opacity: 1;
|
||
border: 2px solid var(--iwb-selection-ring);
|
||
outline: 2px solid var(--iwb-selection-halo);
|
||
outline-offset: 1px;
|
||
}
|
||
/* 选中态优先级高于插件自己的 hover(插件 img:hover 会覆盖 border-color):选中环在 hover 时也不能消失 */
|
||
body .iwb-history-embedded .iwb-history-item.iwb-history-selected img,
|
||
body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img {
|
||
border: 2px solid var(--iwb-selection-ring);
|
||
outline: 2px solid var(--iwb-selection-halo);
|
||
outline-offset: 1px;
|
||
}
|
||
.iwb-history-check { position: absolute; top: 5px; left: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--iwb-selection-ring); color: var(--iwb-selection-on); display: flex; align-items: center; justify-content: center; pointer-events: none; font-size: var(--iwb-font-sm, 12px); font-weight: 700; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.28); }
|
||
.iwb-history-check::after { content: '✓'; }
|
||
.iwb-history-selected .iwb-history-check { background: var(--iwb-selection-ring); }
|
||
.iwb-history-check .iwb-ic { width: 12px; height: 12px; }
|
||
|
||
/* ---- 生图节点:参数设置(横向一行,无标题无分类) ---- */
|
||
.iwb-gen-row { display: flex; gap: var(--iwb-space-4); align-items: center; }
|
||
.iwb-gen-cell { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
|
||
.iwb-gen-cell .iwb-input { width: auto; max-width: 100%; font-size: var(--iwb-font-lg); background-color: var(--iwb-field); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23c8cdd6' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 5px center; border: none; appearance: none; -webkit-appearance: none; -moz-appearance: none; }
|
||
.iwb-gen-cell .iwb-input:focus { outline: none; background-color: color-mix(in srgb, var(--iwb-brand) 6%, var(--iwb-field)); }
|
||
|
||
/* ---- 任务卡:张数下拉移到右下角(状态在左) ---- */
|
||
.iwb-task-btns { display: inline-flex; align-items: center; gap: var(--iwb-space-4); flex: 0 0 auto; }
|
||
/* 任务卡左侧有 1px 描边 + 8px 内边距,批量管理行没有 ⇒ 补 9px 让两处复选框落在同一条竖线上(2026-11-01) */
|
||
.iwb-task-bulkbar { padding-left: var(--iwb-space-8); }
|
||
.iwb-task-check { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 auto; cursor: pointer; border-radius: var(--iwb-radius-chip); margin-right: var(--iwb-space-2); transition: background .12s; }
|
||
.iwb-task-check:hover { background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); }
|
||
.iwb-task-check input { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--iwb-text); }
|
||
.iwb-task-title { flex: 1 1 auto; min-width: 0; }
|
||
.iwb-task-inactive { opacity: 0.55; border-left-color: var(--iwb-border2); }
|
||
.iwb-task-inactive .iwb-task-title { text-decoration: line-through; }
|
||
.iwb-task { position: relative; overflow: hidden; }
|
||
.iwb-task-refinfo { font-size: var(--iwb-font-2xs); font-weight: 400; color: var(--iwb-text-dim); margin-left: var(--iwb-space-2); white-space: nowrap; }
|
||
.iwb-generation-spinner { position: relative; z-index: 2; display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; border: 2px solid var(--iwb-anim-track); border-top-color: var(--iwb-anim); border-right-color: var(--iwb-anim); border-radius: 50%; animation: iwb-generation-spinner-spin 0.9s linear infinite; }
|
||
.iwb-task-count-sel { min-width: 56px; border: none; background-color: transparent; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23c8cdd6' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 3px center; appearance: none; -webkit-appearance: none; -moz-appearance: none; }
|
||
@keyframes iwb-generation-spinner-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.iwb-generation-spinner, .iwb-out-prog::before { animation: none; transition: none; }
|
||
.iwb-out-prog::before { transform: none; }
|
||
}
|
||
|
||
.iwb-gen-head .iwb-gen-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
|
||
/* ---- 标注文字节点 ---- */
|
||
.iwb-label-body { padding: 10px 12px; display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 40px; }
|
||
.iwb-label-input { flex: 1 1 auto; width: 100%; min-width: 0; background: transparent; border: none; outline: none; resize: none; color: var(--iwb-text); font-weight: 700; text-align: center; }
|
||
.iwb-label-input::placeholder { color: var(--iwb-text2); opacity: 0.55; font-weight: 400; }
|
||
.iwb-node-fixed .iwb-label-body { height: calc(100% - 30px); }
|
||
.iwb-node-fixed .iwb-label-input { height: 100%; }
|
||
|
||
/* 左侧栏底部:收起态图标列 + 链接按钮 */
|
||
.iwb-wsrail-foot-collapsed { padding-top: 6px; border-top: 1px solid var(--iwb-border); }
|
||
.iwb-wsrail-iconcol { display: flex; flex-direction: column; align-items: center; }
|
||
.iwb-wsrail-iconcol .iwb-ws-headicon { width: 32px; height: 30px; }
|
||
.iwb-wsrail-foot a.iwb-btn, a.iwb-btn { text-decoration: none; }
|
||
.iwb-wsrail-foot .iwb-ws-headicon .iwb-ic { width: 15px; height: 15px; }
|
||
|
||
.iwb-wsrail-iconcol { gap: 4px; }
|
||
.iwb-wsrail-foot-collapsed { padding: 8px 6px; }
|
||
|
||
/* 节点标题编辑 */
|
||
.iwb-node-title-input { flex: 1 1 auto; min-width: 0; font-size: var(--iwb-font-sm); font-weight: 600; padding: var(--iwb-space-2) var(--iwb-space-4); height: 22px; }
|
||
|
||
/* 任务卡结果图(与提示词一一对应) */
|
||
.iwb-task-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--iwb-space-6); margin-top: var(--iwb-space-8); }
|
||
.iwb-task-result { position: relative; }
|
||
.iwb-task-result-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--iwb-radius-control); border: 1px solid var(--iwb-border); cursor: zoom-in; background: var(--iwb-field); display: block; transition: border-color .12s; }
|
||
.iwb-task-result-img:hover { border-color: var(--iwb-brand); }
|
||
.iwb-task-result-meta { font-size: var(--iwb-font-2xs); color: var(--iwb-text2); text-align: center; margin-top: var(--iwb-space-2); }
|
||
.iwb-task-result-dl { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; border-radius: 0 0 8px 8px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity .15s; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-task-result:hover .iwb-task-result-dl { opacity: 1; }
|
||
.iwb-task-result-dl .iwb-ic { width: 16px; height: 16px; color: var(--iwb-on-brand); }
|
||
|
||
/* 文案组合节点 */
|
||
.iwb-combine-srcs { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; }
|
||
.iwb-combine-src { font-size: 11px; color: var(--iwb-text2); background: var(--iwb-field); border: 1px solid var(--iwb-border); border-radius: 6px; padding: 3px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
/* 组合来源行里的「样式名」标签(2026-11-14):只给插件提示词类节点打标,帮用户认出这一行来自哪条风格 */
|
||
.iwb-combine-src-tag { display: inline-block; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; margin-right: var(--iwb-space-4); padding: 0 5px; border-radius: var(--iwb-radius-chip); background: color-mix(in srgb, var(--iwb-brand) 16%, transparent); color: var(--iwb-brand-text, var(--iwb-brand)); font-size: var(--iwb-font-2xs); line-height: 15px; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-batch-srcs { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; }
|
||
.iwb-batch-src { font-size: 11px; color: var(--iwb-text2); background: var(--iwb-field); border: 1px solid var(--iwb-border); border-radius: 6px; padding: 3px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.iwb-combine-row { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
|
||
.iwb-combine-row .iwb-plabel { flex: 0 0 48px; font-size: 11px; color: var(--iwb-text2); }
|
||
.iwb-combine-row .iwb-input { flex: 1 1 auto; font-size: 11px; padding: 3px 5px; }
|
||
.iwb-combine-out { margin-top: var(--iwb-space-6); border: 1px solid color-mix(in srgb, var(--iwb-brand) 35%, transparent); border-radius: var(--iwb-radius-chip); background: color-mix(in srgb, var(--iwb-brand) 8%, transparent); padding: 6px 8px; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-combine-out-label { font-size: var(--iwb-font-2xs); font-weight: 700; color: var(--iwb-brand-text, var(--iwb-brand)); margin-bottom: 3px; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-combine-out-text { font-size: 11px; color: var(--iwb-text); white-space: pre-wrap; word-break: break-all; max-height: 90px; overflow-y: auto; }
|
||
|
||
/* 输出节点:田字格/瀑布流 + 批量下载 */
|
||
.iwb-out-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
|
||
.iwb-out-run { width: 100%; justify-content: center; margin-bottom: 8px; }
|
||
/* 画布节点内的主操作按钮统一「近黑底 + 白字」(用户要求;--iwb-text 亮色 #1c2333、暗色 #111) */
|
||
/* 节点内的主按钮是「反相」按钮:底色取文字色(深底上是浅块),字就必须取页面底 ——
|
||
用 --iwb-on-brand(#fff) 会变成白字压浅灰(暗色 1.2:1,「生成」几乎看不见)。
|
||
亮色页面底 #f7f7f7 压在 #404040 上 = 9.4:1,暗色 #121212 压在 #e3e3e3 上 = 13.9:1。 */
|
||
.iwb-node .iwb-btn-primary { background: var(--iwb-text); border-color: var(--iwb-text); color: var(--iwb-bg); }
|
||
.iwb-node .iwb-btn-primary:hover { background: color-mix(in srgb, var(--iwb-tint) 86%, var(--iwb-panel)); border-color: var(--iwb-text); color: var(--iwb-bg); }
|
||
.iwb-node .iwb-btn-primary:disabled { opacity: .45; }
|
||
.iwb-out-head .iwb-label { flex: 0 0 auto; }
|
||
.iwb-out-tools { flex: 1 1 auto; display: flex; gap: 4px; justify-content: flex-end; }
|
||
.iwb-out-tools .iwb-btn { padding: 2px 8px; font-size: 11px; }
|
||
.iwb-out-cell-img { width: 100%; height: auto; display: block; border-radius: var(--iwb-radius-control); border: 1px solid var(--iwb-border); cursor: zoom-in; background: var(--iwb-layer2); transition: border-color var(--iwb-motion-hover) var(--iwb-ease-hover), box-shadow var(--iwb-motion-hover) var(--iwb-ease-hover), transform var(--iwb-motion-hover) var(--iwb-ease-hover); }
|
||
/* 悬停:卡片级的浮起(图本身轻微抬 2px + 放大 1.02)。用 cell:hover 而不是 img:hover:
|
||
指针压到浮层按钮上时图片仍是「悬停中」,不会出现按钮还在、图先弹回去的抖动。 */
|
||
.iwb-out-cell:hover .iwb-out-cell-img { border-color: var(--iwb-hover-border); filter: drop-shadow(var(--iwb-hover-shadow)); transform: translateY(var(--iwb-hover-lift)) scale(var(--iwb-hover-scale)); }
|
||
/* 下载浮层(2026-11-26):底部渐变 + 主按钮,hover/focus 才出现;条本身不吃事件,只有按钮吃。 */
|
||
.iwb-dl-ov { position: relative; display: block; border-radius: var(--iwb-radius-control); overflow: hidden; }
|
||
.iwb-dl-ov > img { display: block; width: 100%; height: auto; }
|
||
.iwb-dl-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: var(--iwb-space-6); padding: var(--iwb-space-16) var(--iwb-space-8) var(--iwb-space-6); background-image: linear-gradient(to top, var(--iwb-scrim), transparent); opacity: 0; transition: opacity var(--iwb-motion-hover) var(--iwb-ease-hover); pointer-events: none; }
|
||
.iwb-dl-ov:hover .iwb-dl-bar, .iwb-dl-ov:focus-within .iwb-dl-bar { opacity: 1; pointer-events: auto; }
|
||
.iwb-dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--iwb-space-4); height: 24px; padding: 0 var(--iwb-space-10); border: 1px solid color-mix(in srgb, var(--iwb-on-brand) 30%, transparent); border-radius: var(--iwb-radius-full); background: var(--iwb-brand); color: var(--iwb-on-brand); font-size: var(--iwb-font-2xs); line-height: 1; cursor: pointer; box-shadow: none; }
|
||
.iwb-dl-btn:hover { filter: drop-shadow(var(--iwb-hover-shadow)) brightness(1.05); }
|
||
.iwb-dl-btn-ghost { background: color-mix(in srgb, var(--iwb-panel) 18%, transparent); color: var(--iwb-on-brand); border-color: color-mix(in srgb, var(--iwb-on-brand) 26%, transparent); }
|
||
.iwb-dl-btn .iwb-ic { width: var(--iwb-icon-sm); height: var(--iwb-icon-sm); }
|
||
.iwb-dl-txt { white-space: nowrap; }
|
||
@media (prefers-reduced-motion: reduce) { .iwb-out-cell-img, .iwb-dl-bar { transition: none; } .iwb-out-cell:hover .iwb-out-cell-img { transform: none; } }
|
||
.iwb-out-cell-meta { font-size: var(--iwb-font-2xs); color: var(--iwb-text2); text-align: center; margin-top: var(--iwb-space-2); }
|
||
.iwb-out-cell-actions { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; display: flex; align-items: center; justify-content: center; gap: var(--iwb-space-10); opacity: 0; transition: opacity .15s; border-radius: 0 0 8px 8px; background: rgba(0,0,0,0.45); } /*iwb:raw-until=3.28.0*/
|
||
.iwb-out-cell:hover .iwb-out-cell-actions { opacity: 1; }
|
||
.iwb-out-cell-actions .iwb-btn { width: 18px; height: 18px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.9); color: #333; border: none; cursor: pointer; }
|
||
.iwb-out-cell-actions .iwb-btn:hover { background: var(--iwb-panel); color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-out-cell-actions .iwb-ic { width: 11px; height: 11px; }
|
||
|
||
/* 输出节点:原比例自适应流式(组内横向排列,随节点宽度自动换行) */
|
||
.iwb-out-groups { display: flex; flex-direction: column; gap: 10px; }
|
||
.iwb-out-group-card { flex: none; width: 100%; border: 1px solid var(--iwb-border); border-radius: 10px; padding: 6px 8px 8px; background: var(--iwb-field); }
|
||
.iwb-out-group-title { font-size: 11px; font-weight: 700; margin-bottom: 5px; color: var(--iwb-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
/* 旧任务残留说明(v3.24.44):只在「当前任务之外还有旧图」时出现,一行小字,不与任务组争视觉权重 */
|
||
.iwb-out-stale { margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--iwb-border); font-size: 11px; color: var(--iwb-text2); cursor: default; }
|
||
.iwb-out-grouplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
|
||
.iwb-out-cell { position: relative; min-width: 0; }
|
||
|
||
/* 大图预览:左右切换 + 下载条 */
|
||
.iwb-imgpreview { position: fixed; inset: 0; background: rgba(10, 12, 18, 0.92); z-index: var(--iwb-z-preview); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
|
||
/* 预览图自适应宽+高:同时约束横向与纵向,保持宽高比居中显示,不溢出(图库预览已取完整原图,可能很大/超高/超宽) */
|
||
.iwb-imgpreview img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); cursor: default; }
|
||
.iwb-prev-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border: none; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 30px; cursor: pointer; z-index: 101; }
|
||
.iwb-prev-nav:hover { background: rgba(255, 255, 255, 0.22); }
|
||
.iwb-prev-left { left: 18px; }
|
||
.iwb-prev-right { right: 18px; }
|
||
.iwb-prev-bar { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.12); border-radius: 20px; padding: 6px 14px; z-index: 101; }
|
||
.iwb-prev-count { color: #fff; font-size: 13px; }
|
||
.iwb-prev-bar .iwb-btn { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
|
||
.iwb-prev-bar .iwb-btn:hover { background: rgba(255, 255, 255, 0.3); }
|
||
.iwb-prev-bar .iwb-ic { width: 13px; height: 13px; }
|
||
|
||
/* 生成中断恢复横幅 */
|
||
.iwb-resume-bar {
|
||
position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%);
|
||
display: flex; align-items: center; gap: 10px;
|
||
background: var(--iwb-panel); border: 1px solid var(--iwb-border);
|
||
border-radius: var(--rd-lg); padding: 8px 14px; z-index: 120;
|
||
box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
|
||
}
|
||
.iwb-resume-text { font-size: var(--fs-lg); color: var(--iwb-text); }
|
||
.iwb-resume-bar .iwb-btn { white-space: nowrap; }
|
||
/* 刷新中断提示:居中展示(区别于底部的保存/更新横幅),必须醒目到让用户注意「再次计费」警示 */
|
||
.iwb-resume-bar.iwb-resume-center {
|
||
flex-direction: column; align-items: stretch; gap: 6px;
|
||
top: 50%; bottom: auto; transform: translate(-50%, -50%);
|
||
width: min(460px, calc(100vw - 48px)); padding: 18px 22px; text-align: left;
|
||
}
|
||
.iwb-resume-warning { font-size: var(--fs-md); line-height: 1.6; color: var(--iwb-err); }
|
||
.iwb-resume-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
|
||
/* 版本更新提示(v3.24.42):原来和「保存失败」等低频异常挤在底部 34px 处,存在感弱到错过。
|
||
现在贴在编辑器顶栏(标签条 36 + 顶栏 56)正下方居中 —— 一进画布就在视线内,又完全不挡画布内容。
|
||
只做一次 180ms 的淡入下滑(含 translateX(-50%) 保住水平居中),不做循环动效。 */
|
||
.iwb-update-bar {
|
||
top: 100px; bottom: auto; z-index: 130;
|
||
max-width: calc(100vw - 32px); justify-content: center;
|
||
animation: iwb-update-in .15s ease-out 1 both;
|
||
}
|
||
@keyframes iwb-update-in {
|
||
from { opacity: 0; transform: translate(-50%, -6px); }
|
||
to { opacity: 1; transform: translate(-50%, 0); }
|
||
}
|
||
@media (prefers-reduced-motion: reduce) { .iwb-update-bar { animation: none; } }
|
||
|
||
/* 待润色标记(文本节点为空但有 LLM 上游) */
|
||
.iwb-task-pending { color: var(--iwb-warn); font-weight: 600; }
|
||
|
||
/* 生图/LLM 服务设置:模型列表 + 行内删除操作 */
|
||
.iwb-modelrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 8px; border: 1px solid var(--iwb-border); border-radius: 8px; margin-bottom: 4px; background: var(--iwb-layer); }
|
||
.iwb-modelrow-main { display: flex; align-items: center; gap: 4px; }
|
||
.iwb-modelrow-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.iwb-modelrow .iwb-btn-danger { color: var(--iwb-err); opacity: 0; pointer-events: none; transition: opacity .15s ease; }
|
||
.iwb-modelrow:hover .iwb-btn-danger, .iwb-modelrow:focus-within .iwb-btn-danger { opacity: 1; pointer-events: auto; }
|
||
.iwb-modelrow-main { cursor: default; }
|
||
.iwb-modelrow-main span { cursor: default; }
|
||
.iwb-modelrow-active { border-color: var(--iwb-border2); background: color-mix(in srgb, var(--iwb-tint) 6%, transparent); }
|
||
.iwb-modelrow-name { flex: 1 1 auto; cursor: pointer; font-size: 12px; }
|
||
.iwb-input-err { border-color: var(--iwb-err) !important; box-shadow: 0 0 0 1px rgba(239,68,68,0.35); }
|
||
|
||
/* LLM 多渠道设置卡片 */
|
||
.iwb-llm-card { border: 1px solid var(--iwb-border); border-radius: 10px; padding: 10px; margin-bottom: 10px; background: var(--iwb-layer); }
|
||
.iwb-llm-card-def { border-color: var(--iwb-border2); }
|
||
.iwb-llm-cardhead { margin-bottom: 6px; }
|
||
.iwb-llm-keyname { flex: 0 0 96px; min-width: 96px; max-width: 96px; }
|
||
.iwb-llm-testrow { margin-top: 8px; align-items: center; }
|
||
.iwb-llm-main { flex: 0 0 auto; color: var(--iwb-text2); font-weight: 700; margin: 0 4px; }
|
||
.iwb-llm-addrres { margin: 4px 0 2px; }
|
||
|
||
/* 左侧工作台栏:整栏统一默认鼠标指针(按钮也不显示手型);仅输入类保留文本光标 */
|
||
.iwb-wsrail, .iwb-wsrail * { cursor: default !important; }
|
||
.iwb-wsrail input, .iwb-wsrail textarea { cursor: text !important; }
|
||
|
||
/* LLM 节点模型下拉(润色按钮右侧) */
|
||
.iwb-llm-model-sel { flex: 0 0 auto; max-width: 150px; font-size: 11px; }
|
||
|
||
/* 全屏提示词库编辑器:文本区可拖动调整高度(覆盖 .iwb-textarea 的 resize:none) */
|
||
.iwb-full-editor textarea.iwb-full-editor-text { resize: vertical; min-height: 160px; max-height: 60vh; }
|
||
|
||
/* 最近操作日志 */
|
||
.iwb-oplogs { max-height: 180px; overflow-y: auto; border: 1px solid var(--iwb-border); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; background: var(--iwb-layer); }
|
||
.iwb-oplog { display: flex; gap: 8px; font-size: var(--iwb-font-sm); line-height: 1.5; }
|
||
.iwb-oplog-time { flex: 0 0 auto; color: var(--iwb-text2); font-variant-numeric: tabular-nums; }
|
||
.iwb-oplog-kind { flex: 0 0 44px; color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; }
|
||
.iwb-oplog-msg { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
|
||
.iwb-gen-cell .iwb-input { min-height: 32px; padding: var(--iwb-space-4) var(--iwb-space-24) var(--iwb-space-4) var(--iwb-space-8); cursor: pointer; }
|
||
.iwb-gen-row { gap: var(--iwb-space-6); min-height: 36px; }
|
||
.iwb-size-preset-grid { display: grid; grid-template-columns: 110px repeat(3, minmax(108px, 1fr)); gap: var(--iwb-space-6); align-items: center; margin: var(--iwb-space-8) 0; }
|
||
.iwb-size-preset-head { color: var(--iwb-text2); font-size: var(--iwb-font-sm); font-weight: 700; }
|
||
.iwb-size-preset-name { font-size: var(--iwb-font-sm); font-weight: 700; }
|
||
.iwb-size-preset-grid .iwb-input { min-width: 0; min-height: 34px; }
|
||
|
||
.iwb-size-preset-grid-edit { grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(108px, 1fr)) 38px; }
|
||
.iwb-size-preset-grid-edit .iwb-btn { width: 34px; min-width: 34px; padding: 0; justify-content: center; justify-self: center; }
|
||
.iwb-shell-nav { left: 12px; top: 12px; z-index: 30; align-items: center; }
|
||
.iwb-shell-nav-item { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: var(--iwb-radius-chip); padding: 7px 10px; background: transparent; color: var(--iwb-text2); cursor: pointer; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-shell-nav-item:hover, .iwb-shell-nav-active { background: var(--iwb-layer2); color: var(--iwb-text); }
|
||
.iwb-shell-nav-caption { padding: 0 8px; font-size: 11px; color: var(--iwb-text2); }
|
||
.iwb-home-panel { position: absolute; inset: 0; z-index: 20; overflow: auto; background: var(--iwb-home-bg); }
|
||
|
||
.iwb-home-sec-head { grid-column: 1 / -1; font-size: var(--iwb-font-sm); font-weight: 700; color: var(--iwb-text2); letter-spacing: .5px; margin: var(--iwb-space-6) 0 var(--iwb-space-2); padding-top: var(--iwb-space-8); border-top: 1px solid var(--iwb-hr); }
|
||
.iwb-home-sec-head:first-child { border-top: none; padding-top: 0; }
|
||
|
||
.iwb-home-card span { color: var(--iwb-text2); font-size: var(--iwb-font-sm); }
|
||
.iwb-canvas-hidden { visibility: hidden; pointer-events: none; }
|
||
.iwb-shell-nav { position: static; flex-direction: column; gap: 3px; padding: 8px; border: 0; border-bottom: 1px solid var(--iwb-border); border-radius: 0; background: transparent; box-shadow: none; }
|
||
.iwb-shell-nav-item { width: 100%; justify-content: flex-start; min-height: 34px; }
|
||
.iwb-wsrail-current { flex: 1 1 auto; min-height: 0; padding: 14px 10px; color: var(--iwb-text); }
|
||
.iwb-wsrail-current .iwb-wsrail-label { margin: 0 0 8px; }
|
||
.iwb-wsrail-current-name { padding: 10px; border: 1px solid var(--iwb-border); border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
|
||
.iwb-wsrail-current .iwb-btn { margin-top: 8px; width: 100%; justify-content: center; }
|
||
/* 顶部应用导航:不覆盖左栏,统一承载页面级入口与当前工作台 */
|
||
.iwb-top-nav { position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 35; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: color-mix(in srgb, var(--iwb-panel) 94%, transparent); border-bottom: 1px solid var(--iwb-border); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
|
||
.iwb-top-nav-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--iwb-text); white-space: nowrap; }
|
||
.iwb-top-nav-item, .iwb-top-nav-workspace, .iwb-top-nav-icon { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; padding: 0 10px; background: transparent; color: var(--iwb-text2); cursor: pointer; }
|
||
.iwb-top-nav-item:hover, .iwb-top-nav-active, .iwb-top-nav-workspace:hover, .iwb-top-nav-icon:hover { background: var(--iwb-layer2); color: var(--iwb-text); border-color: var(--iwb-border); }
|
||
.iwb-top-nav-workspace { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.iwb-top-nav-workspace .iwb-ic { width: 13px; height: 13px; }
|
||
.iwb-top-nav-sep { width: 1px; height: 22px; margin: 0 6px; background: var(--iwb-border); }
|
||
.iwb-top-nav-spacer { flex: 1 1 auto; }
|
||
|
||
.iwb-top-nav-icon .iwb-ic { width: 16px; height: 16px; }
|
||
.iwb-wsrail-title, .iwb-wsrail-current, .iwb-wsrail-foot { display: none; }
|
||
.iwb-shell-nav { display: none; }
|
||
.ws-expanded .iwb-wsrail { width: 52px; }
|
||
.iwb-home-actions { display: flex; gap: var(--iwb-space-8); flex-wrap: wrap; justify-content: flex-end; }
|
||
/* 仅首页用「深底浅字」;画布内的主按钮(生成 / 批量出图)保持品牌底 + 白字,避免暗色下发灰看不清 */
|
||
.iwb-home-panel .iwb-btn-primary { background: var(--iwb-text); color: var(--iwb-bg); }
|
||
|
||
.iwb-home-card > input { position: absolute; left: 18px; top: 20px; width: 17px; height: 17px; accent-color: var(--iwb-text); z-index: 2; }
|
||
/* 资源工具栏移至左侧:窄 rail + 可展开面板 */
|
||
.iwb-canvas { left: 48px; top: 54px; }
|
||
/* v4 参考布局:顶部产品导航、左侧资源区、中央画布三层分离 */
|
||
.iwb-overlay { background: var(--iwb-bg); }
|
||
.iwb-top-nav { height: 64px; padding: 0 max(18px, calc((100vw - 1760px) / 2)); gap: 4px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--iwb-border); box-shadow: 0 1px 8px rgba(20,20,20,.05); }
|
||
.iwb-top-nav-brand { font-size: 17px; margin-right: 22px; }
|
||
.iwb-top-nav-brand .iwb-ic { width: 20px; height: 20px; }
|
||
.iwb-top-nav-item { min-height: 64px; border-radius: 0; padding: 0 13px; position: relative; }
|
||
.iwb-top-nav-item:hover, .iwb-top-nav-active { background: transparent; border-color: transparent; color: var(--iwb-text); }
|
||
.iwb-top-nav-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--iwb-text); }
|
||
.iwb-top-nav-workspace { min-height: 38px; border-color: var(--iwb-border); margin-left: 8px; }
|
||
|
||
.iwb-top-nav-icon:first-of-type { margin-left: auto; }
|
||
.iwb-wsrail { top: 64px; }
|
||
|
||
@media (max-width: 900px) { .iwb-top-nav-brand { margin-right: 4px; } .iwb-top-nav-item span, .iwb-top-nav-workspace { display: none; } .iwb-top-nav { padding: 0 8px; } .iwb-home-head { align-items: flex-start; flex-direction: column; } }
|
||
/* v5:三页面语义与编辑器 chrome */
|
||
.iwb-product-nav, .iwb-canvas-topbar { position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 35; display: flex; align-items: center; gap: 6px; padding: 0 max(18px, calc((100vw - 1760px) / 2)); background: var(--iwb-bg); border-bottom: 1px solid var(--iwb-border); }
|
||
.iwb-product-brand { font-size: 17px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; margin-right: 22px; }
|
||
.iwb-product-item { height: 64px; border: 0; border-bottom: 2px solid transparent; padding: 0 14px; background: transparent; color: var(--iwb-text2); font-size: 14px; cursor: pointer; }
|
||
.iwb-product-item:hover, .iwb-product-item.active { color: var(--iwb-text); border-bottom-color: var(--iwb-text); }
|
||
.iwb-product-spacer { flex: 1; }
|
||
.iwb-product-icon, .iwb-canvas-menu, .iwb-top-nav-icon { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--iwb-text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
|
||
.iwb-product-icon:hover, .iwb-canvas-menu:hover, .iwb-top-nav-icon:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
|
||
|
||
.iwb-landing-panel { position: absolute; inset: 0; z-index: 20; padding: 64px 8vw 80px; overflow: auto; text-align: center; background-color: var(--iwb-bg); background-image: radial-gradient(circle, color-mix(in srgb, var(--iwb-border) 70%, transparent) 1px, transparent 1.5px); background-size: 28px 28px; }
|
||
.iwb-landing-panel h1 { max-width: 850px; color: var(--iwb-text); }
|
||
.iwb-landing-panel p { max-width: 760px; margin: 0 auto; line-height: 1.8; }
|
||
.iwb-landing-actions { display: flex; justify-content: center; }
|
||
.iwb-landing-divider { max-width: 1200px; border-top: 1px solid var(--iwb-border); }
|
||
/* v6:无白色占位条,三页铺满视口;编辑器左侧只保留顶部展开把手 */
|
||
.iwb-overlay { left: 0 !important; right: 0 !important; width: 100% !important; }
|
||
.iwb-wsrail { display: none !important; width: 0 !important; border: 0 !important; }
|
||
.iwb-canvas, .ws-expanded .iwb-canvas { left: 0 !important; }
|
||
.iwb-product-nav { background: var(--iwb-bg); }
|
||
|
||
.iwb-home-panel, .iwb-landing-panel { left: 0 !important; right: 0 !important; padding-left: max(24px, calc((100vw - 1580px) / 2)); padding-right: max(24px, calc((100vw - 1580px) / 2)); }
|
||
|
||
/* v7:画布卡片(参考图1)、编辑器顶栏(参考图3)、左侧展开按钮(参考图2) */
|
||
|
||
.iwb-home-card-top { display: flex; align-items: center; gap: var(--iwb-space-12); }
|
||
.iwb-home-card-top > input { position: static; width: 18px; height: 18px; accent-color: var(--iwb-text); z-index: 2; }
|
||
.iwb-home-card-title { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; display: flex; align-items: center; }
|
||
.iwb-home-card-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
|
||
.iwb-home-card-actions button { border: 0; background: transparent; color: var(--iwb-text2); cursor: pointer; }
|
||
.iwb-home-card-actions button:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
|
||
/* 进入画布加载动画 */
|
||
.iwb-enter-loading { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: color-mix(in srgb, var(--iwb-bg) 92%, transparent); backdrop-filter: blur(2px); }
|
||
.iwb-enter-spinner { width: 42px; height: 42px; border: 4px solid var(--iwb-border); border-top-color: var(--iwb-brand); border-radius: 50%; animation: iwb-spin 0.9s linear infinite; }
|
||
.iwb-enter-text { color: var(--iwb-text2); font-size: 14px; }
|
||
@keyframes iwb-spin { to { transform: rotate(360deg); } }
|
||
/* 编辑器顶栏:紧凑胶囊式,参考图3 */
|
||
|
||
.iwb-canvas-menu { width: 34px; height: 34px; }
|
||
.iwb-canvas-title { margin: 0 6px 0 2px; }
|
||
.iwb-canvas-status { color: var(--iwb-text2); font-size: 12px; }
|
||
.iwb-top-nav-icon {
|
||
padding: 0;
|
||
min-height: 38px;
|
||
width: 32px;
|
||
height: 32px;
|
||
}
|
||
/* 资源展开按钮:顶部贴左(参考图2),带 panel 图标 */
|
||
/* 左侧资源面板:贴左边展开(参考图2) */
|
||
/* v9:首页不留左栏按钮;优化首页文字与按钮大小;卡片重命名输入框 */
|
||
.iwb-view-landing .iwb-wsrail, .iwb-view-home .iwb-wsrail { display: none !important; }
|
||
.iwb-landing-panel { background: var(--iwb-bg); }
|
||
.iwb-landing-panel h1 { margin: 96px auto 24px; font-size: clamp(34px, 5vw, 58px); line-height: 1.15; letter-spacing: -.04em; }
|
||
.iwb-landing-panel p { font-size: 16px; color: var(--iwb-text2); }
|
||
.iwb-landing-kicker { padding-top: 120px; font-size: 13px; letter-spacing: .1em; color: var(--iwb-text2); }
|
||
.iwb-landing-actions { margin-top: 30px; gap: 12px; }
|
||
.iwb-landing-actions .iwb-btn { min-height: 42px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
|
||
.iwb-landing-actions .iwb-btn-primary { background: #111; color: #fff; }
|
||
.iwb-landing-divider { margin: 90px auto 54px; }
|
||
.iwb-landing-panel h2 { font-size: 28px; color: var(--iwb-text); margin-bottom: 10px; }
|
||
/* 画布卡片:操作图标默认隐藏,hover / 键盘聚焦时显示(v3.22 起批量管理改为点选,不再渲染复选框) */
|
||
.iwb-home-card:hover .iwb-home-card-actions,
|
||
.iwb-home-card:focus-within .iwb-home-card-actions { opacity: 1; }
|
||
.iwb-home-actions .iwb-btn { min-height: 36px; }
|
||
/* v11:统一画布卡片对齐与排版 */
|
||
|
||
.iwb-home-card:hover { border-color: var(--iwb-border2); background: color-mix(in srgb, var(--iwb-panel) 76%, var(--iwb-home-bg) 24%); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
|
||
.iwb-home-card-top { padding: var(--iwb-space-24) var(--iwb-space-24) 0 var(--iwb-space-24); }
|
||
.iwb-home-card-title strong { font-size: var(--iwb-font-lg); font-weight: 600; line-height: 1.35; color: var(--iwb-text); }
|
||
|
||
.iwb-home-card-foot small { color: var(--iwb-text2); font-size: var(--iwb-font-sm); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; flex: 1 1 auto; }
|
||
|
||
.iwb-home-card-actions button { width: 32px; height: 32px; border-radius: 8px; }
|
||
/* v12:世界容器提升为合成层(节点随世界一起 transform,不单独建层) */
|
||
.iwb-world { will-change: transform; }
|
||
/* v15:左侧资源面板展开时浮在画布上层,不移动画布位置 */
|
||
.iwb-overlay.drawer-open .iwb-canvas { left: 0 !important; }
|
||
/* 停靠栏时代:工具栏/小地图按 --iwb-dock-* 让位(画布仍不动) */
|
||
.iwb-overlay.drawer-open .iwb-toolbar-wrap { left: var(--iwb-dock-l, 0px) !important; }
|
||
.iwb-overlay.drawer-open .iwb-minimap { margin-left: 0 !important; }
|
||
/* 画布顶栏:标题 + 实时通知 + 右侧图标组(padding-left 14px = 标签条 padding,标题左缘与房子图标对齐;52px 是左侧栏时代的遗留已废弃) */
|
||
|
||
.iwb-canvas-meta { display: flex; align-items: center; gap: 8px; overflow: hidden; }
|
||
.iwb-canvas-meta .iwb-status-item { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; }
|
||
.iwb-canvas-meta .iwb-status-ok { color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.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: 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; }
|
||
/* 标签:**全项目只有这一套**(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:raw-until=3.28.0*/
|
||
.iwb-tab:hover { background: var(--iwb-hover); color: var(--iwb-text); }
|
||
/* 文字用主文字色而不是 brand-text:brand-text 的语义是「品牌色当文字」(链接/按钮),
|
||
* 压在品牌淡底上亮色只有 4.42:1(低于 4.5),且比未激活标签的 text2 还弱 —— 选中项不该最不清楚。
|
||
* 品牌高亮体现在**底色**,文字保持最高对比(亮 6.92 / 暗 10.27)。 */
|
||
.iwb-tab-active { background: color-mix(in srgb, var(--iwb-brand) 14%, transparent); color: var(--iwb-text); 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-sep { flex: 0 0 auto; width: 1px; height: 16px; background: var(--iwb-border); }
|
||
.iwb-tab-label { overflow: hidden; text-overflow: ellipsis; }
|
||
.iwb-tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--iwb-brand); flex: 0 0 auto; }
|
||
/* 标签条完成态圆点:生成完成=绿、失败/中断=红(运行中为默认品牌色) */
|
||
.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 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: var(--iwb-radius-chip); background: transparent; color: var(--iwb-text2); cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0; } /*iwb:raw-until=3.28.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; }
|
||
/* 标签条出现时顶栏下移(仅画布视图;覆盖共享 top:0 规则) */
|
||
|
||
/* 标签条始终顶左对齐(不随左侧栏展开缩进——标签条在最顶层、横跨全宽) */
|
||
|
||
/* 资源中心浮动窗口:自由拖动、统一白色圆角样式 */
|
||
.iwb-resource-float { position: fixed; z-index: 46; width: 360px; max-height: 76vh; display: flex; flex-direction: column; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,.24), 0 2px 10px rgba(0,0,0,.12); overflow: hidden; }
|
||
.iwb-resource-float-head { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--iwb-layer2); border-bottom: 1px solid var(--iwb-border); cursor: move; user-select: none; flex: 0 0 auto; }
|
||
.iwb-resource-float-head:hover { background: var(--iwb-hover); }
|
||
.iwb-resource-float-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--iwb-font-sm); color: var(--iwb-text); }
|
||
.iwb-resource-float-title .iwb-ic { width: 15px; height: 15px; }
|
||
.iwb-resource-float-spacer { flex: 1 1 auto; }
|
||
.iwb-resource-float-head .iwb-btn { width: 26px; height: 22px; padding: 0; justify-content: center; }
|
||
.iwb-resource-float .iwb-drawer-body { min-height: 0; }
|
||
/* 顶栏资源按钮激活态 */
|
||
.iwb-top-nav-icon-active { background: var(--iwb-layer2); color: var(--iwb-text); }
|
||
|
||
/* 资源中心非提示词库 tab 内容撑满容器 */
|
||
.iwb-full-main > .iwb-groups-embedded, .iwb-full-main > .iwb-history-embedded { width: 100%; flex: 1 1 auto; }
|
||
|
||
/* 我的画布卡片:文本左对齐、底部图标右对齐、批量选中高亮、重命名放大、分类 */
|
||
|
||
.iwb-home-card-title { text-align: left; justify-content: flex-start; width: 100%; }
|
||
.iwb-home-card-title strong { text-align: left; width: 100%; }
|
||
|
||
.iwb-home-card-meta-text { color: var(--iwb-text2); font-size: var(--iwb-font-md); }
|
||
.iwb-home-card-cat { border: 1px solid var(--iwb-border); border-radius: 999px; padding: var(--iwb-space-2) var(--iwb-space-10); font-size: var(--iwb-font-xs); color: var(--iwb-text2); background: color-mix(in srgb, var(--iwb-tint) 6%, transparent); cursor: pointer; white-space: nowrap; }
|
||
.iwb-home-card-cat-empty { color: var(--iwb-text2); background: transparent; border-color: var(--iwb-border2); }
|
||
.iwb-home-card-cat:hover { border-color: var(--iwb-border2); color: var(--iwb-text); }
|
||
.iwb-home-card-actions button { display: inline-flex; align-items: center; justify-content: center; }
|
||
.iwb-home-card-selected { border-color: var(--iwb-border2); box-shadow: 0 0 0 1px var(--iwb-border2), 0 6px 18px rgba(0,0,0,.10); background: color-mix(in srgb, var(--iwb-panel) 72%, var(--iwb-layer) 28%); }
|
||
|
||
/* 画布库:卡片撑满、去右侧留白、卡片更紧凑 */
|
||
.iwb-home-card-top { padding-top: var(--iwb-space-16); padding-left: var(--iwb-space-20); padding-right: var(--iwb-space-20); }
|
||
|
||
/* 画布编辑页:返回按钮 + 标题双击重命名 */
|
||
.iwb-canvas-back { width: 30px; height: 30px; padding: 0; border-radius: 8px; font-size: 16px; flex: 0 0 auto; }
|
||
.iwb-canvas-title { border: 0; background: transparent; color: var(--iwb-text); cursor: pointer; font-weight: 700; font-size: 15px; padding: 4px 8px; border-radius: 8px; flex: 0 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
|
||
.iwb-canvas-title:hover { background: var(--iwb-layer2); }
|
||
.iwb-canvas-title-input { width: 220px; height: 30px; font-size: 15px; flex: 0 0 auto; }
|
||
|
||
/* 画布卡片:底部三个图标在卡片内右对齐 */
|
||
.iwb-home-card-actions { display: flex; gap: var(--iwb-space-6); opacity: 0; transition: opacity .15s ease; flex: 0 0 auto; width: auto; margin-left: auto; justify-content: flex-end; }
|
||
.iwb-home-card-foot .iwb-home-card-actions { width: auto; }
|
||
|
||
/* 画布库:顶部导航与内容水平对齐(统一左 24px,撑满) */
|
||
.iwb-product-nav { padding-left: 24px; padding-right: 24px; }
|
||
|
||
/* ===== 画布库:左右分栏(覆盖所有旧版 iwb-home 样式) ===== */
|
||
.iwb-overlay.iwb-view-home .iwb-wsrail,
|
||
.iwb-overlay.iwb-view-home .iwb-product-nav { display: none; }
|
||
.iwb-overlay.iwb-view-home { background: var(--iwb-bg); }
|
||
.iwb-overlay .iwb-home-panel { position: absolute; inset: 0; padding: 0; margin: 0; display: flex; flex-direction: row; background: var(--iwb-home-bg); overflow: hidden; }
|
||
|
||
.iwb-home-side { width: 280px; flex: 0 0 280px; height: 100%; display: flex; flex-direction: column; padding: var(--iwb-space-16) var(--iwb-space-12); gap: var(--iwb-space-8); border-right: 1px solid var(--iwb-hr); background: var(--iwb-home-bg); overflow: hidden; }
|
||
.iwb-home-side-head { display: flex; align-items: center; gap: var(--iwb-space-8); font-size: var(--iwb-font-xl); font-weight: 700; color: var(--iwb-text); padding: var(--iwb-space-6) var(--iwb-space-8) var(--iwb-space-12); }
|
||
.iwb-home-side-head .iwb-ic { color: var(--iwb-text); }
|
||
.iwb-home-search { padding: 0 var(--iwb-space-4) var(--iwb-space-8); }
|
||
.iwb-home-search .iwb-input { width: 100%; height: 36px; box-sizing: border-box; background: color-mix(in srgb, var(--iwb-panel) 50%, var(--iwb-home-bg) 50%); }
|
||
.iwb-home-search .iwb-input:focus { border-color: var(--iwb-border2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-tint) 15%, transparent); }
|
||
.iwb-home-side-nav, .iwb-home-side-cats, .iwb-home-side-trash { display: flex; flex-direction: column; gap: var(--iwb-space-2); }
|
||
.iwb-home-side-cats { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
|
||
.iwb-home-side-item { display: flex; align-items: center; gap: var(--iwb-space-10); width: 100%; padding: var(--iwb-space-8) var(--iwb-space-10); border: 0; border-radius: 8px; background: transparent; color: var(--iwb-text2); font-size: var(--iwb-font-md); cursor: pointer; text-align: left; box-sizing: border-box; }
|
||
.iwb-home-side-item .iwb-ic { color: var(--iwb-text2); }
|
||
.iwb-home-side-item:hover { background: color-mix(in srgb, var(--iwb-panel) 45%, transparent); color: var(--iwb-text); }
|
||
.iwb-home-side-item:focus-visible { outline: var(--iwb-focus-ring); outline-offset: -2px; }
|
||
.iwb-home-side-item.active { background: color-mix(in srgb, var(--iwb-panel) 32%, transparent); color: var(--iwb-text); font-weight: 600; }
|
||
.iwb-home-side-item.active .iwb-ic { color: var(--iwb-text); }
|
||
.iwb-home-side-item.iwb-home-side-add { color: var(--iwb-text); font-size: var(--iwb-font-md); }
|
||
.iwb-home-side-trash { padding-top: var(--iwb-space-6); }
|
||
|
||
.iwb-home-main { flex: 1 1 auto; height: 100%; padding: var(--iwb-space-24) var(--iwb-space-32); overflow-y: auto; display: flex; flex-direction: column; min-width: 0; }
|
||
.iwb-home-main-head { display: flex; align-items: center; gap: var(--iwb-space-12); padding-bottom: var(--iwb-space-16); border-bottom: 1px solid var(--iwb-hr); flex-wrap: wrap; }
|
||
.iwb-home-main-title { font-size: var(--iwb-font-display); font-weight: 700; color: var(--iwb-text); }
|
||
.iwb-drawer-spacer { flex: 1 1 auto; }
|
||
.iwb-home-main-head .iwb-btn { min-height: 36px; background: color-mix(in srgb, var(--iwb-panel) 40%, var(--iwb-home-bg) 60%); }
|
||
.iwb-home-main-head .iwb-btn-sm { background: transparent; border-color: transparent; }
|
||
.iwb-home-main-head .iwb-btn-sm:hover { background: color-mix(in srgb, var(--iwb-panel) 45%, transparent); border-color: transparent; }
|
||
.iwb-home-main-head .iwb-btn:hover { background: color-mix(in srgb, var(--iwb-panel) 65%, var(--iwb-home-bg) 35%); }
|
||
.iwb-home-main-head .iwb-btn-primary { background: var(--iwb-text2); border-color: var(--iwb-text2); color: #fff; }
|
||
.iwb-home-main-head .iwb-btn-primary:hover { background: color-mix(in srgb, var(--iwb-text2) 80%, #000); border-color: color-mix(in srgb, var(--iwb-text2) 80%, #000); color: #fff; }
|
||
.iwb-home-grid { display: grid; gap: var(--iwb-space-20); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); max-width: none; margin-top: var(--iwb-space-24); width: 100%; }
|
||
|
||
.iwb-home-empty { margin-top: var(--iwb-space-40); color: var(--iwb-text2); font-size: var(--iwb-font-lg); text-align: center; padding: var(--iwb-space-40) 0; }
|
||
|
||
.iwb-home-card .iwb-home-card-top { padding: var(--iwb-space-20) var(--iwb-space-20) 0 var(--iwb-space-20); }
|
||
|
||
.iwb-home-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; gap: var(--iwb-space-12); width: 100%; padding: 0 var(--iwb-space-20) var(--iwb-space-16) var(--iwb-space-20); }
|
||
.iwb-home-card-star { border: 0; background: transparent; color: var(--iwb-text2); font-size: var(--iwb-font-xl); cursor: pointer; line-height: 1; padding: 0; }
|
||
.iwb-home-card-star.on { color: var(--iwb-text); }
|
||
.iwb-home-card-star:hover { color: var(--iwb-text); }
|
||
|
||
@media (max-width: 760px) {
|
||
.iwb-home-side { width: 220px; flex-basis: 220px; }
|
||
.iwb-home-main { padding: var(--iwb-space-20) var(--iwb-space-16); }
|
||
.iwb-home-main-head { flex-direction: column; align-items: flex-start; }
|
||
}
|
||
|
||
/* 画布加载遮罩为纯视觉提示,不拦截指针(避免拖拽/平移被吃事件) */
|
||
.iwb-overlay .iwb-enter-loading { pointer-events: none; }
|
||
|
||
/* 左侧栏计数徽标 */
|
||
.iwb-home-side-count { margin-left: auto; font-size: var(--iwb-font-sm); line-height: 1; color: var(--iwb-text2); padding: 0; min-width: 16px; text-align: center; box-sizing: border-box; }
|
||
.iwb-home-side-item.active .iwb-home-side-count { color: var(--iwb-text); background: transparent; }
|
||
|
||
/* 画布编辑顶栏返回箭头居中(SVG) */
|
||
.iwb-canvas-back { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
|
||
.iwb-canvas-back .iwb-ic { width: 18px; height: 18px; }
|
||
|
||
/* 画布卡片按压反馈:点击立即响应 */
|
||
.iwb-home-card:active { transform: scale(.985); }
|
||
|
||
/* 卡片操作区收藏按钮(SVG 星标) */
|
||
.iwb-home-card-actions .iwb-home-card-star { color: var(--iwb-text2); }
|
||
.iwb-home-card-actions .iwb-home-card-star:hover { color: var(--iwb-text); }
|
||
.iwb-home-card-actions .iwb-home-card-star.on { color: var(--iwb-text); }
|
||
|
||
/* 分类选择器(下拉) */
|
||
.iwb-home-cat-select { border: 1px solid var(--iwb-border2); border-radius: 8px; padding: var(--iwb-space-4) var(--iwb-space-8); font-size: var(--iwb-font-sm); color: var(--iwb-text); background: var(--iwb-panel); cursor: pointer; }
|
||
|
||
/* 加载遮罩更明显,避免“打不开”的静止感 */
|
||
.iwb-overlay .iwb-enter-loading { background: color-mix(in srgb, var(--iwb-bg) 97%, transparent); backdrop-filter: blur(4px); }
|
||
|
||
/* 卡片按参考排版:名字 / 统计 / 底部行(分类chip左+图标右) */
|
||
.iwb-home-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
gap: 0;
|
||
color: var(--iwb-text);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
position: relative;
|
||
padding: 0;
|
||
min-width: 0;
|
||
min-height: 138px;
|
||
overflow: hidden;
|
||
/* 卡片用「浮起层」底色(与右键菜单同一档):亮色=面板色,暗色比面板亮一档。
|
||
任何基于 panel/homeBg 的百分比混合在暗色下都拉不开 —— 两者只差 6,
|
||
52/48 算出 #191919、80/20 算出 #1b1b1b,都跟首页底 #161616 几乎同色,卡片等于隐形。 */
|
||
background: var(--iwb-bg-menu);
|
||
border: 1px solid var(--iwb-border);
|
||
border-radius: 16px;
|
||
box-shadow: 0 1px 4px rgba(0,0,0,.05);
|
||
box-sizing: border-box;
|
||
}
|
||
.iwb-home-card-meta { color: var(--iwb-text2); font-size: var(--iwb-font-md); line-height: 1.5; display: flex; align-items: center; gap: var(--iwb-space-8); text-align: left; padding-top: var(--iwb-space-10); padding-left: var(--iwb-space-20); padding-right: var(--iwb-space-20); width: 100%; padding: var(--iwb-space-12) var(--iwb-space-20) 0 var(--iwb-space-20); min-height: 18px; }
|
||
.iwb-home-card .iwb-home-card-foot { justify-content: space-between; gap: var(--iwb-space-10); align-items: center; }
|
||
.iwb-home-card .iwb-home-card-foot .iwb-home-card-cat { flex: 0 0 auto; }
|
||
|
||
/* 画布标题后的版本小字 */
|
||
.iwb-canvas-version { font-size: 11px; font-weight: 400; color: var(--iwb-text2); margin-left: 2px; white-space: nowrap; flex: 0 0 auto; }
|
||
|
||
/* 画布重命名弹窗 */
|
||
.iwb-rename-modal { width: 380px; max-width: 92vw; }
|
||
.iwb-rename-input { width: 100%; box-sizing: border-box; height: 40px; font-size: 15px; }
|
||
|
||
/* 画布库侧栏 ≡ 菜单(图2样式:白卡片+图标+分隔线) */
|
||
.iwb-home-menu-mask { position: fixed; inset: 0; z-index: 200; }
|
||
.iwb-home-menu { position: fixed; width: 220px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-panel); box-shadow: var(--iwb-elevation-2); padding: var(--iwb-space-6); display: flex; flex-direction: column; gap: var(--iwb-space-2); box-sizing: border-box; }
|
||
.iwb-home-menu-item { display: flex; align-items: center; gap: var(--iwb-space-10); padding: var(--iwb-space-10) var(--iwb-space-12); border: 0; background: transparent; color: var(--iwb-text); font-size: var(--iwb-font-md); cursor: pointer; border-radius: 8px; text-align: left; width: 100%; box-sizing: border-box; }
|
||
.iwb-home-menu-item:hover { background: var(--iwb-layer2); }
|
||
.iwb-home-menu-item .iwb-ic { color: var(--iwb-text2); }
|
||
.iwb-home-menu-item:hover .iwb-ic { color: var(--iwb-text); }
|
||
|
||
/* 顶层弹层层级:菜单 & 放大图必须盖过画布/资源中心/遮罩 */
|
||
.iwb-home-menu-mask { z-index: 1000; }
|
||
.iwb-home-menu { z-index: 1001; }
|
||
.iwb-imgpreview { z-index: var(--iwb-z-preview); }
|
||
.iwb-home-menu-ver { display: block; padding: var(--iwb-space-8) var(--iwb-space-12); font-size: var(--iwb-font-xs); color: var(--iwb-text2); text-align: left; border-top: 1px solid var(--iwb-border); margin-top: var(--iwb-space-4); }
|
||
|
||
/* 资源面板 4 角缩放手柄 */
|
||
|
||
/* 图库历史项:图片数据丢失时的占位 */
|
||
.iwb-history-missing { width: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; color: var(--iwb-text2); font-size: 12px; background: var(--iwb-layer2); border-radius: 8px; }
|
||
|
||
/* 资源面板 4 角缩放手柄(简洁“角括号”样式) */
|
||
|
||
/* 图库历史项图片:完整展示 + 上限尺寸(放大量大面板也不无限变大) */
|
||
.iwb-history-embedded .iwb-history-item img { max-width: 100%; max-height: none; object-fit: contain; margin: 0 auto; }
|
||
/* 编辑器顶栏:透明悬浮(对齐参考图样式),画布铺满视口让点阵/网格透过顶栏 */
|
||
|
||
.iwb-canvas-topbar button:not(.iwb-canvas-title), .iwb-canvas-topbar input, .iwb-canvas-topbar label { pointer-events: auto; }
|
||
.iwb-canvas-title { pointer-events: auto; }
|
||
.iwb-canvas, .ws-expanded .iwb-canvas { top: 0 !important; }
|
||
/* 顶栏是 transparent 悬浮在画布上(见 .iwb-canvas-topbar 的 background: transparent !important),
|
||
文字直接吃 --iwb-text —— 它对 --iwb-canvas-bg 已按 7:1 派生,亮暗两套都不需要专门补丁。
|
||
v3.26.44 之前这里有 6 组「#e0e0e0 / #1a1a1a / rgba(255,255,255,.5)」硬编码,
|
||
全部针对旧的「中灰底 + 深字」暗色设计,在新派生色下只会让 hover 变成刺眼白块。 */
|
||
.iwb-canvas-topbar .iwb-top-nav-icon:hover,
|
||
.iwb-canvas-topbar .iwb-top-nav-icon-active,
|
||
.iwb-canvas-topbar .iwb-canvas-title:hover,
|
||
.iwb-product-nav .iwb-product-icon:hover,
|
||
.iwb-product-nav .iwb-product-item:hover,
|
||
.iwb-product-nav .iwb-product-item.active { background: color-mix(in srgb, var(--iwb-text) 12%, transparent); }
|
||
|
||
/* 任务级计时(等宽数字避免抖动) */
|
||
.iwb-task-timer { flex: 0 0 auto; font-size: var(--iwb-font-xs); font-weight: 700; color: var(--iwb-text2); white-space: nowrap; font-variant-numeric: tabular-nums; margin-right: var(--iwb-space-2); }
|
||
.iwb-task-timer-run { color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-task-timer-done { color: var(--iwb-text2); }
|
||
/* 运行中的任务(v3.24.42 重做):去掉左侧竖条与底部进度线,改为两层克制的动效——
|
||
* ① 一次性扫光(::before,1.05s 掠过):任务「刚开始」时的一道淡白光,只跑一次,不循环打扰;
|
||
* ② 持续呼吸描边(::after,2.6s):1px 内描边淡入淡出,让「还在跑」有存在感又不抢注意力。
|
||
* 两层都只动 transform / opacity(合成层),不重排、不重绘;1 张任务也能看出"活着"。 */
|
||
.iwb-task-running { background: var(--iwb-anim-tint); border-radius: var(--iwb-radius-control); }
|
||
/* ① 扫光:窄条高光从左掠到右,skew 一点更像反光而不是进度条 */
|
||
.iwb-task-running::before {
|
||
content: ''; position: absolute; top: 0; bottom: 0; left: -34%; width: 34%;
|
||
pointer-events: none; z-index: 1;
|
||
background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.85), rgba(255,255,255,0));
|
||
animation: iwb-task-sheen 1.05s cubic-bezier(.4, 0, .2, 1) 1 both;
|
||
will-change: transform, opacity;
|
||
}
|
||
@keyframes iwb-task-sheen {
|
||
0% { transform: translateX(0) skewX(-14deg); opacity: 0; }
|
||
18% { opacity: 1; }
|
||
100% { transform: translateX(420%) skewX(-14deg); opacity: 0; }
|
||
}
|
||
/* ② 呼吸描边:整行一圈细边随呼吸淡入淡出 */
|
||
.iwb-task-running::after {
|
||
content: ''; position: absolute; inset: 0; border-radius: var(--iwb-radius-control);
|
||
pointer-events: none; z-index: 2;
|
||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--iwb-tint) 26%, transparent);
|
||
animation: iwb-task-breathe 2.6s ease-in-out infinite;
|
||
will-change: opacity;
|
||
}
|
||
@keyframes iwb-task-breathe { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.85; } }
|
||
/* 降级动效:必须写在上面基础规则**之后**,否则同选择器后者优先会把 animation 又加回来 */
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.iwb-task-running::before { animation: none; display: none; }
|
||
.iwb-task-running::after { animation: none; opacity: 1; }
|
||
}
|
||
/* 输出节点紧凑进度行:一行内自适应,完整信息走 title 悬停;容器查询按自身宽度分档 */
|
||
.iwb-out-prog { container-type: inline-size; position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; padding: 4px 8px; margin-bottom: 4px; border-radius: 8px; border: 1px solid var(--iwb-border); border-left: 3px solid var(--iwb-brand); background: var(--iwb-field); }
|
||
/* 背景动效:整行双色渐变持续流动。用 200% 宽的伪元素 + transform(合成层,不重绘),
|
||
5 段对称渐变保证位移半宽后图案完全重合 → 无缝循环 */
|
||
.iwb-out-prog::before { content: ''; position: absolute; inset: 0; width: 200%; z-index: 0; pointer-events: none; will-change: transform;
|
||
background: linear-gradient(90deg,
|
||
var(--iwb-anim-flow-a) 0%,
|
||
var(--iwb-anim-flow-b) 25%,
|
||
var(--iwb-anim-flow-a) 50%,
|
||
var(--iwb-anim-flow-b) 75%,
|
||
var(--iwb-anim-flow-a) 100%);
|
||
animation: iwb-out-prog-flow 2.8s linear infinite; }
|
||
@keyframes iwb-out-prog-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
|
||
.iwb-out-prog > * { position: relative; z-index: 1; }
|
||
.iwb-out-prog-count { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--iwb-text); font-variant-numeric: tabular-nums; }
|
||
.iwb-out-prog-time { flex: 0 1 auto; min-width: 0; font-size: 11px; color: var(--iwb-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
|
||
@container (max-width: 240px) { .iwb-out-prog-time { display: none; } }
|
||
@container (max-width: 120px) { .iwb-out-prog { padding: 3px 5px; gap: 4px; } .iwb-out-prog-count { font-size: 11px; } }
|
||
|
||
/* 任务条三态按钮的「等待」态:中性色 + 12px 小环(可点,但点击只弹确认 → 防误触) */
|
||
.iwb-task-btn-wait { color: var(--iwb-text2); background: color-mix(in srgb, var(--iwb-text) 8%, transparent); border-color: var(--iwb-border); }
|
||
.iwb-task-btn-wait:hover { color: var(--iwb-text); border-color: var(--iwb-brand); background: color-mix(in srgb, var(--iwb-text) 14%, transparent); }
|
||
.iwb-task-btn-ring { display: inline-block; width: 11px; height: 11px; margin-right: var(--iwb-space-4); flex: 0 0 11px; border: 2px solid var(--iwb-anim-track); border-top-color: var(--iwb-anim); border-right-color: var(--iwb-anim); border-radius: 50%; animation: iwb-generation-spinner-spin 0.9s linear infinite; }
|
||
@media (prefers-reduced-motion: reduce) { .iwb-task-btn-ring { animation: none; } }
|
||
|
||
/* 暗色主题专用:给旋转环与等待小环加一圈白光晕,让"正在跑"的信号更明确(亮色主题不加,保持零变化) */
|
||
.theme-dark .iwb-generation-spinner { box-shadow: 0 0 6px var(--iwb-anim-glow); }
|
||
.theme-dark .iwb-task-btn-ring { box-shadow: 0 0 5px var(--iwb-anim-glow); }
|
||
/* 暗色主题:描边用较弱的白(暗色主题的行底是中灰,纯亮白描边会偏刺眼) */
|
||
.theme-dark .iwb-task-running::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffffff 32%, transparent); }
|
||
|
||
/* ===== v3.86.4 尺寸自定义输入(尺寸/质量其余 UI 已并入图像设置浮层) ===== */
|
||
.iwb-size-num { flex: 0 0 auto; width: 60px; min-width: 0; min-height: 30px; padding: var(--iwb-space-4) var(--iwb-space-6); text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
|
||
.iwb-size-num::-webkit-outer-spin-button, .iwb-size-num::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
|
||
|
||
/* ===== v3.86.5 图像设置浮层(质量 / 尺寸 / 分辨率 / 宽高比网格) ===== */
|
||
.iwb-image-settings { width: var(--iwb-pop-w); max-width: calc(100vw - 32px); }
|
||
.iwb-image-settings .iwb-modal-body { display: flex; flex-direction: column; gap: 12px; }
|
||
.iwb-setgroup { display: flex; flex-direction: column; gap: var(--iwb-space-4); }
|
||
/* v3.87.5:质量档位一行放 6 个 chip(自动/快速/标准/高清/极高/最高)→ 只在这个浮层里收紧内边距;
|
||
.iwb-setrow 本来就有 flex-wrap,字体差异导致放不下时自然换行,不存在溢出。 */
|
||
.iwb-image-settings .iwb-chip-line { padding: 0 var(--iwb-pop-chip-pad-x); }
|
||
.iwb-chip[disabled] { opacity: 0.45; cursor: not-allowed; }
|
||
.iwb-chip[disabled]:hover { color: var(--iwb-text2); border-color: var(--iwb-border); }
|
||
/* 设置里模型行的「质量」勾选:紧跟名字,不参与右侧按钮的挤压 */
|
||
.iwb-modelrow-q { flex: 0 0 auto; font-size: 12px; }
|
||
.iwb-modelrow-q input { margin: 0; }
|
||
.iwb-setlabel { color: var(--iwb-text2); font-size: var(--iwb-font-sm); font-weight: 600; }
|
||
.iwb-sethd { display: flex; align-items: center; justify-content: space-between; gap: var(--iwb-space-8); }
|
||
.iwb-setalign { font-size: var(--iwb-font-md); white-space: nowrap; }
|
||
.iwb-setrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--iwb-pop-chip-gap); }
|
||
.iwb-setx { color: var(--iwb-text2); flex: 0 0 auto; }
|
||
.iwb-set-num { flex: 0 0 auto; width: 74px; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
|
||
.iwb-set-num::-webkit-outer-spin-button, .iwb-set-num::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
|
||
.iwb-sethint { margin: 0; padding: 1px var(--iwb-space-6); border-radius: var(--iwb-radius-full); background: var(--iwb-layer); border: 1px solid var(--iwb-border); white-space: nowrap; }
|
||
.iwb-seterr { margin: 0; padding: 1px var(--iwb-space-6); border-radius: var(--iwb-radius-full); color: var(--iwb-err); border: 1px solid var(--iwb-err); white-space: nowrap; }
|
||
|
||
/* ===== v3.86.5 图像设置:贴节点浮层(popover)形态 ===== */
|
||
.iwb-pop-anchor { position: fixed; z-index: var(--iwb-z-anchor); }
|
||
/* 浮层弹窗(模型设置 / 图像设置 / 后续同类)统一 token —— 见 docs/standards/design-tokens.md §3.13 */
|
||
/* v3.26.60:字号整体上调一档(用户反馈 11px 太小)——胶囊 11→13px、高 22→28px、左右内距 6→10、
|
||
间距 4→6、标题 12→14,面板同步 328→360px 抵消放大后的换行。仍是「所有选项同一套数值」,
|
||
模型名永不省略的契约不变(靠 min-width: max-content + 面板横向滚动兜底)。 */
|
||
.iwb-pop { width: var(--iwb-pop-w); max-width: calc(100vw - 16px); background: var(--iwb-panel); border: var(--iwb-bw) solid var(--iwb-border); border-radius: var(--iwb-pop-radius); box-shadow: var(--iwb-elevation-3); padding: var(--iwb-pop-pad-y) var(--iwb-pop-pad-x); display: flex; flex-direction: column; gap: var(--iwb-pop-gap); max-height: calc(100vh - 32px); overflow-y: auto; }
|
||
.iwb-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
||
.iwb-pop-title { font-weight: 700; color: var(--iwb-text); font-size: var(--iwb-pop-title-size); }
|
||
.iwb-pop-body { display: flex; flex-direction: column; gap: var(--iwb-pop-gap); }
|
||
/* 纯描边胶囊:与截图一致(选中只加重描边与文字色,不填充) */
|
||
.iwb-chip-line { background: transparent; border: 1px solid var(--iwb-border); color: var(--iwb-text); border-radius: 999px; padding: 5px 14px; }
|
||
.iwb-chip-line:hover { border-color: var(--iwb-brand); color: var(--iwb-text); }
|
||
.iwb-chip-line-on, .iwb-chip-line-on:hover { background: transparent; border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; }
|
||
/* 节点内图像设置汇总条(唯一入口,点击弹出面板) */
|
||
.iwb-gen-summary { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
||
/* ===== v3.86.6 节点参数:一行排布 + 服务商/分组/模型 自绘气泡 + 字号统一 15px ===== */
|
||
.iwb-gen-settings .iwb-input { font-size: var(--iwb-font-lg); }
|
||
/* 强制单行:不换行 + 允许收缩省略,保证「设置排成一行」 */
|
||
.iwb-gen-settings .iwb-gen-row { flex-wrap: nowrap; min-height: 40px; }
|
||
/* v3.24.24 参数行宽度分配:模型框吃满剩余宽度、图像设置框定宽 200px,两者 + gap 恰好铺满节点内容宽。
|
||
原来两者都是 flex: 0 1 auto(按内容宽)= 134 + 6 + 177 = 317 < 458,右侧空出 ~141px。
|
||
模型名超长时仍由 .iwb-pick-genmodel 的省略号兜底,不会把「图像设置」挤出去。 */
|
||
.iwb-gen-settings .iwb-gen-cell { min-width: 0; flex: 1 1 auto; }
|
||
.iwb-gen-settings .iwb-gen-cell .iwb-input { min-width: 0; text-overflow: ellipsis; }
|
||
.iwb-gen-settings .iwb-gen-cell .iwb-pick { flex: 1 1 auto; width: 100%; }
|
||
/* 图像设置框:定宽 200px(原内容宽 177,加宽 23 让三段信息不挤);内容更长(如「9:21 超宽竖版」)
|
||
时按内容宽自然变宽,**不压缩**——否则会裁掉末尾的箭头与质量档位。由模型框承担全部收缩。 */
|
||
.iwb-gen-settings .iwb-gen-summary { width: max-content; min-width: min(200px, 100%); max-width: 100%; flex: 0 0 auto; }
|
||
/* 四个设置统一为同一种样式:1px 描边 + 10px 圆角 + 38px 最小高 + 15px 字号 */
|
||
.iwb-gen-settings .iwb-gen-cell .iwb-input,
|
||
.iwb-gen-settings .iwb-pick,
|
||
.iwb-gen-summary {
|
||
border: 1px solid var(--iwb-border);
|
||
border-radius: var(--iwb-radius-card);
|
||
background: var(--iwb-field);
|
||
min-height: 38px;
|
||
padding: var(--iwb-space-6) var(--iwb-space-24) var(--iwb-space-6) var(--iwb-space-12);
|
||
font-size: var(--iwb-font-lg);
|
||
}
|
||
/* 触发器(服务商 / 分组 / 模型):与汇总条同款胶囊,只是左侧内边距收窄、文本可省略 */
|
||
.iwb-gen-settings .iwb-pick {
|
||
display: inline-flex; align-items: center; justify-content: flex-start;
|
||
max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||
/* 与「尺寸」汇总条保持同一左右内边距(实测原来 12 vs 14 不统一) */
|
||
padding: var(--iwb-space-6) var(--iwb-space-12); line-height: 1.2;
|
||
}
|
||
.iwb-gen-settings .iwb-pick:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-gen-settings .iwb-pick:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
|
||
.iwb-gen-summary { font-size: var(--iwb-font-lg); padding: var(--iwb-space-6) var(--iwb-space-12); }
|
||
|
||
/* ===== v3.86.7 通用选择气泡(PickerBubble):与图像设置面板同一套 popover 外观 ===== */
|
||
/* v3.87.3:面板宽度按内容自适应(原来写死 240px,长模型名被硬切且连省略号都没有)。
|
||
max-content + 上限:常见模型名(约 30 字符 / 15px ≈ 290px)可整行显示;极端长名/窄屏退到上限并用省略号 + title。 */
|
||
/* 文本必须包在块级子元素里,省略号才生效(flex 容器上的 text-overflow 对裸文本无效 → 原来长名是硬切) */
|
||
/* 选中项 = 品牌色描边 + 品牌色文字(与 .iwb-chip-line-on 同一套选中语言,只加重不填充) */
|
||
|
||
/* 弹窗内四组控件的形状统一:跟随「尺寸」那组(圆角矩形,非胶囊);字号统一 15px */
|
||
.iwb-pop .iwb-chip-line { display: inline-flex; align-items: center; border-radius: var(--iwb-pop-chip-radius); min-height: var(--iwb-pop-chip-h); padding: 0 var(--iwb-pop-chip-pad-x); font-size: var(--iwb-pop-chip-size); }
|
||
.iwb-pop .iwb-set-num { height: var(--iwb-pop-chip-h); font-size: var(--iwb-font-md); width: 68px; }
|
||
/* 浮层里的说明文字比全局 .iwb-hint(10px)大一档:与胶囊文字只差 1px,读起来是同一层信息 */
|
||
.iwb-pop .iwb-hint { font-size: var(--iwb-font-sm); line-height: 1.55; margin-top: 0; }
|
||
.iwb-pop-title { font-size: var(--iwb-pop-title-size); }
|
||
|
||
/* ---------- 分层节点(layer)----------
|
||
节点内字号跟随现有节点(11–12px),与「图像设置」面板的 15px 规范区分:
|
||
面板是弹层(可放大字号),节点卡片是画布内高密度界面。 */
|
||
.iwb-layer-body { display: flex; flex-direction: column; gap: 6px; }
|
||
.iwb-layer-prefix { font-size: 11px; color: var(--iwb-text2); background: var(--iwb-layer); border: 1px dashed var(--iwb-border); border-radius: 6px; padding: 3px 6px; word-break: break-all; }
|
||
.iwb-layer-rows { display: flex; flex-direction: column; gap: 4px; }
|
||
.iwb-layer-row { display: flex; align-items: center; gap: 4px; }
|
||
.iwb-layer-idx { flex: 0 0 auto; width: 16px; text-align: center; font-size: var(--iwb-font-2xs); color: var(--iwb-text2); background: var(--iwb-layer); border-radius: var(--iwb-radius-chip); padding: 1px 0; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-layer-name { flex: 1 1 46%; min-width: 0; height: 24px; font-size: 11px; }
|
||
.iwb-layer-bbox { flex: 1 1 40%; min-width: 0; height: 24px; font-size: 11px; }
|
||
.iwb-layer-del { flex: 0 0 auto; padding: 2px 6px; line-height: 1; }
|
||
.iwb-layer-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
|
||
.iwb-layer-tier { display: flex; align-items: center; gap: 6px; }
|
||
.iwb-layer-tier .iwb-chip-line { border-radius: 8px; padding: 2px 8px; font-size: 11px; min-height: 22px; }
|
||
.iwb-layer-cost { font-size: 11px; color: var(--iwb-text2); }
|
||
.iwb-layer-prompt { font-size: 11px; color: var(--iwb-text2); background: var(--iwb-layer); border-radius: 6px; padding: 4px 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
|
||
.iwb-layer-warn { font-size: 11px; color: var(--iwb-warn); word-break: break-all; }
|
||
.iwb-layer-run { font-weight: 600; }
|
||
.iwb-layer-results { display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--iwb-border2); padding-top: 6px; }
|
||
.iwb-layer-resulttitle { font-size: 11px; color: var(--iwb-text2); }
|
||
.iwb-layer-item { display: flex; align-items: center; gap: 6px; }
|
||
.iwb-layer-thumb { flex: 0 0 auto; width: 34px; height: 34px; object-fit: contain; border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-chip); background: repeating-conic-gradient(#e9ebef 0% 25%, #fff 0% 50%) 50% / 8px 8px; cursor: zoom-in; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-layer-meta { flex: 1 1 auto; min-width: 0; }
|
||
.iwb-layer-itemname { font-size: 11px; color: var(--iwb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.iwb-layer-sub { font-size: var(--iwb-font-2xs); color: var(--iwb-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.iwb-layer-itemsub { font-size: var(--iwb-font-2xs); color: var(--iwb-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
|
||
/* ── v3.87.6 崩溃可观测性:错误边界兜底 UI + 设置里的「诊断」页 ── */
|
||
.iwb-crash-retry { margin-top: 6px; }
|
||
.iwb-crash-screen { position: fixed; inset: 0; z-index: var(--iwb-z-alert); display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--iwb-bg); }
|
||
.iwb-crash-card { max-width: 620px; width: 100%; padding: 20px 22px; border: 1px solid var(--iwb-border); border-radius: 14px; background: var(--iwb-panel); display: flex; flex-direction: column; gap: 10px; }
|
||
.iwb-crash-title { font-size: 16px; font-weight: 700; }
|
||
.iwb-crash-msg { font-size: 13px; color: var(--iwb-text2); word-break: break-word; max-height: 30vh; overflow: auto; }
|
||
.iwb-crash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
||
.iwb-diag-kv { font-size: 12px; color: var(--iwb-text2); background: var(--iwb-layer); border: 1px solid var(--iwb-border); border-radius: 8px; padding: 3px 8px; }
|
||
.iwb-diag-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
|
||
.iwb-diag-item { padding: 5px 8px; border: 1px solid var(--iwb-border); border-radius: 8px; background: var(--iwb-layer); }
|
||
.iwb-diag-head { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
||
.iwb-diag-msg { font-size: 12px; color: var(--iwb-text2); word-break: break-word; }
|
||
.iwb-diag-extra { font-size: 11px; color: var(--iwb-text2); opacity: 0.85; word-break: break-word; }
|
||
|
||
/* v3.87.26 顶部栏"内存/规模"实时信息(可点击 → 打开诊断) */
|
||
.iwb-status-mem { cursor: pointer; border: 1px solid var(--iwb-border, rgba(0,0,0,.14)); border-radius: 999px; padding: 1px 8px; background: transparent; font: inherit; color: inherit; }
|
||
.iwb-status-mem:hover { background: var(--iwb-hover, rgba(0,0,0,.06)); }
|
||
|
||
/* v3.87.29 厂商分类(决定请求体怎么发尺寸) */
|
||
.iwb-shape-box { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
|
||
.iwb-shape-box .iwb-textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
|
||
/* v3.87.30 修复设置弹窗内的挤压/换行(新增厂商分类控件后暴露) */
|
||
.iwb-addr-tag { flex: 0 0 auto; min-width: 44px; white-space: nowrap; text-align: right; }
|
||
.iwb-modelrow { flex: 1 1 340px; min-width: 0; display: flex; align-items: center; gap: 8px; }
|
||
.iwb-modelrow-main { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.iwb-modelrow-kind { flex: 0 0 96px; max-width: 96px; }
|
||
.iwb-shape-box .iwb-textarea { width: 100%; box-sizing: border-box; min-height: 68px; }
|
||
.iwb-modal .iwb-section-sub { margin-top: 2px; }
|
||
/* v3.87.30 设置弹窗放大(内容多:厂商分类 / 模型清单 / 请求体模板 / 规则) */
|
||
.iwb-settings-modal { width: min(1180px, 96vw); max-width: 96vw; height: min(92vh, 1040px); max-height: 92vh; }
|
||
.iwb-settings-modal .iwb-modal-body { max-height: none; flex: 1 1 auto; min-height: 0; }
|
||
/* v3.87.31 模型清单:名称占位更宽 + 「质量」胶囊开关(与"启用"复选框区分) */
|
||
.iwb-modelrow { flex: 1 1 460px; }
|
||
.iwb-modelrow-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 120px; }
|
||
/* 2026-11-25:质量去外框复选框,仅用胶囊底色 + 文字区分开关;input 透明覆盖整枚胶囊,
|
||
既去掉小方框又保留 DOM 可见尺寸(e2e 的 .check() 依赖元素可点击)。 */
|
||
.iwb-quality-toggle { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--iwb-text-dim); border-radius: var(--iwb-radius-full); padding: var(--iwb-space-4) var(--iwb-space-10); font: inherit; font-size: var(--iwb-font-sm); line-height: 18px; cursor: pointer; }
|
||
.iwb-quality-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
|
||
.iwb-settings-modal .iwb-quality-toggle input { width: 100%; height: 100%; border-radius: var(--iwb-radius-full); }
|
||
.iwb-quality-toggle:hover { background: var(--iwb-hover); }
|
||
.iwb-quality-toggle.on { color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 600; background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); }
|
||
.iwb-shape-hint { flex: 1 1 100%; margin-top: 2px; }
|
||
|
||
/* v3.87.39 顶部状态栏:加半透明白底 + 背景模糊,避免叠在图片/内容上时文字看不清 */
|
||
.iwb-statusbar {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
border-color: rgba(255, 255, 255, 0.28);
|
||
-webkit-backdrop-filter: blur(10px) saturate(1.1);
|
||
backdrop-filter: blur(10px) saturate(1.1);
|
||
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
|
||
}
|
||
/* 深色主题下白底太亮:改用中性半透明 + 轻微模糊 */
|
||
.iwb-theme-dark .iwb-statusbar,
|
||
[data-theme="dark"] .iwb-statusbar {
|
||
background: rgba(0, 0, 0, 0.25);
|
||
border-color: rgba(255, 255, 255, 0.14);
|
||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
|
||
}
|
||
|
||
/* S13:统一标签栏——首页/landing 面板下移 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); }
|
||
.iwb-plugin-tag-warn { color: var(--iwb-err); border-color: var(--iwb-err); }
|
||
|
||
.iwb-set-main { display: flex; flex: 1 1 auto; min-height: 0; }
|
||
.iwb-set-nav { width: 232px; flex: 0 0 232px; display: flex; flex-direction: column; gap: var(--iwb-space-2); padding: var(--iwb-space-12) var(--iwb-space-10); overflow: auto; border-right: 1px solid var(--iwb-border); background: var(--iwb-layer); }
|
||
.iwb-set-nav-group { font-size: var(--iwb-font-sm); font-weight: 600; color: var(--iwb-text2); margin: var(--iwb-space-10) var(--iwb-space-8) var(--iwb-space-4); }
|
||
.iwb-set-nav-item { width: 100%; height: auto; justify-content: flex-start; text-align: left; gap: var(--iwb-space-8); }
|
||
.iwb-gset-page-title { font-size: var(--iwb-font-lg); font-weight: 700; margin: var(--iwb-space-2) 0 var(--iwb-space-4); }
|
||
|
||
/* ── 「模型设置」面板(2026-10-30):服务商 / 分组 / 模型 ─────────────────────
|
||
模型列表用「标签流式排列」:每个按内容宽度,排满一行自动折行(2026-10-31 用户指定样式);
|
||
超长名字靠 min-width: max-content 撑开 ⇒ 面板内横向滚动,仍不省略。
|
||
文字 nowrap + 不设 text-overflow ⇒ 永不省略(省略会导致无法识别具体模型)。 */
|
||
/* 宽度跟随 --iwb-pop-w(原来写死 320px 会绕过 token,字号放大后模型面板不跟着变宽) */
|
||
.iwb-gen-config { width: min(92vw, var(--iwb-pop-w)); max-height: min(78vh, calc(100vh - 24px)); display: flex; flex-direction: column; gap: var(--iwb-space-10); padding: var(--iwb-space-12) var(--iwb-space-16); }
|
||
.iwb-gc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
||
.iwb-gc-field { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
||
.iwb-gc-label { font-size: var(--iwb-font-md); color: var(--iwb-text2); white-space: nowrap; }
|
||
.iwb-gc-select { height: var(--iwb-pop-chip-h); font-size: var(--iwb-pop-chip-size); padding: 0 var(--iwb-pop-chip-pad-x); border: 1px solid var(--iwb-border); border-radius: var(--iwb-pop-chip-radius); background: var(--iwb-panel); color: var(--iwb-text); max-width: 220px; }
|
||
.iwb-gc-select:disabled { opacity: 0.5; }
|
||
.iwb-gc-sub { font-size: var(--iwb-font-md); font-weight: 700; color: var(--iwb-text2); letter-spacing: 0.5px; }
|
||
/* ── 节点背景色(2026-11-01 第二轮)──────────────────────────────────────────
|
||
数据侧:`data.bg` 存**令牌**(white/cyan/purple/pink/orange/yellow/green),
|
||
颜色值由本文件按主题映射 ⇒ 暗色主题是**独立的一套深色**,不是把浅色压暗。
|
||
亮色:低饱和莫兰迪浅色(用户要求「再灰一些、亮一些」)。
|
||
性能:纯静态 CSS + color-mix(解析期计算),无动画/合成层 ⇒ 不改色时开销为 0。 */
|
||
.iwb-node[data-bg] { background: var(--iwb-node-color); }
|
||
.iwb-node[data-bg="white"] { --iwb-node-color: #fdfdfd; }
|
||
.iwb-node[data-bg="cyan"] { --iwb-node-color: #e1eef0; }
|
||
.iwb-node[data-bg="purple"] { --iwb-node-color: #e7e6f4; }
|
||
.iwb-node[data-bg="pink"] { --iwb-node-color: #f7e5eb; }
|
||
.iwb-node[data-bg="orange"] { --iwb-node-color: #f8eadd; }
|
||
.iwb-node[data-bg="yellow"] { --iwb-node-color: #f7f1d9; }
|
||
.iwb-node[data-bg="green"] { --iwb-node-color: #e5efe3; }
|
||
/* 暗色主题:令牌给**中灰调**(第一版 #26~#3a 太深)。
|
||
2026-11-27 修正:暗色主题后来改成「深底 + 浅字」(--iwb-node-text #e3e3e3),
|
||
而中灰调底色配浅字对比度只有 1.4(实测)⇒ 自定义底色节点在暗色下必须改用近黑文字。 */
|
||
.theme-dark .iwb-node[data-bg] { --iwb-node-text: #1d1d1f; --iwb-node-text2: #3c3c3e; }
|
||
.theme-dark .iwb-node[data-bg="white"] { --iwb-node-color: #b6b6b8; }
|
||
.theme-dark .iwb-node[data-bg="cyan"] { --iwb-node-color: #a9c3c6; }
|
||
.theme-dark .iwb-node[data-bg="purple"] { --iwb-node-color: #b4b2cb; }
|
||
.theme-dark .iwb-node[data-bg="pink"] { --iwb-node-color: #c9b2ba; }
|
||
.theme-dark .iwb-node[data-bg="orange"] { --iwb-node-color: #c9b8a6; }
|
||
.theme-dark .iwb-node[data-bg="yellow"] { --iwb-node-color: #c7bf9a; }
|
||
.theme-dark .iwb-node[data-bg="green"] { --iwb-node-color: #abc3ac; }
|
||
/* 内层元素改用「比节点底亮一档」的同色系派生色(亮色:混白;暗色:混白但比例更高 ⇒ 仍是 raised) */
|
||
.iwb-node-bg-custom {
|
||
/* 只比节点底色**亮一点点**(82% 节点色 + 18% 白)。
|
||
⚠️ 之前写成 14% 节点色(≈ 近白)⇒ 与底色对比过强、看着不统一(2026-11-01 用户反馈)。 */
|
||
--iwb-bg-surface: color-mix(in srgb, var(--iwb-node-color, #fff) 82%, #fff);
|
||
--iwb-bg-line: color-mix(in srgb, var(--iwb-node-color, #fff) 58%, var(--iwb-border));
|
||
}
|
||
.theme-dark .iwb-node-bg-custom {
|
||
--iwb-bg-surface: color-mix(in srgb, var(--iwb-node-color, #fff) 78%, #fff);
|
||
--iwb-bg-line: color-mix(in srgb, var(--iwb-node-color, #fff) 45%, #000);
|
||
}
|
||
/* 旧数据兼容:第一版把 hex 直接写进 data.bg ⇒ 暗色下压暗一档,避免浅色上出现浅色文字 */
|
||
.theme-dark .iwb-node-bg-custom:not([data-bg]) { background: color-mix(in srgb, var(--iwb-node-color, #fff) 58%, #0f0f0f) !important; }
|
||
.iwb-node-bg-custom .iwb-task,
|
||
.iwb-node-bg-custom .iwb-combine-src,
|
||
.iwb-node-bg-custom .iwb-batch-src { background: var(--iwb-bg-surface); border-color: var(--iwb-bg-line); }
|
||
/* 下拉框 / 输入框:**透明**,与节点背景同色(用户要求,避免一块块白底) */
|
||
.iwb-node-bg-custom .iwb-gen-settings .iwb-pick,
|
||
.iwb-node-bg-custom .iwb-gen-settings .iwb-gen-summary,
|
||
.iwb-node-bg-custom .iwb-gen-settings .iwb-gen-cell .iwb-input,
|
||
.iwb-node-bg-custom .iwb-input,
|
||
.iwb-node-bg-custom .iwb-combine-sep,
|
||
.iwb-node-bg-custom .iwb-ref-url-input,
|
||
.iwb-node-bg-custom .iwb-select { background: transparent; border-color: var(--iwb-bg-line); }
|
||
/* 下拉类控件**不要描边**(用户反馈:多一圈框不好看)——输入框仍保留边界以便识别可输入 */
|
||
.iwb-node-bg-custom .iwb-gen-settings .iwb-pick,
|
||
.iwb-node-bg-custom .iwb-gen-settings .iwb-gen-summary,
|
||
.iwb-node-bg-custom .iwb-combine-sep { border-color: transparent; }
|
||
.iwb-node-bg-custom .iwb-pick:hover,
|
||
.iwb-node-bg-custom .iwb-gen-summary:hover { border-color: var(--iwb-brand); }
|
||
/* 提示词 / 文本节点的正文输入区:与节点背景同色,不再单独区分(2026-11-01 用户要求) */
|
||
.iwb-node-bg-custom .iwb-textarea,
|
||
.iwb-node-bg-custom .iwb-textarea-plain { background: transparent; border-color: transparent; }
|
||
|
||
/* 暗色下:中灰底上再叠深色描边会显得"多了一圈框"(用户反馈)⇒ 引用行/任务卡描边透明,只留任务卡左侧状态色条 */
|
||
/* 暗色:中灰底上再叠深色描边会显得"到处是框"(用户要求简化视觉)⇒ 自定义底色节点内一律去描边 */
|
||
.theme-dark .iwb-node-bg-custom { border-left-color: transparent; border-right-color: transparent; border-bottom-color: transparent; }
|
||
.theme-dark .iwb-node-bg-custom .iwb-task,
|
||
.theme-dark .iwb-node-bg-custom .iwb-combine-src,
|
||
.theme-dark .iwb-node-bg-custom .iwb-batch-src,
|
||
.theme-dark .iwb-node-bg-custom .iwb-input,
|
||
.theme-dark .iwb-node-bg-custom .iwb-ref-url-input,
|
||
.theme-dark .iwb-node-bg-custom .iwb-ref-single { border-color: transparent; }
|
||
.iwb-node-bg-custom .iwb-task .iwb-task-count-sel { background-color: transparent; }
|
||
.iwb-node-bg-custom .iwb-ref-upload-link { background: var(--iwb-bg-surface); border-color: var(--iwb-bg-line); }
|
||
/* 提示词「放大编辑」:节点右上角小按钮(hover / 选中时出现)+ 大号编辑浮层(2026-11-01) */
|
||
/* 提示词「放大编辑」浮层(2026-11-01):无标题、无边框的大编辑卡 + 顶部标记插入工具条 */
|
||
.iwb-prompt-mask { display: flex; align-items: center; justify-content: center; }
|
||
.iwb-prompt-modal { width: min(1180px, 94vw); height: 86vh; background: var(--iwb-panel); border: 0; border-radius: 22px;
|
||
box-shadow: 0 24px 70px rgba(0, 0, 0, .28); display: flex; flex-direction: column; overflow: hidden; }
|
||
.iwb-prompt-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; padding: 10px 14px; overflow-x: auto; }
|
||
.iwb-prompt-tool { height: 30px; min-width: 30px; padding: 0 8px; border: 0; background: transparent; color: var(--iwb-text2);
|
||
border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; flex: 0 0 auto; white-space: nowrap; }
|
||
.iwb-prompt-tool:hover { background: var(--iwb-hover); color: var(--iwb-text); }
|
||
.iwb-prompt-bar-sp { flex: 1 1 auto; }
|
||
/* 组间分隔:格式按钮分组(标题 / 块级 / 行内 / 清除)+ 复制,视觉上不再糊成一排 */
|
||
.iwb-prompt-sep { flex: 0 0 auto; width: 1px; height: 16px; margin: 0 6px; background: var(--iwb-border); }
|
||
/* 加粗/斜体/删除线的**标签本身**套对应字形(2026-11-03):这三个类名此前只写在 JS 里、CSS 从未实现,
|
||
所以按钮只是一串字母,看不出功能。 */
|
||
.iwb-prompt-tool.iwb-md-b { font-weight: 700; }
|
||
.iwb-prompt-tool.iwb-md-i { font-style: italic; }
|
||
.iwb-prompt-tool.iwb-md-s { text-decoration: line-through; }
|
||
.iwb-prompt-copy { display: inline-flex; align-items: center; justify-content: center; }
|
||
.iwb-prompt-copy .iwb-ic { width: 15px; height: 15px; }
|
||
.iwb-prompt-copied { font-size: 12px; color: var(--iwb-text2); margin-right: 2px; }
|
||
/* 单栏所见即所得编辑区:直接在编辑器里渲染标题/列表/粗斜体/删除线/分割线 */
|
||
.iwb-md-editor { overflow: auto; word-break: break-word; outline: none; }
|
||
.iwb-md-editor:empty::before { content: attr(data-placeholder); color: var(--iwb-text2); opacity: .7; }
|
||
.iwb-md-editor h1 { font-size: 22px; font-weight: 700; margin: 10px 0 6px; line-height: 1.4; }
|
||
.iwb-md-editor h2 { font-size: 18px; font-weight: 700; margin: 9px 0 5px; line-height: 1.45; }
|
||
.iwb-md-editor h3 { font-size: 16px; font-weight: 700; margin: 8px 0 4px; line-height: 1.5; }
|
||
.iwb-md-editor ul, .iwb-md-editor ol { margin: 4px 0; padding-left: 22px; }
|
||
.iwb-md-editor ul { list-style: disc; }
|
||
.iwb-md-editor ol { list-style: decimal; }
|
||
/* 多级列表:每深一层缩进略减、圆点换样式,层级一眼能分(2026-11-03) */
|
||
.iwb-md-editor li > ul, .iwb-md-editor li > ol { margin: 2px 0 0; padding-left: 20px; }
|
||
.iwb-md-editor li > ul { list-style: circle; }
|
||
.iwb-md-editor li > ul > li > ul { list-style: square; }
|
||
.iwb-md-editor li { margin: 2px 0; }
|
||
.iwb-md-editor hr { border: 0; border-top: 1px solid var(--iwb-border); margin: 12px 0; }
|
||
.iwb-md-editor div { min-height: 1.75em; }
|
||
.iwb-prompt-x { width: 34px; height: 34px; margin-left: 4px; border: 0; background: var(--iwb-layer); color: var(--iwb-text2);
|
||
border-radius: 10px; cursor: pointer; font-size: 18px; line-height: 1; }
|
||
.iwb-prompt-x:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
|
||
.iwb-prompt-area { flex: 1 1 auto; width: 100%; border: 0; outline: none; resize: none; background: transparent; overflow: auto;
|
||
color: var(--iwb-text); padding: 4px 22px 22px; font: inherit; font-size: 15px; line-height: 1.75; box-sizing: border-box; }
|
||
.iwb-pick-caret { display: inline-flex; align-items: center; }
|
||
.iwb-pick-caret .iwb-ic { width: 14px; height: 14px; opacity: .75; }
|
||
/* 节点背景色色板(2026-11-01):6 个预设色块 + 「无」。
|
||
纯静态 CSS,无动画/滤镜 ⇒ 不改色时开销为 0;改色只重绘该节点区域。 */
|
||
.iwb-pop.iwb-bg-palette { display: flex; flex-direction: row; align-items: center; gap: 8px; width: auto; max-width: none; padding: 8px 10px; border-radius: var(--iwb-radius-panel); }
|
||
.iwb-bg-swatch { width: 26px; height: 26px; border-radius: var(--iwb-radius-control); border: 1px solid var(--iwb-border); cursor: pointer; padding: 0; flex: 0 0 auto; transition: transform .12s, box-shadow .12s; }
|
||
.iwb-bg-swatch[data-bg="white"] { background: #fdfdfd; }
|
||
.iwb-bg-swatch[data-bg="cyan"] { background: #e1eef0; }
|
||
.iwb-bg-swatch[data-bg="purple"] { background: #e7e6f4; }
|
||
.iwb-bg-swatch[data-bg="pink"] { background: #f7e5eb; }
|
||
.iwb-bg-swatch[data-bg="orange"] { background: #f8eadd; }
|
||
.iwb-bg-swatch[data-bg="yellow"] { background: #f7f1d9; }
|
||
.iwb-bg-swatch[data-bg="green"] { background: #e5efe3; }
|
||
.theme-dark .iwb-bg-swatch[data-bg="white"] { background: #b6b6b8; }
|
||
.theme-dark .iwb-bg-swatch[data-bg="cyan"] { background: #a9c3c6; }
|
||
.theme-dark .iwb-bg-swatch[data-bg="purple"] { background: #b4b2cb; }
|
||
.theme-dark .iwb-bg-swatch[data-bg="pink"] { background: #c9b2ba; }
|
||
.theme-dark .iwb-bg-swatch[data-bg="orange"] { background: #c9b8a6; }
|
||
.theme-dark .iwb-bg-swatch[data-bg="yellow"] { background: #c7bf9a; }
|
||
.theme-dark .iwb-bg-swatch[data-bg="green"] { background: #abc3ac; }
|
||
.iwb-bg-swatch:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 30%, transparent); }
|
||
.iwb-bg-swatch-on { box-shadow: inset 0 0 0 2px var(--iwb-brand); }
|
||
.iwb-bg-swatch-none { position: relative; background: transparent !important; }
|
||
.iwb-bg-swatch-none::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--iwb-text2); opacity: .5; transform: rotate(-45deg); }
|
||
/* 气泡上的「背景色」按钮:直接显示**当前背景色**的小色块(不再用调色板图标) */
|
||
.iwb-bg-dot { width: 16px; height: 16px; border-radius: var(--iwb-radius-chip); padding: 0; pointer-events: none; flex: 0 0 auto; }
|
||
.iwb-bg-dot.iwb-bg-swatch:hover { transform: none; }
|
||
.iwb-bg-palette-host { position: fixed; inset: 0; pointer-events: none; z-index: var(--iwb-z-palette); }
|
||
.iwb-bg-palette-host .iwb-pop-anchor { pointer-events: auto; }
|
||
.iwb-gc-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--iwb-pop-chip-gap); overflow: auto; max-height: 48vh; padding-right: var(--iwb-space-2); }
|
||
.iwb-gc-item { flex: 0 0 auto; width: auto; min-width: max-content; max-width: 100%; display: inline-flex; align-items: center; min-height: var(--iwb-pop-chip-h); gap: var(--iwb-space-6); padding: 0 var(--iwb-pop-chip-pad-x); font-size: var(--iwb-pop-chip-size); border-radius: var(--iwb-pop-chip-radius); border: 1px solid var(--iwb-border); background: var(--iwb-panel); color: var(--iwb-text); cursor: pointer; white-space: nowrap; text-align: left; }
|
||
.iwb-gc-name { white-space: nowrap; }
|
||
.iwb-gc-tick { margin-left: auto; color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; }
|
||
.iwb-gc-item:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-gc-item-on { border-color: var(--iwb-brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 18%, transparent); }
|
||
.iwb-gc-item-err { border-color: var(--iwb-err); color: var(--iwb-err); }
|
||
.iwb-gc-empty { font-size: var(--iwb-font-sm); color: var(--iwb-text2); padding: var(--iwb-space-6) var(--iwb-space-2); }
|
||
/* 节点上的模型触发器:节点宽度固定(480)时长名必须省略,否则会溢出压到「尺寸」按钮上。
|
||
(面板里的模型名永远完整显示:nowrap 且不设省略) */
|
||
.iwb-gen-settings .iwb-pick-genmodel { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
/* 模型触发器内部拆成「名字 + 箭头」两段(v3.24.24):按钮被拉宽后箭头必须贴右,
|
||
否则长空白会让它看着不像下拉框。名字段承担省略号,箭头固定不压缩。 */
|
||
.iwb-gen-settings .iwb-pick-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.iwb-gen-settings .iwb-pick-caret { flex: 0 0 auto; margin-left: auto; padding-left: var(--iwb-space-8); opacity: 0.8; }
|
||
|
||
/* 组合节点:分隔符下拉挪到「组合(N)」同一行右侧(2026-10-30) */
|
||
.iwb-gen-head .iwb-combine-sep { width: auto; min-width: 64px; max-width: 46%; flex: 0 1 auto; font-size: var(--iwb-font-sm); padding: var(--iwb-space-2) var(--iwb-space-24) var(--iwb-space-2) var(--iwb-space-6); height: 26px;
|
||
/* 与配置节点下拉统一:去掉系统三角,改用同款 chevron(向下) */
|
||
appearance: none; -webkit-appearance: none;
|
||
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
|
||
background-repeat: no-repeat; background-position: right 7px center; }
|
||
|
||
/* 提示词 / 文本节点:「继承自上游」状态条(2026-11-14)
|
||
* 起因:样式节点连进这两个节点后,节点体只显示空的 placeholder,用户以为没接上。
|
||
* 现在自己没写字时直接把上游文本显示出来(.is-inherited 只改字色,零布局位移),
|
||
* 状态条说明「继承 / 已固定」并给出「恢复跟随」。 */
|
||
.iwb-inherit-bar { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: var(--iwb-font-xs); line-height: 16px; color: var(--iwb-text2); min-width: 0; }
|
||
.iwb-inherit-tag { flex: 0 0 auto; padding: 0 5px; border-radius: var(--iwb-radius-full); font-size: var(--iwb-font-2xs); color: var(--iwb-brand-text, var(--iwb-brand)); background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); } /*iwb:raw-until=3.28.0*/
|
||
.iwb-inherit-tag.is-taken { color: var(--iwb-text); background: color-mix(in srgb, var(--iwb-tint) 10%, transparent); }
|
||
.iwb-inherit-src { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.iwb-inherit-more { flex: 0 0 auto; opacity: .78; }
|
||
.iwb-inherit-reset { flex: 0 0 auto; border: 0; background: transparent; padding: 0; font: inherit; color: var(--iwb-brand-text, var(--iwb-brand)); cursor: pointer; }
|
||
.iwb-inherit-reset:hover { color: var(--iwb-text); text-decoration: underline; }
|
||
.iwb-textarea.is-inherited { color: color-mix(in srgb, var(--iwb-text) 74%, transparent); }
|
||
|
||
/* ── 设置面板整理(桌面版):少框线、多留白、分层靠标题而不是边框 ───────── */
|
||
.iwb-settings-modal .iwb-section { border-top: none; margin-top: var(--iwb-space-4); padding-top: 0; }
|
||
.iwb-settings-modal .iwb-section + .iwb-section { margin-top: var(--iwb-space-24); }
|
||
.iwb-settings-modal .iwb-section-sub { margin: var(--iwb-space-20) 0 var(--iwb-space-6); }
|
||
.iwb-settings-modal .iwb-section-sub:first-of-type { margin-top: var(--iwb-space-10); }
|
||
.iwb-settings-modal .iwb-row { margin: var(--iwb-space-6) 0; }
|
||
.iwb-settings-modal .iwb-hint { margin: var(--iwb-space-4) 0 0; line-height: 1.6; }
|
||
.iwb-settings-modal .iwb-set-nav { border-right: none; }
|
||
.iwb-settings-modal .iwb-set-nav-group { margin: var(--iwb-space-16) var(--iwb-space-8) var(--iwb-space-6); }
|
||
|
||
/* 桌面端插件列表:标题行 + 右侧操作(对齐 Obsidian,省纵向空间) */
|
||
.iwb-plugin-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--iwb-border); }
|
||
.iwb-plugin-main { flex: 1 1 auto; min-width: 0; }
|
||
.iwb-plugin-title { display: flex; align-items: center; gap: 8px; font-weight: 550; }
|
||
.iwb-plugin-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
|
||
.iwb-plugin-desc { color: var(--iwb-text2); font-size: 13px; line-height: 1.5; margin-top: 2px; }
|
||
/* 页内确认框(替代原生 confirm,避免 WKWebView 主线程阻塞) */
|
||
.iwb-confirm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.38); display: flex; align-items: center; justify-content: center; z-index: var(--iwb-z-alert); }
|
||
.iwb-confirm-box { width: min(460px, calc(100vw - 48px)); background: var(--iwb-bg-menu); color: var(--iwb-text); border-radius: var(--iwb-radius-panel); padding: 18px 20px 14px; box-shadow: var(--iwb-elevation-3); }
|
||
.iwb-confirm-title { font-weight: 650; font-size: 15px; margin-bottom: 8px; }
|
||
.iwb-confirm-text { font-size: var(--iwb-font-md); line-height: 1.65; color: var(--iwb-text2); white-space: pre-wrap; word-break: break-word; }
|
||
.iwb-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
|
||
/* ── 插件管理 / 插件市场(M6 重做)───────────────────────────────────────
|
||
* 这一段原本是 v3.26.24 → v3.26.27 六次叠加的结果,读者要先在心里跑一遍层叠才知道最终值:
|
||
* .iwb-mk-list gap 写过 3 次(无 → 8 → 0) .iwb-mk-grid gap 写过 3 次(10 → 14 → 12)
|
||
* .iwb-mk-actions .iwb-btn 背景改过 4 次 .iwb-gset-page max-width 一改一撤
|
||
* M6 把它合成一份:布局写一次、视觉写一次,排版属性全部落闭集(M5 的 lint:tokens 对新增行
|
||
* 生效,这一段是按闸门要求写出来的第一个完整面板——案例见 docs/standards/design-tokens.md §5.2)。
|
||
* 顺带删掉 3 个全仓零引用的类(筛选条旧容器、绿色状态点、旧分隔条)。
|
||
*/
|
||
.iwb-gset-page { max-width: none; }
|
||
.iwb-gset-page-title { margin-bottom: var(--iwb-space-2); }
|
||
|
||
/* 工具条:搜索框 + 标签筛选。用块面底色分区,不画线框 */
|
||
.iwb-mk-toolbar {
|
||
display: flex; flex-wrap: wrap; align-items: center; gap: var(--iwb-space-8);
|
||
background: var(--iwb-layer);
|
||
border: 1px solid color-mix(in srgb, var(--iwb-border) 45%, transparent);
|
||
border-radius: var(--iwb-radius-panel);
|
||
padding: var(--iwb-space-8) var(--iwb-space-10);
|
||
margin: var(--iwb-space-6) 0 var(--iwb-space-12);
|
||
}
|
||
.iwb-mk-toolbar .iwb-input { border: 0; background: var(--iwb-layer2); box-shadow: none; }
|
||
.iwb-mk-toolbar .iwb-input:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 22%, transparent); }
|
||
.iwb-mk-subtitle { font-size: var(--iwb-font-sm); color: var(--iwb-text2); margin: var(--iwb-space-2) 0 var(--iwb-space-10); }
|
||
|
||
/* 筛选胶囊:底色比工具条深一档,否则 layer 叠 layer 等于没有边界 */
|
||
.iwb-mk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--iwb-space-6); margin: 0; }
|
||
.iwb-mk-chip {
|
||
cursor: pointer; border: 0;
|
||
background: var(--iwb-layer2); color: var(--iwb-text2);
|
||
padding: var(--iwb-space-4) var(--iwb-space-12);
|
||
border-radius: var(--iwb-radius-full);
|
||
font-size: var(--iwb-font-sm); line-height: 18px;
|
||
transition: background .12s ease, color .12s ease;
|
||
}
|
||
.iwb-mk-chip:hover { background: var(--iwb-hover); color: var(--iwb-text); }
|
||
.iwb-mk-chip.on { background: var(--iwb-text); color: var(--iwb-layer); }
|
||
|
||
/* 卡片墙:等高、底部对齐。悬停只变色不位移(同一屏里还有列表,两种形态靠形状区分) */
|
||
.iwb-mk-grid {
|
||
display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
|
||
gap: var(--iwb-space-12); margin: var(--iwb-space-4) 0 var(--iwb-space-6);
|
||
align-items: stretch;
|
||
}
|
||
.iwb-mk-card {
|
||
display: flex; flex-direction: column; gap: var(--iwb-space-10);
|
||
min-height: 168px; padding: var(--iwb-space-12);
|
||
background: var(--iwb-panel);
|
||
border: 1px solid color-mix(in srgb, var(--iwb-border) 55%, transparent);
|
||
border-radius: var(--iwb-radius-card);
|
||
transition: background .12s ease, border-color .12s ease;
|
||
}
|
||
.iwb-mk-card:hover { background: color-mix(in srgb, var(--iwb-layer) 55%, var(--iwb-panel)); border-color: color-mix(in srgb, var(--iwb-border2) 62%, transparent); }
|
||
|
||
/* 卡片头部:头像 + 名称/元信息,操作按钮落在 foot 右侧 */
|
||
.iwb-mk-head { display: flex; align-items: flex-start; gap: var(--iwb-space-8); }
|
||
.iwb-mk-avatar {
|
||
display: flex; align-items: center; justify-content: center;
|
||
flex: 0 0 32px; width: 32px; height: 32px;
|
||
border-radius: var(--iwb-radius-card); font-size: var(--iwb-font-xl);
|
||
}
|
||
.iwb-mk-titles { flex: 1 1 auto; min-width: 0; }
|
||
.iwb-mk-name { display: flex; align-items: center; flex-wrap: wrap; gap: var(--iwb-space-6); font-weight: 600; font-size: var(--iwb-font-md); line-height: 1.35; }
|
||
.iwb-mk-sub { font-size: var(--iwb-font-sm); color: var(--iwb-text2); margin-top: var(--iwb-space-2); }
|
||
.iwb-mk-badge {
|
||
padding: 0 var(--iwb-space-6);
|
||
border-radius: var(--iwb-radius-full);
|
||
font-size: var(--iwb-font-xs); line-height: 17px;
|
||
background: var(--iwb-ok-bg);
|
||
color: var(--iwb-ok);
|
||
border: 1px solid var(--iwb-ok-bd);
|
||
}
|
||
.iwb-mk-desc {
|
||
flex: 1 1 auto; font-size: var(--iwb-font-sm); line-height: 1.55; color: var(--iwb-text2);
|
||
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
||
}
|
||
.iwb-mk-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--iwb-space-8); margin-top: auto; }
|
||
.iwb-mk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--iwb-space-4); }
|
||
.iwb-mk-tag {
|
||
border-radius: var(--iwb-radius-full);
|
||
background: var(--iwb-layer2); color: var(--iwb-text2);
|
||
font-size: var(--iwb-font-xs); line-height: 16px;
|
||
padding: 0 var(--iwb-space-6);
|
||
}
|
||
.iwb-mk-card .iwb-plugin-tag { font-size: var(--iwb-font-xs); padding: 0 var(--iwb-space-6); line-height: 16px; }
|
||
.iwb-mk-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--iwb-space-6); }
|
||
/* 卡片按钮:浅底无边框 —— panel 上的「按钮感」靠底色,不靠线框 */
|
||
.iwb-mk-actions .iwb-btn {
|
||
border: 0; box-shadow: none;
|
||
background: color-mix(in srgb, var(--iwb-tint) 6%, var(--iwb-panel));
|
||
transition: background .12s ease, color .12s ease;
|
||
}
|
||
.iwb-mk-actions .iwb-btn:hover { background: color-mix(in srgb, var(--iwb-tint) 11%, var(--iwb-panel)); }
|
||
.iwb-mk-actions .iwb-btn:active { background: color-mix(in srgb, var(--iwb-tint) 16%, var(--iwb-panel)); }
|
||
.iwb-mk-actions .iwb-btn-primary { background: var(--iwb-text); color: var(--iwb-layer); }
|
||
.iwb-mk-actions .iwb-btn-primary:hover { background: color-mix(in srgb, var(--iwb-tint) 86%, var(--iwb-layer)); }
|
||
|
||
/* 已安装列表:横线分隔、不套卡片(与卡片墙同屏并存时靠形态区分) */
|
||
.iwb-mk-list { display: flex; flex-direction: column; }
|
||
.iwb-mk-row {
|
||
display: flex; align-items: center; gap: var(--iwb-space-12);
|
||
padding: var(--iwb-space-12) var(--iwb-space-6);
|
||
border-bottom: 1px solid color-mix(in srgb, var(--iwb-border) 62%, transparent);
|
||
transition: background .12s ease;
|
||
}
|
||
.iwb-mk-row:last-child { border-bottom: 0; }
|
||
.iwb-mk-row:hover { background: color-mix(in srgb, var(--iwb-tint) 3%, transparent); }
|
||
.iwb-mk-row-main { flex: 1 1 auto; min-width: 0; }
|
||
.iwb-mk-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: var(--iwb-space-8); }
|
||
.iwb-mk-row-name { font-weight: 600; font-size: var(--iwb-font-base); }
|
||
.iwb-mk-row-ver, .iwb-mk-row-author { color: var(--iwb-text2); font-size: var(--iwb-font-sm); }
|
||
.iwb-mk-row-desc { color: var(--iwb-text2); font-size: var(--iwb-font-sm); margin-top: var(--iwb-space-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.iwb-mk-row-actions { display: flex; align-items: center; flex: 0 0 auto; gap: var(--iwb-space-6); }
|
||
.iwb-mk-row-actions .iwb-btn { box-shadow: none; transition: background .12s ease; }
|
||
.iwb-mk-row-actions .iwb-btn:hover { background: color-mix(in srgb, var(--iwb-tint) 10%, var(--iwb-panel)); }
|
||
|
||
/* 插件设置行:无外框只有分隔线;控件在上/在下由 stacked 决定整行竖排 */
|
||
.iwb-mk-setrow {
|
||
display: flex; align-items: center; gap: var(--iwb-space-16);
|
||
padding: var(--iwb-space-12) var(--iwb-space-2);
|
||
border: 0; border-bottom: 1px solid var(--iwb-border);
|
||
background: transparent; border-radius: 0; margin: 0;
|
||
}
|
||
.iwb-mk-setrow:last-of-type { border-bottom: 0; }
|
||
.iwb-mk-setrow-main { flex: 1 1 auto; min-width: 0; }
|
||
.iwb-mk-setrow-title { font-weight: 600; font-size: var(--iwb-font-base); line-height: 1.4; }
|
||
.iwb-mk-setrow .iwb-hint { margin-top: var(--iwb-space-4); line-height: 1.55; }
|
||
.iwb-mk-setrow-col { display: block; }
|
||
.iwb-mk-setrow-col > .iwb-mk-setrow-main { width: 100%; }
|
||
.iwb-mk-setrow-col > .iwb-input, .iwb-mk-setrow-col > .iwb-plugin-setting-custom { margin-top: var(--iwb-space-10); }
|
||
.iwb-plugin-setting-custom { display: block; min-width: 0; max-width: 100%; }
|
||
|
||
/* 开关:38×22 与滑块 18 是组件自身几何,没有闭集(width/height 本来就不在 lint 范围) */
|
||
.iwb-switch { display: inline-flex; align-items: center; cursor: pointer; flex: 0 0 auto; }
|
||
.iwb-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
|
||
.iwb-switch-track { width: 38px; height: 22px; border-radius: var(--iwb-radius-full); background: var(--iwb-border); position: relative; transition: background .15s; }
|
||
.iwb-switch-dot { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--iwb-panel); transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
|
||
.iwb-switch input:checked + .iwb-switch-track { background: var(--iwb-brand); }
|
||
.iwb-switch input:checked + .iwb-switch-track .iwb-switch-dot { transform: translateX(16px); }
|
||
.iwb-switch input:disabled + .iwb-switch-track { opacity: .45; }
|
||
/* LLM 渠道:去掉外框,改成分区 + 细分隔线;默认渠道用左侧色条标记 */
|
||
.iwb-settings-modal .iwb-llm-card { border: 0; border-top: 1px solid var(--iwb-border); border-radius: 0; background: transparent; padding: var(--iwb-space-12) 0 var(--iwb-space-8); margin: 0; }
|
||
.iwb-settings-modal .iwb-llm-card:first-of-type { border-top: 0; }
|
||
.iwb-settings-modal .iwb-llm-card-def { border-left: 2px solid var(--iwb-brand); padding-left: var(--iwb-space-12); }
|
||
.iwb-settings-modal .iwb-llm-card .iwb-label { font-size: var(--iwb-font-sm); color: var(--iwb-text2); font-weight: 600; margin: var(--iwb-space-10) 0 var(--iwb-space-4); }
|
||
.iwb-settings-modal .iwb-llm-card .iwb-row { margin: var(--iwb-space-4) 0; gap: var(--iwb-space-8); }
|
||
.iwb-settings-modal .iwb-llm-card .iwb-input { height: auto; padding: var(--iwb-space-6) var(--iwb-space-10); font-size: var(--iwb-font-md); }
|
||
.iwb-settings-modal .iwb-modellist { display: flex; flex-wrap: wrap; gap: var(--iwb-space-6); margin: var(--iwb-space-2) 0 var(--iwb-space-4); }
|
||
.iwb-settings-modal .iwb-modelrow { padding: var(--iwb-space-2) var(--iwb-space-12); border-radius: var(--iwb-radius-full); background: var(--iwb-layer2); border: 1px solid transparent; margin: 0; font-size: var(--iwb-font-sm); }
|
||
.iwb-settings-modal .iwb-modelrow-active { border-color: var(--iwb-brand); background: color-mix(in srgb, var(--iwb-brand) 8%, transparent); }
|
||
.iwb-settings-modal .iwb-llm-card .iwb-btn-xs { opacity: .5; }
|
||
.iwb-settings-modal .iwb-llm-card .iwb-btn-xs:hover { opacity: 1; }
|
||
/* ── 外观:取色器(v3.25.14,仿 Obsidian 的取色面板) ───────────────── */
|
||
.iwb-cpick { position: relative; display: inline-flex; align-items: center; gap: 8px; }
|
||
.iwb-cpick-swatch { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--iwb-border); cursor: pointer; font-size: 11px; letter-spacing: .04em; }
|
||
.iwb-cpick-swatch:hover { border-color: var(--iwb-border2); }
|
||
.iwb-cpick-hex { font-variant-numeric: tabular-nums; } /* v3.25.75:去掉 mix-blend-mode(浅色底上文字糊成一团) */
|
||
.iwb-cpick-swatch::after { content: '▾'; margin-left: var(--iwb-space-6); opacity: .7; font-size: var(--iwb-font-2xs); } /* 提示可点开取色 */
|
||
.iwb-cpick-swatch { min-width: 104px; }
|
||
.iwb-cpick-pop { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; width: 236px; padding: 10px; border-radius: var(--iwb-radius-card); background: var(--iwb-panel); border: 1px solid var(--iwb-border); box-shadow: var(--iwb-elevation-2); }
|
||
.iwb-cpick-box { position: relative; height: 132px; border-radius: 6px; cursor: crosshair; }
|
||
.iwb-cpick-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); pointer-events: none; }
|
||
.iwb-cpick-hue { width: 100%; height: 12px; margin: 10px 0 8px; border-radius: 6px; -webkit-appearance: none; appearance: none; }
|
||
.iwb-cpick-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--iwb-panel); border: 2px solid rgba(0,0,0,.45); cursor: pointer; }
|
||
.iwb-cpick-rgb { display: flex; gap: 6px; }
|
||
.iwb-cpick-chan { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: var(--iwb-space-2); font-size: var(--iwb-font-2xs); color: var(--iwb-text2); }
|
||
.iwb-cpick-chan input { width: 100%; height: 26px; padding: 0 4px; text-align: center; border-radius: var(--iwb-radius-chip); border: 1px solid var(--iwb-border); background: var(--iwb-layer2); color: var(--iwb-text); font-size: var(--iwb-font-xs); } /*iwb:raw-until=3.28.0*/
|
||
.iwb-cpick-foot { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
|
||
/* 十六进制输入框可缩到 0(min-width:0 才能被 flex 压窄),「完成」按钮固定不换行 */
|
||
.iwb-cpick-input { flex: 1 1 0; min-width: 0; width: auto; height: 26px; font-size: 11px; }
|
||
.iwb-cpick-foot .iwb-btn { flex: 0 0 auto; white-space: nowrap; padding: 0 10px; }
|
||
.iwb-hint-warn { color: var(--iwb-warn); }
|
||
|
||
/* 紧凑下拉(v3.25.19):图库顶部的时间/插入尺寸选择器,省横向空间 */
|
||
.iwb-select-compact {
|
||
width: auto;
|
||
min-width: 62px;
|
||
max-width: 84px;
|
||
padding-left: 6px;
|
||
padding-right: 4px;
|
||
font-size: var(--fs-sm);
|
||
background-position: right 2px center;
|
||
}
|
||
/* ===== 图库头部(v3.25.39):标题独占一行 → 操作行 → 设定行 =====
|
||
* 窄面板下操作行/设定行各自换行,按钮与下拉都保持自然宽度,不被挤压。
|
||
*/
|
||
.iwb-gal-head { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--iwb-border); }
|
||
.iwb-gal-title { display: flex; align-items: baseline; gap: 8px; }
|
||
.iwb-gal-sel { font-size: 11px; color: var(--iwb-brand-text, var(--iwb-brand)); }
|
||
.iwb-gal-actions { display: flex; flex-wrap: wrap; gap: 6px; }
|
||
.iwb-gal-actions .iwb-btn { flex: 0 0 auto; }
|
||
.iwb-gal-actions .iwb-btn.iwb-gal-off { opacity: .45; }
|
||
/* v1.1.0:底部横栏(左张数 / 右设定),下拉再窄一档 */
|
||
.iwb-gal-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--iwb-border); }
|
||
.iwb-gal-foot-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
||
.iwb-gal-count { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; }
|
||
.iwb-gal-status { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
|
||
.iwb-gal-opts { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; margin-left: auto; }
|
||
/* 图库视觉(浮层/图标按钮/紧凑间距)已迁到插件自带 gallery/styles.css(v1.5.0):
|
||
* 宿主 CSS 只在客户端发版时更新,插件样式随市场更新即生效,避免两处改、两处不一致。
|
||
* 这里只留最小兜底:浮层需要相对定位容器。 */
|
||
.iwb-history-embedded { position: relative; }
|
||
.iwb-gal-opt { display: inline-flex; align-items: center; gap: 3px; }
|
||
/* 三个下拉尽量窄:只留内容 + 箭头的最小宽度(0.5K / 特大 / 全部 都放得下) */
|
||
.iwb-gal-opt select, .iwb-gal-opts select { width: auto; min-width: 34px; max-width: 44px; height: 20px; padding: 0 0 0 3px; font-size: var(--iwb-font-2xs); } /*iwb:raw-until=3.28.0*/
|
||
.iwb-history-grid { overscroll-behavior: contain; }
|
||
.iwb-history-head .iwb-btn-sm { padding-left: 6px; padding-right: 6px; }
|
||
|
||
/* 外观自定义(v3.25.22):数值滑杆与预设按钮 */
|
||
.iwb-appear-range { flex: 0 1 260px; min-width: 90px; max-width: 220px; }
|
||
.iwb-appear-presets { display: flex; flex-wrap: wrap; gap: var(--iwb-space-6); margin-bottom: var(--iwb-space-8); }
|
||
|
||
/* ===== 左右停靠栏(v3.25.35,Obsidian 式) =====
|
||
* 画布始终 inset:0 不动;只有工具栏/小地图/提示条按 --iwb-dock-l/--iwb-dock-r 让位。
|
||
*/
|
||
.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,
|
||
.iwb-overlay.iwb-view-landing .iwb-dockarea { display: none; }
|
||
.iwb-overlay.iwb-view-home,
|
||
.iwb-overlay.iwb-view-landing { --iwb-dock-l: 0px; --iwb-dock-r: 0px; }
|
||
.iwb-dock {
|
||
position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column;
|
||
background: var(--iwb-dock-bg); pointer-events: auto; min-width: 100px;
|
||
}
|
||
.iwb-dock.left { left: var(--iwb-nav-w, 52px); border-right: 1px solid var(--iwb-border2); }
|
||
.iwb-dock.right { right: 0; border-left: 1px solid var(--iwb-border2); }
|
||
.iwb-dock-head {
|
||
height: 40px; flex: 0 0 auto; display: flex; align-items: center; gap: 2px;
|
||
padding: 0 6px; border-bottom: 1px solid var(--iwb-border); background: var(--iwb-dock-head-bg);
|
||
}
|
||
.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: 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); }
|
||
/* v3.26.15:选中态更克制 —— 只提亮图标 + 极淡底,不再用实心白块和下划线 */
|
||
.iwb-dock-btn.on { background: color-mix(in srgb, var(--iwb-tint) 11%, transparent); color: var(--iwb-text); }
|
||
.iwb-dock-btn.on:hover { background: color-mix(in srgb, var(--iwb-tint) 14%, transparent); }
|
||
.iwb-dock-toggle { color: var(--iwb-text2); }
|
||
.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: 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; }
|
||
.iwb-dock-resize:hover { background: color-mix(in srgb, var(--iwb-tint) 12%, transparent); }
|
||
.iwb-dock-strip {
|
||
position: absolute; top: 0; bottom: 0; width: 14px; pointer-events: auto; cursor: pointer;
|
||
display: flex; align-items: flex-start; justify-content: center; padding-top: 12px;
|
||
background: var(--iwb-panel); color: var(--iwb-text2);
|
||
}
|
||
.iwb-dock-strip.left { left: var(--iwb-nav-w, 52px); border-right: 1px solid var(--iwb-border); }
|
||
.iwb-dock-strip.right { right: 0; border-left: 1px solid var(--iwb-border); }
|
||
.iwb-dock-strip:hover { color: var(--iwb-text); background: var(--iwb-hover); }
|
||
.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 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: 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; }
|
||
.iwb-tab-actions .iwb-top-nav-icon { width: 28px; height: 28px; min-height: 28px; }
|
||
/* 其它浮层让位(画布不动) */
|
||
.iwb-toolbar-wrap { left: var(--iwb-dock-l, 0px); right: calc(60px + var(--iwb-dock-r, 0px)); }
|
||
.iwb-minimap {
|
||
transition: opacity .15s ease, transform .15s ease;
|
||
position: absolute;
|
||
width: 132px;
|
||
height: 88px;
|
||
background: var(--iwb-panel);
|
||
border: 1px solid var(--iwb-border);
|
||
border-radius: 8px;
|
||
z-index: 11;
|
||
cursor: crosshair;
|
||
overflow: hidden;
|
||
touch-action: none;
|
||
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
|
||
right: calc(62px + var(--iwb-dock-r, 0px));
|
||
bottom: 14px;
|
||
}
|
||
.iwb-statusbar { right: calc(62px + var(--iwb-dock-r, 0px)); }
|
||
.iwb-hint-bottom { left: calc(var(--iwb-dock-l, 0px) + (100% - var(--iwb-dock-l, 0px) - var(--iwb-dock-r, 0px)) / 2); }
|
||
|
||
/* ── 一级导航(v3.25.59):最左 52px 纯图标栏 ─────────────────────────── */
|
||
.iwb-navrail {
|
||
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;
|
||
}
|
||
.iwb-navrail-logo {
|
||
width: 26px; height: 26px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
|
||
border-radius: 10px; color: #fff; background: var(--iwb-brand); margin-bottom: 6px;
|
||
}
|
||
.iwb-navrail-logo .iwb-ic { width: 20px; height: 20px; }
|
||
.iwb-navrail-group { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
|
||
.iwb-navrail-spacer { flex: 1 1 auto; }
|
||
.iwb-nav-item {
|
||
width: 38px; height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
|
||
border: 0; border-radius: 50%; background: transparent; color: var(--iwb-text2);
|
||
cursor: pointer; padding: 0; transition: background var(--tr-fast), color var(--tr-fast);
|
||
}
|
||
.iwb-nav-item .iwb-ic { width: 19px; height: 19px; }
|
||
.iwb-nav-item:hover { background: var(--iwb-hover); color: var(--iwb-text); }
|
||
/* 选中态用「反色」:底=文字色、字=页面底色 —— 两套主题都成立,不需要各写一条。
|
||
旧暗色是 #e0e0e0 底 + var(--iwb-text) 字,实测 1.3:1(白底白字)。 */
|
||
.iwb-nav-item.on { background: var(--iwb-text); color: var(--iwb-bg); }
|
||
.iwb-nav-item.on:hover { background: color-mix(in srgb, var(--iwb-text) 88%, var(--iwb-bg)); }
|
||
/* 底部「更多」是**菜单开关**,不是页面选中项:展开时不做反色(黑底白点看着像"这一页被选中了",
|
||
和左边真正的页面选中态撞语义),只铺一层和 hover 同级的浅底。 */
|
||
.iwb-nav-more-btn.on { background: var(--iwb-hover); color: var(--iwb-text); }
|
||
.iwb-nav-more-btn.on:hover { background: var(--iwb-hover); }
|
||
/* 底部「更多」:有新版本时 ⋯ → 圆形上箭头,强调色提示可升级 */
|
||
.iwb-nav-more-btn.has-update { color: var(--iwb-brand-text); }
|
||
.iwb-nav-more-btn.has-update .iwb-ic { color: var(--iwb-brand-text); }
|
||
.iwb-nav-more-up { color: var(--iwb-brand-text); font-weight: 600; }
|
||
.iwb-nav-more-ver { padding: var(--iwb-space-6) var(--iwb-space-8); font-size: var(--iwb-font-xs); color: var(--iwb-text2); user-select: none; }
|
||
.ws-expanded .iwb-navrail { width: 52px; }
|
||
|
||
/* ── 插件整页(v3.25.59)──────────────────────────────────────────────── */
|
||
/* 用「整屏 + 内边距」而不是 top:36/left:52:
|
||
标签条高度或导航宽度以后若有变化,页头也不会被压在标签条下面(v3.25.60 修重叠) */
|
||
.iwb-plugin-page {
|
||
position: absolute; inset: 0; z-index: 25; box-sizing: border-box;
|
||
padding: 42px 0 0 52px;
|
||
display: flex; flex-direction: column; background: var(--iwb-bg);
|
||
}
|
||
.iwb-plugin-page-head {
|
||
flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
|
||
height: 52px; padding: 0 18px; border-bottom: 1px solid var(--iwb-border); background: var(--iwb-panel);
|
||
}
|
||
.iwb-plugin-page-title { font-weight: 800; font-size: 16px; color: var(--iwb-text); }
|
||
.iwb-plugin-page-sub { font-size: 12px; color: var(--iwb-text2); }
|
||
.iwb-plugin-page-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 22px 40px; }
|
||
|
||
/* ── 快捷键弹窗(v3.25.59 分区罗列)──────────────────────────────────── */
|
||
.iwb-hotkey-help { display: flex; flex-direction: column; gap: 12px; }
|
||
.iwb-hotkey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
|
||
.iwb-hotkey-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
||
.iwb-hotkey-gname { margin: 2px 0 4px; font-size: 12px; font-weight: 700; color: var(--iwb-brand-text, var(--iwb-brand)); letter-spacing: .04em; }
|
||
.iwb-hotkey-row { display: flex; align-items: center; gap: 8px; min-height: 22px; }
|
||
.iwb-hotkey-name { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--iwb-text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.iwb-hotkey-key {
|
||
flex: 0 0 auto; display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||
padding: 2px 8px; border-radius: var(--iwb-radius-chip); border: 1px solid var(--iwb-border); /*iwb:raw-until=3.28.0*/
|
||
background: var(--iwb-layer); color: var(--iwb-text); font-size: 11px;
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||
}
|
||
.iwb-hotkey-more { border-top: 1px dashed var(--iwb-border); padding-top: 10px; }
|
||
.iwb-hotkey-toggle { border: 0; background: transparent; color: var(--iwb-text2); font-size: 12px; cursor: pointer; padding: 2px 0; }
|
||
.iwb-hotkey-toggle:hover { color: var(--iwb-text); }
|
||
.iwb-hotkey-details { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
|
||
.iwb-hotkey-detail-row { display: flex; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--iwb-text2); }
|
||
.iwb-hotkey-detail-row b { flex: 0 0 108px; color: var(--iwb-text); font-weight: 700; }
|
||
.iwb-hotkey-note { font-size: 11px; color: var(--iwb-text2); }
|
||
.iwb-help-modal { width: min(720px, 92vw); }
|
||
@media (max-width: 720px) { .iwb-hotkey-grid { grid-template-columns: 1fr; } }
|
||
|
||
/* 一级导航(v3.25.59):首页/落地页也要为 52px 导航让位,否则导航会压在首页侧栏上 */
|
||
.iwb-overlay.iwb-view-landing .iwb-landing-panel { padding-left: max(52px, 8vw); }
|
||
.iwb-overlay.iwb-view-home .iwb-home-side { margin-left: 52px; }
|
||
.iwb-overlay.iwb-view-plugins .iwb-navrail { border-right-color: var(--iwb-border2); }
|
||
|
||
/* 插件整页保留画布标签条(v3.25.63 用户裁定:与首页/画布页一致);
|
||
页头靠 padding-top 让位,不会被标签条压住 */
|
||
/* 品牌标记:标签条最左的浅色「IW」(v3.25.66 去掉黑底图标) */
|
||
.iwb-tab-logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px 0 2px; }
|
||
.iwb-tab-logotext {
|
||
font-size: 15px; font-weight: 800; letter-spacing: .06em; line-height: 1;
|
||
color: color-mix(in srgb, var(--iwb-text) 42%, transparent);
|
||
user-select: none;
|
||
}
|
||
.theme-dark .iwb-tab-logotext { color: var(--iwb-text-dim); }
|
||
|
||
/* 画布内大图:paint 隔离 + 不让图片溢出重绘(v3.25.67 性能) */
|
||
.iwb-ref-single, .iwb-out-cell-img, .iwb-lod-thumb { contain: paint; }
|
||
|
||
/* v3.25.69:低缩放 LOD 已移除(用户反馈跨阈值时卡顿;改由 content-visibility 缩小绘制面) */
|
||
|
||
/* v3.25.69:屏幕外节点不参与绘制(配合已有视口裁剪,进一步缩小每次重绘的像素面) */
|
||
|
||
/* ── 外观面板(v3.25.75 重构):4 组 + 两栏网格 ─────────────────────────── */
|
||
.iwb-appear { display: flex; flex-direction: column; gap: var(--iwb-space-24); }
|
||
.iwb-appear-group { display: flex; flex-direction: column; gap: var(--iwb-space-4); }
|
||
.iwb-appear-ghead { display: flex; align-items: center; justify-content: space-between; padding: 0 0 var(--iwb-space-6); border-bottom: 1px solid var(--iwb-border); margin-bottom: var(--iwb-space-6); }
|
||
.iwb-appear-gtitle { font-size: var(--iwb-font-md); font-weight: 700; color: var(--iwb-text); }
|
||
.iwb-appear-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: var(--iwb-space-10); min-height: var(--iwb-space-40); }
|
||
.iwb-appear-label { font-size: var(--iwb-font-sm); color: var(--iwb-text2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.iwb-appear-ctrl { display: flex; align-items: center; gap: var(--iwb-space-8); min-width: 0; }
|
||
.iwb-appear-ctrl > .iwb-input, .iwb-appear-ctrl > select { max-width: 360px; }
|
||
.iwb-appear-note { font-size: var(--iwb-font-xs); color: var(--iwb-text2); white-space: nowrap; }
|
||
.iwb-appear-select { max-width: 360px; }
|
||
.iwb-appear-btns { display: flex; gap: var(--iwb-space-6); flex-wrap: wrap; }
|
||
/* 分段控件(网格样式:点 / 线 / 空白) */
|
||
.iwb-seg { display: inline-flex; padding: var(--iwb-space-4); gap: var(--iwb-space-2); border-radius: var(--iwb-radius-card); background: var(--iwb-layer); border: 1px solid var(--iwb-border); }
|
||
.iwb-seg-item { border: 0; background: transparent; color: var(--iwb-text2); font-size: var(--iwb-font-sm); padding: var(--iwb-space-6) var(--iwb-space-12); border-radius: var(--iwb-tab-radius); cursor: pointer; }
|
||
.iwb-seg-item:hover { color: var(--iwb-text); }
|
||
.iwb-seg-item.on { background: var(--iwb-panel); color: var(--iwb-text); box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 700; }
|
||
@media (max-width: 720px) { .iwb-appear-row { grid-template-columns: 92px minmax(0, 1fr); } .iwb-appear-note { display: none; } }
|
||
|
||
/* 设置窗口可拖动(v3.25.76):拖标题栏移动,位置不受居中约束 */
|
||
.iwb-modal-draghead { cursor: move; user-select: none; }
|
||
.iwb-modal-draghead:active { cursor: grabbing; }
|
||
.iwb-modal-floating { box-shadow: var(--iwb-elevation-4); }
|
||
|
||
/* 设置面板专用透明遮罩(v3.25.77):去掉灰蒙层,调外观时能直接看到画布变化。
|
||
仍保留点击空白处关闭面板的行为。 */
|
||
.iwb-modal-mask.iwb-mask-ghost { background: transparent; }
|
||
.iwb-modal-mask.iwb-mask-ghost .iwb-settings-modal { box-shadow: var(--iwb-elevation-4); }
|
||
|
||
/* 外观 v2(v3.26.42):模式切换 / 派生摘要 / 跟随·自定义 / 对比度徽标 */
|
||
.iwb-appear-mode { display: flex; align-items: center; gap: var(--iwb-space-12); flex-wrap: wrap; }
|
||
.iwb-appear-modehint { font-size: var(--iwb-font-xs); color: var(--iwb-text2); }
|
||
.iwb-appear-gnote { font-size: var(--iwb-font-xs); color: var(--iwb-text2); font-weight: 400; white-space: nowrap; }
|
||
.iwb-appear-swaches { display: flex; flex-wrap: wrap; gap: var(--iwb-space-10); padding: var(--iwb-space-2) 0 var(--iwb-space-4) 130px; }
|
||
.iwb-appear-sw { display: inline-flex; align-items: center; gap: var(--iwb-space-6); font-size: var(--iwb-font-xs); color: var(--iwb-text2); }
|
||
.iwb-appear-sw i { width: 14px; height: 14px; border-radius: var(--iwb-radius-chip); border: 1px solid var(--iwb-border); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--iwb-text) 28%, transparent); }
|
||
.iwb-appear-revert { border: 1px solid var(--iwb-border); background: var(--iwb-layer); color: var(--iwb-text2); font-size: var(--iwb-font-xs); border-radius: var(--iwb-radius-full); padding: 1px var(--iwb-space-6); cursor: pointer; }
|
||
.iwb-appear-revert:hover { color: var(--iwb-text); border-color: var(--iwb-border2); }
|
||
.iwb-ratio { margin-left: var(--iwb-space-6); font-size: var(--iwb-font-2xs); padding: 1px 5px; border-radius: var(--iwb-radius-full); border: var(--iwb-bw) solid transparent; font-variant-numeric: tabular-nums; } /*iwb:raw-until=3.28.0*/
|
||
.iwb-ratio.ok { color: var(--iwb-ok); background: var(--iwb-ok-bg); }
|
||
.iwb-ratio.warn { color: var(--iwb-warn); background: var(--iwb-warn-bg); border-color: var(--iwb-warn-bd); }
|
||
.iwb-ratio.bad { color: var(--iwb-err); background: var(--iwb-err-bg); }
|
||
.iwb-appear-preset { display: inline-flex; align-items: center; gap: var(--iwb-space-2); }
|
||
.iwb-appear-del { border: none; background: transparent; color: var(--iwb-text2); cursor: pointer; font-size: var(--iwb-font-xs); padding: var(--iwb-space-2) var(--iwb-space-4); border-radius: var(--iwb-radius-chip); }
|
||
.iwb-appear-del:hover { color: var(--iwb-err); background: var(--iwb-err-bg); }
|
||
@media (max-width: 720px) { .iwb-appear-swaches { padding-left: 92px; } }
|
||
|
||
/* v3.25.87:插件整页/首页不显示停靠栏(含 iframe 残影,直接 display:none 而不是等淡出) */
|
||
.iwb-overlay.iwb-view-plugins .iwb-dockarea,
|
||
.iwb-overlay.iwb-view-home .iwb-dockarea,
|
||
.iwb-overlay.iwb-view-landing .iwb-dockarea { display: none !important; }
|
||
|
||
/* ── 库面板(提示词库 / 节点组)视觉层(v3.25.96)────────────────────────────
|
||
只作用于这两个面板容器(.iwb-dock-body[data-panel=...]),其他插件零影响:
|
||
面板浅灰底;提示词库白卡、节点组灰卡(用户裁定:节点组不要白卡)。 */
|
||
/* v3.26.14:提示词库 / 节点组 与图库一致 —— 不额外铺底色(透明,直接显示停靠栏底) */
|
||
.iwb-dock-body[data-panel="prompts"],
|
||
.iwb-dock-body[data-panel="groups"] { background: transparent; }
|
||
.iwb-dock-body[data-panel="prompts"] .iwb-pcard,
|
||
.iwb-dock-body[data-panel="groups"] .iwb-pcard { border-radius: var(--iwb-radius-card); transition: background .12s ease, border-color .12s ease; }
|
||
.iwb-dock-body[data-panel="prompts"] .iwb-pcard { background: var(--iwb-plugin-card); }
|
||
.iwb-dock-body[data-panel="groups"] .iwb-pcard { background: var(--iwb-plugin-inset); border-color: var(--iwb-border); }
|
||
.iwb-dock-body[data-panel="prompts"] .iwb-pcard:hover,
|
||
.iwb-dock-body[data-panel="groups"] .iwb-pcard:hover { background: var(--iwb-plugin-hover); border-color: var(--iwb-border2); }
|
||
.iwb-dock-body[data-panel="groups"] .iwb-pcard-selected { border-color: var(--iwb-brand); box-shadow: 0 0 0 1px var(--iwb-brand); }
|
||
|
||
|
||
/* v3.26.38:未进入编辑态的节点正文不参与指针/文本选择 —— 单击=选中节点,双击=编辑 */
|
||
.iwb-node textarea[readonly], .iwb-node input[readonly] { pointer-events: none; }
|
||
|
||
/* ── 键盘焦点环兜底(v3.26.44 / D8)────────────────────────────────────
|
||
此前只有 .iwb-btn / .iwb-tab / .iwb-home-side-item 三处有焦点反馈,其余元素 Tab 过去
|
||
全靠 Chromium 默认蓝环(#005fcc)——与项目「全灰阶、无蓝」的配色约束冲突。
|
||
这里用 :where() 把权重压到 0,不抢任何已有的具体规则,只补没写的那部分。
|
||
放在文件末尾:同权重时靠后的生效,正好盖住 `.iwb-input { outline: none }` 这类重置。 */
|
||
:where(button, a[href], input, textarea, select, [tabindex]):focus-visible {
|
||
outline: var(--iwb-focus-ring);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
/* 生图服务:单栏多服务商(chips + 单份详情) */
|
||
.iwb-prov-chips{display:flex;flex-wrap:wrap;align-items:center;gap:var(--iwb-space-6);padding:var(--iwb-space-8);border:1px solid var(--iwb-border);border-radius:var(--iwb-radius-panel);background:var(--iwb-panel);margin-bottom:var(--iwb-space-12)}
|
||
.iwb-prov-chip{display:inline-flex;align-items:center;gap:var(--iwb-space-6);height:30px;padding:0 var(--iwb-space-10);border:1px solid transparent;border-radius:var(--iwb-radius-control);background:transparent;color:var(--iwb-text2);font-size:var(--iwb-font-sm);max-width:240px;cursor:pointer}
|
||
.iwb-prov-chip:hover{background:var(--iwb-layer)}
|
||
.iwb-prov-chip.on{background:color-mix(in srgb,var(--iwb-brand) 12%,transparent);border-color:color-mix(in srgb,var(--iwb-brand) 30%,var(--iwb-border));color:var(--iwb-text);font-weight:600}
|
||
.iwb-prov-chip-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
||
.iwb-prov-chip-badge{font-size:var(--iwb-font-xs);line-height:16px;padding:0 var(--iwb-space-6);border-radius:var(--iwb-radius-full);background:var(--iwb-layer);color:var(--iwb-text2)}
|
||
.iwb-prov-add{margin-left:auto}
|
||
.iwb-prov-head{display:flex;align-items:center;gap:var(--iwb-space-8);flex-wrap:wrap}
|
||
.iwb-prov-name{flex:1 1 180px;min-width:140px;font-weight:600}
|
||
.iwb-prov-badge{font-size:var(--iwb-font-xs);line-height:18px;padding:0 var(--iwb-space-8);border-radius:var(--iwb-radius-full);background:color-mix(in srgb,var(--iwb-brand) 12%,transparent);color:var(--iwb-text)}
|
||
.iwb-prov-sum{font-size:var(--iwb-font-xs);color:var(--iwb-text2)}
|
||
.iwb-provider-card > .iwb-section-sub{margin-top:var(--iwb-space-8);padding-top:var(--iwb-space-8);border-top:1px solid var(--iwb-border)}
|
||
.iwb-shape-more{margin-top:var(--iwb-space-6)}
|
||
.iwb-shape-more > summary{cursor:pointer;font-size:var(--iwb-font-sm);color:var(--iwb-text2);padding:var(--iwb-space-6) 0}
|
||
@media (max-width:760px){.iwb-prov-add{margin-left:0}.iwb-prov-name{flex-basis:100%}}
|
||
/* 设置:窗口可缩放 + 通用页卡片化(主次文案分级) */
|
||
.iwb-settings-modal{position:relative;overflow:hidden;min-width:min(760px,96vw);min-height:480px}
|
||
.iwb-settings-modal .iwb-modal-body{overflow:auto}
|
||
.iwb-settings-modal .iwb-hint{font-size:var(--iwb-font-sm);line-height:1.45}
|
||
.iwb-gset-group{margin-top:var(--iwb-set-group-gap,var(--iwb-space-24))}
|
||
.iwb-gset-group:first-child{margin-top:0}
|
||
.iwb-gset-group-h{font-size:var(--iwb-font-lg);font-weight:600;margin:0 0 var(--iwb-space-8)}
|
||
.iwb-gset-row{display:grid;grid-template-columns:var(--iwb-set-label-w,180px) minmax(0,1fr);gap:var(--iwb-set-col-gap,var(--iwb-space-16));align-items:start;min-height:var(--iwb-set-row-h,40px);padding:var(--iwb-set-row-pad-y,var(--iwb-space-6)) 0}
|
||
.iwb-gset-row:first-of-type{border-top:0}
|
||
.iwb-gset-row-label{display:flex;flex-direction:column;gap:var(--iwb-space-2);font-size:var(--iwb-font-md);color:var(--iwb-text);padding-top:var(--iwb-space-2)}
|
||
.iwb-gset-row-ctl{display:flex;align-items:center;gap:var(--iwb-space-8);min-width:0;flex-wrap:wrap}
|
||
.iwb-gset-hint{font-size:var(--iwb-set-hint-size,var(--iwb-font-xs));color:var(--iwb-set-hint-color,var(--iwb-text-dim));line-height:1.45;margin:var(--iwb-set-hint-gap,var(--iwb-space-2)) 0 0 calc(var(--iwb-set-label-w,180px) + var(--iwb-set-col-gap,var(--iwb-space-16)))}
|
||
.iwb-gset-hint .iwb-more>div{margin-top:var(--iwb-space-4)}
|
||
.iwb-more>summary{cursor:pointer;font-size:var(--iwb-font-xs);color:var(--iwb-text2)}
|
||
@media (max-width:760px){.iwb-gset-row{grid-template-columns:1fr;gap:var(--iwb-space-4)}.iwb-gset-hint{margin-left:0}}
|
||
|
||
/* 设置窗口右下角缩放手柄(自定义,兼容 WKWebView) */
|
||
.iwb-settings-resize{position:absolute;right:4px;bottom:4px;width:16px;height:16px;cursor:nwse-resize;color:var(--iwb-text2);opacity:.55}
|
||
.iwb-settings-resize::after{content:'';position:absolute;right:2px;bottom:2px;width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor}
|
||
|
||
/* Obsidian 式设置列表:组标题 + 行分割线,无卡片框 */
|
||
.iwb-gset-page,.iwb-gset-stack{display:flex;flex-direction:column;gap:var(--iwb-set-group-gap)}
|
||
.iwb-gset-page > .iwb-gset-stack + .iwb-gset-card, .iwb-gset-page > .iwb-gset-card + .iwb-gset-card, .iwb-gset-stack > .iwb-gset-card + .iwb-gset-card{border-top:1px solid var(--iwb-set-divider);padding-top:var(--iwb-space-8)}
|
||
.iwb-gset-card{background:transparent;border:0;border-radius:0;padding:0;margin:0}
|
||
.iwb-gset-card-h{font-size:var(--iwb-font-lg);font-weight:600;margin:0 0 var(--iwb-set-title-gap,var(--iwb-space-8))}
|
||
.iwb-gset-card-desc{font-size:var(--iwb-set-hint-size,var(--iwb-font-xs));color:var(--iwb-set-hint-color,var(--iwb-text-dim));margin:0 0 var(--iwb-set-title-gap,var(--iwb-space-8))}
|
||
|
||
|
||
/* 设置分组(Obsidian 式):标题在页面底,内容浅灰圆角容器 */
|
||
/* L3 组件 token 已上移到 src/theme-tokens.js 的 COMPONENT_SCOPED(生成到 design-tokens.css) */
|
||
.iwb-gset-page,.iwb-gset-stack{display:flex;flex-direction:column;gap:var(--iwb-set-group-gap)}
|
||
.iwb-gset-group{display:flex;flex-direction:column;margin:0}
|
||
.iwb-gset-group-h{font-size:var(--iwb-font-lg);font-weight:600;margin:0 0 var(--iwb-set-title-gap,var(--iwb-space-8))}
|
||
.iwb-gset-group-desc{font-size:var(--iwb-set-hint-size,var(--iwb-font-xs));color:var(--iwb-set-hint-color,var(--iwb-text-dim));margin:calc(var(--iwb-set-title-gap,var(--iwb-space-8)) * -1) 0 var(--iwb-set-title-gap,var(--iwb-space-8))}
|
||
.iwb-gset-group-body{background:var(--iwb-set-group-bg,var(--iwb-layer));border-radius:var(--iwb-set-group-radius,var(--iwb-radius-card));padding:0 var(--iwb-set-group-pad-x,var(--iwb-space-20)) var(--iwb-space-4)}
|
||
.iwb-gset-row{display:grid;grid-template-columns:var(--iwb-set-label-w,180px) minmax(0,1fr);gap:var(--iwb-set-col-gap,var(--iwb-space-16));align-items:start;min-height:var(--iwb-set-row-h,40px);padding:var(--iwb-set-row-pad-y,var(--iwb-space-8)) 0;border-top:1px solid var(--iwb-set-divider,var(--iwb-border));margin:0}
|
||
.iwb-gset-group-body > .iwb-gset-row:first-child,.iwb-gset-group-body > div > .iwb-gset-row:first-child{border-top:0}
|
||
.iwb-gset-hint{font-size:var(--iwb-set-hint-size,var(--iwb-font-xs));color:var(--iwb-set-hint-color,var(--iwb-text-dim));line-height:1.45;margin:var(--iwb-set-hint-gap,var(--iwb-space-2)) 0 var(--iwb-space-6) calc(var(--iwb-set-label-w,180px) + var(--iwb-set-col-gap,var(--iwb-space-16)))}
|
||
|
||
/* 组标题与内容容器内的文字左对齐 */
|
||
.iwb-gset-group-h,.iwb-gset-group-desc{padding-left:var(--iwb-set-group-pad-x,var(--iwb-space-20))}
|
||
|
||
/* 外观页:沿用设置面板分组 token */
|
||
.iwb-appear{display:flex;flex-direction:column;gap:var(--iwb-set-group-gap)}
|
||
.iwb-appear .iwb-gset-group-body .iwb-appear-row{display:grid;grid-template-columns:var(--iwb-set-label-w,180px) minmax(0,1fr) auto;gap:var(--iwb-set-col-gap,var(--iwb-space-16));align-items:center;min-height:var(--iwb-set-row-h,40px);padding:var(--iwb-set-row-pad-y,var(--iwb-space-8)) 0;border-top:1px solid var(--iwb-set-divider);margin:0}
|
||
.iwb-appear .iwb-gset-group-body .iwb-appear-row:first-child{border-top:0}
|
||
.iwb-appear-label{font-size:var(--iwb-font-md);color:var(--iwb-text);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||
|
||
/* 生图服务:详情不再用卡片,改为多组 gray body */
|
||
.iwb-provider-card{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;display:flex;flex-direction:column;gap:var(--iwb-set-group-gap)}
|
||
.iwb-provider-card .iwb-gset-group-body > .iwb-row{padding:var(--iwb-set-row-pad-y,var(--iwb-space-8)) 0;margin:0}
|
||
.iwb-provider-card .iwb-gset-group-body > .iwb-row .iwb-addr-tag{min-width:42px}
|
||
|
||
/* 设置页控件描边:比常规 border 更淡,避免框线抢视线 */
|
||
.iwb-settings-modal .iwb-input,.iwb-settings-modal .iwb-textarea{border-color:var(--iwb-set-input-border)}
|
||
.iwb-settings-modal .iwb-input:focus,.iwb-settings-modal .iwb-textarea:focus{border-color:var(--iwb-brand)}
|
||
|
||
/* 模型行:启用=圆角开关(复用 .iwb-switch,26×15 小型;checkbox 仍在 DOM 内兼容选择器)。
|
||
删除=行内垃圾桶按钮(2026-11-25 用户裁定:取消 ⋯ 菜单,一步到位)。
|
||
沿用 iwb-btn-danger 的「悬停才显形」契约,避免误触;内置模型 disabled 常隐。 */
|
||
.iwb-modelrow .iwb-switch-track{width:26px;height:15px}
|
||
.iwb-modelrow .iwb-switch-dot{width:11px;height:11px;top:2px;left:2px}
|
||
.iwb-modelrow .iwb-switch input:checked + .iwb-switch-track .iwb-switch-dot{transform:translateX(11px)}
|
||
.iwb-modelrow .iwb-modelrow-main{min-width:0;flex:1 1 auto;gap:var(--iwb-space-8)}
|
||
.iwb-modelrow .iwb-modelrow-name{flex:1 1 auto;min-width:0}
|
||
/* 默认槽位(2026-11-25 三改):固定宽度,两种内容(实心「默认」/ hover 才出的「设为默认」)同一格,
|
||
切换默认时右侧 质量·分类·删除 三列不会左右跳。 */
|
||
.iwb-modelrow-defslot{flex:0 0 auto;min-width:calc(var(--iwb-space-48) + var(--iwb-space-16));display:flex;align-items:center;justify-content:flex-end}
|
||
.iwb-modelrow-defmark{flex:0 0 auto;font-size:var(--iwb-font-xs);line-height:1;color:var(--iwb-on-brand);border-radius:var(--iwb-radius-full);padding:var(--iwb-space-4) var(--iwb-space-8);background:var(--iwb-brand)}
|
||
.iwb-modelrow-defset{flex:0 0 auto;font:inherit;font-size:var(--iwb-font-xs);line-height:1;color:var(--iwb-text-dim);background:transparent;border:var(--iwb-bw) solid var(--iwb-border);border-radius:var(--iwb-radius-full);padding:var(--iwb-space-4) var(--iwb-space-8);cursor:pointer;opacity:0;visibility:hidden;transition:opacity var(--iwb-motion-fast) linear,color var(--iwb-motion-fast) linear,border-color var(--iwb-motion-fast) linear}
|
||
/* 显形只看 is-rowhover(JS 状态):宿主是 WKWebView,:hover 在被悬停元素改变可交互性时会失步,
|
||
逐行扫过会留下多行同时 hover 的残影(v3.26.72 红桶、v3.26.74「设为默认」常显都是这个)。 */
|
||
.iwb-modelrow.is-rowhover .iwb-modelrow-defset{opacity:1;visibility:visible}
|
||
.iwb-modelrow-defset:hover{color:var(--iwb-text);border-color:var(--iwb-border2)}
|
||
.iwb-settings-modal .iwb-modelrow-default{border-color:var(--iwb-brand);background:color-mix(in srgb,var(--iwb-brand) 8%,transparent)}
|
||
/* 2026-11-25(用户反馈三改):删除按钮**常驻**(不再 hover 才出现,滑过列表不会一行行闪),
|
||
全程不用红色:常驻 --iwb-text-dim,指针进这一行加深到 --iwb-text2,指着按钮再加深 + 浅底。
|
||
二次确认由组件就地展开「确认删除」(is-armed),3 秒未确认自动退回,不弹系统对话框。
|
||
尺寸走 --iwb-control-h,与同一行的厂商下拉等高对齐;只过渡颜色,不动 visibility/opacity。 */
|
||
.iwb-model-del{flex:0 0 auto;min-width:var(--iwb-space-40);height:var(--iwb-control-h);padding:0 var(--iwb-space-4);display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;border-radius:var(--iwb-radius-control);color:var(--iwb-text-dim);font:inherit;font-size:var(--iwb-font-xs);line-height:1;cursor:pointer;transition:color var(--iwb-motion-fast) linear,background-color var(--iwb-motion-fast) linear,padding var(--iwb-motion-fast) linear}
|
||
.iwb-modelrow.is-rowhover .iwb-model-del{color:var(--iwb-text2)}
|
||
.iwb-model-del:hover:not(:disabled){color:var(--iwb-text);background:var(--iwb-hover)}
|
||
.iwb-model-del.is-armed{padding:0 var(--iwb-space-8);color:var(--iwb-text);background:var(--iwb-hover);font-weight:500;white-space:nowrap}
|
||
.iwb-model-del .iwb-ic{width:var(--iwb-icon-sm);height:var(--iwb-icon-sm)}
|
||
.iwb-model-del:disabled{visibility:hidden;pointer-events:none}
|
||
|
||
/* 设置页统一:所有分组块间距只允许用 --iwb-set-group-gap */
|
||
.iwb-settings-modal .iwb-provider-card{gap:var(--iwb-set-group-gap)}
|
||
|
||
/* 设置页通用:灰色容器内的行分隔与 LLM 渠道块 */
|
||
.iwb-gset-group-body > .iwb-row{padding:var(--iwb-set-row-pad-y,var(--iwb-space-8)) 0;margin:0;border-top:1px solid var(--iwb-set-divider,var(--iwb-border))}
|
||
.iwb-gset-group-body > .iwb-row:first-child{border-top:0}
|
||
.iwb-settings-modal .iwb-llm-card{background:var(--iwb-set-group-bg);border:0;border-radius:var(--iwb-set-group-radius);padding:var(--iwb-space-16)}
|
||
.iwb-settings-modal .iwb-llm-card + .iwb-llm-card{margin-top:var(--iwb-set-group-gap)}
|
||
|
||
/* 备份页:内嵌组件融入设置分组,不再自己画卡片 */
|
||
.iwb-settings-modal .iwb-backup-embedded{max-width:none}
|
||
.iwb-settings-modal .iwb-backup-embedded .iwb-modal-body{gap:0}
|
||
.iwb-settings-modal .iwb-backup-sec{border:0;border-radius:0;background:transparent;padding:0}
|
||
.iwb-settings-modal .iwb-backup-sec + .iwb-backup-sec{margin-top:var(--iwb-space-8);padding-top:var(--iwb-space-8);border-top:1px solid var(--iwb-set-divider)}
|
||
.iwb-settings-modal .iwb-backup-sec-title{font-size:var(--iwb-font-sm);color:var(--iwb-text2);font-weight:600;margin-bottom:var(--iwb-space-4)}
|
||
.iwb-settings-modal .iwb-gset-group-body > .iwb-section{border:0;padding:0;margin:0}
|
||
|
||
/* 分组容器内首/末元素不吃外边距,上下内边距由 --iwb-set-group-pad-y 统一 */
|
||
.iwb-gset-group-body > :first-child{margin-top:0}
|
||
.iwb-gset-group-body > :last-child{margin-bottom:0}
|
||
.iwb-settings-modal .iwb-modellist{margin:0}
|
||
|
||
/* 分组容器:上下内边距与左右同样由 token 控制;底色取 4% 文字色,保证可见但不抢 */
|
||
/* 分组体底色:见 COMPONENT_SCOPED(亮 hsl(0 0% 97.6%) / 暗 文字色 8%) */
|
||
.iwb-gset-group-body{background:var(--iwb-set-group-bg);padding:var(--iwb-set-group-pad-y) var(--iwb-set-group-pad-x)}
|
||
|
||
/* 设置页控件统一:复选框尺寸/品牌色、按钮组间距 */
|
||
.iwb-settings-modal input[type="checkbox"]{width:var(--iwb-set-check-size);height:var(--iwb-set-check-size);accent-color:var(--iwb-brand);border-radius:var(--iwb-set-check-radius)}
|
||
.iwb-settings-modal .iwb-backup-item{padding:var(--iwb-space-6) 0;gap:var(--iwb-space-8)}
|
||
.iwb-settings-modal .iwb-backup-actions{gap:var(--iwb-set-btn-gap)}
|
||
.iwb-settings-modal .iwb-backup-actions .iwb-btn,.iwb-settings-modal .iwb-backup-sec .iwb-btn{height:var(--iwb-control-h)}
|
||
|
||
/* 备份页嵌在设置里:去掉内层弹窗的滚动/最大高度,统一由设置 body 滚动 */
|
||
.iwb-settings-modal .iwb-backup-embedded .iwb-modal-body{max-height:none;overflow:visible}
|
||
|
||
/* 底栏「插件节点」下拉(2026-11-26):与相邻 .iwb-btn 同高,只做尺寸/光标微调;颜色沿用工具栏 token */
|
||
.iwb-plugin-add-wrap { position: relative; display: inline-flex; }
|
||
.iwb-plugin-add { position: relative; }
|
||
/* 插件节点列表:与工具栏同色系,向上弹出(底栏贴底,向上才有空间) */
|
||
.iwb-plugin-add-menu { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); min-width: 168px;
|
||
background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-control); box-shadow: var(--iwb-elevation-2);
|
||
padding: var(--iwb-space-4); display: flex; flex-direction: column; gap: var(--iwb-space-2); }
|
||
|
||
/* 升级中:菜单里的上箭头转圈(2026-11-26)——点击升级后必须有"在动"的反馈 */
|
||
.iwb-nav-up-spin { animation: iwb-nav-spin 1s linear infinite; transform-origin: 50% 50%; }
|
||
@keyframes iwb-nav-spin { to { transform: rotate(360deg); } }
|
||
/* v3.26.95:升级中箭头不转,外圈做真实下载进度(0→100% 一圈闭合)。
|
||
dasharray 已是周长(2π×9≈56.55),dashoffset 由 JS 按百分比写;总大小未知时才用不确定动画。 */
|
||
.iwb-nav-up-bar { transition: stroke-dashoffset .18s linear; }
|
||
.iwb-nav-up-indet { animation: iwb-nav-up-ring 1.2s ease-in-out infinite; }
|
||
@keyframes iwb-nav-up-ring {
|
||
0% { stroke-dasharray: 8 48; stroke-dashoffset: 0; }
|
||
50% { stroke-dasharray: 30 26; stroke-dashoffset: -6; }
|
||
100% { stroke-dasharray: 8 48; stroke-dashoffset: -56; }
|
||
}
|
||
|
||
/* 升级中:左侧导航的升级箭头自己也转(菜单里那个已经在转,这里补"外面这个")*/
|
||
.iwb-nav-more-upgrading .iwb-nav-up-spin { animation: iwb-nav-spin 0.9s linear infinite; }
|