mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Add container classes as utilities not components
Just for now so that this feature can be introduced into the codebase without forcing a BC break. The container classes will eventually be moved to a built-in plugin that adds them as components.
This commit is contained in:
parent
6849818e20
commit
960275cc86
@ -1,7 +1,5 @@
|
||||
@tailwind preflight;
|
||||
|
||||
@tailwind components;
|
||||
|
||||
@tailwind utilities;
|
||||
|
||||
@responsive {
|
||||
|
||||
@ -21,20 +21,12 @@ export default function(config) {
|
||||
}
|
||||
|
||||
if (atRule.params === 'components') {
|
||||
const tailwindComponentTree = postcss.root({
|
||||
nodes: container(unwrappedConfig),
|
||||
})
|
||||
|
||||
const pluginComponentTree = postcss.root({
|
||||
nodes: pluginComponents,
|
||||
})
|
||||
|
||||
prefixTree(tailwindComponentTree, unwrappedConfig.options.prefix)
|
||||
|
||||
tailwindComponentTree.walk(node => (node.source = atRule.source))
|
||||
pluginComponentTree.walk(node => (node.source = atRule.source))
|
||||
|
||||
atRule.before(tailwindComponentTree)
|
||||
atRule.before(pluginComponentTree)
|
||||
atRule.remove()
|
||||
}
|
||||
@ -47,7 +39,7 @@ export default function(config) {
|
||||
}
|
||||
|
||||
const tailwindUtilityTree = postcss.root({
|
||||
nodes: utilities.nodes,
|
||||
nodes: [...container(unwrappedConfig), ...utilities.nodes],
|
||||
})
|
||||
|
||||
const pluginUtilityTree = postcss.root({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user