Topic: How to put mdbootstrap files into Ruby on Rails project?
Michal Szymanski staff pro premium priority answered 9 years ago
lcrv pro answered 9 years ago
javascript_include_tag 'mdb.min'
stylesheet_link_tag "mdb.css"
Lukis92 answered 9 years ago
Michal Szymanski staff pro premium priority answered 9 years ago
kodero pro answered 7 years ago
Michal Szymanski staff pro premium priority answered 6 years ago
Here you can find a tutorial: https://mdbootstrap.com/articles/jquery/md-bootstrap-ruby-on-rails-tutorial/
Arslan Asif answered 6 years ago
how can we attach scss files ? and access variable .. i tried it adding to project css directory and @import mdb.scss in application.scss but it gives the following error
Undefined variable: "$mdb-colors-1".
MDBootstrap staff pro premium priority answered 5 years ago
Hi Arslan Asif,
You need to @import all scss files to compile mdb.scss styles. File mdb.scss is used to import every part of our custom styles, with your custom styles at the end to overwrite ours. We compile them in gulp as a default, but you can use any scss compiler to do that.
Best Regards, Piotr
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No