mirror of
https://github.com/material-components/material-web.git
synced 2024-10-27 14:07:17 +03:00
05754a4d3e
Updated to render using a Ripple directive.
75 lines
2.1 KiB
HTML
75 lines
2.1 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>ripple 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-ripple/mwc-ripple.js"></script>
|
|
<script type="module" src="../node_modules/@material/mwc-icon/mwc-icon.js"></script>
|
|
<link rel="stylesheet" href="demo-component.css">
|
|
<style>
|
|
|
|
.demo-box {
|
|
width: 128px;
|
|
height: 128px;
|
|
border: 1px solid gray;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
text-align: center;
|
|
flex-direction: column;
|
|
padding: 8px;
|
|
}
|
|
|
|
.demo-container {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.demo-container > * {
|
|
margin: 16px;
|
|
}
|
|
|
|
.demo-unbounded {
|
|
padding: 8px;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body class="unresolved">
|
|
|
|
<header>
|
|
<a href="index.html"><mwc-icon>arrow_back</mwc-icon>
|
|
<span>Ripple</span></a>
|
|
</header>
|
|
|
|
<main>
|
|
<div class="demo-container">
|
|
<div class="demo-box">Primary<mwc-ripple primary></mwc-ripple></div>
|
|
<div class="demo-box">Accent<mwc-ripple accent></mwc-ripple></div>
|
|
<div class="demo-box"><input placeholder="Say something..."><mwc-ripple></mwc-ripple></div>
|
|
<div class="demo-box">Unbounded<mwc-ripple unbounded></mwc-ripple></div>
|
|
</div>
|
|
</main>
|
|
|
|
<script>
|
|
addEventListener('load', () => document.body.classList.remove('unresolved'));
|
|
</script>
|
|
</body>
|
|
</html>
|