I've recently switched to Material Design Lite from Polymer. I'm trying to understand what's best for what I need to do.
I've started with the demo toolbar on the MDL website (GETMDL) and I after copying it I tried to change the title font, however it doesn't seem to get that. Here's my code (index.html
):
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.0.6/material.indigo-pink.min.css">
<script src="./mdl/material.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>
<!-- Always shows a header, even in smaller screens. -->
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<div class="mdl-layout-title"> C. Piersigilli & Associati </div>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Title</span>
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="">Link</a>
<a class="mdl-navigation__link" href="">Link</a>
<a class="mdl-navigation__link" href="">Link</a>
<a class="mdl-navigation__link" href="">Link</a>
</nav>
</div>
<main class="mdl-layout__content">
<div class="page-content"></div>
</main>
</div>
</body>
</html>
And, here's style.css
div {
font-family: "Roboto Mono";
}
What I want to do is change the <div class="mdl-layout-title"> C. Piersigilli & Associati </div>
font type and after that change the toolbar color.
Although I've done that it doesn't work and I can't even manage to find a way to change the toolbar color.
Thanks in advance for your help!