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

Unified Diff: third_party/polymer/components-chromium/paper-icon-button/demo.html

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/components-chromium/paper-icon-button/demo.html
diff --git a/third_party/polymer/components-chromium/paper-icon-button/demo.html b/third_party/polymer/components-chromium/paper-icon-button/demo.html
new file mode 100644
index 0000000000000000000000000000000000000000..bd42d52f7da731d1a68896aba15e21033be65366
--- /dev/null
+++ b/third_party/polymer/components-chromium/paper-icon-button/demo.html
@@ -0,0 +1,102 @@
+<!doctype html>
+<!--
+Copyright 2013 The Polymer Authors. All rights reserved.
+Use of this source code is governed by a BSD-style
+license that can be found in the LICENSE file.
+-->
+<html>
+ <head>
+ <title>paper-icon-button</title>
+ <meta name="viewport" content="width=device-width; initial-scale=1.0; max-scale=1.0; user-scalable=yes">
+ <script src="../platform/platform.js"></script>
+
+ <link rel="import" href="../core-icons/core-icons.html">
+ <link rel="import" href="../core-icons/maps-icons.html">
+ <link rel="import" href="../core-icons/social-icons.html">
+ <link rel="import" href="../core-selector/core-selector.html">
+ <link rel="import" href="paper-icon-button.html">
+
+ <style shim-shadowdom>
+ body {
+ font-family: sans-serif;
+ }
+
+ column {
+ display: inline-block;
+ max-width: 720px;
+ }
+
+ section {
+ margin: 1em;
+ }
+
+ span {
+ display: inline-block;
+ text-align: right;
+ width: 6em;
+ margin-right: 1em;
+ }
+
+ paper-icon-button {
+ vertical-align: middle;
+ }
+
+ paper-icon-button.red::shadow core-icon {
+ fill: #fe774d;
+ }
+
+ core-selector paper-icon-button:not([active])::shadow core-icon {
+ fill: #c9c9c9;
+ }
+ </style>
+
+ </head>
+
+ <body unresolved layout horizontal center-justified>
+
+ <column>
+
+ <section>
+ <span>icon buttons</span>
+ <paper-icon-button icon="menu"></paper-icon-button>
+ <paper-icon-button icon="arrow-back"></paper-icon-button>
+ <paper-icon-button icon="arrow-forward"></paper-icon-button>
+ <paper-icon-button icon="check"></paper-icon-button>
+ <paper-icon-button icon="close"></paper-icon-button>
+ <paper-icon-button icon="fullscreen"></paper-icon-button>
+ <paper-icon-button icon="fullscreen-exit"></paper-icon-button>
+ <paper-icon-button icon="more-vert"></paper-icon-button>
+ <paper-icon-button icon="refresh"></paper-icon-button>
+ </section>
+
+ <section>
+ <span>styled</span>
+ <paper-icon-button icon="favorite"></paper-icon-button>
+ <paper-icon-button class="red" icon="favorite"></paper-icon-button>
+ <paper-icon-button disabled onclick="alert('should not be clickable');" icon="favorite"></paper-icon-button>
+ </section>
+
+<!-- <section>
+ <span>focused</span>
+ <paper-icon-button focused icon="social:cake"></paper-icon-button>
+ <paper-icon-button focused icon="social:plus-one"></paper-icon-button>
+ </section>
+ -->
+ <section>
+ <span>segmented</span>
+ <core-selector selected="1">
+ <paper-icon-button fill isToggle icon="maps:directionswalk"></paper-icon-button>
+ <paper-icon-button fill isToggle icon="maps:directions-bike"></paper-icon-button>
+ <paper-icon-button fill isToggle icon="maps:directions-transit"></paper-icon-button>
+ <paper-icon-button fill isToggle icon="maps:directions-car"></paper-icon-button>
+ </core-selector>
+ </section>
+
+ <section>
+ <span>custom img</span>
+ <paper-icon-button iconSrc="https://assets-cdn.github.com/images/modules/logos_page/Octocat.png"></paper-icon-button>
+ </section>
+ </column>
+
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698