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

Side by Side Diff: chrome/browser/resources/login/user_pod_row.css

Issue 402403005: Move common account picker/user pod js/css/html out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix html include on win Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 /* Copyright 2014 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 *
5 * This is the stylesheet used by user pods row of account picker UI.
6 */
7
8 podrow {
9 /* Temporarily disabled because animation interferes with updating screen's
10 size. */
11 height: 100%;
12 overflow: visible;
13 position: absolute;
14 width: 100%;
15 }
16
17 /* Hide the pod row while images are loading. */
18 podrow.images-loading {
19 visibility: hidden;
20 }
21
22 .pod {
23 -webkit-tap-highlight-color: transparent;
24 background-color: white;
25 border-radius: 2px;
26 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2),
27 0 2px 6px rgba(0, 0, 0, 0.15),
28 0 3px 0 rgba(0, 0, 0, 0.08);
29 cursor: pointer;
30 height: 213px;
31 outline: none;
32 position: absolute;
33 transform: scale3d(0.9, 0.9, 0.9);
34 width: 180px;
35 z-index: 0;
36 }
37
38 .account-picker.flying-pods .pod {
39 transition: all 180ms;
40 }
41
42 .pod.faded {
43 opacity: .75;
44 }
45
46 podrow[ncolumns='6'] .pod {
47 transform: scale3d(0.8, 0.8, 0.8);
48 }
49
50 .pod.focused {
51 /* Focused pod has the same size no matter how many pods. */
52 cursor: default;
53 transform: scale3d(1, 1, 1) !important;
54 z-index: 1;
55 }
56
57 .pod.focused[auth-type='userClick'] {
58 cursor: pointer;
59 }
60
61 .user-image-pane {
62 background-color: white;
63 height: 160px;
64 left: 10px;
65 position: absolute;
66 top: 10px;
67 width: 160px;
68 z-index: 3;
69 }
70
71 html[dir=rtl] .user-image-pane {
72 left: auto;
73 right: 10px;
74 }
75
76 .user-image-container {
77 align-items: center;
78 display: flex;
79 height: 100%;
80 justify-content: center;
81 width: 100%;
82 }
83
84 .pod .user-image {
85 flex: none;
86 max-height: 160px;
87 max-width: 160px;
88 opacity: 0.7;
89 }
90
91 .pod.focused .user-image {
92 opacity: 1;
93 }
94
95 .pod.multiprofiles-policy-applied .user-image {
96 -webkit-filter: grayscale(100%);
97 }
98
99 .signed-in-indicator {
100 display: none;
101 }
102
103 .pod.signed-in .signed-in-indicator {
104 background-color: rgba(0, 0, 0, 0.5);
105 color: white;
106 display: block;
107 font-size: small;
108 padding: 3px 0;
109 position: absolute;
110 text-align: center;
111 top: 0;
112 width: 100%;
113 }
114
115 .main-pane {
116 left: 10px;
117 position: absolute;
118 top: 10px;
119 z-index: 2;
120 }
121
122 html[dir=rtl] .main-pane {
123 left: auto;
124 right: 10px;
125 }
126
127 .name-container,
128 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
129 background-color: white;
130 display: flex;
131 position: absolute;
132 top: 160px;
133 width: 160px;
134 }
135
136 .name-container {
137 transition: transform 180ms;
138 }
139
140 .pod.focused .name-container {
141 display: none;
142 }
143
144 .pod.focused.multiprofiles-policy-applied .name-container {
145 display: flex;
146 }
147
148 .name {
149 color: #565656;
150 /* This should be 15.6px - the equivalent of 14px at 90% scale. */
151 flex: auto;
152 font-size: 16px;
153 margin-top: 12px;
154 outline: none;
155 overflow: hidden;
156 padding: 0 6px;
157 text-align: center;
158 text-overflow: ellipsis;
159 white-space: nowrap;
160 }
161
162 .learn-more-container,
163 .auth-container,
164 .password-entry-container,
165 .signin-button-container {
166 display: none;
167 }
168
169 .pod[auth-type='offlinePassword'].focused .password-entry-container {
170 display: flex;
171 flex: auto;
172 }
173
174 .password-container {
175 flex: auto;
176 }
177
178 .pod input[type='password'] {
179 border: none;
180 padding: 4px 6px;
181 position: relative;
182 top: 6px;
183 width: 100%;
184 }
185
186 .capslock-hint-container {
187 display: none;
188 }
189
190 .capslock-on .capslock-hint-container {
191 display: block;
192 flex: none;
193 }
194
195 .capslock-hint {
196 -webkit-margin-end: 6px;
197 -webkit-margin-start: -2px;
198 position: relative;
199 top: 11px;
200 }
201
202 .password-label {
203 display: none;
204 }
205
206 .pod[auth-type='userClick'] .password-label {
207 display: block;
208 flex: auto;
209 margin-top: 11px;
210 overflow: hidden;
211 text-overflow: ellipsis;
212 white-space: nowrap;
213 }
214
215 .custom-icon {
216 background-position: center;
217 background-repeat: no-repeat;
218 flex: none;
219 height: 40px;
220 width: 40px;
221 }
222
223 .pod[auth-type='onlineSignIn'] .signin-button-container,
224 .launch-app-button-container {
225 display: block;
226 flex: auto;
227 text-align: center;
228 }
229
230 .signin-button,
231 .launch-app-button {
232 display: inline;
233 margin-top: 6px !important;
234 max-width: 100%;
235 overflow: hidden;
236 text-overflow: ellipsis;
237 }
238
239 .action-box-area,
240 .user-type-icon-area {
241 background-color: white;
242 border-radius: 2px;
243 position: absolute;
244 top: 0;
245 }
246
247 .action-box-area {
248 opacity: 0;
249 outline: none;
250 right: 0;
251 transition: opacity 100ms;
252 z-index: 4;
253 }
254
255 html[dir=rtl] .action-box-area {
256 left: 0;
257 right: auto;
258 }
259
260 .action-box-area:focus,
261 .action-box-area.hovered,
262 .action-box-area.active {
263 opacity: 1;
264 }
265
266 .action-box-button {
267 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL');
268 height: 13px;
269 margin: 5px;
270 width: 13px;
271 }
272
273 .action-box-button:hover {
274 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_HOVER');
275 }
276
277 .action-box-area.active .action-box-button {
278 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED');
279 }
280
281 .user-type-icon-area {
282 left: 0;
283 z-index: 5;
284 }
285
286 html[dir=rtl] .user-type-icon-area {
287 left: auto;
288 right: 0;
289 }
290
291 .user-type-icon-image {
292 height: 16px;
293 margin: 5px;
294 width: 16px;
295 }
296
297 .user-type-icon-area.supervised .user-type-icon-image {
298 background-image: url('chrome://theme/IDR_SUPERVISED_USER_ICON');
299 }
300
301 .user-type-icon-area.policy .user-type-icon-image {
302 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
303 }
304
305 .user-type-icon-area.app .user-type-icon-image {
306 background-image: url('chrome://theme/IDR_KIOSK_APP_USER_POD_ICON');
307 }
308
309 .action-box-menu {
310 display: none;
311 z-index: 6;
312 }
313
314 .action-box-area.active ~ .action-box-menu {
315 background-color: white;
316 border: 1px solid lightgray;
317 border-radius: 2px;
318 display: flex;
319 flex-direction: column;
320 font-size: 13px;
321 position: absolute;
322 right: 5px;
323 top: 18px;
324 width: 220px;
325 }
326
327 html[dir=rtl] .action-box-area.active ~ .action-box-menu {
328 left: 5px;
329 right: auto;
330 }
331
332 .action-box-menu-title {
333 color: #b4b4b4;
334 display: flex;
335 flex-direction: column;
336 padding: 7px 20px;
337 }
338
339 .action-box-menu-title-name,
340 .action-box-menu-title-email {
341 flex: none;
342 height: 23px;
343 line-height: 19px;
344 overflow: hidden;
345 text-overflow: ellipsis;
346 white-space: nowrap;
347 }
348
349 .action-box-menu-remove {
350 border-top: 1px solid lightgray;
351 line-height: 19px;
352 min-height: 24px;
353 outline: none;
354 padding: 12px 20px 7px;
355 }
356
357 .action-box-menu-remove:hover,
358 .action-box-menu-remove:focus {
359 background-color: #f3f3f3;
360 }
361
362 .action-box-remove-user-warning {
363 border-top: 1px solid lightgray;
364 font-size: 12px;
365 line-height: 18px;
366 padding: 20px;
367 }
368
369 .action-box-remove-user-warning-text {
370 padding-bottom: 20px;
371 }
372
373 .action-box-remove-user-warning .remove-warning-button {
374 width: 100%;
375 }
376
377 .user-type-bubble {
378 background-color: white;
379 border: 1px solid lightgray;
380 border-radius: 2px;
381 left: 5px;
382 opacity: 0;
383 padding: 17px;
384 position: absolute;
385 top: 20px;
386 transition: all 100ms;
387 visibility: hidden;
388 width: 200px;
389 z-index: 7;
390 }
391
392 html[dir=rtl] .user-type-bubble {
393 left: auto;
394 right: 5px;
395 }
396
397 .bubble-shown,
398 .user-type-icon-area.policy:hover ~ .user-type-bubble {
399 opacity: 1;
400 visibility: visible;
401 }
402
403 .user-type-bubble-header {
404 font-weight: bold;
405 margin-bottom: 14px;
406 }
407
408 .easy-unlock-button-content {
409 width: 145px;
410 }
411
412 /**** Public account user pod rules *******************************************/
413
414 .pod.public-account.expanded {
415 width: 500px;
416 }
417
418 .pod.public-account.focused .name-container {
419 display: flex;
420 }
421
422 .pod.public-account.expanded .name-container {
423 transform: translateY(-34px);
424 }
425
426 .pod.public-account .learn-more-container {
427 display: block;
428 flex: none;
429 }
430
431 .pod.public-account .learn-more {
432 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
433 height: 16px;
434 position: relative;
435 top: 16px;
436 width: 16px;
437 }
438
439 .expanded-pane {
440 display: none;
441 }
442
443 .pod.public-account.animating .expanded-pane,
444 .pod.public-account.expanded .expanded-pane {
445 display: block;
446 margin: 10px;
447 overflow: hidden;
448 z-index: 1;
449 }
450
451 .expanded-pane-contents {
452 display: flex;
453 flex-direction: column;
454 float: right;
455 height: 193px;
456 width: 490px;
457 }
458
459 html[dir=rtl] .expanded-pane-contents {
460 float: left;
461 }
462
463 .expanded-pane-name {
464 -webkit-margin-start: 200px;
465 flex: none;
466 font-size: 19px;
467 margin-bottom: 11px;
468 margin-top: -2px;
469 overflow: hidden;
470 text-overflow: ellipsis;
471 white-space: nowrap;
472 }
473
474 .reminder {
475 -webkit-margin-start: 200px;
476 flex: auto;
477 font-size: 12px;
478 font-weight: bold;
479 }
480
481 .bottom-container {
482 -webkit-margin-start: 10px;
483 display: flex;
484 flex: none;
485 }
486
487 .expanded-pane-learn-more-container,
488 .enter-button {
489 flex: none;
490 }
491
492 .expanded-pane-learn-more {
493 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
494 height: 16px;
495 position: relative;
496 top: 6px;
497 width: 16px;
498 }
499
500 .info {
501 flex: auto;
502 font-size: 13px;
503 margin: 5px 10px 0 10px;
504 overflow: hidden;
505 text-overflow: ellipsis;
506 white-space: nowrap;
507 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698