tailwindcss/src/plugins/maxHeight.js

14 lines
343 B
JavaScript
Raw Normal View History

2019-01-09 21:12:45 -05:00
import _ from 'lodash'
export default function () {
return function ({ addUtilities, config, e }) {
const utilities = _.fromPairs(_.map(config('maxHeight'), (value, modifier) => {
return [`.${e(`max-h-${modifier}`)}`, {
'max-height': value,
}]
}))
addUtilities(utilities, config('modules.maxHeight'))
}
}