summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/assets/stylesheets/application.scss12
-rw-r--r--app/assets/stylesheets/custom/head-import.scss1
-rw-r--r--app/assets/stylesheets/custom/tail-import.scss1
3 files changed, 10 insertions, 4 deletions
diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss
index f42044b..1fed154 100644
--- a/app/assets/stylesheets/application.scss
+++ b/app/assets/stylesheets/application.scss
@@ -1,7 +1,9 @@
//
-// import custom scss, content to be set in deployment.
+// This will in turn import config/customization/stylesheets/head
+// It is a workaround for sass-rails defaulting to relative imports.
+// https://0xacab.org/leap/webapp/issues/8794
//
-@import "head";
+@import "custom/head-import";
// First import journal variables
// @import "bootswatch/cerulean/variables";
@@ -22,6 +24,8 @@
// @import "bootswatch/cerulean/bootswatch";
//
-// import custom scss, content to be set in deployment.
+// This will in turn import config/customization/stylesheets/tail
+// It is a workaround for sass-rails defaulting to relative imports.
+// https://0xacab.org/leap/webapp/issues/8794
//
-@import "tail";
+@import "custom/tail-import";
diff --git a/app/assets/stylesheets/custom/head-import.scss b/app/assets/stylesheets/custom/head-import.scss
new file mode 100644
index 0000000..c097d8d
--- /dev/null
+++ b/app/assets/stylesheets/custom/head-import.scss
@@ -0,0 +1 @@
+@import "head";
diff --git a/app/assets/stylesheets/custom/tail-import.scss b/app/assets/stylesheets/custom/tail-import.scss
new file mode 100644
index 0000000..3a61253
--- /dev/null
+++ b/app/assets/stylesheets/custom/tail-import.scss
@@ -0,0 +1 @@
+@import "tail";