OLD | NEW |
1 /* | 1 /* |
2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
6 Code distributed by Google as part of the polymer project is also | 6 Code distributed by Google as part of the polymer project is also |
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
8 */ | 8 */ |
9 | 9 |
10 :host { | 10 :host { |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 #checkboxContainer { | 23 #checkboxContainer { |
24 display: inline-block; | 24 display: inline-block; |
25 position: relative; | 25 position: relative; |
26 width: 18px; | 26 width: 18px; |
27 height: 18px; | 27 height: 18px; |
28 cursor: pointer; | 28 cursor: pointer; |
29 -webkit-transform: translateZ(0); | 29 -webkit-transform: translateZ(0); |
30 transform: translateZ(0); | 30 transform: translateZ(0); |
31 vertical-align: middle; | 31 vertical-align: middle; |
| 32 background-color: var(--paper-checkbox-unchecked-background-color, transparent
); |
32 } | 33 } |
33 | 34 |
34 :host #ink { | 35 :host #ink { |
35 position: absolute; | 36 position: absolute; |
36 top: -15px; | 37 top: -15px; |
37 left: -15px; | 38 left: -15px; |
38 width: 48px; | 39 width: 48px; |
39 height: 48px; | 40 height: 48px; |
40 color: var(--paper-checkbox-unchecked-ink-color, --primary-text-color); | 41 color: var(--paper-checkbox-unchecked-ink-color, --primary-text-color); |
41 opacity: 0.6; | 42 opacity: 0.6; |
| 43 pointer-events: none; |
42 } | 44 } |
43 | 45 |
44 :host #ink[checked] { | 46 :host #ink[checked] { |
45 color: var(--paper-checkbox-checked-ink-color, --default-primary-color); | 47 color: var(--paper-checkbox-checked-ink-color, --default-primary-color); |
46 } | 48 } |
47 | 49 |
48 :host #checkbox { | 50 :host #checkbox { |
49 position: relative; | 51 position: relative; |
50 box-sizing: border-box; | 52 box-sizing: border-box; |
51 height: 100%; | 53 height: 100%; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 position: absolute; | 106 position: absolute; |
105 top: -1px; | 107 top: -1px; |
106 left: 4px; | 108 left: 4px; |
107 width: 5px; | 109 width: 5px; |
108 height: 10px; | 110 height: 10px; |
109 border-style: solid; | 111 border-style: solid; |
110 border-top: none; | 112 border-top: none; |
111 border-left: none; | 113 border-left: none; |
112 border-right-width: 2px; | 114 border-right-width: 2px; |
113 border-bottom-width: 2px; | 115 border-bottom-width: 2px; |
114 border-color: white; | 116 border-color: var(--paper-checkbox-checkmark-color, white); |
115 } | 117 } |
116 | 118 |
117 /* label */ | 119 /* label */ |
118 #checkboxLabel { | 120 #checkboxLabel { |
119 position: relative; | 121 position: relative; |
120 display: inline-block; | 122 display: inline-block; |
121 vertical-align: middle; | 123 vertical-align: middle; |
122 padding-left: 8px; | 124 padding-left: 8px; |
123 white-space: normal; | 125 white-space: normal; |
124 pointer-events: none; | 126 pointer-events: none; |
(...skipping 15 matching lines...) Expand all Loading... |
140 } | 142 } |
141 | 143 |
142 :host([disabled][checked]) #checkbox { | 144 :host([disabled][checked]) #checkbox { |
143 background-color: var(--paper-checkbox-unchecked-color, --primary-text-color); | 145 background-color: var(--paper-checkbox-unchecked-color, --primary-text-color); |
144 opacity: 0.5; | 146 opacity: 0.5; |
145 } | 147 } |
146 | 148 |
147 :host([disabled]) #checkboxLabel { | 149 :host([disabled]) #checkboxLabel { |
148 opacity: 0.65; | 150 opacity: 0.65; |
149 } | 151 } |
OLD | NEW |