Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autoprefixer hell - Rails

So, I'm trying to precompile my assets in Ruby on Rails, but every time I do it gives me:
autoprefixer: /Desktop/Job/RailsApp/app/assets/stylesheets/application.scss:32473:3: Gradient has outdated direction syntax. New syntax is liketo leftinstead ofright.

Now, I understand that the linear-gradientnew syntax should be like it says, "to left" instead of "right". And if it's "top" then it should be "to bottom". I've gone through all of my css files and changed all of those lines of code to conform to the syntax.

But, I'm still getting that "error"? Which seems to be slowing down my page loading on my web-rails/app.

More or less, my question is if anyone knows how to fix this?
Also, is there any way for me to look at the application.scss and decifer the ":32473:3"? I've looked in that file and formatted the code for scss, but when I look at the 32,473rd line there isn't any "linear-gradient" there...

I have a mix of scss and css files, I don't know if that makes a difference when precompiling?

I'm using:
Rails 4.2.6
ruby 2.2.3p173

like image 638
Corey Avatar asked Dec 18 '22 18:12

Corey


1 Answers

Despite autoprefixer saying "New syntax is like to left instead of right" it had to do with the top to bottom syntax for me.

ERROR:

 background: linear-gradient(top, #f5c304 50%,#d6a900 100%);

NO ERROR:

 background: linear-gradient(to bottom, #f5c304 50%,#d6a900 100%);
like image 180
mediaguru Avatar answered Jan 01 '23 08:01

mediaguru