tiny-vue_version0/examples/react-site/tiny-uno/variants/hover.js

13 lines
306 B
JavaScript

// hover: h:c-error
export default (matcher) => {
if (!matcher.startsWith('h:')) return matcher;
return {
matcher: matcher.slice(2),
selector: (s) => `${s}:hover`,
body: (body) => {
body.push(['transition', 'all var(--trans-time)']);
return body;
},
};
};