Port backgroundPosition module to plugin

This commit is contained in:
Adam Wathan 2019-01-09 21:48:27 -05:00
parent 6112b3e345
commit 0cd679b4ff
4 changed files with 17 additions and 17 deletions

View file

@ -0,0 +1,15 @@
export default function () {
return function ({ addUtilities, config }) {
addUtilities({
'.bg-bottom': { 'background-position': 'bottom' },
'.bg-center': { 'background-position': 'center' },
'.bg-left': { 'background-position': 'left' },
'.bg-left-bottom': { 'background-position': 'left bottom' },
'.bg-left-top': { 'background-position': 'left top' },
'.bg-right': { 'background-position': 'right' },
'.bg-right-bottom': { 'background-position': 'right bottom' },
'.bg-right-top': { 'background-position': 'right top' },
'.bg-top': { 'background-position': 'top' },
}, config('modules.backgroundPosition'))
}
}