/* promptlib(提示词库)自带样式 作用域全部带 .iwb-plp-*,不影响宿主与其他插件;样式随插件发布,不必等客户端发版。 */ /* 分组胶囊「适应面板宽度」自动换行。 宿主的 .iwb-lib-chips 是 flex-wrap: nowrap(配 .iwb-lib-chips-scroll 做单行横向滚动 + 右侧渐隐), 分组多时靠后的分类看不见也点不到。双类选择器提高优先级(不依赖样式注入顺序)。 */ .iwb-lib-chips.iwb-plp-chips { flex-wrap: wrap; row-gap: 6px; } /* + / ⚙ 是动作按钮,不是分组名:不参与压缩,并与最后一个分组稍作分隔 */ .iwb-plp-chips .iwb-plp-add { flex: 0 0 auto; margin-left: 2px; } /* v1.0.2(2026-11-21):卡片化 —— 白卡 + 悬停 + 文本三行截断。 颜色一律走宿主 --iwb-plugin-* / --iwb-* token,不在插件里写死。 */ .iwb-promptlib .iwb-pcard { transition: background .12s ease, border-color .12s ease; } .iwb-promptlib .iwb-pcard:hover { border-color: var(--iwb-border2, #b9bfca); } .iwb-promptlib .iwb-pname { font-weight: 600; } .iwb-promptlib .iwb-ptext { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--iwb-text2, #4d5668); } .iwb-promptlib .iwb-lib-cards { gap: 8px; } /* v1.1.0(2026-11-21):封面网格 + 长文详情 + 宽编辑弹窗。 颜色全部走宿主 token,不写死。 */ .iwb-promptlib .iwb-lib-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .iwb-plp-card { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; border: 1px solid var(--iwb-border, #d5d9e0); transition: border-color .12s ease, transform .12s ease; } .iwb-plp-card:hover { border-color: var(--iwb-border2, #b9bfca); } .iwb-plp-cover { width: 100%; height: 100%; object-fit: cover; display: block; } .iwb-plp-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 7px 6px; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.66)); color: #fff; font-size: 10.5px; line-height: 1.35; max-height: 48%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.35); } /* 详情:长文阅读 */ .iwb-plp-dhead { display: flex; align-items: center; gap: 6px; padding: 2px 0 8px; position: sticky; top: 0; z-index: 2; background: var(--iwb-plugin-surface, #fafafb); } .iwb-plp-dtop { align-items: flex-start; gap: 10px; margin-bottom: 8px; } .iwb-plp-dthumb { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--iwb-border, #d5d9e0); } .iwb-plp-dmeta { min-width: 0; display: flex; flex-direction: column; gap: 4px; } .iwb-plp-dtitle { font-size: 13px; font-weight: 600; color: var(--iwb-text, #1c2333); line-height: 1.45; } .iwb-plp-dtext { font-size: 12px; line-height: 1.75; color: var(--iwb-text2, #4d5668); white-space: pre-wrap; word-break: break-word; padding: 4px 0 12px; } .iwb-plp-dfoot { display: flex; align-items: center; gap: 6px; padding: 8px 0 2px; position: sticky; bottom: 0; background: var(--iwb-plugin-surface, #fafafb); } /* 编辑弹窗:760 宽 + 大文本框 */ .iwb-promptlib-editor { width: 760px; max-width: 94vw; } .iwb-promptlib-editor .iwb-modal-body { max-height: 78vh; } .iwb-promptlib-text { min-height: 360px; height: 44vh; font-size: 12.5px; line-height: 1.9; resize: vertical; } .iwb-plp-editor-cover { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; } .iwb-plp-editor-thumb { flex: 0 0 96px; width: 96px; height: 128px; border-radius: 8px; overflow: hidden; border: 1px solid var(--iwb-border, #d5d9e0); } .iwb-plp-editor-coverops { display: flex; flex-direction: column; gap: 8px; }