Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: polymer_0.5.4/bower_components/paper-checkbox/paper-checkbox.css

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.g ithub.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/CONTRI BUTORS.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/PATEN TS.txt
8 */
9
10 :host {
11 display: inline-block;
12 white-space: nowrap;
13 }
14
15 :host(:focus) {
16 outline: 0;
17 }
18
19 .hidden {
20 display: none;
21 }
22
23 #checkboxContainer {
24 position: relative;
25 width: 18px;
26 height: 18px;
27 cursor: pointer;
28 -webkit-transform: translateZ(0);
29 transform: translateZ(0);
30 }
31
32 #checkboxContainer.labeled {
33 display: inline-block;
34 vertical-align: middle;
35 }
36
37 #ink {
38 position: absolute;
39 top: -15px;
40 left: -15px;
41 width: 48px;
42 height: 48px;
43 color: #5a5f5a;
44 }
45
46 #ink[checked] {
47 color: #B2DFDB;
48 }
49
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;
59 }
60
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;
65 }
66
67 @-webkit-keyframes checkmark-expand {
68 0% {
69 top: 9px;
70 left: 6px;
71 width: 0px;
72 height: 0px;
73 }
74 100% {
75 top: -1px;
76 left: 4px;
77 width: 5px;
78 height: 10px;
79 }
80 }
81
82 @keyframes checkmark-expand {
83 0% {
84 top: 9px;
85 left: 6px;
86 width: 0px;
87 height: 0px;
88 }
89 100% {
90 top: -1px;
91 left: 4px;
92 width: 5px;
93 height: 10px;
94 }
95 }
96
97 #checkbox.checked {
98 background-color: #009688;
99 border-color: #009688;
100 }
101
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;
116 }
117
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;
126 }
127
128 #checkboxLabel[hidden] {
129 display: none;
130 }
131
132 /* disabled state */
133 :host([disabled]) {
134 pointer-events: none;
135 }
136
137 :host([disabled]) #checkbox {
138 opacity: 0.33;
139 border-color: #5a5a5a;
140 }
141
142 :host([disabled][checked]) #checkbox {
143 background-color: #5a5a5a;
144 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698