Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-icon/iron-icon.html

Issue 2314283002: Roll Polymer (Closed)
Patch Set: dep Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 use the [poly-icon](https://poly-icon.appspot.com/) tool. It allows you 60 use the [poly-icon](https://poly-icon.appspot.com/) tool. It allows you
61 to select individual icons, and creates an iconset from them that you can 61 to select individual icons, and creates an iconset from them that you can
62 use directly in your elements. 62 use directly in your elements.
63 63
64 ### Styling 64 ### Styling
65 65
66 The following custom properties are available for styling: 66 The following custom properties are available for styling:
67 67
68 Custom property | Description | Default 68 Custom property | Description | Default
69 ----------------|-------------|---------- 69 ----------------|-------------|----------
70 `--iron-icon` | Mixin applied to the icon | {}
70 `--iron-icon-width` | Width of the icon | `24px` 71 `--iron-icon-width` | Width of the icon | `24px`
71 `--iron-icon-height` | Height of the icon | `24px` 72 `--iron-icon-height` | Height of the icon | `24px`
72 `--iron-icon-fill-color` | Fill color of the svg icon | `currentcolor` 73 `--iron-icon-fill-color` | Fill color of the svg icon | `currentcolor`
73 `--iron-icon-stroke-color` | Stroke color of the svg icon | none 74 `--iron-icon-stroke-color` | Stroke color of the svg icon | none
74 75
75 @group Iron Elements 76 @group Iron Elements
76 @element iron-icon 77 @element iron-icon
77 @demo demo/index.html 78 @demo demo/index.html
78 @hero hero.svg 79 @hero hero.svg
79 @homepage polymer.github.io 80 @homepage polymer.github.io
80 --> 81 -->
81 82
82 </head><body><dom-module id="iron-icon"> 83 </head><body><dom-module id="iron-icon">
83 <template> 84 <template>
84 <style> 85 <style>
85 :host { 86 :host {
86 @apply(--layout-inline); 87 @apply(--layout-inline);
87 @apply(--layout-center-center); 88 @apply(--layout-center-center);
88 position: relative; 89 position: relative;
89 90
90 vertical-align: middle; 91 vertical-align: middle;
91 92
92 fill: var(--iron-icon-fill-color, currentcolor); 93 fill: var(--iron-icon-fill-color, currentcolor);
93 stroke: var(--iron-icon-stroke-color, none); 94 stroke: var(--iron-icon-stroke-color, none);
94 95
95 width: var(--iron-icon-width, 24px); 96 width: var(--iron-icon-width, 24px);
96 height: var(--iron-icon-height, 24px); 97 height: var(--iron-icon-height, 24px);
98 @apply(--iron-icon);
97 } 99 }
98 </style> 100 </style>
99 </template> 101 </template>
100 102
101 </dom-module> 103 </dom-module>
102 <script src="iron-icon-extracted.js"></script></body></html> 104 <script src="iron-icon-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698