Chromium Code Reviews| 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: -webkit-image-set( | |
| 337 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_GRAY') 1x, | |
|
Nikita (slow)
2012/12/04 08:41:26
You don't have to specify all these rules 1x/2x ru
xiyuan
2012/12/04 18:48:57
Done. Thanks for the tip.
| |
| 338 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_GRAY@2x') 2x); | |
| 339 background-repeat: no-repeat; | |
| 340 background-position: right; | |
| 341 outline: none; | |
| 342 } | |
| 343 | |
| 344 html[dir=rtl] .pod.public-account .name, | |
| 345 html[dir=rtl] .side-pane-name { | |
| 346 background-position: left; | |
| 347 } | |
| 348 | |
| 349 .side-pane-divider, | |
| 350 .side-pane-container { | |
| 351 bottom: 5px; | |
| 352 top: 5px; | |
| 353 visibility: hidden; | |
| 354 } | |
| 355 | |
| 356 .side-pane-divider { | |
| 357 border-left: 1px solid lightgray; | |
| 358 left: 180px; | |
| 359 position: absolute; | |
| 360 right: auto; | |
| 361 width: 1px; | |
| 362 } | |
| 363 | |
| 364 html[dir=rtl] .side-pane-divider { | |
| 365 left: auto; | |
| 366 right: 180px; | |
| 367 } | |
| 368 | |
| 369 .side-pane-container { | |
| 370 left: 185px; | |
| 371 overflow: hidden; | |
| 372 padding: 5px; | |
| 373 position: absolute; | |
| 374 right: auto; | |
| 375 } | |
| 376 | |
| 377 html[dir=rtl] .side-pane-container { | |
| 378 left: auto; | |
| 379 right: 185px; | |
| 380 } | |
| 381 | |
| 382 .side-pane-contents { | |
| 383 -webkit-transform: translateX(-240px); | |
| 384 -webkit-transition: -webkit-transform 180ms ease; | |
| 385 height: 100%; | |
| 386 width: 225px; | |
| 387 } | |
| 388 | |
| 389 html[dir=rtl] .side-pane-contents { | |
| 390 -webkit-transform: translateX(240px); | |
| 391 } | |
| 392 | |
| 393 .pod.public-account.expanded .side-pane-contents { | |
| 394 -webkit-transform: translateX(0); | |
| 395 } | |
| 396 | |
| 397 .side-pane-container .info, | |
| 398 .side-pane-container .reminder { | |
| 399 font-size: 12px; | |
| 400 } | |
| 401 | |
| 402 .side-pane-container .info { | |
| 403 -webkit-margin-before: 25px; | |
| 404 } | |
| 405 | |
| 406 .side-pane-container .reminder { | |
| 407 font-weight: bold; | |
| 408 } | |
| 409 | |
| 410 .side-pane-container .enter-button { | |
| 411 bottom: 5px; | |
| 412 display: block; | |
| 413 left: auto; | |
| 414 position: absolute; | |
| 415 right: 5px; | |
| 416 } | |
| 417 | |
| 418 html[dir=rtl] .side-pane-container .enter-button { | |
| 419 left: 5px; | |
| 420 right: auto; | |
| 421 } | |
| 422 | |
| 423 .pod.public-account.expanded { | |
|
Nikita (slow)
2012/12/04 08:41:26
When public account user pod is in such expanded s
xiyuan
2012/12/04 18:48:57
Tab/Shift+Tab/Left/Right keys are working and navi
| |
| 424 padding: 10px; | |
| 425 width: 400px; | |
|
Nikita (slow)
2012/12/04 09:28:14
User pod row width is 1100px wide and we allow 5 u
xiyuan
2012/12/04 18:48:57
4 pods + expaned public pod does not fit in. Howev
| |
| 426 } | |
| 427 | |
| 428 .pod.public-account.expanded .name { | |
| 429 display: none; | |
| 430 } | |
| 431 | |
| 432 .pod.public-account.expanded .side-pane-divider, | |
| 433 .pod.public-account.expanded .side-pane-container, | |
| 434 .pod.public-account.animating .side-pane-container { | |
| 435 visibility: visible; | |
| 436 } | |
| OLD | NEW |