MacViews: Get c/b/ui/views/tabs to build on Mac
[chromium-blink-merge.git] / third_party / polymer / components-chromium / paper-ripple / demo.html
blobbaef84fc84555f35ab10110b3d7c40c511d764f1
1 <!doctype html>
2 <html>
3 <head>
4 <title>paper-ripple</title>
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
7 <meta name="mobile-web-app-capable" content="yes">
8 <meta name="apple-mobile-web-app-capable" content="yes">
10 <script src="../platform/platform.js"></script>
12 <link rel="import" href="../core-icons/core-icons.html">
13 <link rel="import" href="paper-ripple.html">
14 <link rel="import" href="../font-roboto/roboto.html">
15 <link rel="import" href="../core-icon/core-icon.html">
17 <style shim-shadowdom>
19 body {
20 background-color: #f9f9f9;
21 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
22 -webkit-user-select: none;
23 -moz-user-select: none;
24 -ms-user-select: none;
25 user-select: none;
26 -webkit-tap-highlight-color: rgba(0,0,0,0);
27 -webkit-touch-callout: none;
30 section {
31 padding: 30px 25px;
34 section > * {
35 margin: 10px
38 /* Button */
39 .button {
40 display: inline-block;
41 position: relative;
42 width: 120px;
43 height: 32px;
44 line-height: 32px;
45 border-radius: 2px;
46 font-size: 0.9em;
47 background-color: #fff;
48 color: #646464;
51 .button > paper-ripple {
52 border-radius: 2px;
53 overflow: hidden;
56 .button.narrow {
57 width: 60px;
60 .button.grey {
61 background-color: #eee;
64 .button.blue {
65 background-color: #4285f4;
66 color: #fff;
69 .button.green {
70 background-color: #0f9d58;
71 color: #fff;
74 .button.raised {
75 transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
76 transition-delay: 0.2s;
77 box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
80 .button.raised:active {
81 box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);
82 transition-delay: 0s;
85 /* Icon Button */
86 .icon-button {
87 position: relative;
88 display: inline-block;
89 width: 56px;
90 height: 56px;
93 .icon-button > core-icon {
94 margin: 16px;
95 transition: -webkit-transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
96 transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
99 .icon-button:hover > core-icon {
100 -webkit-transform: scale(1.2);
101 transform: scale(1.2);
104 .icon-button > paper-ripple {
105 overflow: hidden;
106 color: #646464;
109 .icon-button.red > core-icon::shadow path {
110 fill: #db4437;
113 .icon-button.red > paper-ripple {
114 color: #db4437;
117 .icon-button.blue > core-icon::shadow path {
118 fill: #4285f4;
121 .icon-button.blue > paper-ripple {
122 color: #4285f4;
125 /* FAB */
126 .fab {
127 position: relative;
128 display: inline-block;
129 width: 56px;
130 height: 56px;
131 border-radius: 50%;
132 color: #fff;
133 overflow: hidden;
134 transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
135 transition-delay: 0.2s;
136 box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
139 .fab.red {
140 background-color: #d23f31;
143 .fab.blue {
144 background-color: #4285f4;
147 .fab.green {
148 background-color: #0f9d58;
151 .fab:active {
152 box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);
153 transition-delay: 0s;
156 .fab > core-icon {
157 margin: 16px;
160 .fab > core-icon::shadow path {
161 fill: #fff;
164 /* Menu */
165 .menu {
166 display: inline-block;
167 width: 180px;
168 background-color: #fff;
169 box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);
172 .item {
173 position: relative;
174 height: 48px;
175 line-height: 48px;
176 color: #646464;
177 font-size: 0.9em;
180 .menu.blue > .item {
181 color: #4285f4;
184 /* Card, Dialog */
185 .card, .dialog {
186 position: relative;
187 display: inline-block;
188 width: 300px;
189 height: 240px;
190 vertical-align: top;
191 background-color: #fff;
192 box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24);
195 .dialog {
196 box-sizing: border-box;
197 padding: 16px;
200 .dialog > .content {
201 height: 170px;
202 font-size: 0.9em;
205 .dialog > .content > .title {
206 font-size: 1.3em;
209 .dialog > .button {
210 width: 90px;
211 float: right;
214 .card.image {
215 background: url(http://lorempixel.com/300/240/nature/);
216 color: #fff;
219 /* Misc */
220 .center {
221 text-align: center;
224 .label {
225 padding: 0 16px;
228 .label-blue {
229 color: #4285f4;
232 .label-red {
233 color: #d23f31;
236 </style>
238 </head>
239 <body unresolved>
241 <section>
243 <div class="button raised">
244 <div class="center" fit>SUBMIT</div>
245 <paper-ripple fit></paper-ripple>
246 </div>
248 <div class="button raised grey">
249 <div class="center" fit>CANCEL</div>
250 <paper-ripple fit></paper-ripple>
251 </div>
253 <div class="button raised blue">
254 <div class="center" fit>COMPOSE</div>
255 <paper-ripple fit></paper-ripple>
256 </div>
258 <div class="button raised green">
259 <div class="center" fit>OK</div>
260 <paper-ripple fit></paper-ripple>
261 </div>
263 </section>
265 <section>
267 <div class="button raised grey narrow">
268 <div class="center" fit>+1</div>
269 <paper-ripple fit></paper-ripple>
270 </div>
272 <div class="button raised grey narrow label-blue">
273 <div class="center" fit>+1</div>
274 <paper-ripple fit></paper-ripple>
275 </div>
277 <div class="button raised grey narrow label-red">
278 <div class="center" fit>+1</div>
279 <paper-ripple fit></paper-ripple>
280 </div>
282 </section>
284 <section>
286 <div class="icon-button">
287 <core-icon icon="menu"></core-icon>
288 <paper-ripple class="circle recenteringTouch" fit></paper-ripple>
289 </div>
291 <div class="icon-button">
292 <core-icon icon="more-vert"></core-icon>
293 <paper-ripple class="circle recenteringTouch" fit></paper-ripple>
294 </div>
296 <div class="icon-button red">
297 <core-icon icon="delete"></core-icon>
298 <paper-ripple class="circle recenteringTouch" fit></paper-ripple>
299 </div>
301 <div class="icon-button blue">
302 <core-icon icon="account-box"></core-icon>
303 <paper-ripple class="circle recenteringTouch" fit></paper-ripple>
304 </div>
306 </section>
308 <section>
310 <div class="fab red">
311 <core-icon icon="add"></core-icon>
312 <paper-ripple class="circle recenteringTouch" fit></paper-ripple>
313 </div>
315 <div class="fab blue">
316 <core-icon icon="mail"></core-icon>
317 <paper-ripple class="circle recenteringTouch" fit></paper-ripple>
318 </div>
320 <div class="fab green">
321 <core-icon icon="create"></core-icon>
322 <paper-ripple class="circle recenteringTouch" fit></paper-ripple>
323 </div>
325 </section>
327 <section>
329 <div class="menu">
331 <div class="item">
332 <div class="label" fit>Mark as unread</div>
333 <paper-ripple fit></paper-ripple>
334 </div>
335 <div class="item">
336 <div class="label" fit>Mark as important</div>
337 <paper-ripple fit></paper-ripple>
338 </div>
339 <div class="item">
340 <div class="label" fit>Add to Tasks</div>
341 <paper-ripple fit></paper-ripple>
342 </div>
343 <div class="item">
344 <div class="label" fit>Create event</div>
345 <paper-ripple fit></paper-ripple>
346 </div>
348 </div>
350 <div class="menu blue">
352 <div class="item">
353 <div class="label" fit>Import</div>
354 <paper-ripple fit></paper-ripple>
355 </div>
356 <div class="item">
357 <div class="label" fit>Export</div>
358 <paper-ripple fit></paper-ripple>
359 </div>
360 <div class="item">
361 <div class="label" fit>Print</div>
362 <paper-ripple fit></paper-ripple>
363 </div>
364 <div class="item">
365 <div class="label" fit>Restore contacts</div>
366 <paper-ripple fit></paper-ripple>
367 </div>
369 </div>
371 </section>
373 <section>
375 <div class="dialog">
377 <div class="content">
378 <div class="title">Permission</div><br>
379 <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</div>
380 </div>
382 <div class="button label-blue">
383 <div class="center" fit>ACCEPT</div>
384 <paper-ripple fit></paper-ripple>
385 </div>
387 <div class="button">
388 <div class="center" fit>DECLINE</div>
389 <paper-ripple fit></paper-ripple>
390 </div>
392 </div>
394 <div class="card">
396 <paper-ripple class="recenteringTouch" fit></paper-ripple>
398 </div>
400 <div class="card image">
402 <paper-ripple class="recenteringTouch" fit></paper-ripple>
404 </div>
406 </section>
408 </body>
409 </html>