Port display module to plugin
This commit is contained in:
parent
fd1729ec81
commit
a493ee420d
4 changed files with 29 additions and 29 deletions
27
src/plugins/display.js
Normal file
27
src/plugins/display.js
Normal 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'))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue