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 {
75 justify-content: center;
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 border-radius: 0; /* override widgets.css rule */
191 box-sizing: border-box;
199 .pod[auth-type='offlinePassword'] input[type='password'] {
200 display: inline-block;
203 .pod.need-password.focused .password-area {
204 display: -webkit-box;
208 .pod .launch-app-button {
209 box-sizing: border-box;
212 margin: 6px 0 !important;
214 min-width: 72px !important;
218 .pod.focused .launch-app-button,
219 .pod.focused[auth-type='onlineSignIn'] .signin-button {
220 display: inline-block;
223 .pod .capslock-hint {
232 html[dir=rtl] .pod .capslock-hint {
237 .capslock-on .pod.focused input[type='password']:not([hidden]) ~ .capslock-hint {
241 .capslock-on .pod.focused .password {
242 padding: 4px 27px 4px 6px;
246 -webkit-transition: opacity 100ms ease-in-out;
247 background-color: white;
262 .action-box-area:focus,
263 .action-box-area.hovered,
264 .action-box-area.active {
269 background-color: transparent;
270 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL');
271 border: 0 !important;
278 .user-type-icon-area {
279 background-color: white;
293 html[dir=rtl] .user-type-icon-area {
298 .user-type-icon-image {
299 background-color: transparent;
300 border: 0 !important;
307 .user-type-icon-area.supervised .user-type-icon-image {
308 background-image: url('chrome://theme/IDR_MANAGED_MODE_ICON');
311 .user-type-icon-area.policy .user-type-icon-image {
312 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
315 .user-type-icon-area.app .user-type-icon-image {
316 background-image: url('chrome://theme/IDR_KIOSK_APP_USER_POD_ICON');
319 .user-type-icon-area.policy:hover ~ .user-type-bubble {
325 -webkit-transition: all 100ms ease-in-out;
326 background-color: white;
327 border: 1px solid lightgray;
342 html[dir=rtl] .user-type-bubble {
347 .user-type-bubble-header {
352 .easy-unlock-button-content {
356 html[dir=rtl] .action-box-area {
361 .action-box-button:hover {
362 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_HOVER');
365 .action-box-area.active .action-box-button {
366 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED');
370 -webkit-transition: opacity 100ms ease-in-out;
371 background-color: white;
372 border: 1px solid lightgray;
384 /* TODO(glotov): the menu should fade out with transition */
390 html[dir=rtl] .action-box-menu {
395 .action-box-area.active ~ .action-box-menu {
396 -webkit-box-orient: vertical;
397 display: -webkit-box;
402 .action-box-menu-title {
403 -webkit-box-orient: vertical;
404 -webkit-box-pack: center;
406 display: -webkit-box;
410 .action-box-menu-title-name {
411 display: -webkit-box;
414 text-overflow: ellipsis;
419 .action-box-menu-title-email {
423 text-overflow: ellipsis;
427 .action-box-menu-remove {
428 -webkit-box-align: center;
429 border-top: 1px solid lightgray;
430 display: -webkit-box;
435 .action-box-menu-remove:hover,
436 .action-box-menu-remove:focus {
437 background-color: #f3f3f3;
441 .action-box-remove-user-warning {
442 border-top: 1px solid lightgray;
449 .action-box-remove-user-warning-text {
450 padding-bottom: 20px;
453 .action-box-remove-user-warning .remove-warning-button {
457 html[oobe=old] .pod.focused .action-box-area {
458 /* Track shifting of .user-image on pod focus. */
459 -webkit-transform: translateY(-1px);
460 -webkit-transition: -webkit-transform 140ms ease;
464 .signed-in-indicator {
465 -webkit-transition: all 140ms ease;
466 background: rgba(0, 0, 0, 0.5);
471 /* Width of .user-image. */
476 /**** Public account user pod rules *******************************************/
478 .pod.public-account .name {
482 .pod.public-account .name,
484 -webkit-padding-end: 16px;
488 text-overflow: ellipsis;
492 .side-pane-learn-more {
493 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
500 .side-pane-learn-more:hover {
501 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
509 html[dir=rtl] .learn-more {
515 .side-pane-container {
522 -webkit-margin-start: 10px;
523 border-left: 1px solid lightgray;
529 html[dir=rtl] .side-pane-divider {
534 .side-pane-container {
541 html[dir=rtl] .side-pane-container {
546 .side-pane-contents {
547 -webkit-transform: translateX(-240px);
548 -webkit-transition: -webkit-transform 180ms ease;
553 html[dir=rtl] .side-pane-contents {
554 -webkit-transform: translateX(240px);
557 .pod.public-account.expanded .side-pane-contents {
558 -webkit-transform: translateX(0);
561 .side-pane-learn-more {
566 html[dir=rtl] .side-pane-learn-more {
571 .side-pane-container .info,
572 .side-pane-container .reminder {
576 .side-pane-container .info {
577 -webkit-margin-before: 25px;
580 .side-pane-container .reminder {
584 .side-pane-container .enter-button {
590 html[dir=rtl] .side-pane-container .enter-button {
595 .pod.public-account.expanded {
600 .pod.public-account:not(.expanded) {
604 .pod.public-account.expanded .name,
605 .pod.public-account.expanded .learn-more {
609 .pod.public-account.expanded .side-pane-divider,
610 .pod.public-account.expanded .side-pane-container,
611 .pod.public-account.animating .side-pane-container {