@opentiny/tiny-toolkit-docs
Version:
这里对你的套件进行简单描述, 比如适用哪些场景,使用了什么技术, 有什么特点
15 lines (14 loc) • 424 B
JavaScript
// select:c-primary select:bg-black ::selection只可以应用于少数的CSS属性:color, background
export default matcher => {
if (!matcher.startsWith('select:')) return matcher;
return {
matcher: matcher.slice(7),
selector: s => `${s} ::selection`,
body: body => {
body.forEach(e => {
e[1] && (e[1] += '!important');
});
return body;
},
};
};