| OLD | NEW |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 * | 4 * |
| 5 * This is the stylesheet used by user pods row of account picker UI. | 5 * This is the stylesheet used by user pods row of account picker UI. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 podrow { | 8 podrow { |
| 9 /* Temporarily disabled because animation interferes with updating screen's | 9 /* Temporarily disabled because animation interferes with updating screen's |
| 10 size. */ | 10 size. */ |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 81 } |
| 82 | 82 |
| 83 .user-image-container { | 83 .user-image-container { |
| 84 align-items: center; | 84 align-items: center; |
| 85 display: flex; | 85 display: flex; |
| 86 height: 100%; | 86 height: 100%; |
| 87 justify-content: center; | 87 justify-content: center; |
| 88 width: 100%; | 88 width: 100%; |
| 89 } | 89 } |
| 90 | 90 |
| 91 .user-image { | 91 .pod .user-image { |
| 92 border-color: rgba(255, 255, 255, .54); |
| 92 border-radius: 50%; | 93 border-radius: 50%; |
| 93 box-shadow: 0 0 2px rgba(255, 255, 255, .34); | 94 border-style: solid; |
| 95 border-width: 0.25px; |
| 96 flex: none; |
| 94 height: 100%; | 97 height: 100%; |
| 95 width: 100%; | 98 width: 100%; |
| 96 } | 99 } |
| 97 | 100 |
| 98 .user-image.switch-image-animation { | 101 .pod .user-image.switch-image-animation { |
| 99 animation: switch-image 180ms; | 102 animation: switch-image 180ms; |
| 100 } | 103 } |
| 101 | 104 |
| 102 .pod .user-image { | |
| 103 flex: none; | |
| 104 } | |
| 105 | |
| 106 .pod .badge-container { | 105 .pod .badge-container { |
| 107 background: #FFF; | 106 background: #FFF; |
| 108 border-radius: 50%; | 107 border-radius: 50%; |
| 109 bottom: 0; | 108 bottom: 0; |
| 110 display: none; | 109 display: none; |
| 111 height: 27px; | 110 height: 27px; |
| 112 position: absolute; | 111 position: absolute; |
| 113 right: 0; | 112 right: 0; |
| 114 width: 27px; | 113 width: 27px; |
| 115 } | 114 } |
| 116 | 115 |
| 117 .pod .badge-container iron-icon { | 116 .pod .badge-container iron-icon { |
| 118 --iron-icon-height: 25px; | 117 --iron-icon-height: 25px; |
| 119 --iron-icon-width: 25px; | 118 --iron-icon-width: 25px; |
| 120 display: none; | 119 display: none; |
| 121 padding: 0; | 120 padding: 0; |
| 122 } | 121 } |
| 123 | 122 |
| 124 /* Signed-in badge should be hidden when there's another badge. */ | |
| 125 .pod.legacy-supervised.signed-in .signed-in-badge { | |
| 126 display: none; | |
| 127 } | |
| 128 | |
| 129 .pod.legacy-supervised .badge-container, | 123 .pod.legacy-supervised .badge-container, |
| 130 .pod.signed-in .badge-container, | 124 .pod.legacy-supervised .legacy-supervised-badge { |
| 131 .pod.legacy-supervised .legacy-supervised-badge, | |
| 132 .pod.signed-in .signed-in-badge { | |
| 133 display: block; | 125 display: block; |
| 134 } | 126 } |
| 135 | 127 |
| 136 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the | 128 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the |
| 137 style rule once it is included on CrOS only. crbug.com/397638 */ | 129 style rule once it is included on CrOS only. crbug.com/397638 */ |
| 138 html:not([screen=login-add-user]) .pod .user-image { | 130 html:not([screen=login-add-user]) .pod .user-image { |
| 139 max-height: 160px; | 131 max-height: 160px; |
| 140 max-width: 160px; | 132 max-width: 160px; |
| 141 position: absolute; | 133 position: absolute; |
| 142 } | 134 } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 .pod.focused .name-container { | 193 .pod.focused .name-container { |
| 202 display: flex; | 194 display: flex; |
| 203 } | 195 } |
| 204 | 196 |
| 205 .pod.focused.multiprofiles-policy-applied .name-container { | 197 .pod.focused.multiprofiles-policy-applied .name-container { |
| 206 display: flex; | 198 display: flex; |
| 207 } | 199 } |
| 208 | 200 |
| 209 .name { | 201 .name { |
| 210 color: #FFFFFF; | 202 color: #FFFFFF; |
| 211 /* This should be 15.6px - the equivalent of 14px at 90% scale. */ | |
| 212 flex: auto; | 203 flex: auto; |
| 213 font-family: "Roboto"; | 204 font: 24px Roboto, sans-serif; |
| 214 font-size: 24px; | |
| 215 outline: none; | 205 outline: none; |
| 216 overflow: hidden; | 206 overflow: hidden; |
| 217 text-align: center; | 207 text-align: center; |
| 218 text-overflow: ellipsis; | 208 text-overflow: ellipsis; |
| 219 white-space: nowrap; | 209 white-space: nowrap; |
| 220 } | 210 } |
| 221 | 211 |
| 222 .auth-container, | 212 .auth-container, |
| 223 .password-entry-container, | 213 .password-entry-container, |
| 224 .reauth-hint-container { | 214 .reauth-hint-container { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 252 | 242 |
| 253 .password-container { | 243 .password-container { |
| 254 height: 40px; | 244 height: 40px; |
| 255 width: 180px; | 245 width: 180px; |
| 256 } | 246 } |
| 257 | 247 |
| 258 .capslock-on .password-container { | 248 .capslock-on .password-container { |
| 259 width: 160px; | 249 width: 160px; |
| 260 } | 250 } |
| 261 | 251 |
| 252 .custom-icon-shown.password-container { |
| 253 padding-left: 8px; |
| 254 width: 145px; |
| 255 } |
| 256 |
| 257 .capslock-on .custom-icon-shown.password-container { |
| 258 width: 125px; |
| 259 } |
| 260 |
| 262 .pod input[type='password'] { | 261 .pod input[type='password'] { |
| 263 background-color: transparent; | 262 background-color: transparent; |
| 264 border: none; | 263 border: none; |
| 265 color: rgba(255, 255, 255, .67); | 264 color: rgba(255, 255, 255, .67); |
| 266 font-family: "Roboto"; | 265 font-family: "Roboto"; |
| 267 font-size: 13px; | 266 font-size: 16px; |
| 268 height: 100%; | 267 height: 100%; |
| 269 letter-spacing: 8px; | 268 letter-spacing: 6px; |
| 270 padding: 0; | 269 padding: 0; |
| 271 width: 100%; | 270 width: 100%; |
| 272 } | 271 } |
| 273 | 272 |
| 274 .pod input[type='password']::-webkit-input-placeholder { | 273 .pod input[type='password']::-webkit-input-placeholder { |
| 274 color: rgba(255, 255, 255, .67); |
| 275 font-size: 13px; |
| 275 letter-spacing: 0; | 276 letter-spacing: 0; |
| 276 } | 277 } |
| 277 | 278 |
| 278 .capslock-hint-container { | 279 .capslock-hint-container { |
| 279 display: none; | 280 display: none; |
| 280 } | 281 } |
| 281 | 282 |
| 282 <if expr="chromeos"> | 283 <if expr="chromeos"> |
| 283 .capslock-on .capslock-hint-container { | 284 .capslock-on .capslock-hint-container { |
| 284 display: block; | 285 display: block; |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 } | 605 } |
| 605 | 606 |
| 606 .fingerprint-icon-container.signin .fingerprint-icon-image { | 607 .fingerprint-icon-container.signin .fingerprint-icon-image { |
| 607 background-image: url(../../webui/resources/images/fingerprint_signin.svg); | 608 background-image: url(../../webui/resources/images/fingerprint_signin.svg); |
| 608 } | 609 } |
| 609 | 610 |
| 610 .fingerprint-icon-container.failed .fingerprint-icon-image { | 611 .fingerprint-icon-container.failed .fingerprint-icon-image { |
| 611 background-image: url(../../webui/resources/images/fingerprint_failed.svg); | 612 background-image: url(../../webui/resources/images/fingerprint_failed.svg); |
| 612 } | 613 } |
| 613 | 614 |
| 614 .pod input[type='password'].hidden::-webkit-input-placeholder { | |
| 615 color: grey; | |
| 616 } | |
| 617 | |
| 618 .pod input[type='password'].default::-webkit-input-placeholder { | |
| 619 color: grey; | |
| 620 } | |
| 621 | |
| 622 .pod input[type='password'].signin::-webkit-input-placeholder { | |
| 623 color: var(--google-blue-500); | |
| 624 } | |
| 625 | |
| 626 .pod input[type='password'].failed::-webkit-input-placeholder { | |
| 627 color: var(--google-red-500); | |
| 628 } | |
| 629 | |
| 630 .action-box-menu { | 615 .action-box-menu { |
| 631 display: none; | 616 display: none; |
| 632 position: absolute; | 617 position: absolute; |
| 633 z-index: 6; | 618 z-index: 6; |
| 634 } | 619 } |
| 635 | 620 |
| 636 .action-box-area.active ~ .action-box-menu { | 621 .action-box-area.active ~ .action-box-menu { |
| 637 background-color: rgba(0, 0, 0, 0.8); | 622 background-color: rgba(0, 0, 0, 0.8); |
| 638 border-radius: 2px; | 623 border-radius: 2px; |
| 639 display: flex; | 624 display: flex; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 .pod.legacy-supervised .action-box-remove-user-warning-text, | 729 .pod.legacy-supervised .action-box-remove-user-warning-text, |
| 745 .pod.legacy-supervised .action-box-remove-non-owner-user-warning-text, | 730 .pod.legacy-supervised .action-box-remove-non-owner-user-warning-text, |
| 746 .pod:not(.legacy-supervised) | 731 .pod:not(.legacy-supervised) |
| 747 .action-box-remove-legacy-supervised-user-warning-text, | 732 .action-box-remove-legacy-supervised-user-warning-text, |
| 748 .pod.synced .non-sync, | 733 .pod.synced .non-sync, |
| 749 .pod.has-no-stats .has-stats { | 734 .pod.has-no-stats .has-stats { |
| 750 display: none; | 735 display: none; |
| 751 } | 736 } |
| 752 | 737 |
| 753 .user-type-bubble { | 738 .user-type-bubble { |
| 754 background-color: white; | 739 background-color: rgba(0, 0, 0, 0.9); |
| 755 border: 1px solid lightgray; | 740 border-radius: 4px; |
| 756 border-radius: 2px; | 741 color: #FFF; |
| 757 left: 5px; | 742 font-family: "Roboto"; |
| 743 font-size: 13px; |
| 744 left: 36px; |
| 758 opacity: 0; | 745 opacity: 0; |
| 759 padding: 17px; | 746 padding: 17px; |
| 760 position: absolute; | 747 position: absolute; |
| 761 top: 20px; | 748 top: 35px; |
| 762 transition: all 100ms; | 749 transition: all 100ms; |
| 763 visibility: hidden; | 750 visibility: hidden; |
| 764 width: 200px; | 751 width: 200px; |
| 765 z-index: 7; | 752 z-index: 7; |
| 766 } | 753 } |
| 767 | 754 |
| 768 html[dir=rtl] .user-type-bubble { | 755 html[dir=rtl] .user-type-bubble { |
| 769 left: auto; | 756 left: auto; |
| 770 right: 5px; | 757 right: 5px; |
| 771 } | 758 } |
| 772 | 759 |
| 773 .bubble-shown, | 760 .bubble-shown, |
| 774 .user-type-icon-area.policy:hover ~ .user-type-bubble { | 761 .user-type-icon-area.policy:hover ~ .user-type-bubble { |
| 775 opacity: 1; | 762 opacity: 1; |
| 776 visibility: visible; | 763 visibility: visible; |
| 777 } | 764 } |
| 778 | 765 |
| 779 .user-type-bubble-header { | 766 .user-type-bubble-header { |
| 780 font-weight: bold; | 767 font-weight: bold; |
| 781 margin-bottom: 14px; | 768 margin-bottom: 14px; |
| 769 text-align: center; |
| 782 } | 770 } |
| 783 | 771 |
| 784 /**** Public account user pod rules *******************************************/ | 772 /**** Public account user pod rules *******************************************/ |
| 785 | 773 |
| 786 .public-account-expanded > * { | 774 .public-account-expanded > div, |
| 787 display: none; | 775 .public-account-expanded .pod:not(.expanded) { |
| 788 } | 776 opacity: 0; /* Cannot be replaced with display: none, otherwise the tab |
| 789 | 777 indexes of other elements in the pod row will be ignored. */ |
| 790 .public-account-expanded .pod { | |
| 791 display: none; | |
| 792 } | |
| 793 | |
| 794 .public-account-expanded podrow, | |
| 795 .public-account-expanded .pod.public-account.expanded { | |
| 796 display: block; | |
| 797 } | 778 } |
| 798 | 779 |
| 799 .pod.public-account.expanded { | 780 .pod.public-account.expanded { |
| 800 background-color: rgba(0, 0, 0, 0.56); | 781 background-color: rgba(0, 0, 0, 0.56); |
| 801 border-radius: 2px; | 782 border-radius: 2px; |
| 802 height: 324px; | 783 height: 324px; |
| 803 width: 622px; | 784 width: 622px; |
| 804 } | 785 } |
| 805 | 786 |
| 806 .expanded-pane { | 787 .expanded-pane { |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 } | 1083 } |
| 1103 | 1084 |
| 1104 .small-pod.extra-small .small-user-image-container { | 1085 .small-pod.extra-small .small-user-image-container { |
| 1105 height: 60px; | 1086 height: 60px; |
| 1106 width: 60px; | 1087 width: 60px; |
| 1107 } | 1088 } |
| 1108 | 1089 |
| 1109 .small-pod-name { | 1090 .small-pod-name { |
| 1110 color: #FFFFFF; | 1091 color: #FFFFFF; |
| 1111 flex: auto; | 1092 flex: auto; |
| 1112 font-family: "Roboto"; | 1093 font: 20px Roboto, sans-serif; |
| 1113 font-size: 20px; | |
| 1114 height: 28px; | 1094 height: 28px; |
| 1115 left: 90px; | 1095 left: 90px; |
| 1116 opacity: 1; | 1096 opacity: 1; |
| 1117 outline: none; | 1097 outline: none; |
| 1118 overflow: hidden; | 1098 overflow: hidden; |
| 1119 padding: 23px 0; | 1099 padding: 23px 0; |
| 1120 position: absolute; | 1100 position: absolute; |
| 1121 text-overflow: ellipsis; | 1101 text-overflow: ellipsis; |
| 1122 white-space: nowrap; | 1102 white-space: nowrap; |
| 1123 width: 214px; | 1103 width: 214px; |
| 1124 } | 1104 } |
| 1125 | 1105 |
| 1126 .small-pod.extra-small .small-pod-name { | 1106 .small-pod.extra-small .small-pod-name { |
| 1127 left: 76px; | 1107 left: 76px; |
| 1128 padding: 16px 0; | 1108 padding: 16px 0; |
| 1129 width: 190px; | 1109 width: 190px; |
| 1130 } | 1110 } |
| 1131 | 1111 |
| 1132 @keyframes switch-image { | 1112 @keyframes switch-image { |
| 1133 from { transform: rotate3d(0, 1, 0, 90deg); } | 1113 from { transform: rotate3d(0, 1, 0, 90deg); } |
| 1134 to { transform: none; } | 1114 to { transform: none; } |
| 1135 } | 1115 } |
| OLD | NEW |