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 background-color: white;
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);
33 transform: scale3d(0.9, 0.9, 0.9);
38 .account-picker.flying-pods .pod {
39 transition: all 180ms;
46 podrow[ncolumns='6'] .pod {
47 transform: scale3d(0.8, 0.8, 0.8);
51 /* Focused pod has the same size no matter how many pods. */
53 transform: scale3d(1, 1, 1) !important;
57 .pod.focused[auth-type='userClick'] {
62 background-color: white;
71 html[dir=rtl] .user-image-pane {
76 .user-image-container {
80 justify-content: center;
88 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the
89 style rule once it is included on CrOS only. crbug.com/397638 */
90 html:not([screen=login-add-user]) .pod .user-image {
96 html:not([screen=login-add-user]) .pod.focused .user-image {
100 .pod.multiprofiles-policy-applied .user-image {
101 -webkit-filter: grayscale(100%);
104 .signed-in-indicator {
108 .pod.signed-in .signed-in-indicator {
109 background-color: rgba(0, 0, 0, 0.5);
127 html[dir=rtl] .main-pane {
133 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
134 background-color: white;
142 transition: transform 180ms;
145 .pod.focused .name-container {
149 .pod.focused.multiprofiles-policy-applied .name-container {
155 /* This should be 15.6px - the equivalent of 14px at 90% scale. */
163 text-overflow: ellipsis;
167 .learn-more-container,
169 .password-entry-container,
170 .signin-button-container {
174 .pod[auth-type='offlinePassword'].focused .password-entry-container,
175 .pod[auth-type='forceOfflinePassword'].focused .password-entry-container {
180 .password-container {
184 .pod input[type='password'] {
185 background-color: white;
193 .capslock-hint-container {
197 .capslock-on .capslock-hint-container {
203 -webkit-margin-end: 6px;
204 -webkit-margin-start: -2px;
213 .pod[auth-type='userClick'] .password-label {
218 text-overflow: ellipsis;
223 -webkit-margin-end: 0;
224 -webkit-margin-start: auto;
225 background-position: center;
226 background-repeat: no-repeat;
231 -webkit-transition: opacity 200ms ease-in-out,
232 visibility 200ms ease-in-out;
235 .custom-icon-container {
238 flex-direction: column;
240 justify-content: center;
244 .pod[auth-type='onlineSignIn'] .signin-button-container,
245 .launch-app-button-container {
254 margin-top: 6px !important;
257 text-overflow: ellipsis;
261 .user-type-icon-area {
262 background-color: white;
272 transition: opacity 100ms;
276 html[dir=rtl] .action-box-area {
281 .action-box-area:focus,
282 .action-box-area.hovered,
283 .action-box-area.active {
288 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL');
294 .action-box-button:hover {
295 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_HOVER');
298 .action-box-area.active .action-box-button {
299 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED');
302 .user-type-icon-area {
307 html[dir=rtl] .user-type-icon-area {
312 .user-type-icon-image {
318 .user-type-icon-area.supervised .user-type-icon-image {
319 background-image: url('chrome://theme/IDR_SUPERVISED_USER_ICON');
322 .user-type-icon-area.policy .user-type-icon-image {
323 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
326 .user-type-icon-area.app .user-type-icon-image {
327 background-image: url('chrome://theme/IDR_KIOSK_APP_USER_POD_ICON');
335 .action-box-area.active ~ .action-box-menu {
336 background-color: white;
337 border: 1px solid lightgray;
340 flex-direction: column;
347 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
351 .action-box-area.active ~ .action-box-menu.menu-moved-up {
355 .action-box-area.menu-moved-up {
356 -webkit-transform: rotate(180deg);
359 html[dir=rtl] .action-box-area.active ~ .action-box-menu {
364 .action-box-menu-title {
367 flex-direction: column;
371 .action-box-menu-title-name,
372 .action-box-menu-title-email {
377 text-overflow: ellipsis;
381 .action-box-menu-remove {
382 border-top: 1px solid lightgray;
386 padding: 12px 20px 7px;
389 .action-box-menu-remove:hover,
390 .action-box-menu-remove:focus {
391 background-color: #f3f3f3;
394 .action-box-remove-user-warning {
395 border-top: 1px solid lightgray;
401 .action-box-remove-user-warning-text,
402 .action-box-remove-supervised-user-warning-text {
403 padding-bottom: 20px;
406 .action-box-remove-user-warning .remove-warning-button {
411 background-color: white;
412 border: 1px solid lightgray;
419 transition: all 100ms;
425 html[dir=rtl] .user-type-bubble {
431 .user-type-icon-area.policy:hover ~ .user-type-bubble {
436 .user-type-bubble-header {
441 /**** Public account user pod rules *******************************************/
443 .pod.public-account.expanded {
447 .pod.public-account.expanded.advanced {
451 .pod.public-account.focused .name-container {
455 .pod.public-account.expanded .name-container {
456 transform: translateY(-34px);
459 .pod.public-account .learn-more-container {
464 .pod.public-account .learn-more {
465 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
476 .pod.public-account.animating .expanded-pane,
477 .pod.public-account.expanded .expanded-pane {
485 .expanded-pane-contents {
487 flex-direction: column;
493 .pod.public-account.transitioning-to-advanced .expanded-pane-contents {
494 transition: width 180ms;
497 .pod.public-account.expanded.advanced .expanded-pane-contents {
501 html[dir=rtl] .expanded-pane-contents {
506 -webkit-margin-start: 200px;
510 .expanded-pane-name {
515 text-overflow: ellipsis;
523 .language-and-input-section {
527 .pod.public-account.transitioning-to-advanced .language-and-input-section {
530 transition: opacity 180ms ease 180ms;
533 .pod.public-account.expanded.advanced .language-and-input-section {
543 .language-select-label,
544 .keyboard-select-label {
548 text-overflow: ellipsis;
563 -webkit-margin-start: 10px;
569 .expanded-pane-learn-more-container,
574 .expanded-pane-learn-more {
575 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
586 text-overflow: ellipsis;
590 .language-and-input-container {
591 -webkit-margin-end: 25px;
595 .language-and-input {
596 color: rgb(49, 106, 197);
598 text-decoration: none;
602 .pod.public-account.expanded.advanced .language-and-input-container {