| OLD | NEW |
| 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-radio-button</title> | 13 <title>paper-radio-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-radio-button.html"> | 21 <link rel="import" href="paper-radio-button.html"> |
| 22 | 22 |
| 23 <style shim-shadowdom> | 23 <style shim-shadowdom> |
| 24 | 24 |
| 25 body { | 25 body { |
| 26 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; | 26 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; |
| 27 margin: 0; | 27 margin: 0; |
| 28 -webkit-user-select: none; | |
| 29 -moz-user-select: none; | |
| 30 -ms-user-select: none; | |
| 31 user-select: none; | |
| 32 -webkit-tap-highlight-color: rgba(0,0,0,0); | 28 -webkit-tap-highlight-color: rgba(0,0,0,0); |
| 33 -webkit-touch-callout: none; | 29 -webkit-touch-callout: none; |
| 34 } | 30 } |
| 35 | 31 |
| 36 .label { | 32 .label { |
| 37 height: 40px; | 33 height: 40px; |
| 38 color: #4285f4; | |
| 39 font-size: 20px; | 34 font-size: 20px; |
| 40 } | 35 } |
| 41 | 36 |
| 42 section, paper-radio-button { | 37 section, paper-radio-button { |
| 43 padding: 20px; | 38 padding: 20px; |
| 44 } | 39 } |
| 45 | 40 |
| 46 paper-radio-button.blue::shadow #ink[checked] { | 41 paper-radio-button.blue::shadow #ink[checked] { |
| 47 color: #4285f4; | 42 color: #4285f4; |
| 48 } | 43 } |
| 49 | 44 |
| 50 paper-radio-button.blue::shadow #onRadio { | 45 paper-radio-button.blue::shadow #onRadio { |
| 51 background-color: #4285f4; | 46 background-color: #4285f4; |
| 52 } | 47 } |
| 48 |
| 49 paper-radio-button[checked].blue::shadow #offRadio { |
| 50 border-color: #4285f4; |
| 51 } |
| 53 | 52 |
| 54 </style> | 53 </style> |
| 55 | 54 |
| 56 </head> | 55 </head> |
| 57 <body unresolved> | 56 <body unresolved> |
| 58 | 57 |
| 59 <section> | 58 <section> |
| 60 <div class="label">Radio button</div> | 59 <div class="label">Radio button</div> |
| 61 <paper-radio-button></paper-radio-button> | 60 <paper-radio-button></paper-radio-button> |
| 62 </section> | 61 </section> |
| 63 | 62 |
| 64 <section> | 63 <section> |
| 65 <div class="label">Radio button (toggles)</div> | 64 <div class="label">Radio button (toggles)</div> |
| 66 <paper-radio-button toggles></paper-radio-button> | 65 <paper-radio-button toggles></paper-radio-button> |
| 67 </section> | 66 </section> |
| 67 |
| 68 <section> |
| 69 <div class="label">Radio button (disabled)</div> |
| 70 <paper-radio-button disabled toggles></paper-radio-button> |
| 71 </section> |
| 72 |
| 73 <section> |
| 74 <div class="label">Radio button (checked, disabled)</div> |
| 75 <paper-radio-button checked disabled toggles></paper-radio-button> |
| 76 </section> |
| 68 | 77 |
| 69 <section> | 78 <section> |
| 70 <div class="label">Radio button (toggles, Blue)</div> | 79 <div class="label">Radio button (toggles, Blue)</div> |
| 71 <paper-radio-button class="blue" toggles></paper-radio-button> | 80 <paper-radio-button class="blue" toggles></paper-radio-button> |
| 72 </section> | 81 </section> |
| 73 | 82 |
| 74 </body> | 83 </body> |
| 75 </html> | 84 </html> |
| OLD | NEW |