Port backgroundRepeat module to plugin

This commit is contained in:
Adam Wathan 2019-01-09 21:47:13 -05:00
parent 5a372877a6
commit 6112b3e345
4 changed files with 12 additions and 12 deletions

View file

@ -0,0 +1,10 @@
export default function () {
return function ({ addUtilities, config }) {
addUtilities({
'.bg-repeat': { 'background-repeat': 'repeat' },
'.bg-no-repeat': { 'background-repeat': 'no-repeat' },
'.bg-repeat-x': { 'background-repeat': 'repeat-x' },
'.bg-repeat-y': { 'background-repeat': 'repeat-y' },
}, config('modules.backgroundRepeat'))
}
}