Port display module to plugin

This commit is contained in:
Adam Wathan 2019-01-09 21:26:12 -05:00
parent fd1729ec81
commit a493ee420d
4 changed files with 29 additions and 29 deletions

27
src/plugins/display.js Normal file
View file

@ -0,0 +1,27 @@
export default function () {
return function ({ addUtilities, config }) {
addUtilities({
'.block': {
display: 'block',
},
'.inline-block': {
display: 'inline-block',
},
'.inline': {
display: 'inline',
},
'.table': {
display: 'table',
},
'.table-row': {
display: 'table-row',
},
'.table-cell': {
display: 'table-cell',
},
'.hidden': {
display: 'none',
},
}, config('modules.display'))
}
}