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

Side by Side Diff: polymer_0.5.0/bower_components/core-range/demo.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polym er.github.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polym er.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS .txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS .txt
6 The complete set of contributors may be found at http://polymer.github.io/CO NTRIBUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CO NTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also 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/P ATENTS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/P ATENTS.txt
9 --> 9 -->
10 <!doctype html> 10 <!doctype html>
11 <html> 11 <html>
12 <head> 12 <head>
13 <title>core-range</title> 13 <title>core-range</title>
14 14
15 <script src="../platform/platform.js"></script> 15 <script src="../webcomponentsjs/webcomponents.js"></script>
16 16
17 <link rel="import" href="core-range.html"> 17 <link rel="import" href="core-range.html">
18 <link rel="import" href="../core-input/core-input.html"> 18 <link rel="import" href="../core-input/core-input.html">
19 19
20 <style> 20 <style>
21 21
22 22 body {
23 font-family: sans-serif;
24 }
25
23 </style> 26 </style>
24
25 </head> 27 </head>
26 28
27 <body unresolved> 29 <body unresolved>
28 30
29 <polymer-element name="x-test" noscript attributes="value"> 31 <polymer-element name="x-progressbar" noscript attributes="value min max">
30 32
31 <template> 33 <template>
32 34
33 <style> 35 <style>
34 36
35 :host { 37 :host {
36 display: inline-block; 38 display: block;
37 height: 25px; 39 height: 40px;
38 width: 300px; 40 background-color: #555;
39 background-color: #ddd; 41 border-radius: 4px;
42 padding: 8px;
43 box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.5);
40 } 44 }
41 45
42 .progress { 46 .progress {
43 background-color: red; 47 background-color: #999;
44 height: 100%; 48 height: 100%;
45 padding: 5px 0; 49 border-radius: 4px;
46 box-sizing: border-box; 50 box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
47 -moz-box-sizing: border-box;
48 } 51 }
49 52
50 core-input { 53 .progress-value {
51 border: 1px solid #ccc; 54 padding: 0 8px;
55 font-size: 18px;
56 color: #fff;
52 } 57 }
53 58
54 </style> 59 </style>
55 60
56 <core-range min="0" max="200" step="0.5" value="{{value}}" ratio="{{rati o}}"></core-range> 61 <core-range min="{{min}}" max="{{max}}" value="{{value}}" ratio="{{ratio }}"></core-range>
57 62
58 <div class="progress" style="width: {{ratio}}%;">{{ratio}}%</div><br> 63 <div class="progress" horizontal center layout _style="width: {{ratio}}% ;">
64 <div class="progress-value">{{ratio}}%</div>
65 </div>
59 66
60 value (0 - 200): <core-input value="{{value}}"></core-input>
61
62 </template> 67 </template>
63 68
64 </polymer-element> 69 </polymer-element>
65 70
66 <x-test value="100"></x-test> 71 <x-progressbar min="0" max="200" value="120"></x-progressbar>
67 72
68 </body> 73 </body>
69 </html> 74 </html>
OLDNEW
« no previous file with comments | « polymer_0.5.0/bower_components/core-range/core-range.html ('k') | polymer_0.5.0/bower_components/core-range/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698