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="../webcomponentsjs/webcomponents.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-tap-highlight-color: rgba(0,0,0,0); | |
31 -webkit-touch-callout: none; | |
32 } | |
33 | |
34 section { | |
35 width: 200px; | |
36 } | |
37 | |
38 paper-toggle-button.bluetooth::shadow [checked] .toggle-ink { | |
39 color: #4285f4; | |
40 } | |
41 | |
42 paper-toggle-button.bluetooth::shadow [checked] .toggle { | |
43 background-color: #4285f4; | |
44 } | |
45 | |
46 paper-toggle-button.fun::shadow .toggle-ink { | |
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; | |
56 } | |
57 | |
58 </style> | |
59 | |
60 </head> | |
61 <body unresolved> | |
62 | |
63 <section> | |
64 | |
65 <div center horizontal layout> | |
66 <div flex>Wi-Fi</div> | |
67 <paper-toggle-button checked></paper-toggle-button> | |
68 </div> | |
69 | |
70 <br> | |
71 <br> | |
72 | |
73 <div center horizontal layout> | |
74 <div flex>Bluetooth</div> | |
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> | |
92 </div> | |
93 | |
94 </section> | |
95 | |
96 </body> | |
97 </html> | |
OLD | NEW |