3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
12 display: inline-block
;
25 display: inline-block
;
30 -webkit-transform: translateZ
(0);
31 transform: translateZ
(0);
32 vertical-align: middle
;
33 background-color: var
(--paper-checkbox-unchecked-background-color
, transparent
);
42 color: var
(--paper-checkbox-unchecked-ink-color
, --primary-text-color
);
48 color: var
(--paper-checkbox-checked-ink-color
, --default-primary-color
);
53 box-sizing: border-box
;
56 border-color: var
(--paper-checkbox-unchecked-color
, --primary-text-color
);
59 -webkit-transition: background-color
140ms, border-color
140ms;
60 transition: background-color
140ms, border-color
140ms;
63 /* checkbox checked animations */
64 #checkbox.checked #checkmark
{
65 -webkit-animation: checkmark-expand
140ms ease-out forwards
;
66 animation: checkmark-expand
140ms ease-out forwards
;
69 @-webkit-keyframes checkmark-expand
{
84 @keyframes checkmark-expand
{
99 :host #checkbox
.checked
{
100 background-color: var
(--paper-checkbox-checked-color
, --default-primary-color
);
101 border-color: var
(--paper-checkbox-checked-color
, --default-primary-color
);
105 -webkit-transform: rotate
(45deg);
106 transform: rotate
(45deg);
115 border-right-width: 2px;
116 border-bottom-width: 2px;
117 border-color: var
(--paper-checkbox-checkmark-color
, white
);
123 display: inline-block
;
124 vertical-align: middle
;
127 pointer-events: none
;
128 color: var
(--paper-checkbox-label-color
, --primary-text-color
);
131 #checkboxLabel[hidden
] {
137 pointer-events: none
;
140 :host
([disabled
]) #checkbox
{
142 border-color: var
(--paper-checkbox-unchecked-color
, --primary-text-color
);
145 :host
([disabled
][checked
]) #checkbox
{
146 background-color: var
(--paper-checkbox-unchecked-color
, --primary-text-color
);
150 :host
([disabled
]) #checkboxLabel
{