Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
| 6 html { | 6 html { |
| 7 font-family: segoe ui, arial, helvetica, sans-serif; | 7 font-family: segoe ui, arial, helvetica, sans-serif; |
| 8 font-size: 14px; | 8 font-size: 14px; |
| 9 /* It's necessary to put this here instead of in body in order to get the | 9 /* It's necessary to put this here instead of in body in order to get the |
| 10 background-size of 100% to work properly */ | 10 background-size of 100% to work properly */ |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 233 -webkit-box-flex: 1; | 233 -webkit-box-flex: 1; |
| 234 } | 234 } |
| 235 | 235 |
| 236 #login-status-dismiss { | 236 #login-status-dismiss { |
| 237 min-width: 6em; | 237 min-width: 6em; |
| 238 } | 238 } |
| 239 | 239 |
| 240 /* Trash. *********************************************************************/ | 240 /* Trash. *********************************************************************/ |
| 241 | 241 |
| 242 #trash { | 242 #trash { |
| 243 -webkit-transition: top 200ms, opacity 0; | |
| 244 -webkit-transition-delay: 0, 200ms; | |
| 243 height: 100%; | 245 height: 100%; |
| 244 position: absolute; | 246 position: absolute; |
| 245 opacity: 0; | 247 opacity: 0; |
| 246 right: 0; | 248 right: 0; |
| 247 top: 50px; | 249 top: 50px; |
| 248 -webkit-transition: top 200ms, opacity 0; | 250 } |
| 249 -webkit-transition-delay: 0, 200ms; | 251 |
| 252 html[dir='rtl'] #trash { | |
| 253 left: 0; | |
| 254 right: auto; | |
| 250 } | 255 } |
| 251 | 256 |
| 252 #footer.showing-trash-mode #trash { | 257 #footer.showing-trash-mode #trash { |
| 258 -webkit-transition-delay: 0, 0; | |
| 259 -webkit-transition-duration: 0, 200ms; | |
| 260 opacity: 0.75; | |
| 261 top: 0; | |
| 262 } | |
| 263 | |
| 264 #footer.showing-trash-mode #trash.drag-target { | |
| 253 opacity: 1; | 265 opacity: 1; |
| 254 top: 0; | |
| 255 -webkit-transition-delay: 0, 0; | |
| 256 } | 266 } |
| 257 | 267 |
| 258 #trash > span { | 268 #trash > span { |
| 259 background-image: url('images/trash.png'); | 269 display: inline-block; |
| 260 background-position: 7px; | 270 } |
| 261 background-repeat: no-repeat; | 271 |
| 272 #trash > span:not([class]) { | |
| 273 -webkit-padding-end: 7px; | |
| 274 -webkit-padding-start: 30px; | |
| 262 border: 1px dashed #7f7f7f; | 275 border: 1px dashed #7f7f7f; |
| 263 border-radius: 4px; | 276 border-radius: 4px; |
| 264 display: inline-block; | |
| 265 font-size: 84%; | 277 font-size: 84%; |
| 266 padding-bottom: 9px; | 278 padding-bottom: 9px; |
| 267 padding-top: 10px; | 279 padding-top: 10px; |
| 268 position: relative; | 280 position: relative; |
| 269 top: 7px; | 281 top: 7px; |
| 270 -webkit-padding-end: 7px; | 282 } |
| 271 -webkit-padding-start: 30px; | 283 |
| 284 #trash > .can, | |
| 285 #trash > .lid { | |
| 286 background: url('images/trash.png') 0 0 no-repeat; | |
| 287 position: absolute; | |
| 288 } | |
| 289 | |
| 290 #trash > .lid { | |
| 291 -webkit-transition: -webkit-transform 200ms; | |
| 292 -webkit-transform-origin: -1px 100%; | |
| 293 height: 6px; | |
| 294 left: 10px; | |
| 295 top: 18px; | |
| 296 width: 14px; | |
| 297 } | |
| 298 | |
| 299 html[dir='rtl'] #trash > .lid { | |
| 300 /* NOTE: If the size of the lid image changes, change transform origin x to | |
| 301 * newImg.width + 1 + 'px'. */ | |
| 302 -webkit-transform-origin: 15px 100%; | |
|
Evan Stade
2011/12/05 23:22:06
percent better
Dan Beam
2011/12/06 00:28:47
Done.
| |
| 303 left: auto; | |
| 304 /* NOTE: Intentionally different than LTR value. */ | |
| 305 right: 9px; | |
| 306 } | |
| 307 | |
| 308 #trash > .can { | |
| 309 background-position: -1px -4px; | |
| 310 border-radius: 0 0 2px 2px; | |
| 311 height: 12px; | |
| 312 left: 11px; | |
| 313 top: 22px; | |
| 314 width: 11px; | |
| 315 } | |
| 316 | |
| 317 html[dir='rtl'] #trash > .can { | |
| 318 left: auto; | |
| 319 right: 11px; | |
| 320 } | |
| 321 | |
| 322 #footer.showing-trash-mode #trash.drag-target .lid { | |
| 323 -webkit-transform: rotate(-45deg); | |
| 324 } | |
| 325 | |
| 326 html[dir='rtl'] #footer.showing-trash-mode #trash.drag-target .lid { | |
| 327 -webkit-transform: rotate(45deg); | |
| 272 } | 328 } |
| 273 | 329 |
| 274 /* Page switcher buttons. *****************************************************/ | 330 /* Page switcher buttons. *****************************************************/ |
| 275 | 331 |
| 276 .page-switcher { | 332 .page-switcher { |
| 277 background-color: transparent; | 333 background-color: transparent; |
| 278 border: none; | 334 border: none; |
| 279 bottom: 0; | 335 bottom: 0; |
| 280 font-size: 40px; | 336 font-size: 40px; |
| 281 padding: 0; | 337 padding: 0; |
| 282 position: absolute; | 338 position: absolute; |
| 283 margin: 0; | 339 margin: 0; |
| 284 max-width: 150px; | 340 max-width: 150px; |
| 285 min-width: 90px; | 341 min-width: 90px; |
| 286 outline: none; | 342 outline: none; |
| 287 top: 0; | 343 top: 0; |
| 288 z-index: 5; | 344 z-index: 5; |
| 289 -webkit-transition: width 150ms, right 150ms, background-color 150ms; | 345 -webkit-transition: width 150ms, right 150ms, background-color 150ms; |
| 290 } | 346 } |
| OLD | NEW |