| 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="../iron-meta/iron-meta.html"> | 10 <link rel="import" href="../iron-meta/iron-meta.html"> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 <iron-icon class="big" src="big_star.png"></iron-icon> | 23 <iron-icon class="big" src="big_star.png"></iron-icon> |
| 24 | 24 |
| 25 <style is="custom-style"> | 25 <style is="custom-style"> |
| 26 .big { | 26 .big { |
| 27 --iron-icon-height: 32px; | 27 --iron-icon-height: 32px; |
| 28 --iron-icon-width: 32px; | 28 --iron-icon-width: 32px; |
| 29 } | 29 } |
| 30 </style> | 30 </style> |
| 31 | 31 |
| 32 The iron elements include several sets of icons. | 32 The iron elements include several sets of icons. |
| 33 To use the default set of icons, import `iron-icons.html` and use the `icon` at
tribute to specify an icon: | 33 To use the default set of icons, import `iron-icons.html` and use the `icon` att
ribute to specify an icon: |
| 34 | 34 |
| 35 <!-- import default iconset and iron-icon --> | |
| 36 <link rel="import" href="/components/iron-icons/iron-icons.html"> | 35 <link rel="import" href="/components/iron-icons/iron-icons.html"> |
| 37 | 36 |
| 38 <iron-icon icon="menu"></iron-icon> | 37 <iron-icon icon="menu"></iron-icon> |
| 39 | 38 |
| 40 To use a different built-in set of icons, import `iron-icons/<iconset>-icons.ht
ml`, and | 39 To use a different built-in set of icons, import the specific `iron-icons/<icons
et>-icons.html`, and |
| 41 specify the icon as `<iconset>:<icon>`. For example: | 40 specify the icon as `<iconset>:<icon>`. For example, to use a communication icon
, you would |
| 41 use: |
| 42 | 42 |
| 43 <!-- import communication iconset and iron-icon --> | |
| 44 <link rel="import" href="/components/iron-icons/communication-icons.html"> | 43 <link rel="import" href="/components/iron-icons/communication-icons.html"> |
| 45 | 44 |
| 46 <iron-icon icon="communication:email"></iron-icon> | 45 <iron-icon icon="communication:email"></iron-icon> |
| 47 | 46 |
| 48 You can also create custom icon sets of bitmap or SVG icons. | 47 You can also create custom icon sets of bitmap or SVG icons. |
| 49 | 48 |
| 50 Example of using an icon named `cherry` from a custom iconset with the ID `fruit
`: | 49 Example of using an icon named `cherry` from a custom iconset with the ID `fruit
`: |
| 51 | 50 |
| 52 <iron-icon icon="fruit:cherry"></iron-icon> | 51 <iron-icon icon="fruit:cherry"></iron-icon> |
| 53 | 52 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 84 vertical-align: middle; | 83 vertical-align: middle; |
| 85 | 84 |
| 86 fill: currentcolor; | 85 fill: currentcolor; |
| 87 | 86 |
| 88 width: var(--iron-icon-width, 24px); | 87 width: var(--iron-icon-width, 24px); |
| 89 height: var(--iron-icon-height, 24px); | 88 height: var(--iron-icon-height, 24px); |
| 90 } | 89 } |
| 91 </style> | 90 </style> |
| 92 | 91 |
| 93 <template> | 92 <template> |
| 94 <iron-meta id="meta" type="iconset"></iron-meta> | |
| 95 </template> | 93 </template> |
| 96 | 94 |
| 97 </dom-module> | 95 </dom-module> |
| 98 <script src="iron-icon-extracted.js"></script></body></html> | 96 <script src="iron-icon-extracted.js"></script></body></html> |
| OLD | NEW |