Port backgroundRepeat module to plugin
This commit is contained in:
parent
5a372877a6
commit
6112b3e345
4 changed files with 12 additions and 12 deletions
10
src/plugins/backgroundRepeat.js
Normal file
10
src/plugins/backgroundRepeat.js
Normal 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'))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue