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.
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.focused[auth-type='userClick'] {
71 .pod .user-image-container {
81 vertical-align: middle;
89 .pod.focused .user-image {
93 .pod.not-focusable .user-image {
94 -webkit-filter: grayscale(100%);
98 -webkit-transform: scale3d(2.4, 2.4, 2.4);
103 -webkit-transform: translateX(-25px);
108 -webkit-transform: translateX(25px);
113 -webkit-transform: scale3d(2.2, 2.2, 2.2);
118 -webkit-transition: all 170ms ease;
120 /* Matching font-size 14px but since name is visible
121 when pod is not focused increase that a bit. */
124 line-height: 26px; /* This vertically centers text */
127 text-overflow: ellipsis;
135 .pod.need-password.focused .name {
143 .password-input-container {
145 /* This relative position is so the capslock hint is positioned correctly. */
150 -webkit-box-align: center;
155 text-overflow: ellipsis;
158 .pod[auth-type='userClick'] .password-label {
159 display: -webkit-box;
163 -webkit-box-align: center;
164 background-color: rgba(0, 0, 0, 0);
165 background-image: none;
167 display: -webkit-box;
176 button.custom-button:focus:active,
177 button.custom-button:focus:hover {
178 border: 1px solid transparent !important;
186 .pod input[type='password'] {
187 -webkit-transition: opacity linear 150ms;
190 box-sizing: border-box;
198 .pod[auth-type='offlinePassword'] input[type='password'] {
199 display: inline-block;
202 .pod.need-password.focused .password-area {
203 display: -webkit-box;
207 .pod .launch-app-button {
208 box-sizing: border-box;
211 margin: 6px 0 !important;
213 min-width: 72px !important;
217 .pod.focused .launch-app-button,
218 .pod.focused[auth-type='onlineSignIn'] .signin-button {
219 display: inline-block;
222 .pod .capslock-hint {
231 html[dir=rtl] .pod .capslock-hint {
236 .capslock-on .pod.focused input[type='password']:not([hidden]) ~ .capslock-hint {
240 .capslock-on .pod.focused .password {
241 padding: 4px 27px 4px 6px;
245 -webkit-transition: opacity 100ms ease-in-out;
246 background-color: white;
261 .action-box-area:focus,
262 .action-box-area.hovered,
263 .action-box-area.active {
268 background-color: transparent;
269 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL');
270 border: 0 !important;
277 .user-type-icon-area {
278 background-color: white;
292 html[dir=rtl] .user-type-icon-area {
297 .user-type-icon-image {
298 background-color: transparent;
299 border: 0 !important;
306 .user-type-icon-area.supervised .user-type-icon-image {
307 background-image: url('chrome://theme/IDR_MANAGED_MODE_ICON');
310 .user-type-icon-area.policy .user-type-icon-image {
311 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
314 .user-type-icon-area.app .user-type-icon-image {
315 background-image: url('chrome://theme/IDR_KIOSK_APP_USER_POD_ICON');
318 .user-type-icon-area.policy:hover ~ .user-type-bubble {
324 -webkit-transition: all 100ms ease-in-out;
325 background-color: white;
326 border: 1px solid lightgray;
341 html[dir=rtl] .user-type-bubble {
346 .user-type-bubble-header {
351 .easy-unlock-button-content {
355 html[dir=rtl] .action-box-area {
360 .action-box-button:hover {
361 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_HOVER');
364 .action-box-area.active .action-box-button {
365 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED');
369 -webkit-transition: opacity 100ms ease-in-out;
370 background-color: white;
371 border: 1px solid lightgray;
383 /* TODO(glotov): the menu should fade out with transition */
389 html[dir=rtl] .action-box-menu {
394 .action-box-area.active ~ .action-box-menu {
395 -webkit-box-orient: vertical;
396 display: -webkit-box;
401 .action-box-menu-title {
402 -webkit-box-orient: vertical;
403 -webkit-box-pack: center;
405 display: -webkit-box;
409 .action-box-menu-title-name {
410 display: -webkit-box;
413 text-overflow: ellipsis;
418 .action-box-menu-title-email {
422 text-overflow: ellipsis;
426 .action-box-menu-remove {
427 -webkit-box-align: center;
428 border-top: 1px solid lightgray;
429 display: -webkit-box;
434 .action-box-menu-remove:hover,
435 .action-box-menu-remove:focus {
436 background-color: #f3f3f3;
440 .action-box-remove-user-warning {
441 border-top: 1px solid lightgray;
448 .action-box-remove-user-warning-text {
449 padding-bottom: 20px;
452 .action-box-remove-user-warning .remove-warning-button {
456 html[oobe=old] .pod.focused .action-box-area {
457 /* Track shifting of .user-image on pod focus. */
458 -webkit-transform: translateY(-1px);
459 -webkit-transition: -webkit-transform 140ms ease;
463 .signed-in-indicator {
464 -webkit-transition: all 140ms ease;
465 background: rgba(0, 0, 0, 0.5);
470 /* Width of .user-image. */
475 /**** Public account user pod rules *******************************************/
477 .pod.public-account .name {
481 .pod.public-account .name,
483 -webkit-padding-end: 16px;
487 text-overflow: ellipsis;
491 .side-pane-learn-more {
492 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
499 .side-pane-learn-more:hover {
500 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
508 html[dir=rtl] .learn-more {
514 .side-pane-container {
521 -webkit-margin-start: 10px;
522 border-left: 1px solid lightgray;
528 html[dir=rtl] .side-pane-divider {
533 .side-pane-container {
540 html[dir=rtl] .side-pane-container {
545 .side-pane-contents {
546 -webkit-transform: translateX(-240px);
547 -webkit-transition: -webkit-transform 180ms ease;
552 html[dir=rtl] .side-pane-contents {
553 -webkit-transform: translateX(240px);
556 .pod.public-account.expanded .side-pane-contents {
557 -webkit-transform: translateX(0);
560 .side-pane-learn-more {
565 html[dir=rtl] .side-pane-learn-more {
570 .side-pane-container .info,
571 .side-pane-container .reminder {
575 .side-pane-container .info {
576 -webkit-margin-before: 25px;
579 .side-pane-container .reminder {
583 .side-pane-container .enter-button {
589 html[dir=rtl] .side-pane-container .enter-button {
594 .pod.public-account.expanded {
599 .pod.public-account:not(.expanded) {
603 .pod.public-account.expanded .name,
604 .pod.public-account.expanded .learn-more {
608 .pod.public-account.expanded .side-pane-divider,
609 .pod.public-account.expanded .side-pane-container,
610 .pod.public-account.animating .side-pane-container {