OLD | NEW |
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 -webkit-box-align: center; | 9 -webkit-box-align: center; |
10 -webkit-box-pack: center; | 10 -webkit-box-pack: center; |
(...skipping 11 matching lines...) Expand all Loading... |
22 } | 22 } |
23 | 23 |
24 .pod { | 24 .pod { |
25 border-radius: 2px; | 25 border-radius: 2px; |
26 cursor: pointer; | 26 cursor: pointer; |
27 /* TODO(nkostylev): Figure out why explicit display: block is needed. | 27 /* TODO(nkostylev): Figure out why explicit display: block is needed. |
28 See http://crbug.com/161297 */ | 28 See http://crbug.com/161297 */ |
29 display: block; | 29 display: block; |
30 outline: none; | 30 outline: none; |
31 padding: 10px; | 31 padding: 10px; |
| 32 } |
| 33 |
| 34 .pod .main-pane { |
32 position: relative; | 35 position: relative; |
33 text-align: center; | 36 text-align: center; |
34 } | 37 } |
35 | 38 |
36 html[oobe=old] .pod { | 39 html[oobe=old] .pod { |
37 -webkit-transition: all 230ms ease; | 40 -webkit-transition: all 230ms ease; |
38 margin: 0 10px; | 41 margin: 0 10px; |
| 42 } |
| 43 |
| 44 html[oobe=old] .pod, |
| 45 html[oobe=old] .pod .main-pane { |
39 width: 170px; | 46 width: 170px; |
40 } | 47 } |
41 | 48 |
42 html[oobe=new] .pod { | 49 html[oobe=new] .pod { |
43 -webkit-transition: all 180ms ease; | 50 -webkit-transition: all 180ms ease; |
44 background-color: white; | 51 background-color: white; |
45 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), | 52 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), |
46 0 2px 6px rgba(0, 0, 0, 0.15), | 53 0 2px 6px rgba(0, 0, 0, 0.15), |
47 0 3px 0 rgba(0, 0, 0, 0.08); | 54 0 3px 0 rgba(0, 0, 0, 0.08); |
48 margin: 0 20px; | 55 margin: 0 20px; |
49 padding-bottom: 3px; | 56 padding-bottom: 3px; |
| 57 } |
| 58 |
| 59 html[oobe=new] .pod, |
| 60 html[oobe=new] .pod .main-pane { |
50 width: 160px; | 61 width: 160px; |
51 } | 62 } |
52 | 63 |
53 html[oobe=old] .pod .user-image { | 64 html[oobe=old] .pod .user-image { |
54 -webkit-transition: all 140ms ease; | 65 -webkit-transition: all 140ms ease; |
55 background-color: #fff; | 66 background-color: #fff; |
56 border: 1px solid #ccc; | 67 border: 1px solid #ccc; |
57 border-radius: 2px; | 68 border-radius: 2px; |
58 box-shadow: 0 3px 12px #ccc; | 69 box-shadow: 0 3px 12px #ccc; |
59 margin-bottom: 10px; | 70 margin-bottom: 10px; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 -webkit-transition: opacity 800ms ease; | 140 -webkit-transition: opacity 800ms ease; |
130 margin-top: 4px; | 141 margin-top: 4px; |
131 } | 142 } |
132 | 143 |
133 html[oobe=new] .name { | 144 html[oobe=new] .name { |
134 -webkit-transition: all 170ms ease; | 145 -webkit-transition: all 170ms ease; |
135 /* Matching font-size 14px but since name is visible | 146 /* Matching font-size 14px but since name is visible |
136 when pod is not focused increase that a bit. */ | 147 when pod is not focused increase that a bit. */ |
137 font-size: 16px; | 148 font-size: 16px; |
138 height: 26px; | 149 height: 26px; |
| 150 line-height: 26px; /* This vertically centers text */ |
139 overflow: hidden; | 151 overflow: hidden; |
140 white-space: nowrap; | 152 white-space: nowrap; |
141 } | 153 } |
142 | 154 |
143 .name.init { | 155 .name.init { |
144 opacity: 0; | 156 opacity: 0; |
145 } | 157 } |
146 | 158 |
147 .pod.focused .name { | 159 .pod.need-password.focused .name { |
148 display: none; | 160 display: none; |
149 } | 161 } |
150 | 162 |
151 .pod input[type='password'] { | 163 .pod input[type='password'] { |
152 box-sizing: border-box; | 164 box-sizing: border-box; |
| 165 display: none; |
153 padding: 4px 6px; | 166 padding: 4px 6px; |
154 width: 100%; | 167 width: 100%; |
155 } | 168 } |
156 | 169 |
157 html[oobe=old] .pod input[type='password'] { | 170 html[oobe=old] .pod input[type='password'] { |
158 -webkit-border-radius: 2px; | 171 -webkit-border-radius: 2px; |
159 -webkit-transition: box-shadow 100ms, background 100ms, border 500ms; | 172 -webkit-transition: box-shadow 100ms, background 100ms, border 500ms; |
160 border: 1px solid #aaa; | 173 border: 1px solid #aaa; |
161 box-shadow: inset 0 2px 2px rgba(0, 0, 0, .1), | 174 box-shadow: inset 0 2px 2px rgba(0, 0, 0, .1), |
162 0 1px 0 white, | 175 0 1px 0 white, |
163 0 0 1px transparent, | 176 0 0 1px transparent, |
164 0 0 1px transparent, | 177 0 0 1px transparent, |
165 0 0 1px transparent; | 178 0 0 1px transparent; |
166 height: 26px; | 179 height: 26px; |
167 } | 180 } |
168 | 181 |
169 html[oobe=new] .pod input[type='password'] { | 182 html[oobe=new] .pod input[type='password'] { |
170 -webkit-transition: opacity linear 150ms; | 183 -webkit-transition: opacity linear 150ms; |
171 background: white; | 184 background: white; |
172 border: none; | 185 border: none; |
173 height: 40px; | 186 height: 40px; |
174 outline: none; | 187 outline: none; |
175 } | 188 } |
176 | 189 |
177 .pod:not(.focused) input[type='password'] { | 190 .pod.need-password.focused input[type='password'] { |
178 display: none; | 191 display: inline-block; |
179 } | 192 } |
180 | 193 |
181 html[oobe=old] .pod input[type='password']:focus { | 194 html[oobe=old] .pod input[type='password']:focus { |
182 -webkit-transition: box-shadow 200ms, background 200ms, border 200ms; | 195 -webkit-transition: box-shadow 200ms, background 200ms, border 200ms; |
183 background: #f8f8f8; | 196 background: #f8f8f8; |
184 border-color: rgb(64, 128, 250); | 197 border-color: rgb(64, 128, 250); |
185 box-shadow: inset 0 2px 2px rgba(0, 0, 0, .15), | 198 box-shadow: inset 0 2px 2px rgba(0, 0, 0, .15), |
186 0 1px 0 transparent, | 199 0 1px 0 transparent, |
187 0 0 1px #c0c0c0, | 200 0 0 1px #c0c0c0, |
188 0 0 1px #c0c0c0, | 201 0 0 1px #c0c0c0, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 } | 319 } |
307 | 320 |
308 html[oobe=old] .signed-in-indicator { | 321 html[oobe=old] .signed-in-indicator { |
309 margin: 5px; | 322 margin: 5px; |
310 } | 323 } |
311 | 324 |
312 html[oobe=old] .pod.focused .signed-in-indicator { | 325 html[oobe=old] .pod.focused .signed-in-indicator { |
313 /* Track shifting of .user-image on pod focus. */ | 326 /* Track shifting of .user-image on pod focus. */ |
314 -webkit-transform: translateY(-1px); | 327 -webkit-transform: translateY(-1px); |
315 -webkit-transition: -webkit-transform 140ms ease; | 328 -webkit-transition: -webkit-transform 140ms ease; |
316 } | 329 } |
| 330 |
| 331 /**** Public account user pod rules *******************************************/ |
| 332 |
| 333 .pod.public-account .name, |
| 334 .side-pane-name { |
| 335 -webkit-padding-end: 16px; |
| 336 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_GRAY'); |
| 337 background-position: right; |
| 338 background-repeat: no-repeat; |
| 339 outline: none; |
| 340 } |
| 341 |
| 342 html[dir=rtl] .pod.public-account .name, |
| 343 html[dir=rtl] .side-pane-name { |
| 344 background-position: left; |
| 345 } |
| 346 |
| 347 .side-pane-divider, |
| 348 .side-pane-container { |
| 349 bottom: 5px; |
| 350 top: 5px; |
| 351 visibility: hidden; |
| 352 } |
| 353 |
| 354 .side-pane-divider { |
| 355 border-left: 1px solid lightgray; |
| 356 left: 180px; |
| 357 position: absolute; |
| 358 right: auto; |
| 359 width: 1px; |
| 360 } |
| 361 |
| 362 html[dir=rtl] .side-pane-divider { |
| 363 left: auto; |
| 364 right: 180px; |
| 365 } |
| 366 |
| 367 .side-pane-container { |
| 368 left: 185px; |
| 369 overflow: hidden; |
| 370 padding: 5px; |
| 371 position: absolute; |
| 372 right: auto; |
| 373 } |
| 374 |
| 375 html[dir=rtl] .side-pane-container { |
| 376 left: auto; |
| 377 right: 185px; |
| 378 } |
| 379 |
| 380 .side-pane-contents { |
| 381 -webkit-transform: translateX(-240px); |
| 382 -webkit-transition: -webkit-transform 180ms ease; |
| 383 height: 100%; |
| 384 width: 225px; |
| 385 } |
| 386 |
| 387 html[dir=rtl] .side-pane-contents { |
| 388 -webkit-transform: translateX(240px); |
| 389 } |
| 390 |
| 391 .pod.public-account.expanded .side-pane-contents { |
| 392 -webkit-transform: translateX(0); |
| 393 } |
| 394 |
| 395 .side-pane-container .info, |
| 396 .side-pane-container .reminder { |
| 397 font-size: 12px; |
| 398 } |
| 399 |
| 400 .side-pane-container .info { |
| 401 -webkit-margin-before: 25px; |
| 402 } |
| 403 |
| 404 .side-pane-container .reminder { |
| 405 font-weight: bold; |
| 406 } |
| 407 |
| 408 .side-pane-container .enter-button { |
| 409 bottom: 5px; |
| 410 display: block; |
| 411 left: auto; |
| 412 position: absolute; |
| 413 right: 5px; |
| 414 } |
| 415 |
| 416 html[dir=rtl] .side-pane-container .enter-button { |
| 417 left: 5px; |
| 418 right: auto; |
| 419 } |
| 420 |
| 421 .pod.public-account.expanded { |
| 422 padding: 10px; |
| 423 width: 400px; |
| 424 } |
| 425 |
| 426 .pod.public-account.expanded .name { |
| 427 display: none; |
| 428 } |
| 429 |
| 430 .pod.public-account.expanded .side-pane-divider, |
| 431 .pod.public-account.expanded .side-pane-container, |
| 432 .pod.public-account.animating .side-pane-container { |
| 433 visibility: visible; |
| 434 } |
OLD | NEW |