OLD | NEW |
| (Empty) |
1 <!-- | |
2 @license | |
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 | |
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 | |
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 | |
9 --> | |
10 <!doctype html> | |
11 <html> | |
12 <head> | |
13 <title>paper-toggle-button</title> | |
14 | |
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"> | |
17 <meta name="apple-mobile-web-app-capable" content="yes"> | |
18 | |
19 <script src="../platform/platform.js"></script> | |
20 | |
21 <link rel="import" href="paper-toggle-button.html"> | |
22 <link rel="import" href="../font-roboto/roboto.html"> | |
23 | |
24 <style shim-shadowdom> | |
25 | |
26 body { | |
27 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; | |
28 margin: 0; | |
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); | |
35 -webkit-touch-callout: none; | |
36 } | |
37 | |
38 section { | |
39 width: 200px; | |
40 } | |
41 | |
42 paper-toggle-button.blue::shadow paper-radio-button::shadow #ink[checked] { | |
43 color: #4285f4; | |
44 } | |
45 | |
46 paper-toggle-button.blue::shadow paper-radio-button::shadow #onRadio { | |
47 background-color: #4285f4; | |
48 } | |
49 | |
50 paper-toggle-button.blue::shadow #toggleBar[checked] { | |
51 background-color: #4285f4; | |
52 } | |
53 | |
54 </style> | |
55 | |
56 </head> | |
57 <body unresolved> | |
58 | |
59 <section> | |
60 | |
61 <div center horizontal layout> | |
62 <div flex>Wi-Fi</div> | |
63 <paper-toggle-button checked></paper-toggle-button> | |
64 </div> | |
65 | |
66 <br> | |
67 <br> | |
68 | |
69 <div center horizontal layout> | |
70 <div flex>Bluetooth</div> | |
71 <paper-toggle-button class="blue"></paper-toggle-button> | |
72 </div> | |
73 | |
74 </section> | |
75 | |
76 </body> | |
77 </html> | |
OLD | NEW |