Topic: How to put mdbootstrap files into Ruby on Rails project?
Lukis92 free asked 8 years ago
MDBootstrap staff 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
Arslan Asif free answered 5 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".
Michal Szymanski staff answered 5 years ago
Here you can find a tutorial: https://mdbootstrap.com/articles/jquery/md-bootstrap-ruby-on-rails-tutorial/
kodero pro answered 6 years ago
Michal Szymanski staff answered 8 years ago
Lukis92 free answered 8 years ago
lcrv pro answered 8 years ago
javascript_include_tag 'mdb.min'
stylesheet_link_tag "mdb.css"
Michal Szymanski staff answered 8 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No