html - Materialize CSS / Rails: Roboto font not loading, not all CSS being applied -
using ruby on rails , materialize css, roboto font not rendering.
additionally, button text not being styled correctly, not bold, , grey if click on button.
my layout:
application.html.erb
<!doctype html> <html> <head> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %> <link href="https://fonts.googleapis.com/icon?family=material+icons" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=roboto" rel="stylesheet"> <link href="https://fonts.googleapis.com/icon?family=material+icons" rel="stylesheet"> <title><%= yield(:title) %></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script> </head> <body> <%= yield %> </body> </html>
i not able figure out. can please me?
things have tried:
- using
materialize-sass
gem - loading font manually
- installing font on computer
the solution
there css rules predefined within scaffolds.css.scss
setting font verdana. removing them solved problem.
Comments
Post a Comment