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

Side by Side Diff: chrome/browser/resources/chromeos/login/user_pod_row.css

Issue 168813002: Refactor user pods to use authType property for distinct authentication modes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ScreenLockerTest Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 -webkit-transform: scale3d(0.8, 0.8, 0.8); 57 -webkit-transform: scale3d(0.8, 0.8, 0.8);
58 } 58 }
59 59
60 .pod.focused { 60 .pod.focused {
61 /* Focused pod has the same size no matter how many pods. */ 61 /* Focused pod has the same size no matter how many pods. */
62 -webkit-transform: scale3d(1, 1, 1) !important; 62 -webkit-transform: scale3d(1, 1, 1) !important;
63 cursor: default; 63 cursor: default;
64 z-index: 1; 64 z-index: 1;
65 } 65 }
66 66
67 .pod.focused[auth-type='userClick'] {
68 cursor: pointer;
69 }
70
67 .pod .user-image-container { 71 .pod .user-image-container {
68 height: 160px; 72 height: 160px;
69 line-height: 160px; 73 line-height: 160px;
70 text-align: center; 74 text-align: center;
71 width: 160px; 75 width: 160px;
72 } 76 }
73 77
74 .pod .user-image { 78 .pod .user-image {
75 height: 160px; 79 height: 160px;
76 opacity: 0.7; 80 opacity: 0.7;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 .password-area { 139 .password-area {
136 display: none; 140 display: none;
137 } 141 }
138 142
139 .password-input-container { 143 .password-input-container {
140 -webkit-box-flex: 1; 144 -webkit-box-flex: 1;
141 /* This relative position is so the capslock hint is positioned correctly. */ 145 /* This relative position is so the capslock hint is positioned correctly. */
142 position: relative; 146 position: relative;
143 } 147 }
144 148
149 .password-label {
150 -webkit-box-align: center;
151 border: none;
152 display: none;
153 font-size: 14px;
154 height: 40px;
155 text-overflow: ellipsis;
156 }
157
158 .pod[auth-type='userClick'] .password-label {
159 display: -webkit-box;
160 }
161
145 .custom-button { 162 .custom-button {
146 -webkit-box-align: center; 163 -webkit-box-align: center;
147 background-color: rgba(0, 0, 0, 0); 164 background-color: rgba(0, 0, 0, 0);
148 background-image: none; 165 background-image: none;
149 cursor: pointer; 166 cursor: pointer;
150 display: -webkit-box; 167 display: -webkit-box;
151 height: 40px; 168 height: 40px;
152 margin: 0; 169 margin: 0;
153 max-width: 40px; 170 max-width: 40px;
154 min-height: 0; 171 min-height: 0;
155 min-width: 0; 172 min-width: 0;
156 padding: 0; 173 padding: 0;
157 } 174 }
158 175
159 button.custom-button:focus:active, 176 button.custom-button:focus:active,
160 button.custom-button:focus:hover { 177 button.custom-button:focus:hover {
161 border: 1px solid transparent !important; 178 border: 1px solid transparent !important;
162 } 179 }
163 180
164 .custom-button img { 181 .custom-button img {
165 max-height: 100%; 182 max-height: 100%;
166 max-width: 100%; 183 max-width: 100%;
167 } 184 }
168 185
169 .pod input[type='password'] { 186 .pod input[type='password'] {
170 -webkit-transition: opacity linear 150ms; 187 -webkit-transition: opacity linear 150ms;
171 background: white; 188 background: white;
172 border: none; 189 border: none;
173 box-sizing: border-box; 190 box-sizing: border-box;
174 display: inline-block; 191 display: none;
175 height: 40px; 192 height: 40px;
176 outline: none; 193 outline: none;
177 padding: 4px 6px; 194 padding: 4px 6px;
178 width: 100%; 195 width: 100%;
179 } 196 }
180 197
198 .pod[auth-type='offlinePassword'] input[type='password'] {
199 display: inline-block;
200 }
201
181 .pod.need-password.focused .password-area { 202 .pod.need-password.focused .password-area {
182 display: -webkit-box; 203 display: -webkit-box;
183 } 204 }
184 205
185 .pod .signin-button, 206 .pod .signin-button,
186 .pod .launch-app-button { 207 .pod .launch-app-button {
187 box-sizing: border-box; 208 box-sizing: border-box;
188 display: inline-block; 209 display: none;
189 height: 26px; 210 height: 26px;
190 margin: 6px 0 !important; 211 margin: 6px 0 !important;
191 max-width: 100%; 212 max-width: 100%;
192 min-width: 72px !important; 213 min-width: 72px !important;
193 padding: 4px 8px; 214 padding: 4px 8px;
194 } 215 }
195 216
196 .pod:not(.focused) .signin-button, 217 .pod.focused .launch-app-button,
197 .pod:not(.focused) .launch-app-button { 218 .pod.focused[auth-type='onlineSignIn'] .signin-button {
198 display: none; 219 display: inline-block;
199 } 220 }
200 221
201 .pod .capslock-hint { 222 .pod .capslock-hint {
202 bottom: 13px; 223 bottom: 13px;
203 cursor: text; 224 cursor: text;
204 position: absolute; 225 position: absolute;
205 right: 6px; 226 right: 6px;
206 visibility: hidden; 227 visibility: hidden;
207 z-index: 1; 228 z-index: 1;
208 } 229 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 .action-box-area.active .action-box-button { 360 .action-box-area.active .action-box-button {
340 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED'); 361 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED');
341 } 362 }
342 363
343 .action-box-menu { 364 .action-box-menu {
344 -webkit-transition: opacity 100ms ease-in-out; 365 -webkit-transition: opacity 100ms ease-in-out;
345 background-color: white; 366 background-color: white;
346 border: 1px solid lightgray; 367 border: 1px solid lightgray;
347 border-radius: 2px; 368 border-radius: 2px;
348 box-shadow: none; 369 box-shadow: none;
370 display: none;
349 font-size: 13px; 371 font-size: 13px;
350 line-height: 19px; 372 line-height: 19px;
351 margin: 0; 373 margin: 0;
352 opacity: 0; 374 opacity: 0;
353 padding: 0; 375 padding: 0;
354 position: absolute; 376 position: absolute;
355 right: 5px; 377 right: 5px;
356 top: 18px; 378 top: 18px;
357 /* TODO(glotov): the menu should fade out with transition */ 379 /* TODO(glotov): the menu should fade out with transition */
358 visibility: hidden; 380 visibility: hidden;
359 width: 220px; 381 width: 220px;
360 z-index: 1; 382 z-index: 1;
361 } 383 }
362 384
363 html[dir=rtl] .action-box-menu { 385 html[dir=rtl] .action-box-menu {
364 left: 5px; 386 left: 5px;
365 right: auto; 387 right: auto;
366 } 388 }
367 389
368 .action-box-area.active ~ .action-box-menu { 390 .action-box-area.active ~ .action-box-menu {
391 -webkit-box-orient: vertical;
392 display: -webkit-box;
369 opacity: 1; 393 opacity: 1;
370 visibility: visible; 394 visibility: visible;
371 } 395 }
372 396
373 .action-box-menu-title { 397 .action-box-menu-title {
374 -webkit-box-orient: vertical; 398 -webkit-box-orient: vertical;
375 -webkit-box-pack: center; 399 -webkit-box-pack: center;
376 color: #b4b4b4; 400 color: #b4b4b4;
377 display: -webkit-box; 401 display: -webkit-box;
378 padding: 7px 20px; 402 padding: 7px 20px;
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 .pod.public-account.expanded .name, 599 .pod.public-account.expanded .name,
576 .pod.public-account.expanded .learn-more { 600 .pod.public-account.expanded .learn-more {
577 display: none; 601 display: none;
578 } 602 }
579 603
580 .pod.public-account.expanded .side-pane-divider, 604 .pod.public-account.expanded .side-pane-divider,
581 .pod.public-account.expanded .side-pane-container, 605 .pod.public-account.expanded .side-pane-container,
582 .pod.public-account.animating .side-pane-container { 606 .pod.public-account.animating .side-pane-container {
583 visibility: inherit; 607 visibility: inherit;
584 } 608 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698