| Index: third_party/polymer/v0_8/components-chromium/paper-icon-button/paper-icon-button.html
|
| diff --git a/third_party/polymer/v0_8/components-chromium/paper-icon-button/paper-icon-button.html b/third_party/polymer/v0_8/components-chromium/paper-icon-button/paper-icon-button.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c41e9da89b6b38c0968e102f3f3d6ee394b29d47
|
| --- /dev/null
|
| +++ b/third_party/polymer/v0_8/components-chromium/paper-icon-button/paper-icon-button.html
|
| @@ -0,0 +1,96 @@
|
| +<!--
|
| +@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
|
| +The complete set of authors may be found at http://polymer.github.io/AUTHORS
|
| +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS
|
| +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
|
| +--><!--
|
| +@group Paper Elements
|
| +
|
| +Material Design: <a href="http://www.google.com/design/spec/components/buttons.html">Buttons</a>
|
| +
|
| +`paper-icon-button` is a button with an image placed at the center. When the user touches
|
| +the button, a ripple effect emanates from the center of the button.
|
| +
|
| +`paper-icon-button` includes a default icon set. Use `icon` to specify which icon
|
| +from the icon set to use.
|
| +
|
| + <paper-icon-button icon="menu"></paper-icon-button>
|
| +
|
| +See [`iron-iconset`](#iron-iconset) for more information about
|
| +how to use a custom icon set.
|
| +
|
| +Example:
|
| +
|
| + <link href="path/to/iron-icons/iron-icons.html" rel="import">
|
| +
|
| + <paper-icon-button icon="favorite"></paper-icon-button>
|
| + <paper-icon-button src="star.png"></paper-icon-button>
|
| +
|
| +Styling
|
| +-------
|
| +
|
| +Style the button with CSS as you would a normal DOM element. If you are using the icons
|
| +provided by `iron-icons`, they will inherit the foreground color of the button.
|
| +
|
| + /* make a red "favorite" button */
|
| + <paper-icon-button icon="favorite" style="color: red;"></paper-icon-button>
|
| +
|
| +By default, the ripple is the same color as the foreground at 25% opacity. You may
|
| +customize the color using this selector:
|
| +
|
| + /* make #my-button use a blue ripple instead of foreground color */
|
| + #my-button::shadow #ripple {
|
| + color: blue;
|
| + }
|
| +
|
| +The opacity of the ripple is not customizable via CSS.
|
| +
|
| +@element paper-icon-button
|
| +@homepage github.io
|
| +--><html><head><link rel="import" href="../polymer/polymer.html">
|
| +<link rel="import" href="../iron-icon/iron-icon.html">
|
| +<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
|
| +<link rel="import" href="../paper-styles/default-theme.html">
|
| +<link rel="import" href="../paper-behaviors/paper-button-behavior.html">
|
| +<link rel="import" href="../paper-ripple/paper-ripple.html">
|
| +
|
| +<style is="x-style">
|
| + * {
|
| + --paper-icon-button-disabled-text: var(--disabled-text-color);
|
| + }
|
| +</style>
|
| +
|
| +</head><body><dom-module id="paper-icon-button">
|
| + <style>
|
| + :host {
|
| + display: inline-block;
|
| + position: relative;
|
| + padding: 8px;
|
| + outline: none;
|
| + -webkit-user-select: none;
|
| + -moz-user-select: none;
|
| + -ms-user-select: none;
|
| + user-select: none;
|
| + cursor: pointer;
|
| + z-index: 0;
|
| +
|
| + mixin(--paper-icon-button);
|
| + }
|
| +
|
| + :host([disabled]) {
|
| + color: var(--paper-icon-button-disabled-text);
|
| + pointer-events: none;
|
| + cursor: auto;
|
| +
|
| + mixin(--paper-icon-button-disabled);
|
| + }
|
| + </style>
|
| + <template>
|
| + <paper-ripple class="circle" recenters=""></paper-ripple>
|
| + <iron-icon id="icon" src="[[src]]" icon="[[icon]]"></iron-icon>
|
| + </template>
|
| +</dom-module>
|
| +<script src="paper-icon-button-extracted.js"></script></body></html>
|
|
|