OLD | NEW |
| (Empty) |
1 <!-- | |
2 @license | |
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
4 This code may only be used under the BSD style license found at http://polym
er.github.io/LICENSE.txt | |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS
.txt | |
6 The complete set of contributors may be found at http://polymer.github.io/CO
NTRIBUTORS.txt | |
7 Code distributed by Google as part of the polymer project is also | |
8 subject to an additional IP rights grant found at http://polymer.github.io/P
ATENTS.txt | |
9 --> | |
10 <!doctype html> | |
11 <html> | |
12 <head> | |
13 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> | |
14 | |
15 <title>paper-dialog</title> | |
16 <script src="../platform/platform.js"></script> | |
17 <link href="../font-roboto/roboto.html" rel="import"> | |
18 <link href="../paper-button/paper-button.html" rel="import"> | |
19 <link rel="import" href="paper-dialog-transition.html"> | |
20 <link href="paper-dialog.html" rel="import"> | |
21 <style> | |
22 body { | |
23 -webkit-transform: translateZ(0); | |
24 transform: translateZ(0); | |
25 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; | |
26 font-size: 16px; | |
27 color: rgba(0, 0, 0, 0.87); | |
28 } | |
29 | |
30 paper-dialog { | |
31 width: 50%; | |
32 min-width: 430px; | |
33 } | |
34 | |
35 p { | |
36 margin-bottom: 0; | |
37 } | |
38 | |
39 paper-dialog paper-button { | |
40 font-weight: bold; | |
41 } | |
42 | |
43 paper-button[autofocus] { | |
44 color: #4285f4; | |
45 } | |
46 </style> | |
47 </head> | |
48 <body unresolved> | |
49 <paper-dialog heading="Dialog" transition="paper-dialog-transition-center"> | |
50 <p>Lorem ipsum dolor sit amet, doming noster at quo, nostrud lucilius ration
ibus ea duo. Vim no mucius dolores. No bonorum voluptatum vis, has iudicabit con
sectetuer ne. Nullam sensibus vim id, et quo graeci perpetua.</p> | |
51 | |
52 <p>Id qui scripta laboramus dissentiet, verterem partiendo vim at. Stet diss
entiet ut mei. Iriure facilis eloquentiam pro eu, nec an esse inciderint. In mel
iore abhorreant sea. Eros nostro ocurreret at nec. Cu per regione persecuti.</p> | |
53 | |
54 <p>Lorem ipsum dolor sit amet, doming noster at quo, nostrud lucilius ration
ibus ea duo. Vim no mucius dolores. No bonorum voluptatum vis, has iudicabit con
sectetuer ne. Nullam sensibus vim id, et quo graeci perpetua.</p> | |
55 | |
56 <paper-button label="More Info..." dismissive></paper-button> | |
57 <paper-button label="Decline" affirmative></paper-button> | |
58 <paper-button label="Accept" affirmative autofocus></paper-button> | |
59 | |
60 </paper-dialog> | |
61 | |
62 <paper-dialog heading="Dialog" transition="paper-dialog-transition-bottom"> | |
63 <p>Lorem ipsum dolor sit amet, doming noster at quo, nostrud lucilius ration
ibus ea duo. Vim no mucius dolores. No bonorum voluptatum vis, has iudicabit con
sectetuer ne. Nullam sensibus vim id, et quo graeci perpetua.</p> | |
64 | |
65 <p>Id qui scripta laboramus dissentiet, verterem partiendo vim at. Stet diss
entiet ut mei. Iriure facilis eloquentiam pro eu, nec an esse inciderint. In mel
iore abhorreant sea. Eros nostro ocurreret at nec. Cu per regione persecuti.</p> | |
66 | |
67 <p>Lorem ipsum dolor sit amet, doming noster at quo, nostrud lucilius ration
ibus ea duo. Vim no mucius dolores. No bonorum voluptatum vis, has iudicabit con
sectetuer ne. Nullam sensibus vim id, et quo graeci perpetua.</p> | |
68 | |
69 <paper-button label="More Info..." dismissive></paper-button> | |
70 <paper-button label="Decline" affirmative></paper-button> | |
71 <paper-button label="Accept" affirmative autofocus></paper-button> | |
72 | |
73 </paper-dialog> | |
74 | |
75 <paper-button label="Transition A" onclick="toggleDialog('paper-dialog-transit
ion-bottom')"></paper-button> | |
76 <paper-button label="Transition B" onclick="toggleDialog('paper-dialog-transit
ion-center')"></paper-button> | |
77 <script> | |
78 function toggleDialog(transition) { | |
79 var dialog = document.querySelector('paper-dialog[transition=' + transitio
n + ']'); | |
80 dialog.toggle(); | |
81 } | |
82 </script> | |
83 | |
84 </body> | |
85 </html> | |
OLD | NEW |