Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
146b984
Accept plugins as separate processPlugins arg
adamwathan Jan 9, 2019
6352843
Port zIndex module to default plugin
adamwathan Jan 9, 2019
027b69c
Port width and whitespace modules to plugins
adamwathan Jan 9, 2019
239234b
Port visibility module to plugin
adamwathan Jan 9, 2019
718389c
Port verticalAlign module to plugin
adamwathan Jan 9, 2019
86d8127
Port tracking module to plugin
adamwathan Jan 9, 2019
3ac73fb
Port text sizes and text style modules to plugins
adamwathan Jan 9, 2019
7e2e278
Port textColors module to plugin
adamwathan Jan 9, 2019
fbeadb7
Port textAlign module to plugin
adamwathan Jan 9, 2019
ff3e6be
Port tableLayout module to plugin
adamwathan Jan 9, 2019
efb9e69
Port svgStroke module to plugin
adamwathan Jan 9, 2019
e6c0da0
Port svgFill module to plugin
adamwathan Jan 9, 2019
6a3ed59
Port shadows module to plugin
adamwathan Jan 9, 2019
e7bf2bc
Port resize module to plugin
adamwathan Jan 9, 2019
6125121
Port position module to plugin
adamwathan Jan 9, 2019
c5abdc9
Port pointerEvents module to plugin
adamwathan Jan 9, 2019
d6611dd
Port padding module to plugin
adamwathan Jan 9, 2019
0ba183a
Port overflow module to plugin
adamwathan Jan 9, 2019
a3ea578
Port outline module to plugin
adamwathan Jan 9, 2019
3f08918
Port opacity module to plugin
adamwathan Jan 9, 2019
5b3d6d8
Port objectPosition module to plugin, conditionally load plugins base…
adamwathan Jan 9, 2019
bfbb179
Port objectFit module to plugin
adamwathan Jan 9, 2019
1ff0143
Port negativeMargin module to plugin
adamwathan Jan 9, 2019
b140bf6
Port minWidth module to plugin
adamwathan Jan 10, 2019
645de65
Port minHeight module to plugin
adamwathan Jan 10, 2019
3c99be0
Port maxWidth module to plugin
adamwathan Jan 10, 2019
b5a51e8
Port maxHeight module to plugin
adamwathan Jan 10, 2019
97da5c4
Port margin module to plugin
adamwathan Jan 10, 2019
c8802df
Port leading module to plugin
adamwathan Jan 10, 2019
964bf81
Port height module to plugin
adamwathan Jan 10, 2019
07193bb
Port fontWeights module to plugin
adamwathan Jan 10, 2019
499fae2
Port fonts module to plugins
adamwathan Jan 10, 2019
dce3b5f
Port float module to plugin
adamwathan Jan 10, 2019
fd1729e
Port flexbox module to plugin
adamwathan Jan 10, 2019
a493ee4
Port display module to plugin
adamwathan Jan 10, 2019
e16c6e6
Port cursor module to plugin
adamwathan Jan 10, 2019
36075fa
Port borderWidths module to plugin
adamwathan Jan 10, 2019
d969096
Port borderStyle module to plugin
adamwathan Jan 10, 2019
2a0b64f
Port borderRadius module to plugin
adamwathan Jan 10, 2019
4715bda
Port borderColors module to plugin
adamwathan Jan 10, 2019
96439a3
Port borderCollapse module to plugin
adamwathan Jan 10, 2019
5a37287
Port backgroundSize module to plugin
adamwathan Jan 10, 2019
6112b3e
Port backgroundRepeat module to plugin
adamwathan Jan 10, 2019
0cd679b
Port backgroundPosition module to plugin
adamwathan Jan 10, 2019
c39ed44
Port backgroundColors module to plugin
adamwathan Jan 10, 2019
a6e96c8
Port backgroundAttachment module to plugin
adamwathan Jan 10, 2019
a0de7e0
Port appearance module to plugin
adamwathan Jan 10, 2019
0d333f2
Port lists module to plugin
adamwathan Jan 10, 2019
eeb42cd
Provide our own rawCache to avoid performance issues
adamwathan Jan 11, 2019
5ade923
Fix tests and lint warnings
adamwathan Jan 11, 2019
f01d79f
Add a comment to explain performance optimization
adamwathan Jan 11, 2019
060d234
Remove code obsoleted by upgrading PostCSS
adamwathan Jan 14, 2019
20588c9
Remove unused code
adamwathan Jan 14, 2019
ca524ef
Remove more dead code
adamwathan Jan 14, 2019
fe1b30b
Remove prefixTree, update relevant tests
adamwathan Jan 14, 2019
d255978
Delete even more dead code
adamwathan Jan 14, 2019
b948c25
Delete possibly last remnants of dead code
adamwathan Jan 14, 2019
adc5d25
Remove unnecessary parameter
adamwathan Jan 14, 2019
057b4ea
More dead code discovered and deleted
adamwathan Jan 14, 2019
e120f59
Simplify defaultPlugins module
adamwathan Jan 15, 2019
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
Port minWidth module to plugin
  • Loading branch information
adamwathan committed Jan 14, 2019
commit b140bf66fbbb47ca4f9cf4d2aff5fe4895dd5f5d
2 changes: 2 additions & 0 deletions src/defaultPlugins.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import minWidth from './plugins/minWidth'
import negativeMargin from './plugins/negativeMargin'
import objectFit from './plugins/objectFit'
import objectPosition from './plugins/objectPosition'
Expand Down Expand Up @@ -26,6 +27,7 @@ import zIndex from './plugins/zIndex'

export default function (config) {
return [
config.modules.minWidth === false ? () => {} : minWidth(),
config.modules.negativeMargin === false ? () => {} : negativeMargin(),
config.modules.objectFit === false ? () => {} : objectFit(),
config.modules.objectPosition === false ? () => {} : objectPosition(),
Expand Down
14 changes: 0 additions & 14 deletions src/generators/minWidth.js

This file was deleted.

13 changes: 13 additions & 0 deletions src/plugins/minWidth.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import _ from 'lodash'

export default function () {
return function ({ addUtilities, config, e }) {
const utilities = _.fromPairs(_.map(config('minWidth'), (value, modifier) => {
return [`.${e(`min-w-${modifier}`)}`, {
'min-width': value,
}]
}))

addUtilities(utilities, config('modules.minWidth'))
}
}
2 changes: 0 additions & 2 deletions src/utilityModules.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import margin from './generators/margin'
import maxHeight from './generators/maxHeight'
import maxWidth from './generators/maxWidth'
import minHeight from './generators/minHeight'
import minWidth from './generators/minWidth'

export default [
{ name: 'lists', generator: lists },
Expand All @@ -49,5 +48,4 @@ export default [
{ name: 'maxHeight', generator: maxHeight },
{ name: 'maxWidth', generator: maxWidth },
{ name: 'minHeight', generator: minHeight },
{ name: 'minWidth', generator: minWidth },
]