43 lines
2.0 KiB
CSS
43 lines
2.0 KiB
CSS
/* grouplib(节点组)自带样式
|
||
作用域全部带 .iwb-glp-*,不影响宿主与其他插件;样式随插件发布,不必等客户端发版。 */
|
||
|
||
/* 分类胶囊「适应面板宽度」自动换行。
|
||
宿主的 .iwb-lib-chips 是 flex-wrap: nowrap(配合 .iwb-lib-chips-scroll 才做单行横向滚动),
|
||
分组多时右侧胶囊会被面板宽度裁掉、看不见也用不了。
|
||
这里用双类选择器提高优先级(不依赖样式注入顺序),让它按宽度折行。 */
|
||
.iwb-lib-chips.iwb-glp-chips {
|
||
flex-wrap: wrap;
|
||
row-gap: 6px;
|
||
}
|
||
|
||
/* + / ⚙ 是动作按钮,不是分组名:不参与压缩,并与最后一个分组稍作分隔 */
|
||
.iwb-glp-chips .iwb-glp-add {
|
||
flex: 0 0 auto;
|
||
margin-left: 2px;
|
||
}
|
||
|
||
/* v1.0.4(2026-11-21):卡片交互态 + 空态 + 拖拽反馈。
|
||
颜色只走宿主 token(--iwb-plugin-* / --iwb-*),不写死。 */
|
||
.iwb-glp-card { transition: background .12s ease, border-color .12s ease; }
|
||
.iwb-glp-card .iwb-pname { font-weight: 600; }
|
||
/* 删除按钮:平时隐藏,悬停/键盘聚焦才出现,减少视觉噪音 */
|
||
.iwb-glp-card .iwb-pbtns { opacity: 0; transition: opacity .12s ease; }
|
||
.iwb-glp-card:hover .iwb-pbtns,
|
||
.iwb-glp-card:focus-within .iwb-pbtns { opacity: 1; }
|
||
/* 管理模式的选中标记:右上角圆点 */
|
||
.iwb-glp-card[data-manage="1"]::after {
|
||
content: ''; position: absolute; right: 8px; top: 8px; width: 12px; height: 12px;
|
||
border-radius: 50%; border: 1.5px solid var(--iwb-border2, #b9bfca); background: transparent;
|
||
}
|
||
.iwb-glp-card[data-manage="1"].iwb-pcard-selected::after {
|
||
background: var(--iwb-brand, #6b7280); border-color: var(--iwb-brand, #6b7280);
|
||
}
|
||
/* 拖拽中:半透明 + 轻微缩放,明确"正在搬运" */
|
||
.iwb-glp-dragging { opacity: .55; }
|
||
/* 空态:虚线框 */
|
||
.iwb-glp-empty {
|
||
margin: 4px 0; padding: 12px 12px; border-radius: 10px; text-align: center;
|
||
border: 1px dashed var(--iwb-border2, #b9bfca); color: var(--iwb-text2, #4d5668);
|
||
font-size: 12px; line-height: 1.7;
|
||
}
|