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;