From 5992bba97b80afa7264763c5ba5a92d647ed2c4f Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Sat, 26 Jan 2019 03:29:15 +0800 Subject: [PATCH] Import color variables in new page SCSS partials "admin/all.css" which imports these SCSS partials already imports the color variables in "admin/variables", so actually there should be no need to import the variables again. However, "application.css" calls "require_tree", which means asset precompilation through Sprockets would attempt to compile each of the SCSS partials individually. When compiled individually, the color variables are not available to these partials. This is a quick solution to allow precompilation of "application.css" to complete. --- app/assets/stylesheets/admin/pages/subscription_form.css.scss | 2 ++ app/assets/stylesheets/admin/pages/subscription_review.css.scss | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/assets/stylesheets/admin/pages/subscription_form.css.scss b/app/assets/stylesheets/admin/pages/subscription_form.css.scss index 02c9fd783e..b892c4f17e 100644 --- a/app/assets/stylesheets/admin/pages/subscription_form.css.scss +++ b/app/assets/stylesheets/admin/pages/subscription_form.css.scss @@ -1,3 +1,5 @@ +@import '../variables'; + .admin-subscription-form-subscription-line-items { .not-in-open-and-upcoming-order-cycles-warning { color: $warning-red; diff --git a/app/assets/stylesheets/admin/pages/subscription_review.css.scss b/app/assets/stylesheets/admin/pages/subscription_review.css.scss index ba3280aa2b..76008afc0f 100644 --- a/app/assets/stylesheets/admin/pages/subscription_review.css.scss +++ b/app/assets/stylesheets/admin/pages/subscription_review.css.scss @@ -1,3 +1,5 @@ +@import '../variables'; + .admin-subscription-review-subscription-line-items { .not-in-open-and-upcoming-order-cycles-warning { color: $warning-red;