A
A
Anton Misyagin2015-05-28 20:57:41
Ruby on Rails
Anton Misyagin, 2015-05-28 20:57:41

How to set sass syntax for compass-rails?

gemfile:

gem 'sass-rails'
gem 'compass-rails', github: 'Compass/compass-rails'

application.rb
config.sass.preferred_syntax = :sass
One of my sass files:
@import 'compass'
@import 'compass/utilities/sprites'
@import "icons/*.png"

Without the line import "icons/*.png". All styles written in sass compile and display correctly. As it comes to the above line - I get the error:
Sass::SyntaxError
Invalid CSS after " $icons-Text ": expected ":", was "Edit-position: ..."

I understand that compass includers are included in the scss syntax (I can be wrong). How to heal?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Misyagin, 2015-05-28
@sunnmas

By the way@import "compass/reset" the way , it works without errors and the reset code gets into css
. In general, the answer was that there was a space in the icon file name. Now everything works with the code above.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question