Port Android relocation packer to chromium build
[chromium-blink-merge.git] / third_party / polymer / components / paper-checkbox / paper-checkbox.css
blobf1a6f9f03c784fcd8c930ee8d06001f85f68d667
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;
12 white-space: nowrap;
15 :host(:focus) {
16 outline: 0;
19 .hidden {
20 display: none;
23 #checkboxContainer {
24 position: relative;
25 width: 18px;
26 height: 18px;
27 cursor: pointer;
28 -webkit-transform: translateZ(0);
29 transform: translateZ(0);
32 #checkboxContainer.labeled {
33 display: inline-block;
34 vertical-align: middle;
37 #ink {
38 position: absolute;
39 top: -15px;
40 left: -15px;
41 width: 48px;
42 height: 48px;
43 color: #5a5f5a;
46 #ink[checked] {
47 color: #B2DFDB;
50 #checkbox {
51 position: relative;
52 box-sizing: border-box;
53 height: 100%;
54 border: solid 2px #5a5a5a;
55 border-radius: 2px;
56 pointer-events: none;
57 -webkit-transition: background-color 140ms, border-color 140ms;
58 transition: background-color 140ms, border-color 140ms;
61 /* checkbox checked animations */
62 :host([checked]) #checkmark {
63 -webkit-animation: checkmark-expand 140ms ease-out forwards;
64 animation: checkmark-expand 140ms ease-out forwards;
67 @-webkit-keyframes checkmark-expand {
68 0% {
69 top: 9px;
70 left: 6px;
71 width: 0px;
72 height: 0px;
74 100% {
75 top: -1px;
76 left: 4px;
77 width: 5px;
78 height: 10px;
82 @keyframes checkmark-expand {
83 0% {
84 top: 9px;
85 left: 6px;
86 width: 0px;
87 height: 0px;
89 100% {
90 top: -1px;
91 left: 4px;
92 width: 5px;
93 height: 10px;
97 #checkbox.checked {
98 background-color: #009688;
99 border-color: #009688;
102 #checkmark {
103 -webkit-transform: rotate(45deg);
104 transform: rotate(45deg);
105 position: absolute;
106 top: -1px;
107 left: 4px;
108 width: 5px;
109 height: 10px;
110 border-style: solid;
111 border-top: none;
112 border-left: none;
113 border-right-width: 2px;
114 border-bottom-width: 2px;
115 border-color: white;
118 /* label */
119 #checkboxLabel {
120 position: relative;
121 display: inline-block;
122 vertical-align: middle;
123 padding-left: 8px;
124 white-space: normal;
125 pointer-events: none;
128 #checkboxLabel[hidden] {
129 display: none;
132 /* disabled state */
133 :host([disabled]) {
134 pointer-events: none;
137 :host([disabled]) #checkbox {
138 opacity: 0.33;
139 border-color: #5a5a5a;
142 :host([disabled][checked]) #checkbox {
143 background-color: #5a5a5a;