diff options
-rw-r--r-- | app/assets/stylesheets/application.scss | 12 | ||||
-rw-r--r-- | app/assets/stylesheets/custom/head-import.scss | 1 | ||||
-rw-r--r-- | app/assets/stylesheets/custom/tail-import.scss | 1 | ||||
-rw-r--r-- | config/initializers/customization.rb | 1 |
4 files changed, 10 insertions, 5 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"; diff --git a/config/initializers/customization.rb b/config/initializers/customization.rb index 2b5301e..6d9c741 100644 --- a/config/initializers/customization.rb +++ b/config/initializers/customization.rb @@ -21,7 +21,6 @@ customization_directory = APP_CONFIG["customization_directory"] # Rails.application.config.assets.paths.unshift "#{customization_directory}/images" Rails.application.config.assets.paths.unshift "#{customization_directory}/stylesheets" -Rails.application.config.sass.load_paths.unshift "#{customization_directory}/stylesheets" # # Copy files to public # |