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

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: 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 position: absolute;
163 top: 244px;
159 /* On chromeos we extend the width to cover the padding on the user pods. This 164 /* 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 165 is so the submit button on chromeos can extend onto the padding as shown on
161 mocks. */ 166 mocks. */
162 <if expr="not chromeos"> 167 <if expr="not chromeos">
163 width: 160px; 168 width: 160px;
164 </if> 169 </if>
165 <if expr="chromeos"> 170 <if expr="chromeos">
166 width: 170px; 171 width: 204px;
167 </if> 172 </if>
168 } 173 }
169 174
170 .auth-container .submit-button[disabled] { 175 .auth-container .submit-button[disabled] {
171 color: #000;
172 opacity: 0.26;
173 } 176 }
174 177
175 .auth-container .submit-button { 178 .auth-container .submit-button {
176 box-sizing: border-box; 179 height: 40px;
177 color: var(--google-blue-500); 180 padding: 12px 0 4px 0;
178 height: 43px; 181 width: 24px;
179 min-height: 43px;
180 min-width: 43px;
181 padding: 11.5px 10px;
182 position: relative;
183 width: 43px;
184 } 182 }
185 183
186 .auth-container .submit-button.error-shown { 184 .auth-container .submit-button.error-shown {
187 color: #CD2A00; 185 color: #CD2A00;
188 } 186 }
189 187
190 .name-container { 188 .name-container {
191 transition: transform 180ms; 189 transition: transform 180ms;
192 } 190 }
193 191
194 .pod.focused .name-container { 192 .pod.focused .name-container {
195 display: none; 193 display: flex;
196 } 194 }
197 195
198 .pod.focused.multiprofiles-policy-applied .name-container { 196 .pod.focused.multiprofiles-policy-applied .name-container {
199 display: flex; 197 display: flex;
200 } 198 }
201 199
202 .name { 200 .name {
203 color: #565656; 201 color: #FFFFFF;
204 /* This should be 15.6px - the equivalent of 14px at 90% scale. */ 202 /* This should be 15.6px - the equivalent of 14px at 90% scale. */
205 flex: auto; 203 flex: auto;
206 font-size: 16px; 204 font-family: "Roboto";
207 margin-top: 12px; 205 font-size: 26px;
208 outline: none; 206 outline: none;
209 overflow: hidden; 207 overflow: hidden;
210 padding: 0 6px;
211 text-align: center; 208 text-align: center;
212 text-overflow: ellipsis; 209 text-overflow: ellipsis;
213 white-space: nowrap; 210 white-space: nowrap;
214 } 211 }
215 212
216 .learn-more-container, 213 .learn-more-container,
217 .auth-container, 214 .auth-container,
218 .password-entry-container, 215 .password-entry-container,
219 .reauth-hint-container { 216 .reauth-hint-container {
220 display: none; 217 display: none;
221 } 218 }
222 219
220 .input-line {
221 opacity: 0.34;
222 position: absolute;
223 stroke: #FFFFFF;
224 stroke-width: 1;
225 top: 40px;
226 }
227
223 .pod[is-active-directory] .reauth-warning { 228 .pod[is-active-directory] .reauth-warning {
224 display: none; 229 display: none;
225 } 230 }
226 231
227 .pod[auth-type='offlinePassword'].focused .password-entry-container, 232 .pod[auth-type='offlinePassword'].focused .password-entry-container,
228 .pod[auth-type='forceOfflinePassword'].focused .password-entry-container { 233 .pod[auth-type='forceOfflinePassword'].focused .password-entry-container {
229 display: flex; 234 display: flex;
230 flex: auto; 235 flex: auto;
231 } 236 }
232 237
233 .password-container { 238 .password-container {
234 flex: auto; 239 height: 40px;
240 width: 180px;
235 } 241 }
236 242
237 .pod input[type='password'] { 243 .pod input[type='password'] {
238 background-color: white; 244 background-color: transparent;
239 border: none; 245 border: none;
240 padding: 4px 6px; 246 color: #FFFFFF;
241 position: relative; 247 font-family: "Roboto";
242 top: 6px; 248 font-size: 13px;
249 height: 100%;
250 padding: 0;
243 width: 100%; 251 width: 100%;
244 } 252 }
245 253
254 .pod input[type='password']::-webkit-input-placeholder {
255 opacity: 0.34;
256 }
257
246 .capslock-hint-container { 258 .capslock-hint-container {
247 display: none; 259 display: none;
248 } 260 }
249 261
250 <if expr="chromeos"> 262 <if expr="chromeos">
251 .capslock-on .capslock-hint-container { 263 .capslock-on .capslock-hint-container {
252 display: block; 264 display: block;
253 flex: none; 265 flex: none;
254 height: 43px; 266 height: 43px;
255 position: relative; 267 position: relative;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 color: #565656; 463 color: #565656;
452 font-size: 16px; 464 font-size: 16px;
453 outline: none; 465 outline: none;
454 overflow: hidden; 466 overflow: hidden;
455 padding: 0 6px; 467 padding: 0 6px;
456 text-align: center; 468 text-align: center;
457 text-overflow: ellipsis; 469 text-overflow: ellipsis;
458 white-space: nowrap; 470 white-space: nowrap;
459 } 471 }
460 472
461 .action-box-area,
462 .user-type-icon-area { 473 .user-type-icon-area {
463 background-color: white; 474 background-color: white;
464 border-radius: 2px; 475 border-radius: 2px;
465 position: absolute; 476 position: absolute;
466 top: 0; 477 top: 0;
467 } 478 }
468 479
469 .action-box-area { 480 .action-box-area {
470 opacity: 0; 481 opacity: 0;
471 outline: none; 482 outline: none;
472 right: 0;
473 transition: opacity 100ms; 483 transition: opacity 100ms;
474 z-index: 4; 484 z-index: 4;
475 } 485 }
476 486
477 html[dir=rtl] .action-box-area { 487 html[dir=rtl] .action-box-area {
478 left: 0; 488 left: 0;
489 position: absolute;
479 right: auto; 490 right: auto;
480 } 491 }
481 492
482 .action-box-area:focus, 493 .action-box-area:focus,
483 .action-box-area.hovered, 494 .action-box-area.hovered,
484 .action-box-area.active, 495 .action-box-area.active,
485 .action-box-area.forced { 496 .action-box-area.forced {
486 opacity: 1; 497 opacity: 1;
487 } 498 }
488 499
489 .action-box-button { 500 .action-box-button {
490 background-image: url(chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL); 501 height: 24px;
491 height: 13px; 502 margin: 3px 0 0 8px;
492 margin: 5px; 503 padding: 0;
493 width: 13px; 504 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 } 505 }
503 506
504 .action-box-area .action-box-icon { 507 .action-box-area .action-box-icon {
505 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */ 508 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */
506 display: none; 509 display: none;
507 } 510 }
508 511
509 .user-image-gradient-area { 512 .user-image-gradient-area {
510 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */ 513 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */
511 display: none; 514 display: none;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 .pod input[type='password'].failed::-webkit-input-placeholder { 584 .pod input[type='password'].failed::-webkit-input-placeholder {
582 color: var(--google-red-500); 585 color: var(--google-red-500);
583 } 586 }
584 587
585 .action-box-menu { 588 .action-box-menu {
586 display: none; 589 display: none;
587 z-index: 6; 590 z-index: 6;
588 } 591 }
589 592
590 .action-box-area.active ~ .action-box-menu { 593 .action-box-area.active ~ .action-box-menu {
591 background-color: white; 594 background-color: #000;
592 border: 1px solid lightgray;
593 border-radius: 2px;
594 display: flex; 595 display: flex;
595 flex-direction: column; 596 flex-direction: column;
596 font-size: 13px; 597 font-size: 13px;
597 position: absolute; 598 margin: 3px 0 0 12px;
598 right: 5px;
599 width: 220px; 599 width: 220px;
600 } 600 }
601 601
602 .action-box-area.active ~ .action-box-menu.left-edge-offset { 602 .action-box-area.active ~ .action-box-menu.left-edge-offset {
603 left: 0 !important; 603 left: 0 !important;
604 } 604 }
605 605
606 .action-box-area.active ~ .action-box-menu.right-edge-offset { 606 .action-box-area.active ~ .action-box-menu.right-edge-offset {
607 right: 0 !important; 607 right: 0 !important;
608 } 608 }
609 609
610 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) { 610 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
611 top: 18px; 611 top: 200px;
612 } 612 }
613 613
614 .action-box-area.active ~ .action-box-menu.menu-moved-up { 614 .action-box-area.active ~ .action-box-menu.menu-moved-up {
615 bottom: 207px; 615 bottom: 207px;
616 } 616 }
617 617
618 .action-box-area.menu-moved-up { 618 .action-box-area.menu-moved-up {
619 transform: rotate(180deg); 619 transform: rotate(180deg);
620 } 620 }
621 621
622 html[dir=rtl] .action-box-area.active ~ .action-box-menu { 622 html[dir=rtl] .action-box-area.active ~ .action-box-menu {
623 left: 5px; 623 left: 5px;
624 right: auto; 624 right: auto;
625 } 625 }
626 626
627 .action-box-menu-title { 627 .action-box-menu-title {
628 color: #757575; 628 color: white;
629 display: flex; 629 display: flex;
630 flex-direction: column; 630 flex-direction: column;
631 padding: 7px 20px; 631 padding: 7px 20px;
632 } 632 }
633 633
634 .action-box-menu-title:focus { 634 .action-box-menu-title:focus {
635 outline-style: none; 635 outline-style: none;
636 } 636 }
637 637
638 .action-box-menu-title-name, 638 .action-box-menu-title-name,
639 .action-box-menu-title-email { 639 .action-box-menu-title-email {
640 flex: none; 640 flex: none;
641 height: 23px; 641 height: 23px;
642 line-height: 19px; 642 line-height: 19px;
643 overflow: hidden; 643 overflow: hidden;
644 text-overflow: ellipsis; 644 text-overflow: ellipsis;
645 white-space: nowrap; 645 white-space: nowrap;
646 } 646 }
647 647
648 .action-box-menu-title-name {
649 color: white;
650 }
651
652 .action-box-menu-title-email {
653 color: grey;
654 }
655
648 .action-box-menu-remove { 656 .action-box-menu-remove {
649 border-top: 1px solid lightgray; 657 border-top: 0.25px solid grey;
658 color: #7BAAF7;
650 line-height: 19px; 659 line-height: 19px;
651 min-height: 24px; 660 min-height: 24px;
652 outline: none; 661 outline: none;
653 padding: 12px 20px 7px; 662 padding: 12px 20px 7px;
654 } 663 }
655 664
656 .action-box-menu-remove:hover, 665 .action-box-menu-remove:hover,
657 .action-box-menu-remove:focus { 666 .action-box-menu-remove:focus {
658 background-color: #f3f3f3; 667 background-color: grey;
668 color: white;
659 } 669 }
660 670
661 .action-box-remove-user-warning { 671 .action-box-remove-user-warning {
662 border-top: 1px solid lightgray; 672 border-top: 0.25px solid grey;
673 color: white;
663 font-size: 12px; 674 font-size: 12px;
664 line-height: 18px; 675 line-height: 18px;
665 padding: 20px; 676 padding: 20px;
666 } 677 }
667 678
668 .action-box-remove-user-warning > div, 679 .action-box-remove-user-warning > div,
669 .action-box-remove-user-warning > table { 680 .action-box-remove-user-warning > table {
670 padding-bottom: 20px; 681 padding-bottom: 20px;
671 } 682 }
672 683
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 .pod.public-account.expanded.advanced { 752 .pod.public-account.expanded.advanced {
742 height: 280px; 753 height: 280px;
743 width: 610px; 754 width: 610px;
744 } 755 }
745 756
746 .pod.public-account.focused .name-container { 757 .pod.public-account.focused .name-container {
747 display: flex; 758 display: flex;
748 } 759 }
749 760
750 .pod.public-account.expanded .name-container { 761 .pod.public-account.expanded .name-container {
751 display: none; 762 display: flex;
752 } 763 }
753 764
754 .pod.public-account .learn-more-container { 765 .pod.public-account .learn-more-container {
755 display: block; 766 display: block;
756 flex: none; 767 flex: none;
757 } 768 }
758 769
759 .pod.public-account .learn-more { 770 .pod.public-account .learn-more {
760 top: 22px; 771 top: 22px;
761 } 772 }
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 animation: ellipsis-component2 1.5s infinite; 1026 animation: ellipsis-component2 1.5s infinite;
1016 } 1027 }
1017 1028
1018 @keyframes ellipsis-component2 { 1029 @keyframes ellipsis-component2 {
1019 0% { opacity: 0; } 1030 0% { opacity: 0; }
1020 25% { opacity: 0; } 1031 25% { opacity: 0; }
1021 50% { opacity: 0; } 1032 50% { opacity: 0; }
1022 75% { opacity: 1; } 1033 75% { opacity: 1; }
1023 100% { opacity: 0; } 1034 100% { opacity: 0; }
1024 } 1035 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698