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
11 display: inline-block
;
24 -webkit-transform: translateZ
(0);
25 transform: translateZ
(0);
28 #checkboxContainer.labeled
{
29 display: inline-block
;
30 vertical-align: middle
;
48 box-sizing: border-box
;
54 border-color: #5a5a5a;
58 /* checkbox checked animations */
59 #checkbox.checked
.box
{
61 -webkit-animation: box-shrink
140ms ease-out forwards
;
62 animation: box-shrink
140ms ease-out forwards
;
65 @-webkit-keyframes box-shrink
{
67 -webkit-transform: rotate
(0deg);
74 -webkit-transform: rotate
(45deg);
82 @keyframes box-shrink
{
84 transform: rotate
(0deg);
91 transform: rotate
(45deg);
99 #checkbox.checked
.checkmark
{
102 -webkit-animation: checkmark-expand
140ms ease-out forwards
;
103 animation: checkmark-expand
140ms ease-out forwards
;
106 @-webkit-keyframes checkmark-expand
{
108 -webkit-transform: rotate
(45deg);
115 -webkit-transform: rotate
(45deg);
120 border-right-width: 2px;
121 border-bottom-width: 2px;
125 @keyframes checkmark-expand
{
127 transform: rotate
(45deg);
134 transform: rotate
(45deg);
139 border-right-width: 2px;
140 border-bottom-width: 2px;
145 -webkit-transform: rotate
(45deg);
146 transform: rotate
(45deg);
153 border-right-width: 2px;
154 border-bottom-width: 2px;
155 border-color: #0f9d58;
158 /* checkbox unchecked animations */
159 #checkbox.unchecked
.checkmark
{
160 -webkit-transform: rotate
(45deg);
161 transform: rotate
(45deg);
164 -webkit-animation: checkmark-shrink
140ms ease-out forwards
;
165 animation: checkmark-shrink
140ms ease-out forwards
;
168 @-webkit-keyframes checkmark-shrink
{
174 border-right-width: 2px;
175 border-bottom-width: 2px;
185 @keyframes checkmark-shrink
{
191 border-right-width: 2px;
192 border-bottom-width: 2px;
202 #checkbox.unchecked
.box
{
203 -webkit-animation: box-expand
140ms ease-out forwards
;
204 animation: box-expand
140ms ease-out forwards
;
207 @-webkit-keyframes box-expand
{
209 -webkit-transform: rotate
(45deg);
216 -webkit-transform: rotate
(0deg);
224 @keyframes box-expand
{
226 transform: rotate
(45deg);
233 transform: rotate
(0deg);
244 display: inline-block
;
245 vertical-align: middle
;
248 pointer-events: none
;
251 #checkboxLabel[hidden
] {
257 pointer-events: none
;
260 :host
([disabled
]) #checkbox
{
262 border-color: #5a5a5a;