Move clear to it's own plugin

This commit is contained in:
Adam Wathan 2019-12-27 09:27:18 -05:00
parent ee6241a3b7
commit ff4f4eb808
6 changed files with 135 additions and 3 deletions

12
src/plugins/clear.js Normal file
View file

@ -0,0 +1,12 @@
export default function() {
return function({ addUtilities, variants }) {
addUtilities(
{
'.clear-left': { clear: 'left' },
'.clear-right': { clear: 'right' },
'.clear-both': { clear: 'both' },
},
variants('clear')
)
}
}

View file

@ -5,9 +5,6 @@ export default function() {
'.float-right': { float: 'right' },
'.float-left': { float: 'left' },
'.float-none': { float: 'none' },
'.clear-left': { clear: 'left' },
'.clear-right': { clear: 'right' },
'.clear-both': { clear: 'both' },
'.clearfix:after': {
content: '""',
display: 'table',