mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Port tableLayout module to plugin
This commit is contained in:
parent
fbeadb76cc
commit
ff3e6bee43
@ -1,3 +1,4 @@
|
||||
import tableLayout from './plugins/tableLayout'
|
||||
import textAlign from './plugins/textAlign'
|
||||
import textColors from './plugins/textColors'
|
||||
import textSizes from './plugins/textSizes'
|
||||
@ -11,6 +12,7 @@ import width from './plugins/width'
|
||||
import zIndex from './plugins/zIndex'
|
||||
|
||||
export default [
|
||||
tableLayout(),
|
||||
textAlign(),
|
||||
textColors(),
|
||||
textSizes(),
|
||||
|
||||
@ -1,8 +0,0 @@
|
||||
import defineClasses from '../util/defineClasses'
|
||||
|
||||
export default function() {
|
||||
return defineClasses({
|
||||
'table-auto': { 'table-layout': 'auto' },
|
||||
'table-fixed': { 'table-layout': 'fixed' },
|
||||
})
|
||||
}
|
||||
8
src/plugins/tableLayout.js
Normal file
8
src/plugins/tableLayout.js
Normal file
@ -0,0 +1,8 @@
|
||||
export default function () {
|
||||
return function ({ addUtilities, config }) {
|
||||
addUtilities({
|
||||
'.table-auto': { 'table-layout': 'auto' },
|
||||
'.table-fixed': { 'table-layout': 'fixed' },
|
||||
}, config('modules.tableLayout'))
|
||||
}
|
||||
}
|
||||
@ -36,7 +36,6 @@ import resize from './generators/resize'
|
||||
import shadows from './generators/shadows'
|
||||
import svgFill from './generators/svgFill'
|
||||
import svgStroke from './generators/svgStroke'
|
||||
import tableLayout from './generators/tableLayout'
|
||||
|
||||
export default [
|
||||
{ name: 'lists', generator: lists },
|
||||
@ -77,5 +76,4 @@ export default [
|
||||
{ name: 'shadows', generator: shadows },
|
||||
{ name: 'svgFill', generator: svgFill },
|
||||
{ name: 'svgStroke', generator: svgStroke },
|
||||
{ name: 'tableLayout', generator: tableLayout },
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user