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

Side by Side Diff: polymer_1.0.4/bower_components/paper-tooltip/demo/index.html

Issue 1264073002: Update polymer 1.0 install to pick up newly added elements. (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Update bower file to match actual versions. Created 5 years, 4 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
(Empty)
1 <!doctype html>
2 <!--
3 @license
4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
8 Code distributed by Google as part of the polymer project is also
9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
10 -->
11 <html lang="en">
12 <head>
13 <title>paper-tooltip demo</title>
14 <meta charset="utf-8">
15 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
16 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial- scale=1, user-scalable=yes">
17
18 <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
19
20 <link rel="import" href="../../paper-styles/demo-pages.html">
21 <link rel="import" href="../../paper-styles/color.html">
22
23 <link rel="import" href="../../paper-icon-button/paper-icon-button.html">
24 <link rel="import" href="../../iron-icons/iron-icons.html">
25 <link rel="import" href="../paper-tooltip.html">
26
27 <style is="custom-style">
28 .horizontal-section {
29 min-width: 120px;
30 position: relative;
31 }
32
33 .with-tooltip {
34 display: inline-block;
35 margin-bottom: 30px;
36 overflow: hidden;
37 }
38
39 .avatar {
40 display: block;
41 width: 40px;
42 height: 40px;
43 border-radius: 50%;
44 overflow: hidden;
45 background: #ccc;
46 margin: 0 auto 20px auto;
47 }
48
49 .blue {
50 background-color: var(--paper-light-blue-300);
51 }
52 .red {
53 background-color: var(--paper-red-300);
54 }
55 .orange {
56 background-color: var(--paper-amber-300);
57 }
58 .green {
59 background-color: var(--paper-green-300);
60 }
61
62 paper-tooltip.custom img {
63 width: 40px;
64 padding-right: 10px;
65 padding-bottom: 10px;
66 float: left;
67 }
68
69 .custom {
70 --paper-tooltip-background: black;
71 --paper-tooltip-text-color: var(--paper-pink-100);
72 width: 160px;
73 }
74 </style>
75 </head>
76 <body unresolved>
77 <div class="horizontal-section-container">
78 <div>
79 <h4>Anchored to native elements</h4>
80 <div class="horizontal-section">
81 <div class="with-tooltip" tabindex="0">
82 <input type="checkbox">Oxygen
83 <paper-tooltip>Atomic number: 8</paper-tooltip>
84 </div>
85 <br>
86 <div class="with-tooltip" tabindex="0">
87 <input type="checkbox">Carbon
88 <paper-tooltip>Atomic number: 6</paper-tooltip>
89 </div>
90 <br>
91 <div class="with-tooltip" tabindex="0">
92 <input type="checkbox">Hydrogen
93 <paper-tooltip>Atomic number: 1</paper-tooltip>
94 </div>
95 <br>
96 <div class="with-tooltip" tabindex="0">
97 <input type="checkbox">Nitrogen
98 <paper-tooltip>Atomic number: 7</paper-tooltip>
99 </div>
100 <br>
101 <div class="with-tooltip" tabindex="0">
102 <input type="checkbox">Calcium
103 <paper-tooltip>Atomic number: 20</paper-tooltip>
104 </div>
105 </div>
106 </div>
107 <div>
108 <h4>Anchored to custom elements</h4>
109 <div class="horizontal-section">
110 <paper-icon-button id="menu" icon="menu" alt="menu"></paper-icon-button>
111 <paper-icon-button id="heart" icon="favorite" alt="heart"></paper-icon-b utton>
112 <paper-icon-button id="back" icon="arrow-back" alt="go back"></paper-ico n-button>
113 <paper-icon-button id="fwd" icon="arrow-forward" alt="go forward"></pape r-icon-button>
114
115 <paper-tooltip for="menu" margin-top="0">hot dogs</paper-tooltip>
116 <paper-tooltip for="heart" margin-top="0">&lt;3 &lt;3 &lt;3 </paper-tool tip>
117 <paper-tooltip for="back" margin-top="0">halp I am trapped in a tooltip< /paper-tooltip>
118 <paper-tooltip for="fwd" margin-top="0">back to the future</paper-toolti p>
119 </div>
120 </div>
121 <div>
122 <h4>Rich-text tooltips (not Material Design)</h4>
123 <div class="horizontal-section">
124 <div id="red" class="avatar red" tabindex="0"></div>
125 <div id="blue" class="avatar blue" tabindex="0"></div>
126 <div id="green" class="avatar green" tabindex="0"></div>
127 <div id="orange" class="avatar orange" tabindex="0"></div>
128
129 <paper-tooltip for="red" class="custom">
130 <img src="http://i.imgur.com/OuUe8Da.jpg">
131 Rich-text tooltips are doable but against the Material Design spec.
132 </paper-tooltip>
133 <paper-tooltip for="blue" class="custom">
134 <img src="http://i.imgur.com/OuUe8Da.jpg">
135 Rich-text tooltips are doable but against the Material Design spec.
136 </paper-tooltip>
137 <paper-tooltip for="green" class="custom">
138 <img src="http://i.imgur.com/OuUe8Da.jpg">
139 Rich-text tooltips are doable but against the Material Design spec.
140 </paper-tooltip>
141 <paper-tooltip for="orange" class="custom">
142 <img src="http://i.imgur.com/OuUe8Da.jpg">
143 Rich-text tooltips are doable but against the Material Design spec.
144 </paper-tooltip>
145 </div>
146 </div>
147 </div>
148 </body>
149 </html>
OLDNEW
« no previous file with comments | « polymer_1.0.4/bower_components/paper-tooltip/bower.json ('k') | polymer_1.0.4/bower_components/paper-tooltip/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698