tailwindcss/src/generators/float.js
2017-11-23 11:16:44 -05:00

20 lines
435 B
JavaScript

import _ from 'lodash'
import postcss from 'postcss'
import defineClasses from '../util/defineClasses'
export default function() {
return _.concat(
defineClasses({
'float-right': { float: 'right' },
'float-left': { float: 'left' },
'float-none': { float: 'none' },
}),
postcss.parse(`
.clearfix:after {
content: "";
display: table;
clear: both;
}
`).nodes
)
}