| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.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/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also | 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/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 10 <link rel="import" href="../neon-animation/neon-animation-runner-behavior.html"> | 10 <link rel="import" href="../neon-animation/neon-animation-runner-behavior.html"> |
| 11 <link rel="import" href="../paper-dialog-behavior/paper-dialog-behavior.html"> | 11 <link rel="import" href="../paper-dialog-behavior/paper-dialog-behavior.html"> |
| 12 <link rel="import" href="../paper-styles/paper-styles.html"> | 12 <link rel="import" href="../paper-dialog-behavior/paper-dialog-shared-styles.htm
l"> |
| 13 <!-- |
| 14 Material design: [Dialogs](https://www.google.com/design/spec/components/dialogs
.html) |
| 13 | 15 |
| 14 <!-- | |
| 15 `<paper-dialog>` is a dialog with Material Design styling and optional animation
s when it is | 16 `<paper-dialog>` is a dialog with Material Design styling and optional animation
s when it is |
| 16 opened or closed. It provides styles for a header, content area, and an action a
rea for buttons. | 17 opened or closed. It provides styles for a header, content area, and an action a
rea for buttons. |
| 17 You can use the `<paper-dialog-scrollable` element (in its own repository) if yo
u need a scrolling | 18 You can use the `<paper-dialog-scrollable>` element (in its own repository) if y
ou need a scrolling |
| 18 content area. See `Polymer.PaperDialogBehavior` for specifics. | 19 content area. See `Polymer.PaperDialogBehavior` for specifics. |
| 19 | 20 |
| 20 For example, the following code implements a dialog with a header, scrolling con
tent area and | 21 For example, the following code implements a dialog with a header, scrolling con
tent area and |
| 21 buttons. | 22 buttons. |
| 22 | 23 |
| 23 <paper-dialog> | 24 <paper-dialog> |
| 24 <h2>Header</h2> | 25 <h2>Header</h2> |
| 25 <paper-dialog-scrollable> | 26 <paper-dialog-scrollable> |
| 26 Lorem ipsum... | 27 Lorem ipsum... |
| 27 </paper-dialog-scrollable> | 28 </paper-dialog-scrollable> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 58 See the docs for `Polymer.PaperDialogBehavior` for accessibility features implem
ented by this | 59 See the docs for `Polymer.PaperDialogBehavior` for accessibility features implem
ented by this |
| 59 element. | 60 element. |
| 60 | 61 |
| 61 @group Paper Elements | 62 @group Paper Elements |
| 62 @element paper-dialog | 63 @element paper-dialog |
| 63 @hero hero.svg | 64 @hero hero.svg |
| 64 @demo demo/index.html | 65 @demo demo/index.html |
| 65 --> | 66 --> |
| 66 | 67 |
| 67 </head><body><dom-module id="paper-dialog"> | 68 </head><body><dom-module id="paper-dialog"> |
| 68 | |
| 69 <link rel="import" type="css" href="../paper-dialog-behavior/paper-dialog-comm
on.css"> | |
| 70 | |
| 71 <template> | 69 <template> |
| 70 <style include="paper-dialog-shared-styles"></style> |
| 72 <content></content> | 71 <content></content> |
| 73 </template> | 72 </template> |
| 74 | |
| 75 </dom-module> | 73 </dom-module> |
| 76 | 74 |
| 77 <script src="paper-dialog-extracted.js"></script></body></html> | 75 <script src="paper-dialog-extracted.js"></script></body></html> |
| OLD | NEW |