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 .reauth-hint-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;
210 .signin-transition-container {
214 .pod
[auth-type
='userClick']:not
(.signing-in
) .password-label
,
215 .pod[auth-type='userClick'].signing-in .signin-transition-container {
222 text-overflow: ellipsis
;
227 -webkit-margin-end: 0;
228 -webkit-margin-start: auto
;
229 background-position: center
;
230 background-repeat: no-repeat
;
237 -webkit-transition: opacity
200ms ease-in-out
,
238 visibility
200ms ease-in-out
;
241 .custom-icon-hardlocked {
242 background-image: url
(chrome://theme
/IDR_EASY_UNLOCK_HARDLOCKED
);
245 .custom-icon-hardlocked.icon-with-tooltip:hover {
246 background-image: url
(chrome://theme
/IDR_EASY_UNLOCK_HARDLOCKED_HOVER
);
249 .custom-icon-hardlocked.interactive-custom-icon:active {
250 background-image: url
(chrome://theme
/IDR_EASY_UNLOCK_HARDLOCKED_PRESSED
);
253 .custom-icon-locked {
254 background-image: url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED
);
257 .custom-icon-locked.icon-with-tooltip:hover {
258 background-image: url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_HOVER
);
261 .custom-icon-locked.interactive-custom-icon:active {
262 background-image: url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_PRESSED
);
265 .custom-icon-locked-to-be-activated {
267 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED
);
270 .custom-icon-locked-to-be-activated.icon-with-tooltip:hover {
272 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED_HOVER
);
275 .custom-icon-locked-to-be-activated.interactive-custom-icon:active {
277 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED_PRESSED
);
280 .custom-icon-locked-with-proximity-hint {
282 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT
);
285 .custom-icon-locked-with-proximity-hint.icon-with-tooltip:hover {
287 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT_HOVER
);
290 .custom-icon-locked-with-proximity-hint.interactive-custom-icon:active {
292 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT_PRESSED
);
295 .custom-icon-unlocked {
296 background-image: url
(chrome://theme
/IDR_EASY_UNLOCK_UNLOCKED
);
299 .custom-icon-unlocked.icon-with-tooltip:hover {
300 background-image: url
(chrome://theme
/IDR_EASY_UNLOCK_UNLOCKED_HOVER
);
303 .custom-icon-unlocked.interactive-custom-icon:active {
304 background-image: url
(chrome://theme
/IDR_EASY_UNLOCK_UNLOCKED_PRESSED
);
308 * Preloads resources for custom icon. Without this, the resources will be
309 * loaded when CSS properties using them are first applied, which has visible
310 * delay and may cause a short white flash when the icon background changes.
312 .custom-icon::after {
314 url
(chrome://theme
/IDR_EASY_UNLOCK_HARDLOCKED
)
315 url
(chrome://theme
/IDR_EASY_UNLOCK_HARDLOCKED_HOVER
)
316 url
(chrome://theme
/IDR_EASY_UNLOCK_HARDLOCKED_PRESSED
)
317 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED
)
318 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_HOVER
)
319 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_PRESSED
)
320 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED
)
321 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED_HOVER
)
322 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED_PRESSED
)
323 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT
)
324 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT_HOVER
)
325 url
(chrome://theme
/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT_PRESSED
)
326 url
(chrome://theme
/IDR_EASY_UNLOCK_UNLOCKED
)
327 url
(chrome://theme
/IDR_EASY_UNLOCK_UNLOCKED_HOVER
)
328 url
(chrome://theme
/IDR_EASY_UNLOCK_UNLOCKED_PRESSED
);
332 .custom-icon-spinner {
333 -webkit-animation: easy-unlock-spinner-animation
2s steps
(45) infinite
;
334 background-image: url
(chrome://theme
/IDR_EASY_UNLOCK_SPINNER
);
337 @-webkit-keyframes easy-unlock-spinner-animation
{
338 from
{ background-position: 0 }
339 to
{ background-position: -1215px }
342 .interactive-custom-icon {
346 .custom-icon-container {
349 flex-direction: column
;
351 justify-content: center
;
355 .launch-app-button-container {
363 margin-top: 6px !important
;
366 text-overflow: ellipsis
;
369 .pod[auth-type='onlineSignIn'] .reauth-hint-container {
373 justify-content: center
;
376 .reauth-hint-container .reauth-warning {
378 display: inline-flex
;
381 .reauth-hint-container .reauth-name-hint {
389 text-overflow: ellipsis
;
394 .user-type-icon-area {
395 background-color: white
;
405 transition: opacity
100ms;
409 html
[dir
=rtl
] .action-box-area
{
414 .action-box-area:focus
,
415 .action-box-area
.hovered
,
416 .action-box-area
.active
,
417 .action-box-area.forced {
422 background-image: url
(chrome://theme
/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL
);
428 .action-box-button:hover {
429 background-image: url
(chrome://theme
/IDR_OOBE_ACTION_BOX_BUTTON_HOVER
);
432 .action-box-area.active .action-box-button {
433 background-image: url
(chrome://theme
/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED
);
436 .user-type-icon-area {
441 html
[dir
=rtl
] .user-type-icon-area
{
446 .user-type-icon-image {
452 .user-type-icon-area.legacySupervised .user-type-icon-image {
453 background-image: url
(../../webui/resources/images/supervisor_account.svg);
454 background-size: 18px;
457 .user-type-icon-area.child .user-type-icon-image {
458 background-image: url
(../../webui/resources/images/account_child_invert.svg);
459 background-size: 18px;
462 .user-type-icon-area.policy .user-type-icon-image {
463 background-image: url
(../../webui/resources/images/business.svg);
464 background-size: 18px;
467 .user-type-icon-area.app .user-type-icon-image {
468 background-image: url
(chrome://theme
/IDR_KIOSK_APP_USER_POD_ICON
);
476 .action-box-area.active ~ .action-box-menu {
477 background-color: white
;
478 border: 1px solid lightgray
;
481 flex-direction: column
;
488 .action-box-area.active ~ .action-box-menu.left-edge-offset {
492 .action-box-area.active ~ .action-box-menu.right-edge-offset {
496 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
500 .action-box-area.active ~ .action-box-menu.menu-moved-up {
504 .action-box-area.menu-moved-up {
505 -webkit-transform: rotate
(180deg);
508 html
[dir
=rtl
] .action-box-area
.active
~ .action-box-menu
{
513 .action-box-menu-title {
516 flex-direction: column
;
520 .action-box-menu-title-name
,
521 .action-box-menu-title-email {
526 text-overflow: ellipsis
;
530 .action-box-menu-remove {
531 border-top: 1px solid lightgray
;
535 padding: 12px 20px 7px;
538 .action-box-menu-remove:hover
,
539 .action-box-menu-remove:focus {
540 background-color: #f3f3f3;
543 .action-box-remove-user-warning {
544 border-top: 1px solid lightgray
;
550 .action-box-remove-user-warning-text
,
551 .action-box-remove-legacy-supervised-user-warning-text {
552 padding-bottom: 20px;
555 .action-box-remove-user-warning .remove-warning-button {
560 background-color: white
;
561 border: 1px solid lightgray
;
568 transition: all
100ms;
574 html
[dir
=rtl
] .user-type-bubble
{
580 .user-type-icon-area.policy:hover ~ .user-type-bubble {
585 .user-type-bubble-header {
590 /**** Public account user pod rules *******************************************/
592 .pod.public-account.expanded {
596 .pod.public-account.expanded.advanced {
600 .pod.public-account.focused .name-container {
604 .pod.public-account.expanded .name-container {
605 transform: translateY
(-34px);
608 .pod.public-account .learn-more-container {
613 .pod.public-account .learn-more {
621 .pod
.public-account
.animating
.expanded-pane
,
622 .pod.public-account.expanded .expanded-pane {
630 .expanded-pane-contents {
632 flex-direction: column
;
638 .pod.public-account.transitioning-to-advanced .expanded-pane-contents {
639 transition: width
180ms;
642 .pod.public-account.expanded.advanced .expanded-pane-contents {
646 html
[dir
=rtl
] .expanded-pane-contents
{
651 -webkit-margin-start: 200px;
655 .expanded-pane-name {
660 text-overflow: ellipsis
;
668 .language-and-input-section {
672 .pod.public-account.transitioning-to-advanced .language-and-input-section {
675 transition: opacity
180ms ease
180ms;
678 .pod.public-account.expanded.advanced .language-and-input-section {
688 .language-select-label
,
689 .keyboard-select-label {
693 text-overflow: ellipsis
;
708 -webkit-margin-start: 10px;
714 .expanded-pane-learn-more-container
,
719 .expanded-pane-learn-more
,
720 .pod.public-account .learn-more {
721 background-image: url
(../../webui/resources/images/business.svg);
727 .expanded-pane-learn-more {
735 text-overflow: ellipsis
;
739 .language-and-input-container {
740 -webkit-margin-end: 25px;
744 .language-and-input {
745 color: rgb
(49, 106, 197);
747 text-decoration: none
;
751 .pod.public-account.expanded.advanced .language-and-input-container {
759 /* Animations for the animated ellipsis: */
760 .animated-ellipsis-component0 {
761 -webkit-animation: ellipsis-component0
1.5s infinite
;
764 @-webkit-keyframes ellipsis-component0
{
772 .animated-ellipsis-component1 {
773 -webkit-animation: ellipsis-component1
1.5s infinite
;
776 @-webkit-keyframes ellipsis-component1
{
784 .animated-ellipsis-component2 {
785 -webkit-animation: ellipsis-component2
1.5s infinite
;
788 @-webkit-keyframes ellipsis-component2
{