From 41eba9d6b4f3df58fb5620cdff0286229a95b599 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 17 Apr 2018 16:55:52 -0500 Subject: [PATCH] Move stylesheets/erb/* to stylesheets/specific/erb/*. --- app/assets/stylesheets/application.scss | 6 +++++- app/assets/stylesheets/{ => specific}/erb/posts.scss.erb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) rename app/assets/stylesheets/{ => specific}/erb/posts.scss.erb (99%) diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 6b9fb5c24..a092e0f16 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -1,5 +1,9 @@ @import "jquery-ui-1.11.2.min.scss"; @import "jquery.dropdown.scss"; @import "common/*"; + +// @import wildcards don't work with .erb files. Put .erb files in a separate +// directory and load them explicitly to work around this. +// https://github.com/rails/sass-rails/issues/185 @import "specific/*"; -@import "erb/posts"; \ No newline at end of file +@import "specific/erb/posts"; diff --git a/app/assets/stylesheets/erb/posts.scss.erb b/app/assets/stylesheets/specific/erb/posts.scss.erb similarity index 99% rename from app/assets/stylesheets/erb/posts.scss.erb rename to app/assets/stylesheets/specific/erb/posts.scss.erb index ab07b4194..378e4b8aa 100644 --- a/app/assets/stylesheets/erb/posts.scss.erb +++ b/app/assets/stylesheets/specific/erb/posts.scss.erb @@ -1,4 +1,4 @@ -@import "../common/000_vars.scss"; +@import "../../common/000_vars.scss"; article.post-preview { height: 154px;