Port float module to plugin
This commit is contained in:
parent
499fae20d0
commit
dce3b5fcb0
4 changed files with 16 additions and 22 deletions
14
src/plugins/float.js
Normal file
14
src/plugins/float.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
export default function () {
|
||||
return function ({ addUtilities, config }) {
|
||||
addUtilities({
|
||||
'.float-right': { float: 'right' },
|
||||
'.float-left': { float: 'left' },
|
||||
'.float-none': { float: 'none' },
|
||||
'.clearfix:after': {
|
||||
content: '""',
|
||||
display: 'table',
|
||||
clear: 'both',
|
||||
}
|
||||
}, config('modules.float'))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue