tailwindcss/src/plugins/justifySelf.js
Adam Wathan ff013c5e9c
Add missing grid alignment utilities (#2306)
* added suppot for justify-self

* Update fixtures

* Add remaining grid alignment utilities

* Update changelog

Co-authored-by: Felix Alcala <felix.alcala@gmail.com>
2020-09-04 10:54:13 -04:00

29 lines
620 B
JavaScript

export default function() {
return function({ addUtilities, variants, target }) {
if (target('justifySelf') === 'ie11') {
return
}
addUtilities(
{
'.justify-self-auto': {
'justify-self': 'auto',
},
'.justify-self-start': {
'justify-self': 'start',
},
'.justify-self-end': {
'justify-self': 'end',
},
'.justify-self-center': {
'justify-self': 'center',
},
'.justify-self-stretch': {
'justify-self': 'stretch',
},
},
variants('justifySelf')
)
}
}