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.github.io/LICENSE.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/CONTRIBUTORS.txt
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/PATENTS.txt
12 display: inline-block
;
24 background-color: var
(--paper-toggle-button-unchecked-bar-color
, #000000);
27 :host
.toggle-button
{
28 background-color: var
(--paper-toggle-button-unchecked-button-color
, --paper-grey-50
);
31 :host
([checked
]) .toggle-bar
{
32 background-color: var
(--paper-toggle-button-checked-bar-color
, --google-green-500
);
35 :host
([checked
]) .toggle-button
{
36 background-color: var
(--paper-toggle-button-checked-button-color
, --google-green-500
);
40 color: var
(--paper-toggle-button-unchecked-ink-color
, --primary-text-color
);
43 :host
([checked
]) .toggle-ink
{
44 color: var
(--paper-toggle-button-checked-ink-color
, --google-green-500
);
47 /* ID selectors should not be overriden by users. */
62 transition: background-color linear
.08s;
65 :host
([checked
]) #toggleBar
{
69 :host
([disabled
]) #toggleBar
{
70 background-color: #000;
80 box-shadow: 0 1px 5px 0 rgba
(0, 0, 0, 0.6);
81 transition: -webkit-transform linear
.08s, background-color linear
.08s;
82 transition: transform linear
.08s, background-color linear
.08s;
83 will-change: transform
;
86 #toggleButton.dragging
{
87 -webkit-transition: none
;
91 :host
([checked
]) #toggleButton
{
92 -webkit-transform: translate
(16px, 0);
93 transform: translate
(16px, 0);
96 :host
([disabled
]) #toggleButton
{
97 background-color: #bdbdbd;
108 pointer-events: none
;