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

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

Issue 2875513002: Single user pod implementation for new login screen (Closed)
Patch Set: Address comments Created 3 years, 7 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 /* Temporarily disabled because animation interferes with updating screen's 9 /* Temporarily disabled because animation interferes with updating screen's
10 size. */ 10 size. */
11 height: 100%; 11 height: 100%;
12 overflow: visible; 12 overflow: visible;
13 position: absolute; 13 position: absolute;
14 width: 100%; 14 width: 100%;
15 } 15 }
16 16
17 /* Hide the pod row while images are loading. */ 17 /* Hide the pod row while images are loading. */
18 podrow.images-loading { 18 podrow.images-loading {
19 visibility: hidden; 19 visibility: hidden;
20 } 20 }
21 21
22 pin-keyboard { 22 pin-keyboard {
23 display: block; 23 display: block;
24 } 24 }
25 25
26 .pod { 26 .pod {
27 -webkit-tap-highlight-color: transparent; 27 -webkit-tap-highlight-color: transparent;
28 background-color: white;
29 border-radius: 2px; 28 border-radius: 2px;
30 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2),
31 0 2px 6px rgba(0, 0, 0, 0.15),
32 0 3px 0 rgba(0, 0, 0, 0.08);
33 cursor: pointer; 29 cursor: pointer;
34 height: 213px; 30 height: 346px;
35 outline: none; 31 outline: none;
36 position: absolute; 32 position: absolute;
37 top: 0; 33 top: 0;
38 transform: scale3d(0.9, 0.9, 0.9); 34 transform: scale3d(0.9, 0.9, 0.9);
39 width: 180px; 35 width: 306px;
40 z-index: 0; 36 z-index: 0;
41 } 37 }
42 38
43 .account-picker.flying-pods .pod { 39 .account-picker.flying-pods .pod {
44 transition: all 180ms; 40 transition: all 180ms;
45 } 41 }
46 42
47 .pod.pin-enabled { 43 .pod.pin-enabled {
48 height: 417px; 44 height: 417px;
49 top: -87px !important; 45 top: -87px !important;
(...skipping 18 matching lines...) Expand all
68 cursor: default; 64 cursor: default;
69 transform: scale3d(1, 1, 1) !important; 65 transform: scale3d(1, 1, 1) !important;
70 z-index: 1; 66 z-index: 1;
71 } 67 }
72 68
73 .pod.focused[auth-type='userClick'] { 69 .pod.focused[auth-type='userClick'] {
74 cursor: pointer; 70 cursor: pointer;
75 } 71 }
76 72
77 .user-image-pane { 73 .user-image-pane {
78 background-color: white; 74 height: 96px;
79 height: 160px; 75 left: 105px;
80 left: 10px;
81 position: absolute; 76 position: absolute;
82 top: 10px; 77 top: 54px;
83 transition: height 180ms ease-in-out, 78 transition: height 180ms ease-in-out,
84 left 180ms ease-in-out, 79 left 180ms ease-in-out,
85 right 180ms ease-in-out, 80 right 180ms ease-in-out,
86 top 180ms ease-in-out, 81 top 180ms ease-in-out,
87 width 180ms ease-in-out; 82 width 180ms ease-in-out;
88 width: 160px; 83 width: 96px;
89 z-index: 3; 84 z-index: 3;
90 } 85 }
91 86
92 html[dir=rtl] .user-image-pane { 87 html[dir=rtl] .user-image-pane {
93 left: auto; 88 left: auto;
94 right: 10px; 89 right: 10px;
95 } 90 }
96 91
97 .user-image-container { 92 .user-image-container {
98 align-items: center; 93 align-items: center;
99 display: flex; 94 display: flex;
100 height: 100%; 95 height: 100%;
101 justify-content: center; 96 justify-content: center;
102 width: 100%; 97 width: 100%;
103 } 98 }
104 99
100 .user-image {
101 border-radius: 50%;
102 height: 100%;
103 width: 100%;
104 }
105
105 .pod .user-image { 106 .pod .user-image {
106 flex: none; 107 flex: none;
107 } 108 }
108 109
109 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the 110 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the
110 style rule once it is included on CrOS only. crbug.com/397638 */ 111 style rule once it is included on CrOS only. crbug.com/397638 */
111 html:not([screen=login-add-user]) .pod .user-image { 112 html:not([screen=login-add-user]) .pod .user-image {
112 max-height: 160px; 113 max-height: 160px;
113 max-width: 160px; 114 max-width: 160px;
114 opacity: 0.7; 115 opacity: 0.7;
(...skipping 17 matching lines...) Expand all
132 color: white; 133 color: white;
133 display: block; 134 display: block;
134 font-size: small; 135 font-size: small;
135 position: absolute; 136 position: absolute;
136 text-align: center; 137 text-align: center;
137 top: 0; 138 top: 0;
138 width: 100%; 139 width: 100%;
139 } 140 }
140 141
141 .main-pane { 142 .main-pane {
142 left: 10px;
143 position: absolute; 143 position: absolute;
144 top: 10px;
145 z-index: 2; 144 z-index: 2;
146 } 145 }
147 146
148 html[dir=rtl] .main-pane { 147 html[dir=rtl] .main-pane {
149 left: auto; 148 left: auto;
150 right: 10px; 149 right: 10px;
151 } 150 }
152 151
153 .name-container, 152 .name-container {
154 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
155 background-color: white;
156 display: flex; 153 display: flex;
157 position: absolute; 154 position: absolute;
158 top: 160px; 155 top: 182px;
156 }
157
158 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
159 display: flex;
160 height: 40px;
161 left: 51px;
162 padding-bottom: 16px;
163 position: absolute;
164 top: 244px;
159 /* On chromeos we extend the width to cover the padding on the user pods. This 165 /* On chromeos we extend the width to cover the padding on the user pods. This
160 is so the submit button on chromeos can extend onto the padding as shown on 166 is so the submit button on chromeos can extend onto the padding as shown on
161 mocks. */ 167 mocks. */
162 <if expr="not chromeos"> 168 <if expr="not chromeos">
163 width: 160px; 169 width: 160px;
164 </if> 170 </if>
165 <if expr="chromeos"> 171 <if expr="chromeos">
166 width: 170px; 172 width: 204px;
167 </if> 173 </if>
168 } 174 }
169 175
176 polygon #arrow[active] {
177 fill: #7BAAF7;
178 opacity: 1;
179 }
180
170 .auth-container .submit-button[disabled] { 181 .auth-container .submit-button[disabled] {
171 color: #000; 182 color: #FFFFFF;
172 opacity: 0.26; 183 opacity: 0.34;
173 } 184 }
174 185
175 .auth-container .submit-button { 186 .auth-container .submit-button {
176 box-sizing: border-box; 187 color: #7BAAF7;
177 color: var(--google-blue-500); 188 height: 40px;
178 height: 43px; 189 opacity: 1;
179 min-height: 43px; 190 padding: 12px 0 4px 0;
180 min-width: 43px; 191 width: 24px;
181 padding: 11.5px 10px;
182 position: relative;
183 width: 43px;
184 } 192 }
185 193
186 .auth-container .submit-button.error-shown { 194 .auth-container .submit-button.error-shown {
187 color: #CD2A00; 195 color: #CD2A00;
188 } 196 }
189 197
190 .name-container { 198 .name-container {
191 transition: transform 180ms; 199 transition: transform 180ms;
192 } 200 }
193 201
194 .pod.focused .name-container { 202 .pod.focused .name-container {
195 display: none; 203 display: flex;
196 } 204 }
197 205
198 .pod.focused.multiprofiles-policy-applied .name-container { 206 .pod.focused.multiprofiles-policy-applied .name-container {
199 display: flex; 207 display: flex;
200 } 208 }
201 209
202 .name { 210 .name {
203 color: #565656; 211 color: #FFFFFF;
204 /* This should be 15.6px - the equivalent of 14px at 90% scale. */ 212 /* This should be 15.6px - the equivalent of 14px at 90% scale. */
205 flex: auto; 213 flex: auto;
206 font-size: 16px; 214 font-family: "Roboto";
207 margin-top: 12px; 215 font-size: 26px;
208 outline: none; 216 outline: none;
209 overflow: hidden; 217 overflow: hidden;
210 padding: 0 6px;
211 text-align: center; 218 text-align: center;
212 text-overflow: ellipsis; 219 text-overflow: ellipsis;
213 white-space: nowrap; 220 white-space: nowrap;
214 } 221 }
215 222
216 .learn-more-container, 223 .learn-more-container,
217 .auth-container, 224 .auth-container,
218 .password-entry-container, 225 .password-entry-container,
219 .reauth-hint-container { 226 .reauth-hint-container {
220 display: none; 227 display: none;
221 } 228 }
222 229
230 #input-line {
231 opacity: 0.34;
232 position: absolute;
233 stroke: #FFFFFF;
234 stroke-width: 1;
235 top: 40px;
236 }
237
238 #input-line[active] {
239 opacity: 1;
240 }
241
223 .pod[is-active-directory] .reauth-warning { 242 .pod[is-active-directory] .reauth-warning {
224 display: none; 243 display: none;
225 } 244 }
226 245
227 .pod[auth-type='offlinePassword'].focused .password-entry-container, 246 .pod[auth-type='offlinePassword'].focused .password-entry-container,
228 .pod[auth-type='forceOfflinePassword'].focused .password-entry-container { 247 .pod[auth-type='forceOfflinePassword'].focused .password-entry-container {
229 display: flex; 248 display: flex;
230 flex: auto; 249 flex: auto;
231 } 250 }
232 251
233 .password-container { 252 .password-container {
234 flex: auto; 253 height: 40px;
254 width: 180px;
235 } 255 }
236 256
237 .pod input[type='password'] { 257 .pod input[type='password'] {
238 background-color: white; 258 background-color: transparent;
239 border: none; 259 border: none;
240 padding: 4px 6px; 260 color: #FFFFFF;
241 position: relative; 261 font-family: "Roboto";
242 top: 6px; 262 font-size: 13px;
263 height: 100%;
264 padding: 0;
243 width: 100%; 265 width: 100%;
244 } 266 }
245 267
268 .pod input[type='password']::-webkit-input-placeholder {
269 opacity: 0.34;
270 }
271
246 .capslock-hint-container { 272 .capslock-hint-container {
247 display: none; 273 display: none;
248 } 274 }
249 275
250 <if expr="chromeos"> 276 <if expr="chromeos">
251 .capslock-on .capslock-hint-container { 277 .capslock-on .capslock-hint-container {
252 display: block; 278 display: block;
253 flex: none; 279 flex: none;
254 height: 43px; 280 height: 43px;
255 position: relative; 281 position: relative;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 color: #565656; 477 color: #565656;
452 font-size: 16px; 478 font-size: 16px;
453 outline: none; 479 outline: none;
454 overflow: hidden; 480 overflow: hidden;
455 padding: 0 6px; 481 padding: 0 6px;
456 text-align: center; 482 text-align: center;
457 text-overflow: ellipsis; 483 text-overflow: ellipsis;
458 white-space: nowrap; 484 white-space: nowrap;
459 } 485 }
460 486
461 .action-box-area,
462 .user-type-icon-area { 487 .user-type-icon-area {
463 background-color: white; 488 background-color: white;
464 border-radius: 2px; 489 border-radius: 2px;
465 position: absolute; 490 position: absolute;
466 top: 0; 491 top: 0;
467 } 492 }
468 493
469 .action-box-area { 494 .action-box-area {
470 opacity: 0; 495 opacity: 0;
471 outline: none; 496 outline: none;
472 right: 0;
473 transition: opacity 100ms; 497 transition: opacity 100ms;
474 z-index: 4; 498 z-index: 4;
475 } 499 }
476 500
477 html[dir=rtl] .action-box-area { 501 html[dir=rtl] .action-box-area {
478 left: 0; 502 left: 0;
503 position: absolute;
479 right: auto; 504 right: auto;
480 } 505 }
481 506
482 .action-box-area:focus, 507 .action-box-area:focus,
483 .action-box-area.hovered, 508 .action-box-area.hovered,
484 .action-box-area.active, 509 .action-box-area.active,
485 .action-box-area.forced { 510 .action-box-area.forced {
486 opacity: 1; 511 opacity: 1;
487 } 512 }
488 513
489 .action-box-button { 514 .action-box-button {
490 background-image: url(chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL); 515 height: 24px;
491 height: 13px; 516 margin: 3px 0 0 8px;
492 margin: 5px; 517 padding: 0;
493 width: 13px; 518 width: 24px;
494 }
495
496 .action-box-button:hover {
497 background-image: url(chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_HOVER);
498 }
499
500 .action-box-area.active .action-box-button {
501 background-image: url(chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED);
502 } 519 }
503 520
504 .action-box-area .action-box-icon { 521 .action-box-area .action-box-icon {
505 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */ 522 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */
506 display: none; 523 display: none;
507 } 524 }
508 525
509 .user-image-gradient-area { 526 .user-image-gradient-area {
510 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */ 527 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */
511 display: none; 528 display: none;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 .pod input[type='password'].failed::-webkit-input-placeholder { 598 .pod input[type='password'].failed::-webkit-input-placeholder {
582 color: var(--google-red-500); 599 color: var(--google-red-500);
583 } 600 }
584 601
585 .action-box-menu { 602 .action-box-menu {
586 display: none; 603 display: none;
587 z-index: 6; 604 z-index: 6;
588 } 605 }
589 606
590 .action-box-area.active ~ .action-box-menu { 607 .action-box-area.active ~ .action-box-menu {
591 background-color: white; 608 background-color: rgba(0, 0, 0, .34);
592 border: 1px solid lightgray;
593 border-radius: 2px; 609 border-radius: 2px;
594 display: flex; 610 display: flex;
595 flex-direction: column; 611 flex-direction: column;
596 font-size: 13px; 612 font-size: 13px;
597 position: absolute; 613 margin: 3px 0 0 12px;
598 right: 5px;
599 width: 220px; 614 width: 220px;
600 } 615 }
601 616
602 .action-box-area.active ~ .action-box-menu.left-edge-offset { 617 .action-box-area.active ~ .action-box-menu.left-edge-offset {
603 left: 0 !important; 618 left: 0 !important;
604 } 619 }
605 620
606 .action-box-area.active ~ .action-box-menu.right-edge-offset { 621 .action-box-area.active ~ .action-box-menu.right-edge-offset {
607 right: 0 !important; 622 right: 0 !important;
608 } 623 }
609 624
610 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) { 625 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
611 top: 18px; 626 top: 200px;
612 } 627 }
613 628
614 .action-box-area.active ~ .action-box-menu.menu-moved-up { 629 .action-box-area.active ~ .action-box-menu.menu-moved-up {
615 bottom: 207px; 630 bottom: 207px;
616 } 631 }
617 632
618 .action-box-area.menu-moved-up { 633 .action-box-area.menu-moved-up {
619 transform: rotate(180deg); 634 transform: rotate(180deg);
620 } 635 }
621 636
622 html[dir=rtl] .action-box-area.active ~ .action-box-menu { 637 html[dir=rtl] .action-box-area.active ~ .action-box-menu {
623 left: 5px; 638 left: 5px;
624 right: auto; 639 right: auto;
625 } 640 }
626 641
627 .action-box-menu-title { 642 .action-box-menu-title {
628 color: #757575; 643 color: #FFFFFF;
629 display: flex; 644 display: flex;
630 flex-direction: column; 645 flex-direction: column;
631 padding: 7px 20px; 646 padding: 13px 14px 18px;
632 } 647 }
633 648
634 .action-box-menu-title:focus { 649 .action-box-menu-title:focus {
635 outline-style: none; 650 outline-style: none;
636 } 651 }
637 652
638 .action-box-menu-title-name, 653 .action-box-menu-title-name,
639 .action-box-menu-title-email { 654 .action-box-menu-title-email {
640 flex: none; 655 flex: none;
641 height: 23px;
642 line-height: 19px;
643 overflow: hidden; 656 overflow: hidden;
644 text-overflow: ellipsis; 657 text-overflow: ellipsis;
645 white-space: nowrap; 658 white-space: nowrap;
646 } 659 }
647 660
661 .action-box-menu-title-name {
662 padding-bottom: 7px;
663 }
664
665 .action-box-menu-title-email {
666 opacity: 0.54;
667 }
668
648 .action-box-menu-remove { 669 .action-box-menu-remove {
649 border-top: 1px solid lightgray; 670 border-top: 0.25px solid grey;
650 line-height: 19px; 671 color: #7BAAF7;
651 min-height: 24px;
652 outline: none; 672 outline: none;
653 padding: 12px 20px 7px; 673 padding: 18px 14px;
654 } 674 }
655 675
656 .action-box-menu-remove:hover, 676 .action-box-menu-remove:hover,
657 .action-box-menu-remove:focus { 677 .action-box-menu-remove:focus {
658 background-color: #f3f3f3; 678 background-color: grey;
679 color: white;
659 } 680 }
660 681
661 .action-box-remove-user-warning { 682 .action-box-remove-user-warning {
662 border-top: 1px solid lightgray; 683 border-top: 0.25px solid grey;
663 font-size: 12px; 684 color: white;
685 font-size: 13px;
664 line-height: 18px; 686 line-height: 18px;
665 padding: 20px; 687 padding: 13px 14px 18px;
666 } 688 }
667 689
668 .action-box-remove-user-warning > div, 690 .action-box-remove-user-warning > div,
669 .action-box-remove-user-warning > table { 691 .action-box-remove-user-warning > table {
670 padding-bottom: 20px; 692 padding-bottom: 19px;
671 } 693 }
672 694
673 .total-count { 695 .total-count {
674 font-weight: bold; 696 font-weight: bold;
675 } 697 }
676 698
677 .action-box-remove-user-warning-table-nonsync { 699 .action-box-remove-user-warning-table-nonsync {
678 border-spacing: 0; 700 border-spacing: 0;
679 width: 100%; 701 width: 100%;
680 } 702 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 .pod.public-account.expanded.advanced { 763 .pod.public-account.expanded.advanced {
742 height: 280px; 764 height: 280px;
743 width: 610px; 765 width: 610px;
744 } 766 }
745 767
746 .pod.public-account.focused .name-container { 768 .pod.public-account.focused .name-container {
747 display: flex; 769 display: flex;
748 } 770 }
749 771
750 .pod.public-account.expanded .name-container { 772 .pod.public-account.expanded .name-container {
751 display: none; 773 display: flex;
752 } 774 }
753 775
754 .pod.public-account .learn-more-container { 776 .pod.public-account .learn-more-container {
755 display: block; 777 display: block;
756 flex: none; 778 flex: none;
757 } 779 }
758 780
759 .pod.public-account .learn-more { 781 .pod.public-account .learn-more {
760 top: 22px; 782 top: 22px;
761 } 783 }
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 animation: ellipsis-component2 1.5s infinite; 1037 animation: ellipsis-component2 1.5s infinite;
1016 } 1038 }
1017 1039
1018 @keyframes ellipsis-component2 { 1040 @keyframes ellipsis-component2 {
1019 0% { opacity: 0; } 1041 0% { opacity: 0; }
1020 25% { opacity: 0; } 1042 25% { opacity: 0; }
1021 50% { opacity: 0; } 1043 50% { opacity: 0; }
1022 75% { opacity: 1; } 1044 75% { opacity: 1; }
1023 100% { opacity: 0; } 1045 100% { opacity: 0; }
1024 } 1046 }
OLDNEW
« no previous file with comments | « ui/login/account_picker/md_screen_account_picker.js ('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