Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove clearfix utility #193

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion __fixtures__/!custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ tw`group-focus:bg-red-500`
tw`group-active:bg-red-500`
tw`group-visited:bg-red-500`

tw`clearfix`
tw`stroke-non-scaling`
1 change: 0 additions & 1 deletion __fixtures__/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ tw`table-row`
tw`float-right`
tw`float-left`
tw`float-none`
tw`clearfix`

// https://tailwindcss.com/docs/clear
tw`clear-left`
Expand Down
14 changes: 6 additions & 8 deletions __snapshots__/plugin.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ tw\`group-focus:bg-red-500\`
tw\`group-active:bg-red-500\`
tw\`group-visited:bg-red-500\`

tw\`clearfix\`
tw\`stroke-non-scaling\`

↓ ↓ ↓ ↓ ↓ ↓
Expand Down Expand Up @@ -436,26 +435,26 @@ const _GlobalStyles = () => (
<_globalImport
styles={_css\`
@keyframes spin {
to {
to {
transform: rotate(360deg);
}
}
@keyframes ping {
75%, 100% {
75%, 100% {
transform: scale(2); opacity: 0;
}
}
@keyframes pulse {
50% {
50% {
opacity: .5;
}
}
@keyframes bounce {
0%, 100% {
0%, 100% {
transform: translateY(-25%); animationTimingFunction: cubic-bezier(0.8,0,1,1);
}
50% {

50% {
transform: none; animationTimingFunction: cubic-bezier(0,0,0.2,1);
}
}\`}
Expand Down Expand Up @@ -7825,7 +7824,6 @@ tw\`table-row\`
tw\`float-right\`
tw\`float-left\`
tw\`float-none\`
tw\`clearfix\`

// https://tailwindcss.com/docs/clear
tw\`clear-left\`
Expand Down
4 changes: 0 additions & 4 deletions src/config/staticStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ export default {
'float-right': { output: { float: 'right' } },
'float-left': { output: { float: 'left' } },
'float-none': { output: { float: 'none' } },
clearfix: {
output: { '::after': { content: '""', display: 'table', clear: 'both' } },
config: false,
},

// https://tailwindcss.com/docs/clear
'clear-left': { output: { clear: 'left' } },
Expand Down