1 /* Copyright (c) 2012 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.
5 * This is the stylesheet used by user pods row of account picker UI.
9 /* Temporarily disabled because animation interferes with updating screen's
17 /* Hide the pod row while images are loading. */
18 podrow.images-loading {
23 -webkit-tap-highlight-color: transparent;
24 -webkit-transform: scale3d(0.9, 0.9, 0.9);
25 background-color: white;
27 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2),
28 0 2px 6px rgba(0, 0, 0, 0.15),
29 0 3px 0 rgba(0, 0, 0, 0.08);
34 padding: 10px 10px 3px;
36 vertical-align: middle;
41 html[run=firstExecAfterBoot] .pod {
42 -webkit-transition: -webkit-transform 180ms ease,
46 .account-picker.flying-pods .pod {
47 -webkit-transition: all 180ms ease;
56 podrow[ncolumns='6'] .pod {
57 -webkit-transform: scale3d(0.8, 0.8, 0.8);
61 /* Focused pod has the same size no matter how many pods. */
62 -webkit-transform: scale3d(1, 1, 1) !important;
67 .pod .user-image-container {
77 vertical-align: middle;
85 .pod.focused .user-image {
89 .pod.not-focusable .user-image {
90 -webkit-filter: grayscale(100%);
94 -webkit-transform: scale3d(2.4, 2.4, 2.4);
99 -webkit-transform: translateX(-25px);
104 -webkit-transform: translateX(25px);
109 -webkit-transform: scale3d(2.2, 2.2, 2.2);
114 -webkit-transition: all 170ms ease;
116 /* Matching font-size 14px but since name is visible
117 when pod is not focused increase that a bit. */
120 line-height: 26px; /* This vertically centers text */
123 text-overflow: ellipsis;
131 .pod.need-password.focused .name {
139 .password-input-container {
141 /* This relative position is so the capslock hint is positioned correctly. */
146 -webkit-box-align: center;
147 background-color: rgba(0, 0, 0, 0);
148 background-image: none;
150 display: -webkit-box;
159 button.custom-button:focus:active,
160 button.custom-button:focus:hover {
161 border: 1px solid transparent !important;
169 .pod input[type='password'] {
170 -webkit-transition: opacity linear 150ms;
173 box-sizing: border-box;
174 display: inline-block;
181 .pod.need-password.focused .password-area {
182 display: -webkit-box;
186 .pod .launch-app-button {
187 box-sizing: border-box;
188 display: inline-block;
190 margin: 6px 0 !important;
192 min-width: 72px !important;
196 .pod:not(.focused) .signin-button,
197 .pod:not(.focused) .launch-app-button {
201 .pod .capslock-hint {
210 html[dir=rtl] .pod .capslock-hint {
215 .capslock-on .pod.focused input[type='password']:not([hidden]) ~ .capslock-hint {
219 .capslock-on .pod.focused .password {
220 padding: 4px 27px 4px 6px;
224 -webkit-transition: opacity 100ms ease-in-out;
225 background-color: white;
240 .action-box-area:focus,
241 .action-box-area.hovered,
242 .action-box-area.active {
247 background-color: transparent;
248 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL');
249 border: 0 !important;
256 .user-type-icon-area {
257 background-color: white;
271 html[dir=rtl] .user-type-icon-area {
276 .user-type-icon-image {
277 background-color: transparent;
278 border: 0 !important;
285 .user-type-icon-area.supervised .user-type-icon-image {
286 background-image: url('chrome://theme/IDR_MANAGED_MODE_ICON');
289 .user-type-icon-area.policy .user-type-icon-image {
290 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
293 .user-type-icon-area.app .user-type-icon-image {
294 background-image: url('chrome://theme/IDR_KIOSK_APP_USER_POD_ICON');
297 .user-type-icon-area.policy:hover ~ .user-type-bubble {
303 -webkit-transition: all 100ms ease-in-out;
304 background-color: white;
305 border: 1px solid lightgray;
320 html[dir=rtl] .user-type-bubble {
325 .user-type-bubble-header {
330 html[dir=rtl] .action-box-area {
335 .action-box-button:hover {
336 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_HOVER');
339 .action-box-area.active .action-box-button {
340 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED');
344 -webkit-transition: opacity 100ms ease-in-out;
345 background-color: white;
346 border: 1px solid lightgray;
357 /* TODO(glotov): the menu should fade out with transition */
363 html[dir=rtl] .action-box-menu {
368 .action-box-area.active ~ .action-box-menu {
373 .action-box-menu-title {
374 -webkit-box-orient: vertical;
375 -webkit-box-pack: center;
377 display: -webkit-box;
381 .action-box-menu-title-name {
382 display: -webkit-box;
385 text-overflow: ellipsis;
390 .action-box-menu-title-email {
394 text-overflow: ellipsis;
398 .action-box-menu-remove {
399 -webkit-box-align: center;
400 border-top: 1px solid lightgray;
401 display: -webkit-box;
406 .action-box-menu-remove:hover,
407 .action-box-menu-remove:focus {
408 background-color: #f3f3f3;
412 .action-box-remove-user-warning {
413 border-top: 1px solid lightgray;
420 .action-box-remove-user-warning-text {
421 padding-bottom: 20px;
424 .action-box-remove-user-warning .remove-warning-button {
428 html[oobe=old] .pod.focused .action-box-area {
429 /* Track shifting of .user-image on pod focus. */
430 -webkit-transform: translateY(-1px);
431 -webkit-transition: -webkit-transform 140ms ease;
435 .signed-in-indicator {
436 -webkit-transition: all 140ms ease;
437 background: rgba(0, 0, 0, 0.5);
442 /* Width of .user-image. */
447 /**** Public account user pod rules *******************************************/
449 .pod.public-account .name {
453 .pod.public-account .name,
455 -webkit-padding-end: 16px;
459 text-overflow: ellipsis;
463 .side-pane-learn-more {
464 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
471 .side-pane-learn-more:hover {
472 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
480 html[dir=rtl] .learn-more {
486 .side-pane-container {
493 -webkit-margin-start: 10px;
494 border-left: 1px solid lightgray;
500 html[dir=rtl] .side-pane-divider {
505 .side-pane-container {
512 html[dir=rtl] .side-pane-container {
517 .side-pane-contents {
518 -webkit-transform: translateX(-240px);
519 -webkit-transition: -webkit-transform 180ms ease;
524 html[dir=rtl] .side-pane-contents {
525 -webkit-transform: translateX(240px);
528 .pod.public-account.expanded .side-pane-contents {
529 -webkit-transform: translateX(0);
532 .side-pane-learn-more {
537 html[dir=rtl] .side-pane-learn-more {
542 .side-pane-container .info,
543 .side-pane-container .reminder {
547 .side-pane-container .info {
548 -webkit-margin-before: 25px;
551 .side-pane-container .reminder {
555 .side-pane-container .enter-button {
561 html[dir=rtl] .side-pane-container .enter-button {
566 .pod.public-account.expanded {
571 .pod.public-account:not(.expanded) {
575 .pod.public-account.expanded .name,
576 .pod.public-account.expanded .learn-more {
580 .pod.public-account.expanded .side-pane-divider,
581 .pod.public-account.expanded .side-pane-container,
582 .pod.public-account.animating .side-pane-container {