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.

a screenshot of front page of website. styled materialize css. roboto font not being rendered correctly. replaced font.

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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -