Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: ui/login/account_picker/md_user_pod_row.css

Issue 2947213003: Signin screen polish in response to UI review (Closed)
Patch Set: changes after meeting with UX Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 overflow: visible; 9 overflow: visible;
10 } 10 }
11 11
12 /* Hide the pod row while images are loading. */ 12 /* Hide the pod row while images are loading. */
13 podrow.images-loading { 13 podrow.images-loading {
14 visibility: hidden; 14 visibility: hidden;
15 } 15 }
16 16
17 pin-keyboard { 17 pin-keyboard {
18 display: block; 18 display: block;
19 } 19 }
20 20
21 .pod { 21 .pod {
22 -webkit-tap-highlight-color: transparent; 22 -webkit-tap-highlight-color: transparent;
23 border-radius: 2px; 23 border-radius: 2px;
24 cursor: pointer; 24 cursor: pointer;
25 opacity: 0.64; 25 opacity: 0.54;
26 outline: none; 26 outline: none;
27 position: absolute; 27 position: absolute;
28 z-index: 0; 28 z-index: 0;
29 } 29 }
30 30
31 .account-picker.flying-pods .pod { 31 .account-picker.flying-pods .pod {
32 transition: all 180ms; 32 transition: all 180ms;
33 } 33 }
34 34
35 .pod .pin-container { 35 .pod .pin-container {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 .user-image-container { 80 .user-image-container {
81 align-items: center; 81 align-items: center;
82 display: flex; 82 display: flex;
83 height: 100%; 83 height: 100%;
84 justify-content: center; 84 justify-content: center;
85 width: 100%; 85 width: 100%;
86 } 86 }
87 87
88 .pod .user-image { 88 .pod .user-image {
89 border-color: rgba(255, 255, 255, .54);
90 border-radius: 50%; 89 border-radius: 50%;
91 border-style: solid;
92 border-width: 0.25px;
93 flex: none; 90 flex: none;
94 height: 100%; 91 height: 100%;
95 width: 100%; 92 width: 100%;
96 } 93 }
97 94
98 .pod .user-image.switch-image-animation { 95 .pod .user-image.switch-image-animation {
99 animation: switch-image 180ms; 96 animation: switch-image 180ms;
100 } 97 }
101 98
102 .pod .badge-container { 99 .pod .badge-container {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 display: flex; 143 display: flex;
147 position: absolute; 144 position: absolute;
148 top: 182px; 145 top: 182px;
149 } 146 }
150 147
151 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { 148 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
152 display: flex; 149 display: flex;
153 height: 40px; 150 height: 40px;
154 left: 51px; 151 left: 51px;
155 position: absolute; 152 position: absolute;
156 top: 244px; 153 top: 236px;
157 /* On chromeos we extend the width to cover the padding on the user pods. This 154 /* On chromeos we extend the width to cover the padding on the user pods. This
158 is so the submit button on chromeos can extend onto the padding as shown on 155 is so the submit button on chromeos can extend onto the padding as shown on
159 mocks. */ 156 mocks. */
160 <if expr="not chromeos"> 157 <if expr="not chromeos">
161 width: 160px; 158 width: 160px;
162 </if> 159 </if>
163 <if expr="chromeos"> 160 <if expr="chromeos">
164 width: 204px; 161 width: 204px;
165 </if> 162 </if>
166 } 163 }
167 164
168 html[dir=rtl] .pod.focused:not(.multiprofiles-policy-applied) .auth-container { 165 html[dir=rtl] .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
169 left: auto; 166 left: auto;
170 right: 51px; 167 right: 51px;
171 } 168 }
172 169
173 .auth-container .submit-button[disabled] { 170 .auth-container .submit-button[disabled] {
174 opacity: 0.34; 171 opacity: 0.34;
175 } 172 }
176 173
177 .auth-container .submit-button { 174 .auth-container .submit-button {
178 color: #FFFFFF; 175 color: #FFFFFF;
179 height: 40px; 176 height: 24px;
177 margin: 12px 0 4px 0;
180 opacity: 1; 178 opacity: 1;
181 padding: 12px 0 4px 0; 179 padding: 0;
182 width: 24px; 180 width: 24px;
183 } 181 }
184 182
185 .name-container { 183 .name-container {
186 transition: transform 180ms; 184 transition: transform 180ms;
187 } 185 }
188 186
189 .pod.focused .name-container { 187 .pod.focused .name-container {
190 display: flex; 188 display: flex;
191 } 189 }
192 190
193 .pod.focused.multiprofiles-policy-applied .name-container { 191 .pod.focused.multiprofiles-policy-applied .name-container {
194 display: flex; 192 display: flex;
195 } 193 }
196 194
197 .name { 195 .name {
198 color: #FFFFFF; 196 color: #FFFFFF;
199 flex: auto; 197 flex: auto;
200 font: 24px Roboto, sans-serif; 198 font: 24px Roboto;
199 font-weight: 300; /* roboto-light */
201 outline: none; 200 outline: none;
202 overflow: hidden; 201 overflow: hidden;
203 text-align: center; 202 text-align: center;
204 text-overflow: ellipsis; 203 text-overflow: ellipsis;
205 white-space: nowrap; 204 white-space: nowrap;
206 } 205 }
207 206
208 .auth-container, 207 .auth-container,
209 .password-entry-container, 208 .password-entry-container,
210 .reauth-hint-container { 209 .reauth-hint-container {
(...skipping 21 matching lines...) Expand all
232 231
233 .pod[auth-type='offlinePassword'].focused .password-entry-container, 232 .pod[auth-type='offlinePassword'].focused .password-entry-container,
234 .pod[auth-type='forceOfflinePassword'].focused .password-entry-container, 233 .pod[auth-type='forceOfflinePassword'].focused .password-entry-container,
235 .pod[auth-type='offlinePassword'].focused .input-line, 234 .pod[auth-type='offlinePassword'].focused .input-line,
236 .pod[auth-type='forceOfflinePassword'].focused .input-line { 235 .pod[auth-type='forceOfflinePassword'].focused .input-line {
237 display: flex; 236 display: flex;
238 flex: auto; 237 flex: auto;
239 } 238 }
240 239
241 .password-container { 240 .password-container {
242 height: 40px; 241 height: 34px;
242 margin-top: 6px;
243 width: 180px; 243 width: 180px;
244 } 244 }
245 245
246 .capslock-on .password-container { 246 .capslock-on .password-container {
247 width: 160px; 247 width: 160px;
248 } 248 }
249 249
250 .custom-icon-shown.password-container { 250 .custom-icon-shown.password-container {
251 padding-left: 8px; 251 padding-left: 8px;
252 width: 145px; 252 width: 145px;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 justify-content: center; 468 justify-content: center;
469 margin-top: 8px; 469 margin-top: 8px;
470 width: 100%; 470 width: 100%;
471 } 471 }
472 472
473 .reauth-hint-container .reauth-warning { 473 .reauth-hint-container .reauth-warning {
474 -webkit-mask-image: url(../../../ui/webui/resources/images/warning.svg); 474 -webkit-mask-image: url(../../../ui/webui/resources/images/warning.svg);
475 -webkit-mask-position: center; 475 -webkit-mask-position: center;
476 -webkit-mask-repeat: no-repeat; 476 -webkit-mask-repeat: no-repeat;
477 -webkit-mask-size: 20px; 477 -webkit-mask-size: 20px;
478 background-color: #f4b400; 478 background-color: #E67C73;
479 height: 24px;
480 width: 24px; 479 width: 24px;
481 } 480 }
482 481
483 .reauth-hint-container .reauth-name-hint { 482 .reauth-hint-container .reauth-name-hint {
484 align-self: center; 483 align-self: center;
485 color: #565656; 484 color: #E67C73;
486 font-size: 16px; 485 font-size: 12px;
487 outline: none; 486 outline: none;
488 overflow: hidden; 487 overflow: hidden;
489 padding: 0 6px; 488 padding: 0 6px;
490 text-align: center; 489 text-align: center;
491 text-overflow: ellipsis; 490 text-overflow: ellipsis;
492 white-space: nowrap; 491 white-space: nowrap;
493 } 492 }
494 493
495 .user-type-icon-area { 494 .user-type-icon-area {
496 background-color: white; 495 background-color: white;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 } 605 }
607 606
608 .action-box-menu { 607 .action-box-menu {
609 display: none; 608 display: none;
610 position: absolute; 609 position: absolute;
611 z-index: 6; 610 z-index: 6;
612 } 611 }
613 612
614 .action-box-area.active ~ .action-box-menu { 613 .action-box-area.active ~ .action-box-menu {
615 -webkit-margin-start: 12px; 614 -webkit-margin-start: 12px;
615 animation: fade-in 180ms;
616 background-color: rgba(0, 0, 0, 0.8); 616 background-color: rgba(0, 0, 0, 0.8);
617 border-radius: 2px; 617 border-radius: 2px;
618 display: flex; 618 display: flex;
619 flex-direction: column; 619 flex-direction: column;
620 font-size: 13px; 620 font-size: 13px;
621 margin-top: 3px; 621 margin-top: 3px;
622 width: 220px; 622 width: 220px;
623 } 623 }
624 624
625 .action-box-area.active ~ .action-box-menu.left-edge-offset { 625 .action-box-area.active ~ .action-box-menu.left-edge-offset {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 663
664 .action-box-menu-title-name { 664 .action-box-menu-title-name {
665 padding-bottom: 7px; 665 padding-bottom: 7px;
666 } 666 }
667 667
668 .action-box-menu-title-email { 668 .action-box-menu-title-email {
669 opacity: 0.54; 669 opacity: 0.54;
670 } 670 }
671 671
672 .action-box-menu-remove { 672 .action-box-menu-remove {
673 border-top: 0.25px solid grey; 673 border-top: 0.17px solid rgba(255, 255, 255, .34);
674 color: #7BAAF7; 674 color: #7BAAF7;
675 outline: none; 675 outline: none;
676 padding: 18px 14px; 676 padding: 18px 14px;
677 } 677 }
678 678
679 .action-box-menu-remove:hover,
680 .action-box-menu-remove:focus { 679 .action-box-menu-remove:focus {
681 font-weight: bold; 680 font-weight: bold;
682 } 681 }
683 682
684 .action-box-remove-user-warning { 683 .action-box-remove-user-warning {
685 border-top: 0.25px solid grey; 684 border-top: 0.17px solid rgba(255, 255, 255, .34);
686 color: white; 685 color: white;
687 font-size: 13px; 686 font-size: 13px;
688 line-height: 18px; 687 line-height: 18px;
689 padding: 13px 14px 18px; 688 padding: 13px 14px 18px;
690 } 689 }
691 690
692 .action-box-remove-user-warning > div, 691 .action-box-remove-user-warning > div,
693 .action-box-remove-user-warning > table { 692 .action-box-remove-user-warning > table {
694 padding-bottom: 19px; 693 padding-bottom: 19px;
695 } 694 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 759
761 /**** Public account user pod rules *******************************************/ 760 /**** Public account user pod rules *******************************************/
762 761
763 .public-account-expanded > div, 762 .public-account-expanded > div,
764 .public-account-expanded .pod:not(.expanded) { 763 .public-account-expanded .pod:not(.expanded) {
765 opacity: 0; /* Cannot be replaced with display: none, otherwise the tab 764 opacity: 0; /* Cannot be replaced with display: none, otherwise the tab
766 indexes of other elements in the pod row will be ignored. */ 765 indexes of other elements in the pod row will be ignored. */
767 } 766 }
768 767
769 .pod.public-account.expanded { 768 .pod.public-account.expanded {
769 animation: fade-in 180ms;
770 background-color: rgba(0, 0, 0, 0.56); 770 background-color: rgba(0, 0, 0, 0.56);
771 border-radius: 2px; 771 border-radius: 2px;
772 height: 324px; 772 height: 324px;
773 transition: none;
773 width: 622px; 774 width: 622px;
774 } 775 }
775 776
776 .expanded-pane { 777 .expanded-pane {
777 display: none; 778 display: none;
778 } 779 }
779 780
780 .pod.public-account.expanded .expanded-pane { 781 .pod.public-account.expanded .expanded-pane {
781 border-left: 0.5px solid rgba(255, 255, 255, .34); 782 border-left: 0.17px solid rgba(255, 255, 255, .34);
782 color: #FFF; 783 color: rgba(255, 255, 255, .87);
783 display: block; 784 display: block;
784 font-family: "Roboto"; 785 font-family: "Roboto";
785 font-size: 13px; 786 font-size: 13px;
786 height: 324px; 787 height: 324px;
787 left: 322px; 788 left: 322px;
788 overflow: hidden; 789 overflow: hidden;
789 position: absolute; 790 position: absolute;
790 top: 0; 791 top: 0;
791 width: 300px; 792 width: 300px;
792 z-index: 1; 793 z-index: 1;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 841
841 .language-select, 842 .language-select,
842 .keyboard-select { 843 .keyboard-select {
843 width: 100%; 844 width: 100%;
844 } 845 }
845 846
846 .enter-button { 847 .enter-button {
847 flex: none; 848 flex: none;
848 } 849 }
849 850
851 .pod.public-account .full-name {
852 display: none;
853 left: 50%;
854 position: absolute;
855 top: 100%;
856 z-index: 3;
857 }
858
859 html[dir=rtl] .pod.public-account .full-name {
860 left: auto;
861 right: 50%;
862 }
863
864 .pod.public-account .name-container:hover .full-name {
865 animation: fade-in 180ms;
866 background-color: rgba(0, 0, 0, 0.8);
867 border-radius: 2px;
868 color: rgba(255, 255, 255, .87);
869 display: flex;
870 font-size: 13px;
871 padding: 8px;
872 }
873
850 .pod .public-account-info-container { 874 .pod .public-account-info-container {
851 display: none; 875 display: none;
852 } 876 }
853 877
854 .pod.public-account .public-account-info-container { 878 .pod.public-account .public-account-info-container {
855 display: block; 879 display: block;
856 position: absolute; 880 position: absolute;
857 top: 230px; 881 top: 230px;
858 } 882 }
859 883
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 opacity: 1; 932 opacity: 1;
909 padding: 10px 7px 8px 11px; 933 padding: 10px 7px 8px 11px;
910 } 934 }
911 935
912 .monitoring-container { 936 .monitoring-container {
913 margin-top: 106px; 937 margin-top: 106px;
914 } 938 }
915 939
916 .advanced .monitoring-container { 940 .advanced .monitoring-container {
917 margin-top: 35px; 941 margin-top: 35px;
942 transition: margin-top 180ms;
918 } 943 }
919 944
920 .monitoring-learn-more { 945 .monitoring-learn-more {
921 color: rgb(49, 106, 197); 946 color: #7BAAF7;
922 text-decoration: none; 947 text-decoration: none;
923 } 948 }
924 949
925 .monitoring-learn-more:focus, 950 .monitoring-learn-more:focus,
926 .language-and-input:focus { 951 .language-and-input:focus {
927 font-weight: bold; 952 font-weight: bold;
928 outline: none; 953 outline: none;
929 } 954 }
930 955
931 .monitoring-dialog-container .cr-dialog-shield { 956 .monitoring-dialog-container .cr-dialog-shield {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 display: list-item; 998 display: list-item;
974 margin-bottom: -6px; 999 margin-bottom: -6px;
975 } 1000 }
976 1001
977 .language-and-input-container { 1002 .language-and-input-container {
978 margin-top: 20px; 1003 margin-top: 20px;
979 flex: none; 1004 flex: none;
980 } 1005 }
981 1006
982 .language-and-input { 1007 .language-and-input {
983 color: rgb(49, 106, 197); 1008 color: #7BAAF7;
984 text-decoration: none; 1009 text-decoration: none;
985 } 1010 }
986 1011
987 .enter-button-container { 1012 .enter-button-container {
988 background-color: #4285F4; 1013 background-color: #4285F4;
989 border-radius: 50%; 1014 border-radius: 50%;
990 bottom: 28px; 1015 bottom: 28px;
991 height: 40px; 1016 height: 40px;
992 position: absolute; 1017 position: absolute;
993 right: 28px; 1018 right: 28px;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 } 1107 }
1083 1108
1084 .small-pod.extra-small .small-user-image-container { 1109 .small-pod.extra-small .small-user-image-container {
1085 height: 60px; 1110 height: 60px;
1086 width: 60px; 1111 width: 60px;
1087 } 1112 }
1088 1113
1089 .small-pod-name { 1114 .small-pod-name {
1090 color: #FFFFFF; 1115 color: #FFFFFF;
1091 flex: auto; 1116 flex: auto;
1092 font: 20px Roboto, sans-serif; 1117 font: 20px Roboto;
1118 font-weight: 300; /* roboto-light */
1093 height: 28px; 1119 height: 28px;
1094 left: 90px; 1120 left: 90px;
1095 opacity: 1; 1121 opacity: 1;
1096 outline: none; 1122 outline: none;
1097 overflow: hidden; 1123 overflow: hidden;
1098 padding: 23px 0; 1124 padding: 23px 0;
1099 position: absolute; 1125 position: absolute;
1100 text-overflow: ellipsis; 1126 text-overflow: ellipsis;
1101 white-space: nowrap; 1127 white-space: nowrap;
1102 width: 214px; 1128 width: 214px;
(...skipping 12 matching lines...) Expand all
1115 1141
1116 html[dir=rtl] .small-pod.extra-small .small-pod-name { 1142 html[dir=rtl] .small-pod.extra-small .small-pod-name {
1117 left: auto; 1143 left: auto;
1118 right: 76px; 1144 right: 76px;
1119 } 1145 }
1120 1146
1121 @keyframes switch-image { 1147 @keyframes switch-image {
1122 from { transform: rotate3d(0, 1, 0, 90deg); } 1148 from { transform: rotate3d(0, 1, 0, 90deg); }
1123 to { transform: none; } 1149 to { transform: none; }
1124 } 1150 }
1151
1152 @keyframes fade-in {
1153 from { opacity: 0; }
1154 to { opacity: 1; }
1155 }
OLDNEW
« no previous file with comments | « ui/login/account_picker/md_screen_account_picker.css ('k') | ui/login/account_picker/md_user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698