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 {
219 text-overflow: ellipsis
;
224 -webkit-margin-end: 0;
225 -webkit-margin-start: auto
;
226 background-position: center
;
227 background-repeat: no-repeat
;
234 -webkit-transition: opacity
200ms ease-in-out
,
235 visibility
200ms ease-in-out
;
238 .custom-icon-hardlocked {
239 background-image: url
('chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED');
242 .custom-icon-hardlocked.icon-with-tooltip:hover {
243 background-image: url
('chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED_HOVER');
246 .custom-icon-hardlocked.interactive-custom-icon:active {
247 background-image: url
('chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED_PRESSED');
250 .custom-icon-locked {
251 background-image: url
('chrome://theme/IDR_EASY_UNLOCK_LOCKED');
254 .custom-icon-locked.icon-with-tooltip:hover {
255 background-image: url
('chrome://theme/IDR_EASY_UNLOCK_LOCKED_HOVER');
258 .custom-icon-locked.interactive-custom-icon:active {
259 background-image: url
('chrome://theme/IDR_EASY_UNLOCK_LOCKED_PRESSED');
262 .custom-icon-unlocked {
263 background-image: url
('chrome://theme/IDR_EASY_UNLOCK_UNLOCKED');
266 .custom-icon-unlocked.icon-with-tooltip:hover {
267 background-image: url
('chrome://theme/IDR_EASY_UNLOCK_UNLOCKED_HOVER');
270 .custom-icon-unlocked.interactive-custom-icon:active {
271 background-image: url
('chrome://theme/IDR_EASY_UNLOCK_UNLOCKED_PRESSED');
275 * Preloads resources for custom icon. Without this, the resources will be
276 * loaded when CSS properties using them are first applied, which has visible
277 * delay and may cause a short white flash when the icon background changes.
279 .custom-icon::after {
281 url
('chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED')
282 url
('chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED_HOVER')
283 url
('chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED_PRESSED')
284 url
('chrome://theme/IDR_EASY_UNLOCK_LOCKED')
285 url
('chrome://theme/IDR_EASY_UNLOCK_LOCKED_HOVER')
286 url
('chrome://theme/IDR_EASY_UNLOCK_LOCKED_PRESSED')
287 url
('chrome://theme/IDR_EASY_UNLOCK_UNLOCKED')
288 url
('chrome://theme/IDR_EASY_UNLOCK_UNLOCKED_HOVER')
289 url
('chrome://theme/IDR_EASY_UNLOCK_UNLOCKED_PRESSED');
293 .custom-icon-spinner {
294 -webkit-animation: easy-unlock-spinner-animation
2s steps
(45) infinite
;
295 background-image: url
('chrome://theme/IDR_EASY_UNLOCK_SPINNER');
298 @-webkit-keyframes easy-unlock-spinner-animation
{
299 from
{ background-position: 0 }
300 to
{ background-position: -1215px }
303 .interactive-custom-icon {
307 .custom-icon-container {
310 flex-direction: column
;
312 justify-content: center
;
316 .pod
[auth-type
='onlineSignIn'] .signin-button-container
,
317 .launch-app-button-container {
326 margin-top: 6px !important
;
329 text-overflow: ellipsis
;
333 .user-type-icon-area {
334 background-color: white
;
344 transition: opacity
100ms;
348 html
[dir
=rtl
] .action-box-area
{
353 .action-box-area:focus
,
354 .action-box-area
.hovered
,
355 .action-box-area.active {
360 background-image: url
('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL');
366 .action-box-button:hover {
367 background-image: url
('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_HOVER');
370 .action-box-area.active .action-box-button {
371 background-image: url
('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED');
374 .user-type-icon-area {
379 html
[dir
=rtl
] .user-type-icon-area
{
384 .user-type-icon-image {
390 .user-type-icon-area.supervised .user-type-icon-image {
391 background-image: url
('chrome://theme/IDR_SUPERVISED_USER_ICON');
394 .user-type-icon-area.policy .user-type-icon-image {
395 background-image: url
('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
398 .user-type-icon-area.app .user-type-icon-image {
399 background-image: url
('chrome://theme/IDR_KIOSK_APP_USER_POD_ICON');
407 .action-box-area.active ~ .action-box-menu {
408 background-color: white
;
409 border: 1px solid lightgray
;
412 flex-direction: column
;
419 .action-box-area.active ~ .action-box-menu.left-edge-offset {
423 .action-box-area.active ~ .action-box-menu.right-edge-offset {
427 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
431 .action-box-area.active ~ .action-box-menu.menu-moved-up {
435 .action-box-area.menu-moved-up {
436 -webkit-transform: rotate
(180deg);
439 html
[dir
=rtl
] .action-box-area
.active
~ .action-box-menu
{
444 .action-box-menu-title {
447 flex-direction: column
;
451 .action-box-menu-title-name
,
452 .action-box-menu-title-email {
457 text-overflow: ellipsis
;
461 .action-box-menu-remove {
462 border-top: 1px solid lightgray
;
466 padding: 12px 20px 7px;
469 .action-box-menu-remove:hover
,
470 .action-box-menu-remove:focus {
471 background-color: #f3f3f3;
474 .action-box-remove-user-warning {
475 border-top: 1px solid lightgray
;
481 .action-box-remove-user-warning-text
,
482 .action-box-remove-supervised-user-warning-text {
483 padding-bottom: 20px;
486 .action-box-remove-user-warning .remove-warning-button {
491 background-color: white
;
492 border: 1px solid lightgray
;
499 transition: all
100ms;
505 html
[dir
=rtl
] .user-type-bubble
{
511 .user-type-icon-area.policy:hover ~ .user-type-bubble {
516 .user-type-bubble-header {
521 /**** Public account user pod rules *******************************************/
523 .pod.public-account.expanded {
527 .pod.public-account.expanded.advanced {
531 .pod.public-account.focused .name-container {
535 .pod.public-account.expanded .name-container {
536 transform: translateY
(-34px);
539 .pod.public-account .learn-more-container {
544 .pod.public-account .learn-more {
545 background-image: url
('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
556 .pod
.public-account
.animating
.expanded-pane
,
557 .pod.public-account.expanded .expanded-pane {
565 .expanded-pane-contents {
567 flex-direction: column
;
573 .pod.public-account.transitioning-to-advanced .expanded-pane-contents {
574 transition: width
180ms;
577 .pod.public-account.expanded.advanced .expanded-pane-contents {
581 html
[dir
=rtl
] .expanded-pane-contents
{
586 -webkit-margin-start: 200px;
590 .expanded-pane-name {
595 text-overflow: ellipsis
;
603 .language-and-input-section {
607 .pod.public-account.transitioning-to-advanced .language-and-input-section {
610 transition: opacity
180ms ease
180ms;
613 .pod.public-account.expanded.advanced .language-and-input-section {
623 .language-select-label
,
624 .keyboard-select-label {
628 text-overflow: ellipsis
;
643 -webkit-margin-start: 10px;
649 .expanded-pane-learn-more-container
,
654 .expanded-pane-learn-more {
655 background-image: url
('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
666 text-overflow: ellipsis
;
670 .language-and-input-container {
671 -webkit-margin-end: 25px;
675 .language-and-input {
676 color: rgb
(49, 106, 197);
678 text-decoration: none
;
682 .pod.public-account.expanded.advanced .language-and-input-container {