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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 137 font-size: 16px; | 137 font-size: 16px; |
| 138 height: 26px; | 138 height: 26px; |
| 139 overflow: hidden; | 139 overflow: hidden; |
| 140 white-space: nowrap; | 140 white-space: nowrap; |
| 141 } | 141 } |
| 142 | 142 |
| 143 .name.init { | 143 .name.init { |
| 144 opacity: 0; | 144 opacity: 0; |
| 145 } | 145 } |
| 146 | 146 |
| 147 .pod.focused .name { | 147 .pod.need-password.focused .name { |
| 148 display: none; | 148 display: none; |
| 149 } | 149 } |
| 150 | 150 |
| 151 .pod input[type='password'] { | 151 .pod input[type='password'] { |
| 152 box-sizing: border-box; | 152 box-sizing: border-box; |
| 153 padding: 4px 6px; | 153 padding: 4px 6px; |
| 154 width: 100%; | 154 width: 100%; |
| 155 } | 155 } |
| 156 | 156 |
| 157 html[oobe=old] .pod input[type='password'] { | 157 html[oobe=old] .pod input[type='password'] { |
| 158 -webkit-border-radius: 2px; | 158 -webkit-border-radius: 2px; |
| 159 -webkit-transition: box-shadow 100ms, background 100ms, border 500ms; | 159 -webkit-transition: box-shadow 100ms, background 100ms, border 500ms; |
| 160 border: 1px solid #aaa; | 160 border: 1px solid #aaa; |
| 161 box-shadow: inset 0 2px 2px rgba(0, 0, 0, .1), | 161 box-shadow: inset 0 2px 2px rgba(0, 0, 0, .1), |
| 162 0 1px 0 white, | 162 0 1px 0 white, |
| 163 0 0 1px transparent, | 163 0 0 1px transparent, |
| 164 0 0 1px transparent, | 164 0 0 1px transparent, |
| 165 0 0 1px transparent; | 165 0 0 1px transparent; |
| 166 height: 26px; | 166 height: 26px; |
| 167 } | 167 } |
| 168 | 168 |
| 169 html[oobe=new] .pod input[type='password'] { | 169 html[oobe=new] .pod input[type='password'] { |
| 170 -webkit-transition: opacity linear 150ms; | 170 -webkit-transition: opacity linear 150ms; |
| 171 background: white; | 171 background: white; |
| 172 border: none; | 172 border: none; |
| 173 height: 40px; | 173 height: 40px; |
| 174 outline: none; | 174 outline: none; |
| 175 } | 175 } |
| 176 | 176 |
| 177 .pod:not(.focused) input[type='password'] { | 177 .pod:not(.focused) input[type='password'], |
| 178 .pod:not(.need-password).focused input[type='password'] { | |
|
bartfab (slow)
2012/11/28 15:11:38
How about you add |display: none| to the rule in 1
xiyuan
2012/12/01 00:24:19
Yep, it works. Changed as suggested.
| |
| 178 display: none; | 179 display: none; |
| 179 } | 180 } |
| 180 | 181 |
| 181 html[oobe=old] .pod input[type='password']:focus { | 182 html[oobe=old] .pod input[type='password']:focus { |
| 182 -webkit-transition: box-shadow 200ms, background 200ms, border 200ms; | 183 -webkit-transition: box-shadow 200ms, background 200ms, border 200ms; |
| 183 background: #f8f8f8; | 184 background: #f8f8f8; |
| 184 border-color: rgb(64, 128, 250); | 185 border-color: rgb(64, 128, 250); |
| 185 box-shadow: inset 0 2px 2px rgba(0, 0, 0, .15), | 186 box-shadow: inset 0 2px 2px rgba(0, 0, 0, .15), |
| 186 0 1px 0 transparent, | 187 0 1px 0 transparent, |
| 187 0 0 1px #c0c0c0, | 188 0 0 1px #c0c0c0, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 226 | 227 |
| 227 html[dir=rtl] .pod .capslock-hint { | 228 html[dir=rtl] .pod .capslock-hint { |
| 228 left: 10px; | 229 left: 10px; |
| 229 right: auto; | 230 right: auto; |
| 230 } | 231 } |
| 231 | 232 |
| 232 .capslock-on .pod.focused input[type='password']:not([hidden]) ~ .capslock-hint { | 233 .capslock-on .pod.focused input[type='password']:not([hidden]) ~ .capslock-hint { |
| 233 visibility: visible; | 234 visibility: visible; |
| 234 } | 235 } |
| 235 | 236 |
| 237 .pod .managed-badge { | |
| 238 bottom: 15px; | |
| 239 position: absolute; | |
| 240 right: 10px; | |
|
bartfab (slow)
2012/11/28 15:11:38
Should this have a "left: auto" to go with the "ri
xiyuan
2012/12/01 00:24:19
The mock's pod is a bit different from the current
| |
| 241 } | |
| 242 | |
| 243 html[dir=rtl] .pod .managed-badge { | |
| 244 left: 10px; | |
| 245 right: auto; | |
| 246 } | |
| 247 | |
| 236 .remove-user-button { | 248 .remove-user-button { |
| 237 -webkit-transition: width 100ms ease-in-out, background 200ms ease-in-out; | 249 -webkit-transition: width 100ms ease-in-out, background 200ms ease-in-out; |
| 238 background: -webkit-image-set( | 250 background: -webkit-image-set( |
| 239 url('../../../../../ui/resources/default_100_percent/close_bar.png') 1x, | 251 url('../../../../../ui/resources/default_100_percent/close_bar.png') 1x, |
| 240 url('../../../../../ui/resources/default_200_percent/close_bar.png') 2x) | 252 url('../../../../../ui/resources/default_200_percent/close_bar.png') 2x) |
| 241 center center no-repeat; | 253 center center no-repeat; |
| 242 background-color: rgba(255, 255, 255, 0.3); | 254 background-color: rgba(255, 255, 255, 0.3); |
| 243 border-radius: 2px; | 255 border-radius: 2px; |
| 244 box-shadow: none; | 256 box-shadow: none; |
| 245 height: 16px; | 257 height: 16px; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 306 } | 318 } |
| 307 | 319 |
| 308 html[oobe=old] .signed-in-indicator { | 320 html[oobe=old] .signed-in-indicator { |
| 309 margin: 5px; | 321 margin: 5px; |
| 310 } | 322 } |
| 311 | 323 |
| 312 html[oobe=old] .pod.focused .signed-in-indicator { | 324 html[oobe=old] .pod.focused .signed-in-indicator { |
| 313 /* Track shifting of .user-image on pod focus. */ | 325 /* Track shifting of .user-image on pod focus. */ |
| 314 -webkit-transform: translateY(-1px); | 326 -webkit-transform: translateY(-1px); |
| 315 -webkit-transition: -webkit-transform 140ms ease; | 327 -webkit-transition: -webkit-transform 140ms ease; |
| 316 } | 328 } |
|
bartfab (slow)
2012/11/28 15:11:38
Did you accidentally add trailing whitespace here?
xiyuan
2012/12/01 00:24:19
My vim automatically adds a new line break here.
| |
| OLD | NEW |