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

Unified Diff: third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon.html

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon.html
diff --git a/third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon.html b/third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon.html
index b24ab794c117d62ca4640f317f2dfed929afc2f1..5cb1c4edd63fce87ef042253f7bcf3627c4d95bd 100644
--- a/third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon.html
+++ b/third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon.html
@@ -1,11 +1,16 @@
<!--
+@license
Copyright (c) 2015 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
---><!--
+--><html><head><link rel="import" href="../polymer/polymer.html">
+<link rel="import" href="../iron-meta/iron-meta.html">
+<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
+
+<!--
The `iron-icon` element displays an icon. By default an icon renders as a 24px square.
@@ -51,16 +56,27 @@ how to create a custom iconset.
See [iron-icons](http://www.polymer-project.org/components/iron-icons/demo.html) for the default set of icons.
-@group Polymer Core Elements
+
+### Styling
+
+The following custom properties are available for styling:
+
+Custom property | Description | Default
+----------------|-------------|----------
+`--iron-icon-width` | Width of the icon | `24px`
+`--iron-icon-height` | Height of the icon | `24px`
+
+@group Iron Elements
@element iron-icon
+@demo demo/index.html
+@hero hero.svg
@homepage polymer.github.io
---><html><head><link rel="import" href="../polymer/polymer.html">
-<link rel="import" href="../iron-meta/iron-meta.html">
-<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
+-->
-<style is="x-style">
- * {
- --iron-icon-size: 24px;
+<style is="custom-style">
+ :root {
+ --iron-icon-width: 24px;
+ --iron-icon-height: 24px;
}
</style>
@@ -68,15 +84,16 @@ See [iron-icons](http://www.polymer-project.org/components/iron-icons/demo.html)
<style>
:host {
- mixin(--layout-inline --layout-center-center);
+ @apply(--layout-inline);
+ @apply(--layout-center-center);
position: relative;
vertical-align: middle;
fill: currentcolor;
- width: var(--iron-icon-size);
- height: var(--iron-icon-size);
+ width: var(--iron-icon-width);
+ height: var(--iron-icon-height);
}
</style>
@@ -84,6 +101,6 @@ See [iron-icons](http://www.polymer-project.org/components/iron-icons/demo.html)
<iron-meta id="meta" type="iconset"></iron-meta>
</template>
-</dom-module>
+ </dom-module>
<script src="iron-icon-extracted.js"></script></body></html>

Powered by Google App Engine
This is Rietveld 408576698