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;
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 .pod
[auth-type
='onlineSignIn'] .signin-button-container
,
356 .launch-app-button-container {
365 margin-top: 6px !important
;
368 text-overflow: ellipsis
;
372 .user-type-icon-area {
373 background-color: white
;
383 transition: opacity
100ms;
387 html
[dir
=rtl
] .action-box-area
{
392 .action-box-area:focus
,
393 .action-box-area
.hovered
,
394 .action-box-area
.active
,
395 .action-box-area.forced {
400 background-image: url
(chrome://theme
/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL
);
406 .action-box-button:hover {
407 background-image: url
(chrome://theme
/IDR_OOBE_ACTION_BOX_BUTTON_HOVER
);
410 .action-box-area.active .action-box-button {
411 background-image: url
(chrome://theme
/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED
);
414 .user-type-icon-area {
419 html
[dir
=rtl
] .user-type-icon-area
{
424 .user-type-icon-image {
430 .user-type-icon-area.legacySupervised .user-type-icon-image {
431 background-image: url
(chrome://theme
/IDR_LEGACY_SUPERVISED_USER_ICON
);
434 .user-type-icon-area.child .user-type-icon-image {
435 background-image: url
(chrome://theme
/IDR_CHILD_USER_ICON
);
438 .user-type-icon-area.policy .user-type-icon-image {
439 background-image: url
(chrome://theme
/IDR_CONTROLLED_SETTING_MANDATORY
);
442 .user-type-icon-area.app .user-type-icon-image {
443 background-image: url
(chrome://theme
/IDR_KIOSK_APP_USER_POD_ICON
);
451 .action-box-area.active ~ .action-box-menu {
452 background-color: white
;
453 border: 1px solid lightgray
;
456 flex-direction: column
;
463 .action-box-area.active ~ .action-box-menu.left-edge-offset {
467 .action-box-area.active ~ .action-box-menu.right-edge-offset {
471 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
475 .action-box-area.active ~ .action-box-menu.menu-moved-up {
479 .action-box-area.menu-moved-up {
480 -webkit-transform: rotate
(180deg);
483 html
[dir
=rtl
] .action-box-area
.active
~ .action-box-menu
{
488 .action-box-menu-title {
491 flex-direction: column
;
495 .action-box-menu-title-name
,
496 .action-box-menu-title-email {
501 text-overflow: ellipsis
;
505 .action-box-menu-remove {
506 border-top: 1px solid lightgray
;
510 padding: 12px 20px 7px;
513 .action-box-menu-remove:hover
,
514 .action-box-menu-remove:focus {
515 background-color: #f3f3f3;
518 .action-box-remove-user-warning {
519 border-top: 1px solid lightgray
;
525 .action-box-remove-user-warning-text
,
526 .action-box-remove-legacy-supervised-user-warning-text {
527 padding-bottom: 20px;
530 .action-box-remove-user-warning .remove-warning-button {
535 background-color: white
;
536 border: 1px solid lightgray
;
543 transition: all
100ms;
549 html
[dir
=rtl
] .user-type-bubble
{
555 .user-type-icon-area.policy:hover ~ .user-type-bubble {
560 .user-type-bubble-header {
565 /**** Public account user pod rules *******************************************/
567 .pod.public-account.expanded {
571 .pod.public-account.expanded.advanced {
575 .pod.public-account.focused .name-container {
579 .pod.public-account.expanded .name-container {
580 transform: translateY
(-34px);
583 .pod.public-account .learn-more-container {
588 .pod.public-account .learn-more {
589 background-image: url
(chrome://theme
/IDR_CONTROLLED_SETTING_MANDATORY
);
600 .pod
.public-account
.animating
.expanded-pane
,
601 .pod.public-account.expanded .expanded-pane {
609 .expanded-pane-contents {
611 flex-direction: column
;
617 .pod.public-account.transitioning-to-advanced .expanded-pane-contents {
618 transition: width
180ms;
621 .pod.public-account.expanded.advanced .expanded-pane-contents {
625 html
[dir
=rtl
] .expanded-pane-contents
{
630 -webkit-margin-start: 200px;
634 .expanded-pane-name {
639 text-overflow: ellipsis
;
647 .language-and-input-section {
651 .pod.public-account.transitioning-to-advanced .language-and-input-section {
654 transition: opacity
180ms ease
180ms;
657 .pod.public-account.expanded.advanced .language-and-input-section {
667 .language-select-label
,
668 .keyboard-select-label {
672 text-overflow: ellipsis
;
687 -webkit-margin-start: 10px;
693 .expanded-pane-learn-more-container
,
698 .expanded-pane-learn-more {
699 background-image: url
(chrome://theme
/IDR_CONTROLLED_SETTING_MANDATORY
);
710 text-overflow: ellipsis
;
714 .language-and-input-container {
715 -webkit-margin-end: 25px;
719 .language-and-input {
720 color: rgb
(49, 106, 197);
722 text-decoration: none
;
726 .pod.public-account.expanded.advanced .language-and-input-container {
734 /* Animations for the animated ellipsis: */
735 .animated-ellipsis-component0 {
736 -webkit-animation: ellipsis-component0
1.5s infinite
;
739 @-webkit-keyframes ellipsis-component0
{
747 .animated-ellipsis-component1 {
748 -webkit-animation: ellipsis-component1
1.5s infinite
;
751 @-webkit-keyframes ellipsis-component1
{
759 .animated-ellipsis-component2 {
760 -webkit-animation: ellipsis-component2
1.5s infinite
;
763 @-webkit-keyframes ellipsis-component2
{