-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
24 lines (24 loc) · 893 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = function() {
return function({ addVariant, e }) {
addVariant('touch', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.touch .${e(`touch${separator}${className}`)}`
})
})
addVariant('no-touch', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.no-touch .${e(`no-touch${separator}${className}`)}`
})
})
addVariant('no-touch-hover', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.no-touch .${e(`no-touch-hover${separator}${className}`)}:hover`
})
})
addVariant('no-touch-group-hover', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.no-touch .group:hover .${e(`no-touch-group-hover${separator}${className}`)}`
})
})
}
}