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

Side by Side Diff: polymer_0.5.4/bower_components/paper-toggle-button/demo.html

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 10 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>paper-toggle-button</title> 13 <title>paper-toggle-button</title>
14 14
15 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial- scale=1, user-scalable=yes"> 15 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial- scale=1, user-scalable=yes">
16 <meta name="mobile-web-app-capable" content="yes"> 16 <meta name="mobile-web-app-capable" content="yes">
17 <meta name="apple-mobile-web-app-capable" content="yes"> 17 <meta name="apple-mobile-web-app-capable" content="yes">
18 18
19 <script src="../webcomponentsjs/webcomponents.js"></script> 19 <script src="../webcomponentsjs/webcomponents.js"></script>
20 20
21 <link rel="import" href="paper-toggle-button.html"> 21 <link rel="import" href="paper-toggle-button.html">
22 <link rel="import" href="../font-roboto/roboto.html"> 22 <link rel="import" href="../font-roboto/roboto.html">
23 23
24 <style shim-shadowdom> 24 <style shim-shadowdom>
25 25
26 body { 26 body {
27 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; 27 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
28 margin: 0; 28 margin: 0;
29 padding: 24px; 29 padding: 24px;
30 -webkit-user-select: none;
31 -moz-user-select: none;
32 -ms-user-select: none;
33 user-select: none;
34 -webkit-tap-highlight-color: rgba(0,0,0,0); 30 -webkit-tap-highlight-color: rgba(0,0,0,0);
35 -webkit-touch-callout: none; 31 -webkit-touch-callout: none;
36 } 32 }
37 33
38 section { 34 section {
39 width: 200px; 35 width: 200px;
40 } 36 }
41 37
42 paper-toggle-button.blue::shadow paper-radio-button::shadow #ink[checked] { 38 paper-toggle-button.bluetooth::shadow [checked] .toggle-ink {
43 color: #4285f4; 39 color: #4285f4;
44 } 40 }
45 41
46 paper-toggle-button.blue::shadow paper-radio-button::shadow #onRadio { 42 paper-toggle-button.bluetooth::shadow [checked] .toggle {
47 background-color: #4285f4; 43 background-color: #4285f4;
48 } 44 }
49 45
50 paper-toggle-button.blue::shadow #toggleBar[checked] { 46 paper-toggle-button.fun::shadow .toggle-ink {
51 background-color: #4285f4; 47 color: #009688;
48 }
49
50 paper-toggle-button.fun::shadow .toggle-bar {
51 background-color: #5677fc;
52 }
53
54 paper-toggle-button.fun::shadow .toggle-button {
55 background-color: #9c27b0;
52 } 56 }
53 57
54 </style> 58 </style>
55 59
56 </head> 60 </head>
57 <body unresolved> 61 <body unresolved>
58 62
59 <section> 63 <section>
60 64
61 <div center horizontal layout> 65 <div center horizontal layout>
62 <div flex>Wi-Fi</div> 66 <div flex>Wi-Fi</div>
63 <paper-toggle-button checked></paper-toggle-button> 67 <paper-toggle-button checked></paper-toggle-button>
64 </div> 68 </div>
65 69
66 <br> 70 <br>
67 <br> 71 <br>
68 72
69 <div center horizontal layout> 73 <div center horizontal layout>
70 <div flex>Bluetooth</div> 74 <div flex>Bluetooth</div>
71 <paper-toggle-button class="blue"></paper-toggle-button> 75 <paper-toggle-button class="bluetooth"></paper-toggle-button>
76 </div>
77
78 <br>
79 <br>
80
81 <div center horizontal layout>
82 <div flex>Custom Colors</div>
83 <paper-toggle-button class="fun"></paper-toggle-button>
84 </div>
85
86 <br>
87 <br>
88
89 <div center horizontal layout>
90 <div flex>Disabled</div>
91 <paper-toggle-button disabled></paper-toggle-button>
72 </div> 92 </div>
73 93
74 </section> 94 </section>
75 95
76 </body> 96 </body>
77 </html> 97 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698