Add background position utilities.
This commit is contained in:
parent
6b204cf0dd
commit
e754d87339
2 changed files with 17 additions and 0 deletions
15
src/generators/backgroundPositions.js
Normal file
15
src/generators/backgroundPositions.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import defineClasses from '../util/defineClasses'
|
||||
|
||||
export default function() {
|
||||
return defineClasses({
|
||||
'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' },
|
||||
})
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
import _ from 'lodash'
|
||||
import backgroundColors from '../generators/backgroundColors'
|
||||
import backgroundPositions from '../generators/backgroundPositions'
|
||||
import backgroundSize from '../generators/backgroundSize'
|
||||
import borderColors from '../generators/borderColors'
|
||||
import borderStylesReset from '../generators/borderStylesReset'
|
||||
|
|
@ -47,6 +48,7 @@ export default function(options) {
|
|||
textStyle(options),
|
||||
verticalAlign(options),
|
||||
backgroundColors(options),
|
||||
backgroundPositions(options),
|
||||
backgroundSize(options),
|
||||
borderStylesReset(options),
|
||||
borderWidths(options),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue