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 14 matching lines...) Expand all Loading... |
25 -webkit-tap-highlight-color: transparent; | 25 -webkit-tap-highlight-color: transparent; |
26 border-radius: 2px; | 26 border-radius: 2px; |
27 cursor: pointer; | 27 cursor: pointer; |
28 opacity: 0.64; | 28 opacity: 0.64; |
29 outline: none; | 29 outline: none; |
30 position: absolute; | 30 position: absolute; |
31 z-index: 0; | 31 z-index: 0; |
32 } | 32 } |
33 | 33 |
34 .account-picker.flying-pods .pod { | 34 .account-picker.flying-pods .pod { |
35 transition: all 180ms; | 35 transition: all 300ms; |
36 } | 36 } |
37 | 37 |
38 .pod.pin-enabled { | 38 .pod.pin-enabled { |
39 height: 417px; | 39 height: 417px; |
40 top: -87px !important; | 40 top: -87px !important; |
41 } | 41 } |
42 | 42 |
43 .pod .pin-container { | 43 .pod .pin-container { |
44 left: 36px; | 44 left: 36px; |
45 position: absolute; | 45 position: absolute; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 .user-image-container { | 88 .user-image-container { |
89 align-items: center; | 89 align-items: center; |
90 display: flex; | 90 display: flex; |
91 height: 100%; | 91 height: 100%; |
92 justify-content: center; | 92 justify-content: center; |
93 width: 100%; | 93 width: 100%; |
94 } | 94 } |
95 | 95 |
96 .user-image { | 96 .user-image { |
97 border-radius: 50%; | 97 border-radius: 50%; |
| 98 box-shadow: 0 0 2px rgba(255, 255, 255, .34); |
98 height: 100%; | 99 height: 100%; |
99 width: 100%; | 100 width: 100%; |
100 } | 101 } |
101 | 102 |
| 103 .user-image.switch-image-animation { |
| 104 animation: switch-image 300ms; |
| 105 } |
| 106 |
102 .pod .user-image { | 107 .pod .user-image { |
103 flex: none; | 108 flex: none; |
104 } | 109 } |
105 | 110 |
106 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the | 111 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the |
107 style rule once it is included on CrOS only. crbug.com/397638 */ | 112 style rule once it is included on CrOS only. crbug.com/397638 */ |
108 html:not([screen=login-add-user]) .pod .user-image { | 113 html:not([screen=login-add-user]) .pod .user-image { |
109 max-height: 160px; | 114 max-height: 160px; |
110 max-width: 160px; | 115 max-width: 160px; |
111 position: absolute; | 116 position: absolute; |
(...skipping 20 matching lines...) Expand all Loading... |
132 .name-container { | 137 .name-container { |
133 display: flex; | 138 display: flex; |
134 position: absolute; | 139 position: absolute; |
135 top: 182px; | 140 top: 182px; |
136 } | 141 } |
137 | 142 |
138 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { | 143 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { |
139 display: flex; | 144 display: flex; |
140 height: 40px; | 145 height: 40px; |
141 left: 51px; | 146 left: 51px; |
142 padding-bottom: 16px; | |
143 position: absolute; | 147 position: absolute; |
144 top: 244px; | 148 top: 244px; |
145 /* On chromeos we extend the width to cover the padding on the user pods. This | 149 /* On chromeos we extend the width to cover the padding on the user pods. This |
146 is so the submit button on chromeos can extend onto the padding as shown on | 150 is so the submit button on chromeos can extend onto the padding as shown on |
147 mocks. */ | 151 mocks. */ |
148 <if expr="not chromeos"> | 152 <if expr="not chromeos"> |
149 width: 160px; | 153 width: 160px; |
150 </if> | 154 </if> |
151 <if expr="chromeos"> | 155 <if expr="chromeos"> |
152 width: 204px; | 156 width: 204px; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 .auth-container, | 198 .auth-container, |
195 .password-entry-container, | 199 .password-entry-container, |
196 .reauth-hint-container { | 200 .reauth-hint-container { |
197 display: none; | 201 display: none; |
198 } | 202 } |
199 | 203 |
200 #input-line { | 204 #input-line { |
201 opacity: 0.34; | 205 opacity: 0.34; |
202 position: absolute; | 206 position: absolute; |
203 stroke: #FFFFFF; | 207 stroke: #FFFFFF; |
204 stroke-width: 1; | 208 stroke-width: 1px; |
205 top: 40px; | 209 top: 40px; |
206 } | 210 } |
207 | 211 |
208 #input-line[active] { | 212 #input-line[active] { |
209 opacity: 1; | 213 opacity: 1; |
210 } | 214 } |
211 | 215 |
212 .pod[is-active-directory] .reauth-warning { | 216 .pod[is-active-directory] .reauth-warning { |
213 display: none; | 217 display: none; |
214 } | 218 } |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 opacity: 1; | 486 opacity: 1; |
483 } | 487 } |
484 | 488 |
485 .action-box-button { | 489 .action-box-button { |
486 height: 24px; | 490 height: 24px; |
487 margin: 3px 0 0 8px; | 491 margin: 3px 0 0 8px; |
488 padding: 0; | 492 padding: 0; |
489 width: 24px; | 493 width: 24px; |
490 } | 494 } |
491 | 495 |
| 496 .action-box-button.ripple-circle { |
| 497 background: #FFF; |
| 498 border-radius: 50%; |
| 499 opacity: .08; |
| 500 position: absolute; |
| 501 transform: scale(0); |
| 502 } |
| 503 |
| 504 .action-box-area.active .action-box-button.ripple-circle { |
| 505 animation: ripple 360ms; |
| 506 transform: scale(1); |
| 507 } |
| 508 |
| 509 @keyframes ripple { |
| 510 0% { transform: scale(0); } |
| 511 30% { transform: scale(1); } |
| 512 100% { transform: scale(1); } |
| 513 } |
| 514 |
492 .action-box-area .action-box-icon { | 515 .action-box-area .action-box-icon { |
493 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */ | 516 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */ |
494 display: none; | 517 display: none; |
495 } | 518 } |
496 | 519 |
497 .user-image-gradient-area { | 520 .user-image-gradient-area { |
498 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */ | 521 /* overriden in chrome/browser/resources/md_user_manager/user_manager.css */ |
499 display: none; | 522 display: none; |
500 } | 523 } |
501 | 524 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 .pod input[type='password'].signin::-webkit-input-placeholder { | 588 .pod input[type='password'].signin::-webkit-input-placeholder { |
566 color: var(--google-blue-500); | 589 color: var(--google-blue-500); |
567 } | 590 } |
568 | 591 |
569 .pod input[type='password'].failed::-webkit-input-placeholder { | 592 .pod input[type='password'].failed::-webkit-input-placeholder { |
570 color: var(--google-red-500); | 593 color: var(--google-red-500); |
571 } | 594 } |
572 | 595 |
573 .action-box-menu { | 596 .action-box-menu { |
574 display: none; | 597 display: none; |
| 598 position: absolute; |
575 z-index: 6; | 599 z-index: 6; |
576 } | 600 } |
577 | 601 |
578 .action-box-area.active ~ .action-box-menu { | 602 .action-box-area.active ~ .action-box-menu { |
579 background-color: rgba(0, 0, 0, .34); | 603 background-color: rgba(0, 0, 0, 0.8); |
580 border-radius: 2px; | 604 border-radius: 2px; |
581 display: flex; | 605 display: flex; |
582 flex-direction: column; | 606 flex-direction: column; |
583 font-size: 13px; | 607 font-size: 13px; |
584 margin: 3px 0 0 12px; | 608 margin: 3px 0 0 12px; |
585 width: 220px; | 609 width: 220px; |
586 } | 610 } |
587 | 611 |
588 .action-box-area.active ~ .action-box-menu.left-edge-offset { | 612 .action-box-area.active ~ .action-box-menu.left-edge-offset { |
589 left: 0 !important; | 613 left: 0 !important; |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 top 180ms ease-in-out, | 1065 top 180ms ease-in-out, |
1042 width 180ms ease-in-out; | 1066 width 180ms ease-in-out; |
1043 width: 74px; | 1067 width: 74px; |
1044 } | 1068 } |
1045 | 1069 |
1046 .small-pod.extra-small .small-user-image-container { | 1070 .small-pod.extra-small .small-user-image-container { |
1047 height: 60px; | 1071 height: 60px; |
1048 width: 60px; | 1072 width: 60px; |
1049 } | 1073 } |
1050 | 1074 |
1051 .small-pod-image { | |
1052 border-radius: 50%; | |
1053 height: 100%; | |
1054 width: 100%; | |
1055 } | |
1056 | |
1057 .small-pod-name { | 1075 .small-pod-name { |
1058 color: #FFFFFF; | 1076 color: #FFFFFF; |
1059 flex: auto; | 1077 flex: auto; |
1060 font-family: "Roboto"; | 1078 font-family: "Roboto"; |
1061 font-size: 20px; | 1079 font-size: 20px; |
1062 height: 28px; | 1080 height: 28px; |
1063 left: 90px; | 1081 left: 90px; |
1064 opacity: 1; | 1082 opacity: 1; |
1065 outline: none; | 1083 outline: none; |
1066 overflow: hidden; | 1084 overflow: hidden; |
1067 padding: 23px 0; | 1085 padding: 23px 0; |
1068 position: absolute; | 1086 position: absolute; |
1069 text-overflow: ellipsis; | 1087 text-overflow: ellipsis; |
1070 white-space: nowrap; | 1088 white-space: nowrap; |
1071 width: 214px; | 1089 width: 214px; |
1072 } | 1090 } |
1073 | 1091 |
1074 .small-pod.extra-small .small-pod-name { | 1092 .small-pod.extra-small .small-pod-name { |
1075 left: 76px; | 1093 left: 76px; |
1076 padding: 16px 0; | 1094 padding: 16px 0; |
1077 width: 190px; | 1095 width: 190px; |
1078 } | 1096 } |
1079 | 1097 |
1080 .small-pod-container.scroll { | 1098 @keyframes switch-image { |
1081 background-color: rgba(20, 29, 40, .2); | 1099 from { transform: rotate3d(0, 1, 0, 90deg); } |
| 1100 to { transform: none; } |
1082 } | 1101 } |
1083 | |
1084 .small-pod-container-mask { | |
1085 background: linear-gradient(#00B0FF, transparent); | |
1086 height: 112px; | |
1087 opacity: 0.6; | |
1088 position: absolute; | |
1089 width: 100%; | |
1090 z-index: 2; | |
1091 } | |
1092 | |
1093 .small-pod-container-mask.rotate { | |
1094 transform: rotate(180deg); | |
1095 } | |
OLD | NEW |