Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add support for "important" option in "options" section of config
Doesn't apply to `.container` since it's an oddball non-utility.
  • Loading branch information
adamwathan committed Nov 10, 2017
commit 733a43ae2d3a97c6ad1c99b1ec2c38813a3f42cb
29 changes: 0 additions & 29 deletions __tests__/importantAtRule.test.js

This file was deleted.

4 changes: 4 additions & 0 deletions src/lib/generateUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export default function(config) {
]),
})

if (_.get(config, 'options.important', false)) {
utilities.walkDecls(decl => (decl.important = true))
}

const tailwindClasses = postcss.root({
nodes: [...container(config), responsive(utilities)],
})
Expand Down
11 changes: 0 additions & 11 deletions src/lib/substituteImportantAtRules.js

This file was deleted.