mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
20 lines
471 B
JavaScript
20 lines
471 B
JavaScript
const { asValue, nameClass } = require('../pluginUtils')
|
|
|
|
module.exports = function ({ matchUtilities }) {
|
|
matchUtilities({
|
|
'divide-opacity': (modifier, { theme }) => {
|
|
let value = asValue(modifier, theme.divideOpacity)
|
|
|
|
if (value === undefined) {
|
|
return []
|
|
}
|
|
|
|
return {
|
|
[`${nameClass('divide-opacity', modifier)} > :not([hidden]) ~ :not([hidden])`]: {
|
|
'--tw-divide-opacity': value,
|
|
},
|
|
}
|
|
},
|
|
})
|
|
}
|