| 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); | 24 background-color: var(--paper-toggle-button-unchecked-bar-color, #000000); |
| 25 } | 25 } |
| 26 | 26 |
| 27 :host .toggle-button { | 27 :host .toggle-button { |
| 28 background-color: var(--paper-toggle-button-unchecked-button-color); | 28 background-color: var(--paper-toggle-button-unchecked-button-color, --paper-gr
ey-50); |
| 29 } | 29 } |
| 30 | 30 |
| 31 :host([checked]) .toggle-bar { | 31 :host([checked]) .toggle-bar { |
| 32 background-color: var(--paper-toggle-button-checked-bar-color); | 32 background-color: var(--paper-toggle-button-checked-bar-color, --google-green-
500); |
| 33 } | 33 } |
| 34 | 34 |
| 35 :host([checked]) .toggle-button { | 35 :host([checked]) .toggle-button { |
| 36 background-color: var(--paper-toggle-button-checked-button-color); | 36 background-color: var(--paper-toggle-button-checked-button-color, --google-gre
en-500); |
| 37 } | 37 } |
| 38 | 38 |
| 39 :host .toggle-ink { | 39 :host .toggle-ink { |
| 40 color: var(--paper-toggle-button-unchecked-ink-color); | 40 color: var(--paper-toggle-button-unchecked-ink-color, --primary-text-color); |
| 41 } | 41 } |
| 42 | 42 |
| 43 :host([checked]) .toggle-ink { | 43 :host([checked]) .toggle-ink { |
| 44 color: var(--paper-toggle-button-checked-ink-color); | 44 color: var(--paper-toggle-button-checked-ink-color, --google-green-500); |
| 45 } | 45 } |
| 46 | 46 |
| 47 /* ID selectors should not be overriden by users. */ | 47 /* ID selectors should not be overriden by users. */ |
| 48 | 48 |
| 49 #toggleContainer { | 49 #toggleContainer { |
| 50 position: relative; | 50 position: relative; |
| 51 width: 36px; | 51 width: 36px; |
| 52 height: 14px; | 52 height: 14px; |
| 53 } | 53 } |
| 54 | 54 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 100 | 100 |
| 101 #ink { | 101 #ink { |
| 102 position: absolute; | 102 position: absolute; |
| 103 top: -14px; | 103 top: -14px; |
| 104 left: -14px; | 104 left: -14px; |
| 105 width: 48px; | 105 width: 48px; |
| 106 height: 48px; | 106 height: 48px; |
| 107 opacity: 0.5; | 107 opacity: 0.5; |
| 108 } | 108 } |
| OLD | NEW |