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 like
to leftinstead of
right.
Now, I understand that the linear-gradient
new 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
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%);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With