From a7dce2697168d7eacec4cd968919f99b47f4eb09 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Fri, 11 Dec 2020 20:25:38 +0000
Subject: [PATCH] Split custom utilities into partials

---
 .../custom/opdavies/assets/css/custom-utilities.pcss     | 9 ---------
 web/themes/custom/opdavies/assets/css/tailwind.pcss      | 2 +-
 .../opdavies/assets/css/utilities/first-of-type.pcss     | 7 +++++++
 .../custom/opdavies/assets/css/utilities/js-hidden.pcss  | 5 +++++
 4 files changed, 13 insertions(+), 10 deletions(-)
 delete mode 100644 web/themes/custom/opdavies/assets/css/custom-utilities.pcss
 create mode 100644 web/themes/custom/opdavies/assets/css/utilities/first-of-type.pcss
 create mode 100644 web/themes/custom/opdavies/assets/css/utilities/js-hidden.pcss

diff --git a/web/themes/custom/opdavies/assets/css/custom-utilities.pcss b/web/themes/custom/opdavies/assets/css/custom-utilities.pcss
deleted file mode 100644
index 35d011d..0000000
--- a/web/themes/custom/opdavies/assets/css/custom-utilities.pcss
+++ /dev/null
@@ -1,9 +0,0 @@
-.no-js .js-hidden {
-  display: none
-}
-
-@responsive {
-  .first-of-type\:mt-0:first-of-type {
-    @apply mt-0 !important
-  }
-}
diff --git a/web/themes/custom/opdavies/assets/css/tailwind.pcss b/web/themes/custom/opdavies/assets/css/tailwind.pcss
index d32b50e..a90e99a 100644
--- a/web/themes/custom/opdavies/assets/css/tailwind.pcss
+++ b/web/themes/custom/opdavies/assets/css/tailwind.pcss
@@ -7,4 +7,4 @@
 @import './libraries/hljs.pcss';
 
 @import 'tailwindcss/utilities';
-@import './custom-utilities.pcss';
+@import './utilities/*.pcss';
diff --git a/web/themes/custom/opdavies/assets/css/utilities/first-of-type.pcss b/web/themes/custom/opdavies/assets/css/utilities/first-of-type.pcss
new file mode 100644
index 0000000..78beb00
--- /dev/null
+++ b/web/themes/custom/opdavies/assets/css/utilities/first-of-type.pcss
@@ -0,0 +1,7 @@
+@layer utilities {
+  @responsive {
+    .first-of-type\:mt-0:first-of-type {
+      @apply mt-0 !important
+    }
+  }
+}
diff --git a/web/themes/custom/opdavies/assets/css/utilities/js-hidden.pcss b/web/themes/custom/opdavies/assets/css/utilities/js-hidden.pcss
new file mode 100644
index 0000000..bc05e97
--- /dev/null
+++ b/web/themes/custom/opdavies/assets/css/utilities/js-hidden.pcss
@@ -0,0 +1,5 @@
+@layer utilities {
+  .no-js .js-hidden {
+    display: none
+  } 
+}