mirror of
https://github.com/material-components/material-web.git
synced 2024-10-27 14:07:17 +03:00
af4ea8e0c2
Let's just have the one way to load fonts, as documented in our README. Updated all the demos to use the same recommendation.
64 lines
2.0 KiB
HTML
64 lines
2.0 KiB
HTML
<!doctype html>
|
|
<!--
|
|
@license
|
|
Copyright 2018 Google Inc. All Rights Reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<html>
|
|
<head>
|
|
<title>icon demo</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
|
|
<script type="module" src="../node_modules/@material/mwc-icon/mwc-icon.js"></script>
|
|
<link rel="stylesheet" href="demo-component.css">
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet">
|
|
<style>
|
|
|
|
.color-size {
|
|
color: tomato;
|
|
--mdc-icon-size: 4em;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="unresolved">
|
|
<header>
|
|
<a href="index.html"><mwc-icon>arrow_back</mwc-icon>
|
|
<span>Icon</span></a>
|
|
</header>
|
|
|
|
<main>
|
|
<div class="demo-group">
|
|
<mwc-icon>sentiment_very_dissatisfied</mwc-icon>
|
|
<mwc-icon>sentiment_dissatisfied</mwc-icon>
|
|
<mwc-icon>sentiment_neutral</mwc-icon>
|
|
<mwc-icon>sentiment_satisfied</mwc-icon>
|
|
<mwc-icon>sentiment_very_satisfied</mwc-icon>
|
|
</div>
|
|
|
|
<h4>color and size</h4>
|
|
<div class="demo-group color-size">
|
|
<mwc-icon>all_out</mwc-icon>
|
|
<mwc-icon>accessibility</mwc-icon>
|
|
<mwc-icon>exit_to_app</mwc-icon>
|
|
<mwc-icon>camera</mwc-icon>
|
|
</div>
|
|
</main>
|
|
|
|
<script>
|
|
addEventListener('load', () => document.body.classList.remove('unresolved'));
|
|
</script>
|
|
</body>
|
|
</html>
|