OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 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 |
| 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 |
| 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 |
| 9 --> |
| 10 |
| 11 <html> |
| 12 <head> |
| 13 |
| 14 <title>iron-icons</title> |
| 15 |
| 16 <!-- polyfill WebComponents, if needed --> |
| 17 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 18 |
| 19 <!-- styles for the demo --> |
| 20 <link href="../../paper-styles/demo-pages.html" rel="import"> |
| 21 |
| 22 <!-- load layout classes --> |
| 23 <link rel="import" href="../../iron-flex-layout/classes/iron-flex-layout.html"
> |
| 24 |
| 25 <!-- load default iconset --> |
| 26 <link rel="import" href="../iron-icons.html"> |
| 27 |
| 28 <!-- load the rest --> |
| 29 <link rel="import" href="../av-icons.html"> |
| 30 <link rel="import" href="../communication-icons.html"> |
| 31 <link rel="import" href="../device-icons.html"> |
| 32 <link rel="import" href="../editor-icons.html"> |
| 33 <link rel="import" href="../hardware-icons.html"> |
| 34 <link rel="import" href="../image-icons.html"> |
| 35 <link rel="import" href="../maps-icons.html"> |
| 36 <link rel="import" href="../notification-icons.html"> |
| 37 <link rel="import" href="../social-icons.html"> |
| 38 |
| 39 <style is="custom-style"> |
| 40 |
| 41 h2 { |
| 42 text-transform: capitalize; |
| 43 } |
| 44 |
| 45 iron-icon { |
| 46 transition: all 0.2s; |
| 47 -webkit-transition: all 0.2s; |
| 48 } |
| 49 |
| 50 iron-icon:hover { |
| 51 fill: var(--google-yellow-700); |
| 52 } |
| 53 |
| 54 .set { |
| 55 margin: auto; |
| 56 padding: 1em 0; |
| 57 border-bottom: 1px solid silver; |
| 58 } |
| 59 |
| 60 .set:last-of-type { |
| 61 border-bottom: none; |
| 62 } |
| 63 |
| 64 .set:nth-of-type(4n-3) { |
| 65 color: var(--paper-grey-700); |
| 66 } |
| 67 |
| 68 .set:nth-of-type(4n-2) { |
| 69 color: var(--google-yellow-300); |
| 70 } |
| 71 |
| 72 .set:nth-of-type(4n-1) { |
| 73 color: var(--google-green-500); |
| 74 } |
| 75 |
| 76 .set:nth-of-type(4n) { |
| 77 color: var( --google-blue-500); |
| 78 } |
| 79 |
| 80 .container { |
| 81 min-width: 10em; |
| 82 padding: 1em 0.5em; |
| 83 text-align: center; |
| 84 } |
| 85 |
| 86 .container > div { |
| 87 margin-top: 0.5em; |
| 88 color: black; |
| 89 font-size: 10px; |
| 90 } |
| 91 |
| 92 </style> |
| 93 |
| 94 </head> |
| 95 <body> |
| 96 |
| 97 |
| 98 <template is="dom-bind"> |
| 99 |
| 100 <iron-meta type="iconset" list="{{iconsets}}"></iron-meta> |
| 101 |
| 102 <template is="dom-repeat" items="{{iconsets}}"> |
| 103 |
| 104 <h2>{{item.name}}</h2> |
| 105 |
| 106 <div class="set horizontal wrap layout"> |
| 107 |
| 108 <template is="dom-repeat" items="{{getIconNames(item)}}"> |
| 109 |
| 110 <span class="container vertical center layout flex-1"> |
| 111 <iron-icon icon="{{item}}"></iron-icon> |
| 112 <div>{{item}}</div> |
| 113 </span> |
| 114 |
| 115 </template> |
| 116 |
| 117 </div> |
| 118 |
| 119 </template> |
| 120 |
| 121 </template> |
| 122 |
| 123 <script> |
| 124 |
| 125 document.querySelector('[is=dom-bind]').getIconNames = function(iconset) { |
| 126 return iconset.getIconNames(); |
| 127 }; |
| 128 |
| 129 </script> |
| 130 |
| 131 </body> |
| 132 </html> |
OLD | NEW |