Port resize module to plugin

This commit is contained in:
Adam Wathan 2019-01-09 13:18:58 -05:00
parent 6a3ed59fa6
commit e7bf2bc615
4 changed files with 12 additions and 12 deletions

10
src/plugins/resize.js Normal file
View file

@ -0,0 +1,10 @@
export default function () {
return function ({ addUtilities, config }) {
addUtilities({
'.resize-none': { resize: 'none' },
'.resize-y': { resize: 'vertical' },
'.resize-x': { resize: 'horizontal' },
'.resize': { resize: 'both' },
}, config('modules.resize'))
}
}