mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
15 lines
336 B
JavaScript
15 lines
336 B
JavaScript
import _ from 'lodash'
|
|
import defineClass from '../util/defineClass'
|
|
|
|
function defineMaxHeights(heights) {
|
|
return _.map(heights, (size, modifer) => {
|
|
return defineClass(`max-h-${modifer}`, {
|
|
'max-height': `${size}`,
|
|
})
|
|
})
|
|
}
|
|
|
|
export default function(config) {
|
|
return _.flatten([defineMaxHeights(config.maxHeight)])
|
|
}
|