Source backgroundAttachment options from config

This commit is contained in:
Adam Wathan 2019-02-28 11:35:34 -05:00
parent a973e84ceb
commit 89fc1e42bc

View File

@ -1,12 +1,12 @@
export default function({ variants }) {
return function({ addUtilities }) {
export default function() {
return function({ addUtilities, config }) {
addUtilities(
{
'.bg-fixed': { 'background-attachment': 'fixed' },
'.bg-local': { 'background-attachment': 'local' },
'.bg-scroll': { 'background-attachment': 'scroll' },
},
variants
config('variants.backgroundAttachment')
)
}
}