knight-ui 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -8
- package/component/plus/AttachmentPickerGroup.d.ts +29 -0
- package/component/plus/index.d.ts +2 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/tokens/tokens.css +15 -0
package/package.json
CHANGED
package/tokens/tokens.css
CHANGED
|
@@ -1125,6 +1125,21 @@
|
|
|
1125
1125
|
color: var(--ku-color-text-0);
|
|
1126
1126
|
}
|
|
1127
1127
|
|
|
1128
|
+
/* ===== 附件选择器 =====
|
|
1129
|
+
触发体长什么样由调用方的 children 决定, 这里只补悬停反馈 —— cursor:pointer 早就给了, 划过却毫无变化,
|
|
1130
|
+
是库自己的缺口。色档走 currentColor 继承: children 是裸图标时提亮一档; 若是 Button 这类自带色档的,
|
|
1131
|
+
inherit 链在那一层就断了, 本规则对它不生效。**基色不在这里定** —— 同一个选择器放不同语境要用不同档位。
|
|
1132
|
+
禁用态已经 pointer-events:none, :hover 本就命中不了, 再显式挡一道, 与 .ku-menu-option 的写法一致。 */
|
|
1133
|
+
.ku-attachment-picker
|
|
1134
|
+
{
|
|
1135
|
+
transition: color var(--ku-transition-fast);
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.ku-attachment-picker:hover:not([data-disabled="true"])
|
|
1139
|
+
{
|
|
1140
|
+
color: var(--ku-color-text-0);
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1128
1143
|
/* ===== 已删除的死类(规则永远不会生效, 记在这里免得再补回来) =====
|
|
1129
1144
|
· 类名从没挂上过: .ku-timeline-item / .ku-carousel-dot / .ku-avatar / .ku-badge /
|
|
1130
1145
|
.ku-checkbox-box:hover / .ku-sidebar-item* / .ku-toast-item / 原"移除原生控件样式"一节
|