2 Copyright (c) 2015 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 display: inline-block
;
29 -webkit-transform: translateZ
(0);
30 transform: translateZ
(0);
31 vertical-align: middle
;
32 background-color: var
(--paper-checkbox-unchecked-background-color
, transparent
);
41 color: var
(--paper-checkbox-unchecked-ink-color
, --primary-text-color
);
47 color: var
(--paper-checkbox-checked-ink-color
, --default-primary-color
);
52 box-sizing: border-box
;
55 border-color: var
(--paper-checkbox-unchecked-color
, --primary-text-color
);
58 -webkit-transition: background-color
140ms, border-color
140ms;
59 transition: background-color
140ms, border-color
140ms;
62 /* checkbox checked animations */
63 #checkbox.checked #checkmark
{
64 -webkit-animation: checkmark-expand
140ms ease-out forwards
;
65 animation: checkmark-expand
140ms ease-out forwards
;
68 @-webkit-keyframes checkmark-expand
{
83 @keyframes checkmark-expand
{
98 :host #checkbox
.checked
{
99 background-color: var
(--paper-checkbox-checked-color
, --default-primary-color
);
100 border-color: var
(--paper-checkbox-checked-color
, --default-primary-color
);
104 -webkit-transform: rotate
(45deg);
105 transform: rotate
(45deg);
114 border-right-width: 2px;
115 border-bottom-width: 2px;
116 border-color: var
(--paper-checkbox-checkmark-color
, white
);
122 display: inline-block
;
123 vertical-align: middle
;
126 pointer-events: none
;
127 color: var
(--paper-checkbox-label-color
, --primary-text-color
);
130 #checkboxLabel[hidden
] {
136 pointer-events: none
;
139 :host
([disabled
]) #checkbox
{
141 border-color: var
(--paper-checkbox-unchecked-color
, --primary-text-color
);
144 :host
([disabled
][checked
]) #checkbox
{
145 background-color: var
(--paper-checkbox-unchecked-color
, --primary-text-color
);
149 :host
([disabled
]) #checkboxLabel
{