| Index: chrome/browser/resources/md_user_manager/user_manager.css
|
| diff --git a/chrome/browser/resources/md_user_manager/user_manager.css b/chrome/browser/resources/md_user_manager/user_manager.css
|
| index b8d7f068ddb9f152a8db6aea3a90bc6b8a22acc0..47deb99b8c7cff5d141a96aa3d9d5eaa09b25dd4 100644
|
| --- a/chrome/browser/resources/md_user_manager/user_manager.css
|
| +++ b/chrome/browser/resources/md_user_manager/user_manager.css
|
| @@ -11,198 +11,286 @@
|
|
|
| #outer-container {
|
| min-height: 0;
|
| + overflow: auto;
|
| }
|
|
|
| -.bubble.faded {
|
| - opacity: 0;
|
| +#oobe {
|
| + margin-bottom: 10px;
|
| + margin-top: 40px;
|
| }
|
|
|
| -.pod {
|
| - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
| - height: 226px;
|
| - /* On non-retina desktop, the text is blurry if we use the scale3d()
|
| - inherited from user_pod_row.js */
|
| - transform: scale(0.9);
|
| +#outer-container::-webkit-scrollbar {
|
| + height: 0;
|
| + width: 0;
|
| }
|
|
|
| -podrow[ncolumns='6'] .pod {
|
| - transform: scale(0.8);
|
| +.bubble.faded {
|
| + opacity: 0;
|
| }
|
|
|
| -/* Because of crbug.com/406529, the text in the .name div is janky if there's
|
| -both a transform:scale and a transition:opacity applied to a div, so we must
|
| -apply the opacity change to the children instead. */
|
| -.pod.faded {
|
| - opacity: 1;
|
| +control-bar {
|
| + bottom: 0;
|
| + left: 0;
|
| + position: absolute;
|
| + right: 0;
|
| + z-index: 1;
|
| }
|
|
|
| -.pod.faded .user-image-pane,
|
| -.pod.faded .main-pane {
|
| - opacity: .4;
|
| +#login-header-bar.shadow {
|
| + box-shadow: 0 -1px 3px rgba(0, 0, 0, .2);
|
| }
|
|
|
| -.pod.hovered:not(.focused) {
|
| - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
| +.pod {
|
| + box-shadow:
|
| + 0 2px 2px 0 rgba(0, 0, 0, .24),
|
| + 0 0 2px 0 rgba(0, 0, 0, .12);
|
| + cursor: default;
|
| + height: auto;
|
| + transform: none;
|
| + width: auto;
|
| }
|
|
|
| -.pod.focused {
|
| - box-shadow: 0 16px 21px rgba(0, 0, 0, 0.2);
|
| - transform: scale(1) !important;
|
| +.pod.faded {
|
| + opacity: 1;
|
| +}
|
| +
|
| +.pod.focused,
|
| +.pod.hovered {
|
| + box-shadow:
|
| + 0 10px 10px 0 rgba(0, 0, 0, .26),
|
| + 0 14px 28px 0 rgba(0, 0, 0, .25) !important;
|
| }
|
|
|
| .pod.focused.locked {
|
| - box-shadow: 0 12px 21px rgba(0, 0, 0, 0.2);
|
| - height: 220px;
|
| + box-shadow: 0 12px 21px rgba(0, 0, 0, .2);
|
| + height: auto;
|
| }
|
|
|
| -.user-image-pane {
|
| +.pod .user-image-pane {
|
| border-top-left-radius: 2px;
|
| border-top-right-radius: 2px;
|
| - height: 180px;
|
| - left: 0;
|
| - top: 0;
|
| - width: 180px;
|
| + position: static;
|
| }
|
|
|
| -html[dir=rtl] .user-image-pane {
|
| - right: 0;
|
| +.pod .user-image {
|
| + height: 160px;
|
| + width: 160px;
|
| }
|
|
|
| -.pod .name {
|
| - margin-top: 12px;
|
| +.pod .main-pane {
|
| + line-height: 20px;
|
| + padding: 10px;
|
| + position: static;
|
| }
|
|
|
| -.pod .user-image {
|
| - height: 180px;
|
| - width: 180px;
|
| +.pod .main-pane .name-container {
|
| + display: block;
|
| + position: static;
|
| + width: auto;
|
| }
|
|
|
| -.pod input[type='password'] {
|
| - height: 45px; /* 1px shorter as to not overlap the pod's rounded corners */
|
| - top: 1px;
|
| +.pod .main-pane .name-container .name {
|
| + color: #333;
|
| + font-size: 13px;
|
| + margin: 0;
|
| + padding: 0;
|
| + text-align: left;
|
| + width: 118px;
|
| +}
|
| +
|
| +html[dir='rtl'] .pod .main-pane .name-container .name {
|
| + text-align: right;
|
| }
|
|
|
| .pod .indicator-container {
|
| - background-color: rgba(255, 255, 255, 0.85);
|
| - border-radius: 16px;
|
| - height: 32px;
|
| - left: 8px;
|
| + background-color: rgba(255, 255, 255, .85);
|
| + border-radius: 0;
|
| + bottom: 10px;
|
| + height: 20px;
|
| + left: auto;
|
| position: absolute;
|
| - top: 8px;
|
| + right: 10px;
|
| + top: auto;
|
| + width: 20px;
|
| }
|
|
|
| -html[dir=rtl] .pod .indicators {
|
| - left: auto;
|
| - right: 8px;
|
| +html[dir='rtl'] .pod .indicator-container {
|
| + left: 10px;
|
| + right: auto;
|
| }
|
|
|
| -.pod .indicator {
|
| +/* Using -webkit-mask on the indicators allows us to tweak the color. */
|
| +.pod .indicator-container > .indicator {
|
| + -webkit-mask-position: center;
|
| + -webkit-mask-repeat: no-repeat;
|
| + -webkit-mask-size: 20px;
|
| + background-color: rgb(150, 150, 150);
|
| background-position: center;
|
| background-repeat: no-repeat;
|
| background-size: 18px;
|
| display: none;
|
| float: left;
|
| - height: 32px;
|
| - width: 32px;
|
| -}
|
| -
|
| -/* Using -webkit-mask on the indicators allows us to tweak the color. */
|
| -.pod .indicator-container > div {
|
| - -webkit-mask-position: center;
|
| - -webkit-mask-repeat: no-repeat;
|
| - -webkit-mask-size: 24px;
|
| + height: 20px;
|
| + width: 20px;
|
| }
|
|
|
| .pod.locked .locked-indicator {
|
| -webkit-mask-image: url(../../../../ui/webui/resources/images/lock.svg);
|
| - background-color: rgb(117, 117, 117);
|
| display: initial;
|
| }
|
|
|
| .pod.legacy-supervised .legacy-supervised-indicator {
|
| -webkit-mask-image:
|
| url(../../../../ui/webui/resources/images/supervisor_account.svg);
|
| - background-color: rgb(66, 133, 244);
|
| display: initial;
|
| }
|
|
|
| .pod.child .child-indicator {
|
| -webkit-mask-image:
|
| url(../../../../ui/webui/resources/images/account_child_invert.svg);
|
| - background-color: rgb(66, 133, 244);
|
| display: initial;
|
| }
|
|
|
| -.main-pane {
|
| - left: 0;
|
| +.action-box-area {
|
| + background-color: transparent;
|
| + background-image: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 100%);
|
| + border-radius: 0;
|
| + height: 56px;
|
| + outline: none;
|
| + position: absolute;
|
| top: 0;
|
| + /* Because of crbug.com/406529, the text in the .name div is janky if there's
|
| + an opacity transition in this div. */
|
| + transition: none;
|
| + width: 100%;
|
| + z-index: 1;
|
| }
|
|
|
| -html[dir=rtl] .main-pane {
|
| - right: 0;
|
| +.action-box-area.menu-moved-up {
|
| + -webkit-transform: none;
|
| +}
|
| +
|
| +.action-box-area .action-box-button {
|
| + display: none;
|
| +}
|
| +
|
| +.action-box-area .action-box-icon {
|
| + border: none;
|
| + color: #fff;
|
| + display: inline-flex;
|
| + left: auto;
|
| + margin: 0;
|
| + position: absolute;
|
| + right: -1px;
|
| + top: 4px;
|
| +}
|
| +
|
| +.pod.focused:not(.locked) .auth-container {
|
| + display: none;
|
| }
|
|
|
| -.name-container,
|
| .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
|
| - top: 180px;
|
| - width: 180px;
|
| + left: 0;
|
| }
|
|
|
| -.pod.focused:not(.locked) .name-container {
|
| - display: block;
|
| +.pod[auth-type='onlineSignIn'] .reauth-hint-container {
|
| + margin: 0;
|
| + padding: 10px 0;
|
| }
|
|
|
| -.pod .name {
|
| - color: rgb(54, 54, 54);
|
| - font-size: 15px;
|
| - margin-top: 11px;
|
| +.pod input[type='password'] {
|
| + font-family: Roboto;
|
| + font-size: 13px;
|
| + height: 40px;
|
| + line-height: 20px;
|
| + padding: 10px;
|
| + top: 0;
|
| }
|
|
|
| -.pod.focused:not(.locked) .auth-container {
|
| +.reauth-hint-container .reauth-warning {
|
| + height: 20px;
|
| + width: 20px;
|
| +}
|
| +
|
| +.reauth-hint-container .reauth-name-hint {
|
| + color: #333;
|
| + font-family: Roboto;
|
| + font-size: 13px;
|
| +}
|
| +
|
| +.action-box-area.active .action-box-button {
|
| display: none;
|
| }
|
|
|
| -.pod[auth-type='offlinePassword'].focused.locked .password-entry-container {
|
| - display: flex;
|
| - flex: auto;
|
| +.action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
|
| + top: 8px;
|
| }
|
|
|
| -.action-box-area {
|
| - background-color: rgb(245, 245, 245);
|
| - height: 24px;
|
| - /* Because of crbug.com/406529, the text in the .name div is janky if there's
|
| - an opacity transition in this div. */
|
| - transition: none;
|
| - width: 24px;
|
| +.action-box-area.active ~ .action-box-menu {
|
| + border: none;
|
| + box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .19);
|
| + font-family: Roboto;
|
| + line-height: 20px;
|
| + right: 8px;
|
| + width: 224px;
|
| }
|
|
|
| -.action-box-button,
|
| -.action-box-button:hover,
|
| -.action-box-area.active .action-box-button {
|
| - background-image: none;
|
| - border-left: 6px solid transparent;
|
| - border-right: 6px solid transparent;
|
| - border-top: 6px solid #989898;
|
| - height: 0;
|
| - left: 6px;
|
| - margin: 0;
|
| - position: absolute;
|
| - top: 9px;
|
| - width: 0;
|
| +html[dir=rtl] .action-box-area.active ~ .action-box-menu {
|
| + /* forcing the menu to be positioned as in ltr */
|
| + left: auto;
|
| + right: 8px;
|
| }
|
|
|
| -.action-box-button:hover,
|
| -.action-box-area.active .action-box-button {
|
| - border-top: 6px solid #4c4c4c;
|
| +.action-box-menu-title {
|
| + color: #333;
|
| + padding: 16px 12px 10px 12px;
|
| +}
|
| +
|
| +.action-box-menu-title-name,
|
| +.action-box-menu-title-email {
|
| + height: auto;
|
| + line-height: 22px;
|
| +}
|
| +
|
| +.action-box-menu-title-email {
|
| + color: rgb(103, 103, 103);
|
| +}
|
| +
|
| +.action-box-menu-remove {
|
| + border-top: 1px solid rgba(0, 0, 0, .12);
|
| + color: #333;
|
| + line-height: 32px;
|
| + min-height: 0;
|
| + padding: 8px 12px;
|
| +}
|
| +
|
| +.action-box-remove-user-warning {
|
| + border-top: 1px solid rgba(0, 0, 0, .12);
|
| + color: #333;
|
| + line-height: 20px;
|
| + padding: 12px;
|
| +}
|
| +
|
| +.action-box-remove-user-warning {
|
| + text-align: center;
|
| +}
|
| +
|
| +.action-box-remove-user-warning > div,
|
| +.action-box-remove-user-warning > table {
|
| + text-align: left;
|
| + word-wrap: break-word;
|
| +}
|
| +
|
| +html[dir='rtl'] .action-box-remove-user-warning > div,
|
| +html[dir='rtl'] .action-box-remove-user-warning > table {
|
| + text-align: right;
|
| }
|
|
|
| -.action-box-remove-user-warning .remove-warning-button {
|
| - height: 30px;
|
| +.pod:not(.synced) .action-box-remove-user-warning-text {
|
| + font-weight: bold;
|
| }
|
|
|
| -.action-box-remove-user-warning .remove-warning-button:focus {
|
| - /* Override the default blue border inherited from
|
| - button.custom-appearance:focus. */
|
| - border: 1px solid transparent !important;
|
| - box-shadow: inset 0 0 0 1px #fff;
|
| +.action-box-remove-user-warning paper-button.remove-warning-button {
|
| + font-size: 13px;
|
| + min-width: 52px;
|
| }
|
|
|