Closed PavanOnRails closed 5 years ago
hi @PavanOnRails, i'm using the same code in the demo, and suppose this works fine.. see: application.scss
maybe it clash with another scss file?
Hi @mkhairi Sorry for the late response. I'm sure its the problem with materialize content in the application.css.scss
. I even checked by removing the materialize content from my application.css.scss
and my app works fine.
I've updated the gem to 1.0.0
but the error persists. If I remove
$primary-color: color("blue", "lighten-2") !default;
$secondary-color: color("yellow", "base") !default;
from application.css.scss
, I've a new error which says
Invalid CSS after ".blue.": expected class name, was "#007bff"
@PavanOnRails, I'm pretty sure you are using with other CSS framework (eg: bootstrap) in your application.scss file. There is incompatibility issue if you multiple sass base framework sience they are using the same name sass mixins or function. Otherwise separate theme in different file.
Using
Rails 5.0.0
and trying to integrategem 'materialize-sass', '~> 1.0.0.rc2'
into my application, but the app broke with the below errorSteps:
gem 'materialize-sass', '~> 1.0.0.rc2'
intoGemfile
and donebundle install
into my
application.css.scss
//= require materialize-sprockets
toapplication.js
Any help is appreciated, TIA