mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Port appearance module to plugin
This commit is contained in:
parent
a6e96c8919
commit
a0de7e0963
@ -1,3 +1,4 @@
|
||||
import appearance from './plugins/appearance'
|
||||
import backgroundAttachment from './plugins/backgroundAttachment'
|
||||
import backgroundColors from './plugins/backgroundColors'
|
||||
import backgroundPosition from './plugins/backgroundPosition'
|
||||
@ -49,6 +50,7 @@ import zIndex from './plugins/zIndex'
|
||||
|
||||
export default function (config) {
|
||||
return [
|
||||
config.modules.appearance === false ? () => {} : appearance(),
|
||||
config.modules.backgroundAttachment === false ? () => {} : backgroundAttachment(),
|
||||
config.modules.backgroundColors === false ? () => {} : backgroundColors(),
|
||||
config.modules.backgroundPosition === false ? () => {} : backgroundPosition(),
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
import defineClasses from '../util/defineClasses'
|
||||
|
||||
export default function() {
|
||||
return defineClasses({
|
||||
'appearance-none': { appearance: 'none' },
|
||||
})
|
||||
}
|
||||
7
src/plugins/appearance.js
Normal file
7
src/plugins/appearance.js
Normal file
@ -0,0 +1,7 @@
|
||||
export default function () {
|
||||
return function ({ addUtilities, config }) {
|
||||
addUtilities({
|
||||
'.appearance-none': { appearance: 'none' },
|
||||
}, config('modules.appearance'))
|
||||
}
|
||||
}
|
||||
@ -1,7 +1,5 @@
|
||||
import lists from './generators/lists'
|
||||
import appearance from './generators/appearance'
|
||||
|
||||
export default [
|
||||
{ name: 'lists', generator: lists },
|
||||
{ name: 'appearance', generator: appearance },
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user