OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.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/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.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/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
10 <link rel="import" href="../paper-ripple/paper-ripple.html"> | 10 <link rel="import" href="../paper-ripple/paper-ripple.html"> |
(...skipping 13 matching lines...) Expand all Loading... |
24 <paper-checkbox>label</paper-checkbox> | 24 <paper-checkbox>label</paper-checkbox> |
25 | 25 |
26 <paper-checkbox checked> label</paper-checkbox> | 26 <paper-checkbox checked> label</paper-checkbox> |
27 | 27 |
28 ### Styling | 28 ### Styling |
29 | 29 |
30 The following custom properties and mixins are available for styling: | 30 The following custom properties and mixins are available for styling: |
31 | 31 |
32 Custom property | Description | Default | 32 Custom property | Description | Default |
33 ----------------|-------------|---------- | 33 ----------------|-------------|---------- |
34 `--paper-checkbox-unchecked-color` | Checkbox color when the input is not checke
d | `--primary-text-color` | 34 `--paper-checkbox-unchecked-background-color` | Checkbox background color when t
he input is not checked | `transparent` |
| 35 `--paper-checkbox-unchecked-color` | Checkbox border color when the input is not
checked | `--primary-text-color` |
35 `--paper-checkbox-unchecked-ink-color` | Selected/focus ripple color when the in
put is not checked | `--primary-text-color` | 36 `--paper-checkbox-unchecked-ink-color` | Selected/focus ripple color when the in
put is not checked | `--primary-text-color` |
36 `--paper-checkbox-checked-color` | Checkbox color when the input is checked | `-
-default-primary-color` | 37 `--paper-checkbox-checked-color` | Checkbox color when the input is checked | `-
-default-primary-color` |
37 `--paper-checkbox-checked-ink-color` | Selected/focus ripple color when the inpu
t is checked | `--default-primary-color` | 38 `--paper-checkbox-checked-ink-color` | Selected/focus ripple color when the inpu
t is checked | `--default-primary-color` |
| 39 `--paper-checkbox-checkmark-color` | Checkmark color | `white` |
38 `--paper-checkbox-label-color` | Label color | `--primary-text-color` | 40 `--paper-checkbox-label-color` | Label color | `--primary-text-color` |
39 | 41 |
40 @demo demo/index.html | 42 @demo demo/index.html |
41 --> | 43 --> |
42 | 44 |
43 </head><body><dom-module id="paper-checkbox"> | 45 </head><body><dom-module id="paper-checkbox"> |
44 <link rel="import" type="css" href="paper-checkbox.css"> | 46 <link rel="import" type="css" href="paper-checkbox.css"> |
45 | 47 |
46 <template> | 48 <template> |
47 | 49 |
48 <div id="checkboxContainer"> | 50 <div id="checkboxContainer"> |
49 <paper-ripple id="ink" class="circle" center="" checked$="[[checked]]"></p
aper-ripple> | 51 <paper-ripple id="ink" class="circle" center="" checked$="[[checked]]"></p
aper-ripple> |
50 <div id="checkbox" class$="[[_computeCheckboxClass(checked)]]"> | 52 <div id="checkbox" class$="[[_computeCheckboxClass(checked)]]"> |
51 <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]]"></div> | 53 <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]]"></div> |
52 </div> | 54 </div> |
53 </div> | 55 </div> |
54 | 56 |
55 <div id="checkboxLabel" aria-hidden="true"><content></content></div> | 57 <div id="checkboxLabel" aria-hidden="true"><content></content></div> |
56 | 58 |
57 </template> | 59 </template> |
58 | 60 |
59 </dom-module> | 61 </dom-module> |
60 <script src="paper-checkbox-extracted.js"></script></body></html> | 62 <script src="paper-checkbox-extracted.js"></script></body></html> |
OLD | NEW |