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
3 * found in the LICENSE file.
5 * This is the stylesheet used by user pods row of account picker UI.
9 -webkit-box-align: center;
10 -webkit-box-pack: center;
11 /* Temporarily disabled because animation interferes with updating screen's
13 /* -webkit-transition: width 180ms ease; */
19 podrow[ncolumns='4'] {
23 podrow[ncolumns='5'] {
27 podrow[ncolumns='6'] {
31 /* Hide the pod row while images are loading. */
32 podrow.images-loading {
37 -webkit-tap-highlight-color: transparent;
38 -webkit-transform: scale3d(0.9, 0.9, 0.9);
39 -webkit-transition: all 180ms ease;
40 background-color: white;
42 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2),
43 0 2px 6px rgba(0, 0, 0, 0.15),
44 0 3px 0 rgba(0, 0, 0, 0.08);
46 display: inline-block;
48 padding: 10px 10px 3px;
50 vertical-align: middle;
61 podrow[ncolumns='6'] .pod {
62 -webkit-transform: scale3d(0.8, 0.8, 0.8);
67 /* Focused pod has the same size no matter how many pods. */
68 -webkit-transform: scale3d(1, 1, 1) !important;
83 .pod.focused .user-image {
88 -webkit-transform: scale3d(2.4, 2.4, 2.4);
93 -webkit-transform: translateX(-25px);
98 -webkit-transform: translateX(25px);
103 -webkit-transform: scale3d(2.2, 2.2, 2.2);
108 -webkit-transition: all 170ms ease;
110 /* Matching font-size 14px but since name is visible
111 when pod is not focused increase that a bit. */
114 line-height: 26px; /* This vertically centers text */
117 text-overflow: ellipsis;
125 .pod.need-password.focused .name {
129 .pod input[type='password'] {
130 -webkit-transition: opacity linear 150ms;
133 box-sizing: border-box;
141 .pod.need-password.focused input[type='password'] {
142 display: inline-block;
145 .pod .signin-button {
146 box-sizing: border-box;
147 display: inline-block;
151 min-width: 72px !important;
155 .pod:not(.focused) .signin-button {
159 .pod .capslock-hint {
168 html[dir=rtl] .pod .capslock-hint {
173 .capslock-on .pod.focused input[type='password']:not([hidden]) ~ .capslock-hint {
178 -webkit-transition: opacity 100ms ease-in-out;
179 background-color: white;
194 .action-box-area:focus,
195 .action-box-area.hovered,
196 .action-box-area.active {
201 background-color: transparent;
202 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL');
203 border: 0 !important;
210 .user-type-icon-area {
211 background-color: white;
225 .user-type-icon-image {
226 background-color: transparent;
227 background-image: url('chrome://theme/IDR_MANAGED_MODE_ICON');
228 border: 0 !important;
235 html[dir=rtl] .action-box-area {
240 .action-box-button:hover {
241 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_HOVER');
244 .action-box-area.active .action-box-button {
245 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED');
249 -webkit-transition: opacity 100ms ease-in-out;
250 background-color: white;
251 border: 1px solid lightgray;
262 /* TODO(glotov): the menu should fade out with transition */
268 .action-box-area.active ~ .action-box-menu {
273 .action-box-menu-title {
274 -webkit-box-orient: vertical;
275 -webkit-box-pack: center;
277 display: -webkit-box;
281 .action-box-menu-title-name {
282 display: -webkit-box;
285 text-overflow: ellipsis;
290 .action-box-menu-title-email {
294 text-overflow: ellipsis;
298 .action-box-menu-remove {
299 -webkit-box-align: center;
300 border-top: 1px solid lightgray;
301 display: -webkit-box;
306 .action-box-menu-remove:hover,
307 .action-box-menu-remove:focus {
308 background-color: #f3f3f3;
312 .action-box-remove-user-warning {
313 border-top: 1px solid lightgray;
320 .action-box-remove-user-warning-text {
321 padding-bottom: 20px;
324 .action-box-remove-user-warning .remove-warning-button {
328 html[oobe=old] .pod.focused .action-box-area {
329 /* Track shifting of .user-image on pod focus. */
330 -webkit-transform: translateY(-1px);
331 -webkit-transition: -webkit-transform 140ms ease;
335 .signed-in-indicator {
336 -webkit-transition: all 140ms ease;
337 background: rgba(0, 0, 0, 0.5);
342 /* Width of .user-image. */
347 /**** Public account user pod rules *******************************************/
349 .pod.public-account .name,
351 -webkit-padding-end: 16px;
355 text-overflow: ellipsis;
359 .side-pane-learn-more {
360 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_GRAY');
367 .side-pane-learn-more:hover {
368 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
376 html[dir=rtl] .learn-more {
382 .side-pane-container {
389 border-left: 1px solid lightgray;
396 html[dir=rtl] .side-pane-divider {
401 .side-pane-container {
409 html[dir=rtl] .side-pane-container {
414 .side-pane-contents {
415 -webkit-transform: translateX(-240px);
416 -webkit-transition: -webkit-transform 180ms ease;
421 html[dir=rtl] .side-pane-contents {
422 -webkit-transform: translateX(240px);
425 .pod.public-account.expanded .side-pane-contents {
426 -webkit-transform: translateX(0);
429 .side-pane-learn-more {
434 html[dir=rtl] .side-pane-learn-more {
439 .side-pane-container .info,
440 .side-pane-container .reminder {
444 .side-pane-container .info {
445 -webkit-margin-before: 25px;
448 .side-pane-container .reminder {
452 .side-pane-container .enter-button {
460 html[dir=rtl] .side-pane-container .enter-button {
465 .pod.public-account.expanded {
470 .pod.public-account.expanded .name,
471 .pod.public-account.expanded .learn-more {
475 .pod.public-account.expanded .side-pane-divider,
476 .pod.public-account.expanded .side-pane-container,
477 .pod.public-account.animating .side-pane-container {