Chromium Code Reviews| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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. */ | 203 /* This should be 15.6px - the equivalent of 14px at 90% scale. */ |
| 212 flex: auto; | 204 flex: auto; |
| 213 font-family: "Roboto"; | 205 font: 24px Roboto, sans-serif; |
| 214 font-size: 24px; | |
| 215 outline: none; | 206 outline: none; |
| 216 overflow: hidden; | 207 overflow: hidden; |
| 217 text-align: center; | 208 text-align: center; |
| 218 text-overflow: ellipsis; | 209 text-overflow: ellipsis; |
| 219 white-space: nowrap; | 210 white-space: nowrap; |
| 220 } | 211 } |
| 221 | 212 |
| 222 .auth-container, | 213 .auth-container, |
| 223 .password-entry-container, | 214 .password-entry-container, |
| 224 .reauth-hint-container { | 215 .reauth-hint-container { |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 252 | 243 |
| 253 .password-container { | 244 .password-container { |
| 254 height: 40px; | 245 height: 40px; |
| 255 width: 180px; | 246 width: 180px; |
| 256 } | 247 } |
| 257 | 248 |
| 258 .capslock-on .password-container { | 249 .capslock-on .password-container { |
| 259 width: 160px; | 250 width: 160px; |
| 260 } | 251 } |
| 261 | 252 |
| 253 .custom-icon-shown.password-container { | |
| 254 padding-left: 8px; | |
| 255 width: 145px; | |
| 256 } | |
| 257 | |
| 258 .capslock-on .custom-icon-shown.password-container { | |
| 259 width: 125px; | |
| 260 } | |
| 261 | |
| 262 .pod input[type='password'] { | 262 .pod input[type='password'] { |
| 263 background-color: transparent; | 263 background-color: transparent; |
| 264 border: none; | 264 border: none; |
| 265 color: rgba(255, 255, 255, .67); | 265 color: rgba(255, 255, 255, .67); |
| 266 font-family: "Roboto"; | 266 font-family: "Roboto"; |
| 267 font-size: 13px; | 267 font-size: 16px; |
| 268 height: 100%; | 268 height: 100%; |
| 269 letter-spacing: 8px; | 269 letter-spacing: 6px; |
| 270 padding: 0; | 270 padding: 0; |
| 271 width: 100%; | 271 width: 100%; |
| 272 } | 272 } |
| 273 | 273 |
| 274 .pod input[type='password']::-webkit-input-placeholder { | 274 .pod input[type='password']::-webkit-input-placeholder { |
| 275 color: rgba(255, 255, 255, .67); | |
| 276 font-size: 13px; | |
| 275 letter-spacing: 0; | 277 letter-spacing: 0; |
| 276 } | 278 } |
| 277 | 279 |
| 278 .capslock-hint-container { | 280 .capslock-hint-container { |
| 279 display: none; | 281 display: none; |
| 280 } | 282 } |
| 281 | 283 |
| 282 <if expr="chromeos"> | 284 <if expr="chromeos"> |
| 283 .capslock-on .capslock-hint-container { | 285 .capslock-on .capslock-hint-container { |
| 284 display: block; | 286 display: block; |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 604 } | 606 } |
| 605 | 607 |
| 606 .fingerprint-icon-container.signin .fingerprint-icon-image { | 608 .fingerprint-icon-container.signin .fingerprint-icon-image { |
| 607 background-image: url(../../webui/resources/images/fingerprint_signin.svg); | 609 background-image: url(../../webui/resources/images/fingerprint_signin.svg); |
| 608 } | 610 } |
| 609 | 611 |
| 610 .fingerprint-icon-container.failed .fingerprint-icon-image { | 612 .fingerprint-icon-container.failed .fingerprint-icon-image { |
| 611 background-image: url(../../webui/resources/images/fingerprint_failed.svg); | 613 background-image: url(../../webui/resources/images/fingerprint_failed.svg); |
| 612 } | 614 } |
| 613 | 615 |
| 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 { | 616 .action-box-menu { |
| 631 display: none; | 617 display: none; |
| 632 position: absolute; | 618 position: absolute; |
| 633 z-index: 6; | 619 z-index: 6; |
| 634 } | 620 } |
| 635 | 621 |
| 636 .action-box-area.active ~ .action-box-menu { | 622 .action-box-area.active ~ .action-box-menu { |
| 637 background-color: rgba(0, 0, 0, 0.8); | 623 background-color: rgba(0, 0, 0, 0.8); |
| 638 border-radius: 2px; | 624 border-radius: 2px; |
| 639 display: flex; | 625 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, | 730 .pod.legacy-supervised .action-box-remove-user-warning-text, |
| 745 .pod.legacy-supervised .action-box-remove-non-owner-user-warning-text, | 731 .pod.legacy-supervised .action-box-remove-non-owner-user-warning-text, |
| 746 .pod:not(.legacy-supervised) | 732 .pod:not(.legacy-supervised) |
| 747 .action-box-remove-legacy-supervised-user-warning-text, | 733 .action-box-remove-legacy-supervised-user-warning-text, |
| 748 .pod.synced .non-sync, | 734 .pod.synced .non-sync, |
| 749 .pod.has-no-stats .has-stats { | 735 .pod.has-no-stats .has-stats { |
| 750 display: none; | 736 display: none; |
| 751 } | 737 } |
| 752 | 738 |
| 753 .user-type-bubble { | 739 .user-type-bubble { |
| 754 background-color: white; | 740 background-color: rgba(0, 0, 0, 0.9); |
| 755 border: 1px solid lightgray; | 741 border-radius: 4px; |
| 756 border-radius: 2px; | 742 color: #FFF; |
| 757 left: 5px; | 743 font-family: "Roboto"; |
| 744 font-size: 13px; | |
| 745 left: 36px; | |
| 758 opacity: 0; | 746 opacity: 0; |
| 759 padding: 17px; | 747 padding: 17px; |
| 760 position: absolute; | 748 position: absolute; |
| 761 top: 20px; | 749 top: 35px; |
| 762 transition: all 100ms; | 750 transition: all 100ms; |
| 763 visibility: hidden; | 751 visibility: hidden; |
| 764 width: 200px; | 752 width: 200px; |
| 765 z-index: 7; | 753 z-index: 7; |
| 766 } | 754 } |
| 767 | 755 |
| 768 html[dir=rtl] .user-type-bubble { | 756 html[dir=rtl] .user-type-bubble { |
| 769 left: auto; | 757 left: auto; |
| 770 right: 5px; | 758 right: 5px; |
| 771 } | 759 } |
| 772 | 760 |
| 773 .bubble-shown, | 761 .bubble-shown, |
| 774 .user-type-icon-area.policy:hover ~ .user-type-bubble { | 762 .user-type-icon-area.policy:hover ~ .user-type-bubble { |
| 775 opacity: 1; | 763 opacity: 1; |
| 776 visibility: visible; | 764 visibility: visible; |
| 777 } | 765 } |
| 778 | 766 |
| 779 .user-type-bubble-header { | 767 .user-type-bubble-header { |
| 780 font-weight: bold; | 768 font-weight: bold; |
| 781 margin-bottom: 14px; | 769 margin-bottom: 14px; |
| 770 text-align: center; | |
| 782 } | 771 } |
| 783 | 772 |
| 784 /**** Public account user pod rules *******************************************/ | 773 /**** Public account user pod rules *******************************************/ |
| 785 | 774 |
| 786 .public-account-expanded > * { | 775 .public-account-expanded > *, |
| 787 display: none; | |
| 788 } | |
| 789 | |
| 790 .public-account-expanded .pod { | 776 .public-account-expanded .pod { |
| 791 display: none; | 777 opacity: 0; |
|
jdufault
2017/06/15 19:04:09
why not display: none?
Wenzhao (Colin) Zang
2017/06/15 21:40:47
After the focus leaves the expanded public session
jdufault
2017/06/15 21:49:44
This should be added as a comment :)
| |
| 792 } | 778 } |
| 793 | 779 |
| 794 .public-account-expanded podrow, | 780 .public-account-expanded podrow, |
| 795 .public-account-expanded .pod.public-account.expanded { | 781 .public-account-expanded .pod.public-account.expanded { |
| 796 display: block; | 782 opacity: 1; |
|
jdufault
2017/06/15 19:04:09
Is this needed?
Wenzhao (Colin) Zang
2017/06/15 21:40:47
It's combined with the previous one.
| |
| 797 } | 783 } |
| 798 | 784 |
| 799 .pod.public-account.expanded { | 785 .pod.public-account.expanded { |
| 800 background-color: rgba(0, 0, 0, 0.56); | 786 background-color: rgba(0, 0, 0, 0.56); |
| 801 border-radius: 2px; | 787 border-radius: 2px; |
| 802 height: 324px; | 788 height: 324px; |
| 803 width: 622px; | 789 width: 622px; |
| 804 } | 790 } |
| 805 | 791 |
| 806 .expanded-pane { | 792 .expanded-pane { |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1102 } | 1088 } |
| 1103 | 1089 |
| 1104 .small-pod.extra-small .small-user-image-container { | 1090 .small-pod.extra-small .small-user-image-container { |
| 1105 height: 60px; | 1091 height: 60px; |
| 1106 width: 60px; | 1092 width: 60px; |
| 1107 } | 1093 } |
| 1108 | 1094 |
| 1109 .small-pod-name { | 1095 .small-pod-name { |
| 1110 color: #FFFFFF; | 1096 color: #FFFFFF; |
| 1111 flex: auto; | 1097 flex: auto; |
| 1112 font-family: "Roboto"; | 1098 font: 20px Roboto, sans-serif; |
| 1113 font-size: 20px; | |
| 1114 height: 28px; | 1099 height: 28px; |
| 1115 left: 90px; | 1100 left: 90px; |
| 1116 opacity: 1; | 1101 opacity: 1; |
| 1117 outline: none; | 1102 outline: none; |
| 1118 overflow: hidden; | 1103 overflow: hidden; |
| 1119 padding: 23px 0; | 1104 padding: 23px 0; |
| 1120 position: absolute; | 1105 position: absolute; |
| 1121 text-overflow: ellipsis; | 1106 text-overflow: ellipsis; |
| 1122 white-space: nowrap; | 1107 white-space: nowrap; |
| 1123 width: 214px; | 1108 width: 214px; |
| 1124 } | 1109 } |
| 1125 | 1110 |
| 1126 .small-pod.extra-small .small-pod-name { | 1111 .small-pod.extra-small .small-pod-name { |
| 1127 left: 76px; | 1112 left: 76px; |
| 1128 padding: 16px 0; | 1113 padding: 16px 0; |
| 1129 width: 190px; | 1114 width: 190px; |
| 1130 } | 1115 } |
| 1131 | 1116 |
| 1132 @keyframes switch-image { | 1117 @keyframes switch-image { |
| 1133 from { transform: rotate3d(0, 1, 0, 90deg); } | 1118 from { transform: rotate3d(0, 1, 0, 90deg); } |
| 1134 to { transform: none; } | 1119 to { transform: none; } |
| 1135 } | 1120 } |
| OLD | NEW |