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 */ | 9 */ |
10 | 10 |
11 :host { | 11 :host { |
12 display: inline-block; | 12 display: inline-block; |
13 } | 13 } |
14 | 14 |
15 :host([disabled]) { | 15 :host([disabled]) { |
16 pointer-events: none; | 16 pointer-events: none; |
17 } | 17 } |
18 | 18 |
19 :host(:focus) { | 19 :host(:focus) { |
20 outline:none; | 20 outline:none; |
21 } | 21 } |
22 | 22 |
23 :host .toggle-bar { | 23 :host .toggle-bar { |
24 background-color: var(--paper-toggle-button-unchecked-bar-color, #000000); | 24 background-color: var(--paper-toggle-button-unchecked-bar-color, #000000); |
| 25 @apply(--paper-toggle-button-unchecked-bar); |
25 } | 26 } |
26 | 27 |
27 :host .toggle-button { | 28 :host .toggle-button { |
28 background-color: var(--paper-toggle-button-unchecked-button-color, --paper-gr
ey-50); | 29 background-color: var(--paper-toggle-button-unchecked-button-color, --paper-gr
ey-50); |
| 30 @apply(--paper-toggle-button-unchecked-button); |
29 } | 31 } |
30 | 32 |
31 :host([checked]) .toggle-bar { | 33 :host([checked]) .toggle-bar { |
32 background-color: var(--paper-toggle-button-checked-bar-color, --google-green-
500); | 34 background-color: var(--paper-toggle-button-checked-bar-color, --google-green-
500); |
| 35 @apply(--paper-toggle-button-checked-bar); |
33 } | 36 } |
34 | 37 |
35 :host([checked]) .toggle-button { | 38 :host([checked]) .toggle-button { |
36 background-color: var(--paper-toggle-button-checked-button-color, --google-gre
en-500); | 39 background-color: var(--paper-toggle-button-checked-button-color, --google-gre
en-500); |
| 40 @apply(--paper-toggle-button-checked-button); |
37 } | 41 } |
38 | 42 |
39 :host .toggle-ink { | 43 :host .toggle-ink { |
40 color: var(--paper-toggle-button-unchecked-ink-color, --primary-text-color); | 44 color: var(--paper-toggle-button-unchecked-ink-color, --primary-text-color); |
41 } | 45 } |
42 | 46 |
43 :host([checked]) .toggle-ink { | 47 :host([checked]) .toggle-ink { |
44 color: var(--paper-toggle-button-checked-ink-color, --google-green-500); | 48 color: var(--paper-toggle-button-checked-ink-color, --google-green-500); |
45 } | 49 } |
46 | 50 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 104 |
101 #ink { | 105 #ink { |
102 position: absolute; | 106 position: absolute; |
103 top: -14px; | 107 top: -14px; |
104 left: -14px; | 108 left: -14px; |
105 width: 48px; | 109 width: 48px; |
106 height: 48px; | 110 height: 48px; |
107 opacity: 0.5; | 111 opacity: 0.5; |
108 pointer-events: none; | 112 pointer-events: none; |
109 } | 113 } |
OLD | NEW |