Undefined variable / Undefined mixin scss rails

Current scenario: Undefined variable: “$glass”. scss rails

/** variables.css.scss file **/

$glass: "\f000";

Before Change:

/** icons.css.scss File **/

.icon-glass:before { content: $glass; }

After Change:

/** icons.css.scss File **/
@import "variables";
.icon-glass:before { content: $glass; }
@import 'file_name'   used to import a scss file to another for code reusability

I am Senior Software Engineer. I love reading, writing, sharing,developing, hiking, movies, trips, mountains, brooks, hills etc.

Tagged with: , , ,
Posted in scss
One comment on “Undefined variable / Undefined mixin scss rails
  1. 楽天 ラッシュガード

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: