Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: polymer_1.0.4/bower_components/paper-material/demo/index.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <!--
3 @license
4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
8 Code distributed by Google as part of the polymer project is also
9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
10 -->
11 <html>
12 <head>
13 <title>paper-material demo</title>
14
15 <meta charset="utf-8">
16 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
17 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial- scale=1, user-scalable=yes">
18
19 <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
20 <link rel="import" href="../../iron-flex-layout/classes/iron-flex-layout.html" >
21 <link rel="import" href="../../paper-styles/typography.html">
22 <link rel="import" href="../paper-material.html">
23
24 <link rel="stylesheet" href="../../paper-styles/demo.css">
25
26 </head>
27 <body>
28 <template is="dom-bind" id="demo">
29 <style>
30 paper-material {
31 display: inline-block;
32 background: white;
33 box-sizing: border-box;
34 margin: 16px;
35 padding: 16px;
36 border-radius: 2px;
37 }
38
39 .fab {
40 display: inline-block;
41 background: white;
42 box-sizing: border-box;
43 width: 56px;
44 height: 56px;
45 margin: 16px;
46 padding: 16px;
47 border-radius: 50%;
48 text-align: center;
49 cursor: pointer;
50 }
51 </style>
52 <section>
53 <div>Paper Elevations</div>
54
55 <paper-material elevation="0">
56 elevation = 0
57 </paper-material>
58
59 <paper-material elevation="1">
60 elevation = 1
61 </paper-material>
62
63 <paper-material elevation="2">
64 elevation = 2
65 </paper-material>
66
67 <paper-material elevation="3">
68 elevation = 3
69 </paper-material>
70
71 <paper-material elevation="4">
72 elevation = 4
73 </paper-material>
74
75 <paper-material elevation="5">
76 elevation = 5
77 </paper-material>
78 </section>
79
80 <section on-click="tapAction">
81 <div>Animated</div>
82
83 <paper-material elevation="0" animated>
84 tap
85 </paper-material>
86
87 <paper-material class="fab layout center-center" elevation="0" animated>
88 tap
89 </paper-material>
90 </section>
91 </template>
92
93 <script>
94
95 demo.tapAction = function(e) {
96 var target = e.target;
97 if (!target.down) {
98 target.elevation += 1;
99 if (target.elevation === 5) {
100 target.down = true;
101 }
102 } else {
103 target.elevation -= 1;
104 if (target.elevation === 0) {
105 target.down = false;
106 }
107 }
108 };
109
110 </script>
111
112 </body>
113 </html>
OLDNEW
« no previous file with comments | « polymer_1.0.4/bower_components/paper-material/bower.json ('k') | polymer_1.0.4/bower_components/paper-material/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698