From fafcf5765abf024be926ac25d4ea568d09bb32a4 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 20 Nov 2020 15:01:12 +0300 Subject: [PATCH] Remove clearfix utility --- __fixtures__/!custom.js | 1 - __snapshots__/plugin.test.js.snap | 13 ++++++------- src/config/staticStyles.js | 4 ---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/__fixtures__/!custom.js b/__fixtures__/!custom.js index 889a3f84..5bce112e 100644 --- a/__fixtures__/!custom.js +++ b/__fixtures__/!custom.js @@ -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` diff --git a/__snapshots__/plugin.test.js.snap b/__snapshots__/plugin.test.js.snap index d20de362..25fc6838 100644 --- a/__snapshots__/plugin.test.js.snap +++ b/__snapshots__/plugin.test.js.snap @@ -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\` ↓ ↓ ↓ ↓ ↓ ↓ @@ -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); } }\`} diff --git a/src/config/staticStyles.js b/src/config/staticStyles.js index 335d5032..4189672c 100644 --- a/src/config/staticStyles.js +++ b/src/config/staticStyles.js @@ -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' } },