diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-08-05 23:05:44 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-08-05 23:05:44 +0000 |
commit | 548f841b745404224698a3eafc6d4cb190d0ca8c (patch) | |
tree | 8a0d6fd78eb610653f12ded770595c80f1e89a61 /catapult/third_party/polymer/components/paper-icon-button/demo/index.html | |
parent | 1d3aa42aef5ab74bf9b13fb5a7e18c73e137f58c (diff) | |
parent | a5e4f4d2969520f4563ec0d66cbe469c49ee38bc (diff) | |
download | chromium-trace-548f841b745404224698a3eafc6d4cb190d0ca8c.tar.gz |
Merge changes Ie9f01eed,I3acb8a0d am: fb769a1607 am: 316160b179 am: 3fd616f492 am: 5338649baa am: a5e4f4d296
Original change: https://android-review.googlesource.com/c/platform/external/chromium-trace/+/1392438
Change-Id: I7a428aa7cb0cdad8a449e25867e8c4bb514c2d2d
Diffstat (limited to 'catapult/third_party/polymer/components/paper-icon-button/demo/index.html')
-rw-r--r-- | catapult/third_party/polymer/components/paper-icon-button/demo/index.html | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/catapult/third_party/polymer/components/paper-icon-button/demo/index.html b/catapult/third_party/polymer/components/paper-icon-button/demo/index.html new file mode 100644 index 00000000..98d496f8 --- /dev/null +++ b/catapult/third_party/polymer/components/paper-icon-button/demo/index.html @@ -0,0 +1,103 @@ +<!doctype html> +<!-- +@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> + <title>paper-icon-button demo</title> + <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes"> + <script src="../../webcomponentsjs/webcomponents-lite.js"></script> + + <link rel="import" href="../../iron-icons/iron-icons.html"> + <link rel="import" href="../../paper-styles/color.html"> + <link rel="import" href="../../iron-demo-helpers/demo-snippet.html"> + <link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html"> + <link rel="import" href="../paper-icon-button.html"> + + <style is="custom-style" include="demo-pages-shared-styles"> + paper-icon-button { + margin-left: 10px; + margin-right: 10px; + } + </style> + </head> + <body unresolved> + <div class="vertical-section-container centered"> + <h3>Buttons can use iron-icons or external images, and can be disabled</h3> + <demo-snippet class="centered-demo"> + <template> + <paper-icon-button icon="favorite" title="heart"></paper-icon-button> + <paper-icon-button src="https://assets-cdn.github.com/images/modules/logos_page/Octocat.png" alt="octocat" title="octocat"></paper-icon-button> + <paper-icon-button disabled icon="reply" title="reply"></paper-icon-button> + </template> + </demo-snippet> + + <h3>Buttons can hide the ripple effect using the <i>noink</i> attribute</h3> + <demo-snippet class="centered-demo"> + <template> + <paper-icon-button noink icon="find-in-page" title="find"></paper-icon-button> + </template> + </demo-snippet> + + <h3>Buttons can be styled using regular CSS and custom properties</h3> + <demo-snippet class="centered-demo"> + <template> + <style is="custom-style"> + paper-icon-button.pink { + color: var(--paper-pink-500); + --paper-icon-button-ink-color: var(--paper-indigo-500); + } + paper-icon-button.pink:hover { + background-color: var(--paper-pink-500); + color: white; + } + paper-icon-button.blue { + --paper-icon-button-ink-color: var(--paper-orange-500); + background-color: var(--paper-light-blue-500); + color: white; + border-radius: 3px; + padding: 2px; + } + </style> + <paper-icon-button icon="favorite" title="heart" class="pink"></paper-icon-button> + <paper-icon-button icon="flight-takeoff" title="take off" class="blue"></paper-icon-button> + </template> + </demo-snippet> + + <h3>Buttons can be resized</h3> + <demo-snippet class="centered-demo"> + <template> + <style is="custom-style"> + paper-icon-button.giant { + width: 100px; + height: 100px; + } + </style> + <paper-icon-button icon="alarm-on" title="wake up" class="giant"></paper-icon-button> + </template> + </demo-snippet> + + <h3>Buttons can be used as a link</h3> + <demo-snippet class="centered-demo"> + <template> + <a href="https://www.polymer-project.org" tabindex="-1"> + <paper-icon-button icon="polymer"></paper-icon-button> + </a> + <style> + a paper-icon-button, + a:active paper-icon-button, + a:visited paper-icon-button { + color: #000000; + } + </style> + </template> + </demo-snippet> + </div> + </body> +</html> |