| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 @license |
| 4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 5 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 7 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 8 Code distributed by Google as part of the polymer project is also |
| 9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 10 --> |
| 11 <html> |
| 12 <head> |
| 13 <title>paper-checkbox demo</title> |
| 14 |
| 15 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initia
l-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-lite.js"></script> |
| 20 <link rel="import" href="../../paper-styles/paper-styles.html"> |
| 21 <link rel="import" href="../../paper-styles/demo-pages.html"> |
| 22 <link rel="import" href="../paper-checkbox.html"> |
| 23 |
| 24 <style is="custom-style"> |
| 25 |
| 26 paper-checkbox { |
| 27 display: block; |
| 28 margin-bottom: 40px; |
| 29 } |
| 30 |
| 31 paper-checkbox.blue { |
| 32 --paper-checkbox-checked-color: var(--paper-light-blue-500); |
| 33 --paper-checkbox-checked-ink-color: var(--paper-light-blue-500); |
| 34 --paper-checkbox-unchecked-color: var(--paper-light-blue-900); |
| 35 --paper-checkbox-unchecked-ink-color: var(--paper-light-blue-900); |
| 36 } |
| 37 |
| 38 paper-checkbox.red { |
| 39 --paper-checkbox-checked-color: var(--paper-red-500); |
| 40 --paper-checkbox-checked-ink-color: var(--paper-red-500); |
| 41 --paper-checkbox-unchecked-color: var(--paper-red-900); |
| 42 --paper-checkbox-unchecked-ink-color: var(--paper-red-900); |
| 43 } |
| 44 |
| 45 paper-checkbox.green { |
| 46 --paper-checkbox-checked-color: var(--paper-green-500); |
| 47 --paper-checkbox-checked-ink-color: var(--paper-green-500); |
| 48 --paper-checkbox-unchecked-color: var(--paper-green-900); |
| 49 --paper-checkbox-unchecked-ink-color: var(--paper-green-900); |
| 50 } |
| 51 |
| 52 paper-checkbox.orange { |
| 53 --paper-checkbox-checked-color: var(--paper-orange-500); |
| 54 --paper-checkbox-checked-ink-color: var(--paper-orange-500); |
| 55 --paper-checkbox-unchecked-color: var(--paper-orange-900); |
| 56 --paper-checkbox-unchecked-ink-color: var(--paper-orange-900); |
| 57 } |
| 58 </style> |
| 59 </head> |
| 60 <body> |
| 61 <div class="horizontal center-justified layout"> |
| 62 <div> |
| 63 <h4>Enabled</h4> |
| 64 <div class="horizontal-section"> |
| 65 <paper-checkbox>Oxygen</paper-checkbox> |
| 66 <paper-checkbox>Carbon</paper-checkbox> |
| 67 <paper-checkbox checked>Hydrogen</paper-checkbox> |
| 68 <paper-checkbox checked>Nitrogen</paper-checkbox> |
| 69 <paper-checkbox checked>Calcium</paper-checkbox> |
| 70 </div> |
| 71 </div> |
| 72 <div> |
| 73 <h4>Disabled</h4> |
| 74 <div class="horizontal-section"> |
| 75 <paper-checkbox disabled>Oxygen</paper-checkbox> |
| 76 <paper-checkbox disabled>Carbon</paper-checkbox> |
| 77 <paper-checkbox checked disabled>Hydrogen</paper-checkbox> |
| 78 <paper-checkbox checked disabled>Nitrogen</paper-checkbox> |
| 79 <paper-checkbox checked disabled>Calcium</paper-checkbox> |
| 80 </div> |
| 81 </div> |
| 82 <div> |
| 83 <h4>Color</h4> |
| 84 <div class="horizontal-section"> |
| 85 <paper-checkbox class="blue" checked>Oxygen</paper-checkbox> |
| 86 <paper-checkbox class="red" checked>Carbon</paper-checkbox> |
| 87 <paper-checkbox class="orange" checked>Hydrogen</paper-checkbox> |
| 88 <paper-checkbox class="green" checked>Nitrogen</paper-checkbox> |
| 89 <paper-checkbox class="blue" checked>Calcium</paper-checkbox> |
| 90 </div> |
| 91 </div> |
| 92 </div> |
| 93 </body> |
| 94 </html> |
| OLD | NEW |