tailwindcss/src/plugins/maxHeight.js
2019-01-14 15:43:12 -05:00

14 lines
343 B
JavaScript

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'))
}
}