blob: 7e24e27eec48becae31634285812e4fecf9339e2 [file] [log] [blame]
/* Copyright 2014 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* This is the stylesheet used by user pods row of account picker UI.
*/
podrow {
/* Temporarily disabled because animation interferes with updating screen's
size. */
height: 100%;
overflow: visible;
position: absolute;
width: 100%;
}
/* Hide the pod row while images are loading. */
podrow.images-loading {
visibility: hidden;
}
pin-keyboard {
display: block;
}
.pod {
-webkit-tap-highlight-color: transparent;
border-radius: 2px;
cursor: pointer;
height: 346px;
outline: none;
position: absolute;
top: 0;
transform: scale3d(0.9, 0.9, 0.9);
width: 306px;
z-index: 0;
}
.account-picker.flying-pods .pod {
transition: all 180ms;
}
.pod.pin-enabled {
height: 417px;
top: -87px !important;
}
.pod .pin-container {
left: 36px;
position: absolute;
top: 300px;
width: 234px;
z-index: 3;
}
.pod.faded {
opacity: .75;
}
podrow[ncolumns='6'] .pod {
transform: scale3d(0.8, 0.8, 0.8);
}
.pod.focused {
/* Focused pod has the same size no matter how many pods. */
cursor: default;
transform: scale3d(1, 1, 1) !important;
z-index: 1;
}
.pod.focused[auth-type='userClick'] {
cursor: pointer;
}
.user-image-pane {
height: 96px;
left: 105px;
position: absolute;
top: 54px;
transition: height 180ms ease-in-out,
left 180ms ease-in-out,
right 180ms ease-in-out,
top 180ms ease-in-out,
width 180ms ease-in-out;
width: 96px;
z-index: 3;
}
html[dir=rtl] .user-image-pane {
left: auto;
right: 10px;
}
.user-image-container {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
width: 100%;
}
.user-image {
border-radius: 50%;
height: 100%;
width: 100%;
}
.pod .user-image {
flex: none;
}
/* TODO(noms): Refactor this out into a CrOS-specific file and simplify the
style rule once it is included on CrOS only. crbug.com/397638 */
html:not([screen=login-add-user]) .pod .user-image {
max-height: 160px;
max-width: 160px;
opacity: 0.7;
position: absolute;
}
html:not([screen=login-add-user]) .pod.focused .user-image {
opacity: 1;
}
.pod.multiprofiles-policy-applied .user-image {
-webkit-filter: grayscale(100%);
}
.main-pane {
position: absolute;
z-index: 2;
}
html[dir=rtl] .main-pane {
left: auto;
right: 10px;
}
.name-container {
display: flex;
position: absolute;
top: 182px;
}
.pod.focused:not(.multiprofiles-policy-applied) .auth-container {
display: flex;
height: 40px;
left: 51px;
padding-bottom: 16px;
position: absolute;
top: 244px;
/* On chromeos we extend the width to cover the padding on the user pods. This
is so the submit button on chromeos can extend onto the padding as shown on
mocks. */
<if expr="not chromeos">
width: 160px;
</if>
<if expr="chromeos">
width: 204px;
</if>
}
.auth-container .submit-button[disabled] {
opacity: 0.34;
}
.auth-container .submit-button {
color: #FFFFFF;
height: 40px;
opacity: 1;
padding: 12px 0 4px 0;
width: 24px;
}
.name-container {
transition: transform 180ms;
}
.pod.focused .name-container {
display: flex;
}
.pod.focused.multiprofiles-policy-applied .name-container {
display: flex;
}
.name {
color: #FFFFFF;
/* This should be 15.6px - the equivalent of 14px at 90% scale. */
flex: auto;
font-family: "Roboto";
font-size: 26px;
outline: none;
overflow: hidden;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
}
.learn-more-container,
.auth-container,
.password-entry-container,
.reauth-hint-container {
display: none;
}
#input-line {
opacity: 0.34;
position: absolute;
stroke: #FFFFFF;
stroke-width: 1;
top: 40px;
}
#input-line[active] {
opacity: 1;
}
.pod[is-active-directory] .reauth-warning {
display: none;
}
.pod[auth-type='offlinePassword'].focused .password-entry-container,
.pod[auth-type='forceOfflinePassword'].focused .password-entry-container {
display: flex;
flex: auto;
}
.password-container {
height: 40px;
width: 180px;
}
.pod input[type='password'] {
background-color: transparent;
border: none;
color: rgba(255, 255, 255, .67);
font-family: "Roboto";
font-size: 13px;
height: 100%;
letter-spacing: 8px;
padding: 0;
width: 100%;
}
.pod input[type='password']::-webkit-input-placeholder {
letter-spacing: 0;
}
.capslock-hint-container {
display: none;
}
<if expr="chromeos">
.capslock-on .capslock-hint-container {
display: block;
flex: none;
height: 43px;
position: relative;
width: 20px;
}
</if>
.capslock-hint {
-webkit-margin-end: 6px;
-webkit-margin-start: -2px;
margin: auto;
position: relative;
top: 15px;
}
.password-label,
.signin-transition-container {
display: none;
}
.pod[auth-type='userClick']:not(.signing-in) .password-label,
.pod[auth-type='userClick'].signing-in .signin-transition-container {
color: grey;
display: block;
flex: auto;
margin-top: 11px;
outline: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.custom-icon {
-webkit-margin-end: 0;
-webkit-margin-start: auto;
background-position: center;
background-repeat: no-repeat;
flex: none;
height: 27px;
margin: 8px 0;
width: 27px;
}
.custom-icon.faded {
transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out;
}
.custom-icon-hardlocked {
background-image: url(chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED);
}
.custom-icon-hardlocked.icon-with-tooltip:hover {
background-image: url(chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED_HOVER);
}
.custom-icon-hardlocked.interactive-custom-icon:active {
background-image: url(chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED_PRESSED);
}
.custom-icon-locked {
background-image: url(chrome://theme/IDR_EASY_UNLOCK_LOCKED);
}
.custom-icon-locked.icon-with-tooltip:hover {
background-image: url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_HOVER);
}
.custom-icon-locked.interactive-custom-icon:active {
background-image: url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_PRESSED);
}
.custom-icon-locked-to-be-activated {
background-image:
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED);
}
.custom-icon-locked-to-be-activated.icon-with-tooltip:hover {
background-image:
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED_HOVER);
}
.custom-icon-locked-to-be-activated.interactive-custom-icon:active {
background-image:
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED_PRESSED);
}
.custom-icon-locked-with-proximity-hint {
background-image:
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT);
}
.custom-icon-locked-with-proximity-hint.icon-with-tooltip:hover {
background-image:
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT_HOVER);
}
.custom-icon-locked-with-proximity-hint.interactive-custom-icon:active {
background-image:
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT_PRESSED);
}
.custom-icon-unlocked {
background-image: url(chrome://theme/IDR_EASY_UNLOCK_UNLOCKED);
}
.custom-icon-unlocked.icon-with-tooltip:hover {
background-image: url(chrome://theme/IDR_EASY_UNLOCK_UNLOCKED_HOVER);
}
.custom-icon-unlocked.interactive-custom-icon:active {
background-image: url(chrome://theme/IDR_EASY_UNLOCK_UNLOCKED_PRESSED);
}
/**
* Preloads resources for custom icon. Without this, the resources will be
* loaded when CSS properties using them are first applied, which has visible
* delay and may cause a short white flash when the icon background changes.
*/
.custom-icon::after {
content:
url(chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED)
url(chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED_HOVER)
url(chrome://theme/IDR_EASY_UNLOCK_HARDLOCKED_PRESSED)
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED)
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_HOVER)
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_PRESSED)
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED)
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED_HOVER)
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_TO_BE_ACTIVATED_PRESSED)
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT)
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT_HOVER)
url(chrome://theme/IDR_EASY_UNLOCK_LOCKED_WITH_PROXIMITY_HINT_PRESSED)
url(chrome://theme/IDR_EASY_UNLOCK_UNLOCKED)
url(chrome://theme/IDR_EASY_UNLOCK_UNLOCKED_HOVER)
url(chrome://theme/IDR_EASY_UNLOCK_UNLOCKED_PRESSED);
display: none;
}
.custom-icon-spinner {
animation: easy-unlock-spinner-animation 2s steps(45) infinite;
background-image: url(chrome://theme/IDR_EASY_UNLOCK_SPINNER);
}
@keyframes easy-unlock-spinner-animation {
from { background-position: 0 }
to { background-position: -1215px }
}
.interactive-custom-icon {
cursor: pointer;
}
.pod[auth-type='onlineSignIn'] .custom-icon-container {
display: none;
}
.fingerprint-icon-container,
.custom-icon-container {
display: flex;
flex: none;
flex-direction: column;
height: 43px;
width: 27px;
}
.launch-app-button-container {
display: block;
flex: auto;
text-align: center;
}
.launch-app-button {
display: inline;
margin-top: 6px !important;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.pod[auth-type='onlineSignIn'] .reauth-hint-container {
display: flex;
justify-content: center;
margin-top: 8px;
width: 100%;
}
.reauth-hint-container .reauth-warning {
-webkit-mask-image: url(../../../ui/webui/resources/images/warning.svg);
-webkit-mask-position: center;
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: 20px;
background-color: #f4b400;
height: 24px;
width: 24px;
}
.reauth-hint-container .reauth-name-hint {
align-self: center;
color: #565656;
font-size: 16px;
outline: none;
overflow: hidden;
padding: 0 6px;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-type-icon-area {
background-color: white;
border-radius: 2px;
position: absolute;
top: 0;
}
.action-box-area {
opacity: 0;
outline: none;
transition: opacity 100ms;
z-index: 4;
}
html[dir=rtl] .action-box-area {
left: 0;
position: absolute;
right: auto;
}
.action-box-area:focus,
.action-box-area.hovered,
.action-box-area.active,
.action-box-area.forced {
opacity: 1;
}
.action-box-button {
height: 24px;
margin: 3px 0 0 8px;
padding: 0;
width: 24px;
}
.action-box-area .action-box-icon {
/* overriden in chrome/browser/resources/md_user_manager/user_manager.css */
display: none;
}
.user-image-gradient-area {
/* overriden in chrome/browser/resources/md_user_manager/user_manager.css */
display: none;
}
.user-type-icon-area {
left: 0;
z-index: 5;
}
html[dir=rtl] .user-type-icon-area {
left: auto;
right: 0;
}
.user-type-icon-image {
height: 16px;
margin: 5px;
width: 16px;
}
.user-type-icon-area.legacySupervised .user-type-icon-image {
background-image: url(../../webui/resources/images/supervisor_account.svg);
background-size: 18px;
}
.user-type-icon-area.child .user-type-icon-image {
background-image: url(../../webui/resources/images/account_child_invert.svg);
background-size: 18px;
}
.user-type-icon-area.policy .user-type-icon-image {
background-image: url(../../webui/resources/images/business.svg);
background-size: 18px;
}
.user-type-icon-area.app .user-type-icon-image {
background-image: url(chrome://theme/IDR_KIOSK_APP_USER_POD_ICON);
}
.fingerprint-icon-container.hidden {
display: none;
}
.fingerprint-icon-container.default .fingerprint-icon-image {
background-image: url(../../webui/resources/images/fingerprint_default.svg);
}
.fingerprint-icon-container.default:hover .fingerprint-icon-image {
background-image: url(../../webui/resources/images/fingerprint_signin.svg);
}
.fingerprint-icon-container.signin .fingerprint-icon-image {
background-image: url(../../webui/resources/images/fingerprint_signin.svg);
}
.fingerprint-icon-container.failed .fingerprint-icon-image {
background-image: url(../../webui/resources/images/fingerprint_failed.svg);
}
.pod input[type='password'].hidden::-webkit-input-placeholder {
color: grey;
}
.pod input[type='password'].default::-webkit-input-placeholder {
color: grey;
}
.pod input[type='password'].signin::-webkit-input-placeholder {
color: var(--google-blue-500);
}
.pod input[type='password'].failed::-webkit-input-placeholder {
color: var(--google-red-500);
}
.action-box-menu {
display: none;
z-index: 6;
}
.action-box-area.active ~ .action-box-menu {
background-color: rgba(0, 0, 0, .34);
border-radius: 2px;
display: flex;
flex-direction: column;
font-size: 13px;
margin: 3px 0 0 12px;
width: 220px;
}
.action-box-area.active ~ .action-box-menu.left-edge-offset {
left: 0 !important;
}
.action-box-area.active ~ .action-box-menu.right-edge-offset {
right: 0 !important;
}
.action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
top: 200px;
}
.action-box-area.active ~ .action-box-menu.menu-moved-up {
bottom: 207px;
}
.action-box-area.menu-moved-up {
transform: rotate(180deg);
}
html[dir=rtl] .action-box-area.active ~ .action-box-menu {
left: 5px;
right: auto;
}
.action-box-menu-title {
color: #FFFFFF;
display: flex;
flex-direction: column;
padding: 13px 14px 18px;
}
.action-box-menu-title:focus {
outline-style: none;
}
.action-box-menu-title-name,
.action-box-menu-title-email {
flex: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.action-box-menu-title-name {
padding-bottom: 7px;
}
.action-box-menu-title-email {
opacity: 0.54;
}
.action-box-menu-remove {
border-top: 0.25px solid grey;
color: #7BAAF7;
outline: none;
padding: 18px 14px;
}
.action-box-menu-remove:hover,
.action-box-menu-remove:focus {
background-color: grey;
color: white;
}
.action-box-remove-user-warning {
border-top: 0.25px solid grey;
color: white;
font-size: 13px;
line-height: 18px;
padding: 13px 14px 18px;
}
.action-box-remove-user-warning > div,
.action-box-remove-user-warning > table {
padding-bottom: 19px;
}
.total-count {
font-weight: bold;
}
.action-box-remove-user-warning-table-nonsync {
border-spacing: 0;
width: 100%;
}
.action-box-remove-user-warning-table td {
padding: 0;
}
.action-box-remove-user-warning-table-numbers {
color: #757575;
text-align: end;
}
/* Hide dialog elements not in a correct category. Only combinations currently
in use are included here. */
.pod.legacy-supervised .non-sync,
.pod.legacy-supervised .action-box-remove-user-warning-text,
.pod.legacy-supervised .action-box-remove-non-owner-user-warning-text,
.pod:not(.legacy-supervised)
.action-box-remove-legacy-supervised-user-warning-text,
.pod.synced .non-sync,
.pod.has-no-stats .has-stats {
display: none;
}
.user-type-bubble {
background-color: white;
border: 1px solid lightgray;
border-radius: 2px;
left: 5px;
opacity: 0;
padding: 17px;
position: absolute;
top: 20px;
transition: all 100ms;
visibility: hidden;
width: 200px;
z-index: 7;
}
html[dir=rtl] .user-type-bubble {
left: auto;
right: 5px;
}
.bubble-shown,
.user-type-icon-area.policy:hover ~ .user-type-bubble {
opacity: 1;
visibility: visible;
}
.user-type-bubble-header {
font-weight: bold;
margin-bottom: 14px;
}
/**** Public account user pod rules *******************************************/
.pod.public-account.expanded {
height: 230px;
width: 500px;
}
.pod.public-account.expanded.advanced {
height: 280px;
width: 610px;
}
.pod.public-account.focused .name-container {
display: flex;
}
.pod.public-account.expanded .name-container {
display: flex;
}
.pod.public-account .learn-more-container {
display: block;
flex: none;
}
.pod.public-account .learn-more {
top: 22px;
}
.expanded-pane {
display: none;
}
.pod.public-account.animating .expanded-pane,
.pod.public-account.expanded .expanded-pane {
display: block;
font-size: 12px;
margin: 10px;
overflow: hidden;
z-index: 1;
}
.expanded-pane-contents {
display: flex;
flex-direction: column;
float: right;
height: 213px;
width: 490px;
}
.pod.public-account.transitioning-to-advanced .expanded-pane-contents {
transition: width 180ms;
}
.pod.public-account.expanded.advanced .expanded-pane-contents {
height: 263px;
width: 600px;
}
html[dir=rtl] .expanded-pane-contents {
float: left;
}
.side-container {
-webkit-margin-start: 200px;
flex: auto;
}
.expanded-pane-name {
font-size: 19px;
margin-bottom: 11px;
margin-top: -2px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.expanded-pane-container {
color: grey;
}
.reminder {
margin-top: 20px;
}
.language-and-input-section {
display: none;
}
.pod.public-account.transitioning-to-advanced .language-and-input-section {
display: block;
opacity: 0;
transition: opacity 180ms ease 180ms;
}
.pod.public-account.expanded.advanced .language-and-input-section {
display: block;
opacity: 1;
}
.select-with-label {
display: flex;
margin-top: 20px;
}
.language-select-label,
.keyboard-select-label {
flex: none;
margin-top: 3px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 170px;
}
.select-container {
flex: auto;
}
.language-select,
.keyboard-select {
width: 100%;
}
.bottom-container {
-webkit-margin-start: 20px;
align-items: center;
display: flex;
flex-direction: row-reverse;
flex: none;
font-size: 13px;
justify-content: space-between;
margin-bottom: 4px;
}
.expanded-pane-learn-more-container,
.enter-button {
flex: none;
}
.expanded-pane-learn-more,
.pod.public-account .learn-more {
background-image: url(../../webui/resources/images/business.svg);
background-size: 18px;
height: 18px;
margin-top: -10px;
position: relative;
width: 18px;
}
.expanded-pane-learn-more {
top: 5px;
}
.info {
flex: auto;
margin: -10px 25px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.monitoring-container {
margin-top: 35px;
}
.monitoring-learn-more {
color: rgb(49, 106, 197);
text-decoration: none;
}
.monitoring-dialog-container .cr-dialog-shield {
background: black;
opacity: 0.5;
}
.monitoring-dialog-container .cr-dialog-buttons {
display: none;
}
.monitoring-dialog-container .cr-dialog-frame {
height: 170px;
left: -46px;
padding: 0px;
position: relative;
top: -24px;
width: 430px;
}
.monitoring-dialog-container.advanced .cr-dialog-frame {
left: -110px;
top: 0px;
}
.monitoring-dialog-container .cr-dialog-close {
color: grey;
height: 34px;
position: absolute;
top: 0px;
width: 34px;
}
.monitoring-dialog-container .cr-dialog-title {
font-size: 16px;
font-weight: bold;
left: 20px;
position: absolute;
top: 15px;
}
.monitoring-dialog-container .cr-dialog-text {
color: grey;
font-size: 13px;
overflow: visible;
position: absolute;
top: 20px;
}
.monitoring-dialog-container .cr-dialog-item {
-webkit-margin-start: 42px;
display: list-item;
margin-bottom: -6px;
}
.language-and-input-container {
-webkit-margin-end: 25px;
flex: none;
}
.language-and-input {
color: rgb(49, 106, 197);
text-decoration: none;
}
.pod.public-account.expanded.advanced .language-and-input-container {
display: none;
}
.enter-button {
background-color: rgb(66, 133, 244);
color: white;
font-size: 12px;
text-transform: none;
}
.enter-button.keyboard-focus {
font-weight: normal;
}
.horizontal-line {
border-bottom: 1px double #cccccc;
bottom: 8px;
position: relative;
}
/* Animations for the animated ellipsis: */
.animated-ellipsis-component0 {
animation: ellipsis-component0 1.5s infinite;
}
@keyframes ellipsis-component0 {
0% { opacity: 0; }
25% { opacity: 1; }
50% { opacity: 1; }
75% { opacity: 1; }
100% { opacity: 0; }
}
.animated-ellipsis-component1 {
animation: ellipsis-component1 1.5s infinite;
}
@keyframes ellipsis-component1 {
0% { opacity: 0; }
25% { opacity: 0; }
50% { opacity: 1; }
75% { opacity: 1; }
100% { opacity: 0; }
}
.animated-ellipsis-component2 {
animation: ellipsis-component2 1.5s infinite;
}
@keyframes ellipsis-component2 {
0% { opacity: 0; }
25% { opacity: 0; }
50% { opacity: 0; }
75% { opacity: 1; }
100% { opacity: 0; }
}