MacViews: Get c/b/ui/views/tabs to build on Mac
[chromium-blink-merge.git] / third_party / polymer / components-chromium / paper-toggle-button / paper-toggle-button.css
blob3ff5e236719376c9eca3e87ff890e281d62c8d4d
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 #toggleContainer {
19 position: relative;
20 width: 64px;
21 height: 16px;
24 #toggleBar {
25 position: absolute;
26 top: 8px;
27 left: 16px;
28 height: 1px;
29 width: 32px;
30 background-color: #5a5a5a;
31 pointer-events: none;
34 #toggleBar[checked] {
35 background-color: #0f9d58;
38 #toggleContainer[checked] #checkedBar {
39 width: 100%;
42 #toggleRadio {
43 position: absolute;
44 left: 0;
45 padding: 8px 48px 8px 0;
46 margin: -8px -48px -8px 0;
47 transition: -webkit-transform linear .08s;
48 transition: transform linear .08s;
51 #toggleRadio[checked] {
52 -webkit-transform: translate(48px, 0);
53 transform: translate(48px, 0);
54 padding: 8px 0 8px 48px;
55 margin: -8px 0 -8px -48px;
58 #toggleRadio.dragging {
59 -webkit-transition: none;
60 transition: none;