Add an exponential backoff to rechecking the app list doodle.
[chromium-blink-merge.git] / third_party / polymer / components-chromium / paper-toggle-button / paper-toggle-button.css
blob5ffe0451161e721a0a968310a194f8a8364953c6
1 /*
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.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/CONTRIBUTORS.txt
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/PATENTS.txt
8 */
10 :host {
11 display: inline-block;
14 :host(:focus) {
15 outline: none;
18 /* Class selectors can be overridden by users. */
20 .toggle-bar {
21 background-color: #000000;
24 .toggle-button {
25 background-color: #f1f1f1;
28 [checked] .toggle {
29 background-color: #0f9d58;
32 .toggle-ink {
33 color: #bbb;
36 [checked] .toggle-ink {
37 color: #0f9d58;
40 /* ID selectors should not be overriden by users. */
42 #toggleContainer {
43 position: relative;
44 width: 36px;
45 height: 14px;
48 #toggleContainer[disabled] {
49 opacity: 0.3;
50 pointer-events: none;
53 #toggleBar {
54 position: absolute;
55 height: 100%;
56 width: 100%;
57 border-radius: 8px;
58 pointer-events: none;
59 opacity: 0.26;
60 transition: background-color linear .08s;
63 [checked] #toggleBar {
64 opacity: 0.5;
67 #toggleButton {
68 position: absolute;
69 top: -3px;
70 height: 20px;
71 width: 20px;
72 border-radius: 50%;
73 box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.4);
74 transition: -webkit-transform linear .08s, background-color linear .08s;
75 transition: transform linear .08s, background-color linear .08s;
78 #toggleButton.dragging {
79 -webkit-transition: none;
80 transition: none;
83 [checked] #toggleButton {
84 -webkit-transform: translate(16px, 0);
85 transform: translate(16px, 0);
88 #ink {
89 position: absolute;
90 top: -14px;
91 left: -14px;
92 width: 48px;
93 height: 48px;
94 pointer-events: none;