From d2f1d8dd50357429ebae15bef345664c90282d19 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Wed, 8 Dec 2021 13:49:29 +0100 Subject: [PATCH] fix: munging around with tailwinds configuration --- lib/comparisonView.js | 10 +++++----- lib/datasetChanger.js | 2 +- pages/_app.js | 2 +- postcss.config.js | 2 -- styles/globals.css | 4 ++++ styles/tailwind.css | 15 --------------- tailwind.config.js | 4 +--- 7 files changed, 12 insertions(+), 27 deletions(-) delete mode 100644 styles/tailwind.css diff --git a/lib/comparisonView.js b/lib/comparisonView.js index ad6376a..0bd4bb1 100644 --- a/lib/comparisonView.js +++ b/lib/comparisonView.js @@ -252,7 +252,7 @@ export default function ComparisonView({ listOfElementsForView }) {

{`${numSteps} out of ~${expectedSteps} (max ${maxSteps}) comparisons`}

{/* Comparison section */} -
+
{/* Element 1 */} @@ -341,7 +341,7 @@ export default function ComparisonView({ listOfElementsForView }) { {/* Comparison table */} -
+
-
+
{/* Button: Restart */}
{/* Change dataset section */} -
+
{/* Show comparisons section */} -
+

Comparisons

  diff --git a/pages/_app.js b/pages/_app.js index 588fe6f..bdf791a 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -1,5 +1,5 @@ // import 'tailwindcss/tailwind.css' -import "../styles/tailwind.css"; +import 'tailwindcss/tailwind.css' import "../styles/globals.css"; function MyApp({ Component, pageProps }) { diff --git a/postcss.config.js b/postcss.config.js index 3fa0a95..33ad091 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,5 +1,3 @@ -// If you want to use other PostCSS plugins, see the following: -// https://tailwindcss.com/docs/using-with-preprocessors module.exports = { plugins: { tailwindcss: {}, diff --git a/styles/globals.css b/styles/globals.css index 8d864a7..b29a064 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -1,3 +1,7 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + html, body { padding: 0; diff --git a/styles/tailwind.css b/styles/tailwind.css deleted file mode 100644 index ef83cf1..0000000 --- a/styles/tailwind.css +++ /dev/null @@ -1,15 +0,0 @@ -/* -@tailwind base; -@tailwind components; -@tailwind utilities; -*/ - -@tailwind base; -@tailwind components; -@tailwind utilities; -/* -@import 'tailwindcss/base'; -@import 'tailwindcss/components'; -@import './globals.css'; -@import 'tailwindcss/utilities'; -*/ \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index c8c8476..d7f0874 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,7 +1,5 @@ module.exports = { - mode: 'jit', - purge: [], - // previously: './pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}' + purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], darkMode: false, // or 'media' or 'class' theme: { extend: {},