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

Side by Side Diff: polymer_1.0.4/bower_components/iron-range-behavior/demo/index.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 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 <!--
2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS
9 -->
10 <!doctype html>
11 <html>
12 <head>
13 <title>iron-range-behavior demo</title>
14
15 <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
16
17 <link rel="import" href="../iron-range-behavior.html">
18 <link rel="import" href="../../iron-input/iron-input.html">
19
20 <style>
21
22 body {
23 font-family: sans-serif;
24 }
25
26 </style>
27 </head>
28
29 <body>
30 <dom-module id="x-progressbar">
31 <style>
32 :host {
33 display: block;
34 height: 40px;
35 background-color: #555;
36 border-radius: 4px;
37 padding: 8px;
38 box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.5);
39 }
40
41 .progress {
42 background-color: #999;
43 height: 100%;
44 border-radius: 4px;
45 box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
46 }
47
48 .progress-value {
49 padding: 0 8px;
50 font-size: 18px;
51 color: #fff;
52 }
53 </style>
54 <template>
55 <div class="progress" horizontal center layout style$="{{_computeStyle(r atio)}}">
56 <div class="progress-value"><span>{{ratio}}</span>%</div>
57 </div>
58 </template>
59 </dom-module>
60
61 <script>
62 Polymer({
63 is: 'x-progressbar',
64
65 behaviors: [Polymer.IronRangeBehavior],
66
67 _computeStyle: function(ratio) {
68 return 'width: ' + ratio + '%;';
69 }
70 });
71 </script>
72
73 <x-progressbar min="0" max="200" value="120"></x-progressbar>
74
75 </body>
76 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698