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 15 matching lines...) Expand all Loading... |
26 } | 26 } |
27 | 27 |
28 :host #ink { | 28 :host #ink { |
29 position: absolute; | 29 position: absolute; |
30 top: -16px; | 30 top: -16px; |
31 left: -16px; | 31 left: -16px; |
32 width: 48px; | 32 width: 48px; |
33 height: 48px; | 33 height: 48px; |
34 color: var(--paper-radio-button-unchecked-ink-color, --primary-text-color); | 34 color: var(--paper-radio-button-unchecked-ink-color, --primary-text-color); |
35 opacity: 0.6; | 35 opacity: 0.6; |
| 36 pointer-events: none; |
36 } | 37 } |
37 | 38 |
38 :host #ink[checked] { | 39 :host #ink[checked] { |
39 color: var(--paper-radio-button-checked-ink-color, --default-primary-color); | 40 color: var(--paper-radio-button-checked-ink-color, --default-primary-color); |
40 } | 41 } |
41 | 42 |
42 :host #offRadio { | 43 :host #offRadio { |
43 position: absolute; | 44 position: absolute; |
44 top: 0px; | 45 top: 0px; |
45 left: 0px; | 46 left: 0px; |
46 width: 12px; | 47 width: 12px; |
47 height: 12px; | 48 height: 12px; |
48 border-radius: 50%; | 49 border-radius: 50%; |
49 border: solid 2px; | 50 border: solid 2px; |
| 51 background-color: var(--paper-radio-button-unchecked-background-color, transpa
rent); |
50 border-color: var(--paper-radio-button-unchecked-color, --primary-text-color); | 52 border-color: var(--paper-radio-button-unchecked-color, --primary-text-color); |
51 transition: border-color 0.28s; | 53 transition: border-color 0.28s; |
52 } | 54 } |
53 | 55 |
54 :host #onRadio { | 56 :host #onRadio { |
55 position: absolute; | 57 position: absolute; |
56 top: 4px; | 58 top: 4px; |
57 left: 4px; | 59 left: 4px; |
58 width: 8px; | 60 width: 8px; |
59 height: 8px; | 61 height: 8px; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 102 |
101 :host([disabled][checked]) #onRadio { | 103 :host([disabled][checked]) #onRadio { |
102 background-color: var(--paper-radio-button-unchecked-color, --primary-text-col
or); | 104 background-color: var(--paper-radio-button-unchecked-color, --primary-text-col
or); |
103 opacity: 0.5; | 105 opacity: 0.5; |
104 } | 106 } |
105 | 107 |
106 :host([disabled]) #radioLabel { | 108 :host([disabled]) #radioLabel { |
107 /* slightly darker than the button, so that it's readable */ | 109 /* slightly darker than the button, so that it's readable */ |
108 opacity: 0.65; | 110 opacity: 0.65; |
109 } | 111 } |
OLD | NEW |