| Index: third_party/polymer/components-chromium/core-icon/core-icon.html
|
| diff --git a/third_party/polymer/components-chromium/core-icon/core-icon.html b/third_party/polymer/components-chromium/core-icon/core-icon.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e48876206b1fc2974ea1a959d5efe9321a771ffc
|
| --- /dev/null
|
| +++ b/third_party/polymer/components-chromium/core-icon/core-icon.html
|
| @@ -0,0 +1,53 @@
|
| +<!--
|
| +Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
| +This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
| +The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
| +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
| +Code distributed by Google as part of the polymer project is also
|
| +subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
| +-->
|
| +<!--
|
| +
|
| +The `core-icon` element displays an icon. By default an icon renders as 24px square.
|
| +
|
| +Example using src:
|
| +
|
| + <core-icon src="star.png"></core-icon>
|
| +
|
| +Example setting size to 32px x 32px:
|
| +
|
| + <core-icon class="big" src="big_star.png"></core-icon>
|
| +
|
| + <style>
|
| + .big {
|
| + height: 32px;
|
| + width: 32px;
|
| + }
|
| + </style>
|
| +
|
| +Example using icon from default iconset:
|
| +
|
| + <core-icon icon="menu"></core-icon>
|
| +
|
| +Example using icon `cherry` from custom iconset `fruit`:
|
| +
|
| + <core-icon icon="fruit:cherry"></core-icon>
|
| +
|
| +See [core-iconset](#core-iconset) and [core-iconset-svg](#core-iconset-svg) for more information about
|
| +how to use a custom iconset.
|
| +
|
| +See [core-icons](http://www.polymer-project.org/components/core-icons/demo.html) for the default set of icons. To use the default set of icons you'll need to include an import for `core-icons.html`. To use a different built-in set of icons, you'll need to include an import for `core-icons/iconsets/<iconset>.html`.
|
| +
|
| +@group Polymer Core Elements
|
| +@element core-icon
|
| +@homepage polymer.github.io
|
| +-->
|
| +<link rel="import" href="../core-iconset/core-iconset.html">
|
| +
|
| +<link rel="stylesheet" href="core-icon.css" shim-shadowdom="">
|
| +
|
| +<polymer-element name="core-icon" attributes="src icon alt" assetpath="">
|
| +
|
| +
|
| +</polymer-element>
|
| +<script src="core-icon-extracted.js"></script>
|
|
|