diff --git a/scripts/gen-tokens.js b/scripts/gen-tokens.js index 30e92ba..8e84ccf 100644 --- a/scripts/gen-tokens.js +++ b/scripts/gen-tokens.js @@ -117,7 +117,7 @@ const SCALE = [ ['--iwb-radius-popover', '14px', '浮层/菜单/右键'], ['--iwb-radius-full', '999px', '圆形/药丸'], // 2026-12-02:下载/浮层「圆形图标按钮」的一组尺寸(宿主 style.css 与 gallery 插件共用同一套变量) - ['--iwb-dl-size', '28px', '下载按钮:直径'], + ['--iwb-dl-size', '26px', '下载按钮:直径'], ['--iwb-dl-radius', 'var(--iwb-radius-full)', '下载按钮:圆角(胶囊/圆)'], ['--iwb-dl-inset', '8px', '下载按钮:距容器右下角内距'], ['--iwb-dl-gap', '4px', '下载按钮:多按钮之间的间距'], diff --git a/src/design-tokens.css b/src/design-tokens.css index 54b0676..c463992 100644 --- a/src/design-tokens.css +++ b/src/design-tokens.css @@ -119,7 +119,7 @@ --iwb-radius-panel: 12px; /* 面板/工具栏 */ --iwb-radius-popover: 14px; /* 浮层/菜单/右键 */ --iwb-radius-full: 999px; /* 圆形/药丸 */ - --iwb-dl-size: 28px; /* 下载按钮:直径 */ + --iwb-dl-size: 26px; /* 下载按钮:直径 */ --iwb-dl-radius: var(--iwb-radius-full); /* 下载按钮:圆角(胶囊/圆) */ --iwb-dl-inset: 8px; /* 下载按钮:距容器右下角内距 */ --iwb-dl-gap: 4px; /* 下载按钮:多按钮之间的间距 */ diff --git a/style.css b/style.css index 6b1ea8c..287fc86 100644 --- a/style.css +++ b/style.css @@ -2589,3 +2589,9 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img { /* 2026-12-02(用户裁定):图库选中只留外框,不显示角标图标 */ body .iwb-history-embedded .iwb-history-check { display: none; } + +/* 2026-12-02:图库卡片的下载按钮回到右下角(插件复用了 .iwb-history-actions, + 宿主旧规则是 left:0;right:0;justify-content:center ⇒ 按钮落在底部中间)。 */ +body .iwb-history-embedded .iwb-history-actions { left: auto; right: var(--iwb-dl-inset); bottom: var(--iwb-dl-inset); justify-content: flex-end; padding: 0; background-image: none; gap: var(--iwb-dl-gap); } +body .iwb-history-embedded .iwb-history-actions .iwb-gal-dl { 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-brand-text, var(--iwb-text)); display: grid; place-items: center; padding: 0; font-size: var(--iwb-font-xs); line-height: 1; cursor: pointer; } +body .iwb-history-embedded .iwb-history-actions .iwb-gal-dl:hover { background: var(--iwb-hover); }