| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <!-- | 2 <!-- |
| 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 --> | 9 --> |
| 10 <html> | 10 <html> |
| 11 <head> | 11 <head> |
| 12 <meta charset="utf-8"> | 12 <meta charset="utf-8"> |
| 13 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> | 13 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> |
| 14 | 14 |
| 15 <title>paper-toolbar demo</title> | 15 <title>paper-toolbar demo</title> |
| 16 | 16 |
| 17 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> | 17 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 18 | 18 |
| 19 <link rel="import" href="../../iron-icons/iron-icons.html"> | 19 <link rel="import" href="../../iron-icons/iron-icons.html"> |
| 20 <link rel="import" href="../../paper-icon-button/paper-icon-button.html"> | 20 <link rel="import" href="../../paper-icon-button/paper-icon-button.html"> |
| 21 <link rel="import" href="../../paper-styles/paper-styles.html"> | |
| 22 <link rel="import" href="../paper-toolbar.html"> | 21 <link rel="import" href="../paper-toolbar.html"> |
| 22 <link rel="import" href="../../iron-flex-layout/iron-flex-layout.html"> |
| 23 | 23 |
| 24 <style> | 24 <style is="custom-style"> |
| 25 paper-toolbar + paper-toolbar { | 25 paper-toolbar + paper-toolbar { |
| 26 margin-top: 20px; | 26 margin-top: 20px; |
| 27 } | 27 } |
| 28 paper-toolbar.red { |
| 29 --paper-toolbar-background: red; |
| 30 } |
| 31 .spacer { |
| 32 @apply(--layout-flex); |
| 33 } |
| 28 </style> | 34 </style> |
| 29 | 35 |
| 30 </head> | 36 </head> |
| 31 <body> | 37 <body unresolved> |
| 32 | 38 |
| 33 <paper-toolbar> | 39 <paper-toolbar> |
| 34 <paper-icon-button icon="menu"></paper-icon-button> | 40 <paper-icon-button icon="menu"></paper-icon-button> |
| 35 <span class="title">Toolbar</span> | 41 <span class="title">Toolbar</span> |
| 36 <paper-icon-button icon="refresh"></paper-icon-button> | 42 <paper-icon-button icon="refresh"></paper-icon-button> |
| 37 <paper-icon-button icon="add">+</paper-icon-button> | 43 <paper-icon-button icon="add">+</paper-icon-button> |
| 38 </paper-toolbar> | 44 </paper-toolbar> |
| 39 | 45 |
| 46 <paper-toolbar class="red"> |
| 47 <paper-icon-button icon="menu"></paper-icon-button> |
| 48 <span class="title">Toolbar: custom background color</span> |
| 49 <paper-icon-button icon="refresh"></paper-icon-button> |
| 50 <paper-icon-button icon="add">+</paper-icon-button> |
| 51 </paper-toolbar> |
| 52 |
| 40 <paper-toolbar class="tall"> | 53 <paper-toolbar class="tall"> |
| 41 <paper-icon-button icon="menu"></paper-icon-button> | 54 <paper-icon-button icon="menu"></paper-icon-button> |
| 42 <span class="title">Toolbar: tall</span> | 55 <span class="title">Toolbar: tall</span> |
| 43 <paper-icon-button icon="refresh"></paper-icon-button> | 56 <paper-icon-button icon="refresh"></paper-icon-button> |
| 44 <paper-icon-button icon="add">+</paper-icon-button> | 57 <paper-icon-button icon="add">+</paper-icon-button> |
| 45 </paper-toolbar> | 58 </paper-toolbar> |
| 46 | 59 |
| 47 <paper-toolbar class="tall"> | 60 <paper-toolbar class="tall"> |
| 48 <paper-icon-button icon="menu" class="bottom"></paper-icon-button> | 61 <paper-icon-button icon="menu" class="bottom"></paper-icon-button> |
| 49 <span class="bottom title">Toolbar: tall with elements pin to the bottom</sp
an> | 62 <span class="bottom title">Toolbar: tall with elements pin to the bottom</sp
an> |
| 50 <paper-icon-button icon="refresh" class="bottom"></paper-icon-button> | 63 <paper-icon-button icon="refresh" class="bottom"></paper-icon-button> |
| 51 <paper-icon-button icon="add" class="bottom">+</paper-icon-button> | 64 <paper-icon-button icon="add" class="bottom">+</paper-icon-button> |
| 52 </paper-toolbar> | 65 </paper-toolbar> |
| 53 | 66 |
| 54 <paper-toolbar class="medium-tall"> | 67 <paper-toolbar class="medium-tall"> |
| 55 <paper-icon-button icon="menu"></paper-icon-button> | 68 <paper-icon-button icon="menu"></paper-icon-button> |
| 56 <span class="flex"></span> | 69 <span class="spacer"></span> |
| 57 <paper-icon-button icon="refresh"></paper-icon-button> | 70 <paper-icon-button icon="refresh"></paper-icon-button> |
| 58 <paper-icon-button icon="add">+</paper-icon-button> | 71 <paper-icon-button icon="add">+</paper-icon-button> |
| 59 <span class="bottom title">Toolbar: medium-tall with label aligns to the bot
tom</span> | 72 <span class="bottom title">Toolbar: medium-tall with label aligns to the bot
tom</span> |
| 60 </paper-toolbar> | 73 </paper-toolbar> |
| 61 | 74 |
| 62 <paper-toolbar class="tall"> | 75 <paper-toolbar class="tall"> |
| 63 <paper-icon-button icon="menu"></paper-icon-button> | 76 <paper-icon-button icon="menu"></paper-icon-button> |
| 64 <div class="flex"></div> | 77 <div class="spacer"></div> |
| 65 <paper-icon-button icon="refresh"></paper-icon-button> | 78 <paper-icon-button icon="refresh"></paper-icon-button> |
| 66 <paper-icon-button icon="add">+</paper-icon-button> | 79 <paper-icon-button icon="add">+</paper-icon-button> |
| 67 <div class="middle title">label aligns to the middle</div> | 80 <div class="middle title">label aligns to the middle</div> |
| 68 <div class="bottom title">some stuffs align to the bottom</div> | 81 <div class="bottom title">some stuffs align to the bottom</div> |
| 69 </paper-toolbar> | 82 </paper-toolbar> |
| 70 | 83 |
| 71 <paper-toolbar class="tall"> | 84 <paper-toolbar class="tall"> |
| 72 <paper-icon-button icon="menu"></paper-icon-button> | 85 <paper-icon-button icon="menu"></paper-icon-button> |
| 73 <div class="flex"></div> | 86 <div class="spacer"></div> |
| 74 <paper-icon-button icon="refresh"></paper-icon-button> | 87 <paper-icon-button icon="refresh"></paper-icon-button> |
| 75 <paper-icon-button icon="add">+</paper-icon-button> | 88 <paper-icon-button icon="add">+</paper-icon-button> |
| 76 <div class="middle title">element (e.g. progress) fits at the bottom of the
toolbar</div> | 89 <div class="middle title">element (e.g. progress) fits at the bottom of the
toolbar</div> |
| 77 <div class="bottom flex" style="height: 20px; background-color: #0f9d58;"></
div> | 90 <div class="bottom fit" style="height: 20px; background-color: #0f9d58;"></d
iv> |
| 78 </paper-toolbar> | 91 </paper-toolbar> |
| 79 | 92 |
| 80 </body> | 93 </body> |
| 81 </html> | 94 </html> |
| OLD | NEW |