feat(tokens): 下载按钮尺寸提升为正式 token(--iwb-dl-size/radius/inset/gap),宿主与 gallery 共用
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 31s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 31s
This commit is contained in:
1 parent
559945281f
commit
f83ed2e08a
3 files changed
+13
-4
No files matched your search
@@ -116,6 +116,11 @@ const SCALE = [
|
||||
['--iwb-radius-panel', '12px', '面板/工具栏'],
|
||||
['--iwb-radius-popover', '14px', '浮层/菜单/右键'],
|
||||
['--iwb-radius-full', '999px', '圆形/药丸'],
|
||||
// 2026-12-02:下载/浮层「圆形图标按钮」的一组尺寸(宿主 style.css 与 gallery 插件共用同一套变量)
|
||||
['--iwb-dl-size', '28px', '下载按钮:直径'],
|
||||
['--iwb-dl-radius', 'var(--iwb-radius-full)', '下载按钮:圆角(胶囊/圆)'],
|
||||
['--iwb-dl-inset', '8px', '下载按钮:距容器右下角内距'],
|
||||
['--iwb-dl-gap', '4px', '下载按钮:多按钮之间的间距'],
|
||||
['--iwb-font-2xs', '10px', '极小标注:徽标角标/画布坐标/缩略图角标(2026-11-24 承认它,此前 29 处裸写)'],
|
||||
['--iwb-font-xs', '11px', 'M4 字号:状态栏/徽标'],
|
||||
['--iwb-font-sm', '12px', '标签/次要正文'],
|
||||
|
||||
@@ -119,6 +119,10 @@
|
||||
--iwb-radius-panel: 12px; /* 面板/工具栏 */
|
||||
--iwb-radius-popover: 14px; /* 浮层/菜单/右键 */
|
||||
--iwb-radius-full: 999px; /* 圆形/药丸 */
|
||||
--iwb-dl-size: 28px; /* 下载按钮:直径 */
|
||||
--iwb-dl-radius: var(--iwb-radius-full); /* 下载按钮:圆角(胶囊/圆) */
|
||||
--iwb-dl-inset: 8px; /* 下载按钮:距容器右下角内距 */
|
||||
--iwb-dl-gap: 4px; /* 下载按钮:多按钮之间的间距 */
|
||||
--iwb-font-2xs: 10px; /* 极小标注:徽标角标/画布坐标/缩略图角标(2026-11-24 承认它,此前 29 处裸写) */
|
||||
--iwb-font-xs: 11px; /* M4 字号:状态栏/徽标 */
|
||||
--iwb-font-sm: 12px; /* 标签/次要正文 */
|
||||
|
||||
@@ -2568,12 +2568,12 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img {
|
||||
/* 结果图落地状态(2026-12-02):出图后先排队/下载,就绪再换本地 objectURL */
|
||||
.iwb-rimg { position: relative; }
|
||||
.iwb-rimg-pending .iwb-result-thumb { opacity: .55; filter: saturate(.8); }
|
||||
.iwb-rimg-flag { position: absolute; left: var(--iwb-space-4); top: var(--iwb-space-4); z-index: var(--iwb-z-anchor); padding: 0 var(--iwb-space-8); border-radius: var(--iwb-radius-full); font-size: var(--iwb-font-xs); line-height: 16px; color: var(--iwb-text); background: var(--iwb-panel); border: 1px solid var(--iwb-border2); opacity: .92; }
|
||||
.iwb-rimg-flag { position: absolute; left: var(--iwb-space-4); top: var(--iwb-space-4); padding: 0 var(--iwb-space-8); border-radius: var(--iwb-radius-full); font-size: var(--iwb-font-xs); line-height: 16px; color: var(--iwb-text); background: var(--iwb-panel); border: 1px solid var(--iwb-border2); opacity: .92; }
|
||||
.iwb-rimg-flag-err { color: var(--iwb-err); border-color: var(--iwb-err-bd); background: var(--iwb-err-bg); }
|
||||
|
||||
/* 输出节点体的落地角标(2026-12-02) */
|
||||
.iwb-out-cell { position: relative; }
|
||||
.iwb-out-cell-flag { position: absolute; left: var(--iwb-space-4); top: var(--iwb-space-4); z-index: var(--iwb-z-anchor); padding: 0 var(--iwb-space-8); border-radius: var(--iwb-radius-full); font-size: var(--iwb-font-xs); line-height: 16px; color: var(--iwb-text); background: var(--iwb-panel); border: 1px solid var(--iwb-border2); opacity: .92; }
|
||||
.iwb-out-cell-flag { position: absolute; left: var(--iwb-space-4); top: var(--iwb-space-4); padding: 0 var(--iwb-space-8); border-radius: var(--iwb-radius-full); font-size: var(--iwb-font-xs); line-height: 16px; color: var(--iwb-text); background: var(--iwb-panel); border: 1px solid var(--iwb-border2); opacity: .92; }
|
||||
.iwb-out-cell-flag-err { color: var(--iwb-err); border-color: var(--iwb-err-bd); background: var(--iwb-err-bg); }
|
||||
|
||||
/* 生成中:旧图压暗 + 「生成中」角标(不动 data,失败即恢复) */
|
||||
@@ -2581,9 +2581,9 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img {
|
||||
.iwb-out-cell-flag-busy { color: var(--iwb-warn); border-color: var(--iwb-warn-bd); background: var(--iwb-warn-bg); }
|
||||
|
||||
/* 2026-12-02:下载浮层改右下角圆形图标(矮图不再被横条挡住中心) */
|
||||
.iwb-dl-corner { position: absolute; right: var(--iwb-space-8); bottom: var(--iwb-space-8); display: flex; gap: var(--iwb-space-4); z-index: var(--iwb-z-anchor); opacity: 0; transition: opacity .15s ease; }
|
||||
.iwb-dl-corner { position: absolute; right: var(--iwb-dl-inset); bottom: var(--iwb-dl-inset); display: flex; gap: var(--iwb-dl-gap); opacity: 0; transition: opacity .15s ease; }
|
||||
.iwb-rimg:hover .iwb-dl-corner, .iwb-rimg:focus-within .iwb-dl-corner, .iwb-out-cell:hover .iwb-dl-corner, .iwb-out-cell:focus-within .iwb-dl-corner { opacity: 1; }
|
||||
.iwb-dl-round { width: 28px; height: 28px; border-radius: var(--iwb-radius-full); border: 1px solid var(--iwb-border2); background: var(--iwb-panel); color: var(--iwb-text); display: grid; place-items: center; font-size: var(--iwb-font-xs); line-height: 1; cursor: pointer; box-shadow: var(--iwb-elevation-1); padding: 0; }
|
||||
.iwb-dl-round { width: var(--iwb-dl-size); height: var(--iwb-dl-size); border-radius: var(--iwb-dl-radius); border: 1px solid var(--iwb-border2); background: var(--iwb-panel); color: var(--iwb-text); display: grid; place-items: center; font-size: var(--iwb-font-xs); line-height: 1; cursor: pointer; padding: 0; }
|
||||
.iwb-dl-round:hover { background: var(--iwb-hover); }
|
||||
.iwb-dl-round-primary { color: var(--iwb-brand-text, var(--iwb-text)); border-color: var(--iwb-border2); }
|
||||
|
||||
|
||||
Reference in new issue
Block a user