Add basic set of opacity utilities
This commit is contained in:
parent
afc99c45e2
commit
2d41a67b29
7 changed files with 125 additions and 3 deletions
10
src/generators/opacity.js
Normal file
10
src/generators/opacity.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import _ from 'lodash'
|
||||
import defineClass from '../util/defineClass'
|
||||
|
||||
export default function ({ opacity }) {
|
||||
return _.map(opacity, (value, modifier) => {
|
||||
return defineClass(`opacity-${modifier}`, {
|
||||
'opacity': value,
|
||||
})
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue