mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Add float utilities.
This commit is contained in:
parent
6b204cf0dd
commit
d9ae09addf
18
src/generators/floats.js
Normal file
18
src/generators/floats.js
Normal file
@ -0,0 +1,18 @@
|
||||
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
|
||||
);
|
||||
}
|
||||
@ -9,6 +9,7 @@ import constrain from '../generators/constrain'
|
||||
import cursor from '../generators/cursor'
|
||||
import display from '../generators/display'
|
||||
import flex from '../generators/flex'
|
||||
import floats from '../generators/floats'
|
||||
import opacity from '../generators/opacity'
|
||||
import overflow from '../generators/overflow'
|
||||
import position from '../generators/position'
|
||||
@ -61,6 +62,7 @@ export default function(options) {
|
||||
constrain(options),
|
||||
shadows(options),
|
||||
flex(options),
|
||||
floats(options),
|
||||
zIndex(options),
|
||||
opacity(options),
|
||||
userSelect(options),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user