Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 html { | 1 html { |
| 2 /* This is needed because of chrome://theme/css/new_tab.css */ | 2 /* This is needed because of chrome://theme/css/new_tab.css */ |
| 3 height: 100%; | 3 height: 100%; |
| 4 } | 4 } |
| 5 | 5 |
| 6 body { | 6 body { |
| 7 margin: 0; | 7 margin: 0; |
| 8 height: 100%; | 8 height: 100%; |
| 9 overflow: auto; | 9 overflow: auto; |
| 10 -webkit-user-select: none; | 10 -webkit-user-select: none; |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 } | 24 } |
| 25 | 25 |
| 26 html[dir=rtl] #main { | 26 html[dir=rtl] #main { |
| 27 background-position-x: 100%; | 27 background-position-x: 100%; |
| 28 } | 28 } |
| 29 | 29 |
| 30 html[mode=app-launcher] #main { | 30 html[mode=app-launcher] #main { |
| 31 min-height: 50px; | 31 min-height: 50px; |
| 32 } | 32 } |
| 33 | 33 |
| 34 #top-spacer { | |
| 35 position: fixed; | |
| 36 top: 0px; | |
|
arv (Not doing code reviews)
2010/09/01 20:55:42
Don't use units for 0
| |
| 37 left: 0px; | |
| 38 width: 100%; | |
| 39 height: 5px; | |
| 40 z-index: 2; | |
| 41 } | |
| 42 | |
| 34 html[anim=false] *, | 43 html[anim=false] *, |
| 35 .no-anim, .no-anim *, | 44 .no-anim, .no-anim *, |
| 36 .loading * { | 45 .loading * { |
| 37 -webkit-transition: none !important; | 46 -webkit-transition: none !important; |
| 38 -webkit-animation: none !important; | 47 -webkit-animation: none !important; |
| 39 } | 48 } |
| 40 | 49 |
| 41 :link, | 50 :link, |
| 42 :visited, | 51 :visited, |
| 43 .link { | 52 .link { |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 299 .section.disabled { | 308 .section.disabled { |
| 300 display: none !important; | 309 display: none !important; |
| 301 } | 310 } |
| 302 | 311 |
| 303 .section > div { | 312 .section > div { |
| 304 padding-bottom: 20px; | 313 padding-bottom: 20px; |
| 305 } | 314 } |
| 306 | 315 |
| 307 #apps-section-content { | 316 #apps-section-content { |
| 308 /* This one is special because the app buttons already have a lot of empty | 317 /* This one is special because the app buttons already have a lot of empty |
| 309 space around them. */ | 318 space around them. */ |
| 310 margin-top: -5px; | 319 margin-top: -5px; |
| 311 padding-bottom: 5px; | 320 padding-bottom: 5px; |
| 312 } | 321 } |
| 313 | 322 |
| 314 .section > h2 { | 323 .section > h2 { |
| 315 display: block; | |
| 316 font-family: Helvetica, Arial, sans-serif; | 324 font-family: Helvetica, Arial, sans-serif; |
| 317 font-size: 16px; | 325 font-size: 16px; |
| 318 font-weight: normal; | 326 font-weight: normal; |
| 319 margin: 0; | 327 margin: 0; |
| 320 padding: 15px 0; | |
| 321 position: fixed; | 328 position: fixed; |
| 322 z-index: 2; | 329 z-index: 2; |
| 323 } | 330 } |
| 324 | 331 |
| 325 .section:not(.hidden) > h2 { | |
| 326 background-position: 0 0, 0 100%; | |
| 327 background-repeat: no-repeat; | |
| 328 background-size: 100% 39px, 100% 10px; | |
| 329 } | |
| 330 | |
| 331 .section:not(.hidden) + .section > h2 { | |
| 332 background-position: 0 0, 0 100%; | |
| 333 background-repeat: no-repeat; | |
| 334 background-size: 100% 10px, 100% 39px; | |
| 335 } | |
| 336 | |
| 337 .section:not([noexpand]) > h2 { | 332 .section:not([noexpand]) > h2 { |
| 338 cursor: pointer; | 333 cursor: pointer; |
| 339 } | 334 } |
| 340 | 335 |
| 341 .section > h2 > .disclosure { | 336 .section > h2 > .disclosure { |
| 342 margin-left: -13px; | 337 position: absolute; |
| 343 padding-right: 4px; | 338 left: -15px; |
| 339 top: 19px; | |
| 344 } | 340 } |
| 345 | 341 |
| 346 .section:not(.hidden) > h2 > .disclosure { | 342 .section:not(.hidden) > h2 > .disclosure { |
| 347 -webkit-transform:rotate(90deg); | 343 -webkit-transform:rotate(90deg); |
| 348 } | 344 } |
| 349 | 345 |
| 350 .section > h2 > .back { | 346 .section > h2 > .mask { |
| 347 padding: 15px 0; | |
| 348 } | |
| 349 | |
| 350 .section:not(.hidden) > h2 > .mask { | |
| 351 /* NOTE: 0.75 ~= 29/39 (for 10px of gradient) */ | |
| 352 -webkit-mask-image: | |
| 353 -webkit-gradient(linear, 0% 0%, 0% 100%, from(black), | |
| 354 color-stop(0.75, black), to(transparent)); | |
| 355 } | |
| 356 | |
| 357 .section:not(.hidden) + .section > h2 > .mask { | |
| 358 /* NOTE: 0.25 ~= 10/39 (for 10px of gradient) */ | |
| 359 -webkit-mask-image: | |
| 360 -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), | |
| 361 color-stop(0.25, black), to(black)); | |
| 362 } | |
| 363 | |
| 364 .section > h2 .back { | |
| 351 position: absolute; | 365 position: absolute; |
| 352 bottom: 5px; | |
| 353 left: 0; | 366 left: 0; |
| 367 top: 24px; | |
| 354 width: 100%; | 368 width: 100%; |
| 355 height: 19px; | 369 height: 24px; |
| 356 background-repeat: no-repeat; | |
| 357 z-index: 1; | 370 z-index: 1; |
| 358 } | 371 } |
| 359 | 372 |
| 360 .section > h2 > span { | 373 .section > h2 span { |
| 361 padding-right: 5px; | 374 padding-right: 5px; |
| 362 position: relative; | 375 position: relative; |
| 363 z-index: 2; | 376 z-index: 2; |
| 364 } | 377 } |
| 365 | 378 |
| 366 .section > h2 > .settings { | 379 .section > h2 .settings-wrapper { |
| 367 position: absolute; | 380 position: absolute; |
| 368 top: 18px; | 381 top: 13px; |
| 369 right: 0; | 382 right: 0; |
| 383 width: 21px; | |
| 384 height: 21px; | |
| 385 z-index: 3; | |
| 386 } | |
| 387 | |
| 388 .section > h2 .settings { | |
| 389 position: absolute; | |
| 390 left: 5px; | |
| 391 top: 5px; | |
| 370 width: 11px; | 392 width: 11px; |
| 371 height: 11px; | 393 height: 11px; |
| 372 /* TODO(aa): Need a better image. This one is semi-transparent. Also, I think | 394 /* TODO(aa): Need a better image. This one is semi-transparent. Also, I think |
| 373 a gear would be better. */ | 395 a gear would be better. */ |
| 374 background-image: url(chrome://theme/IDR_BALLOON_WRENCH); | 396 background-image: url(chrome://theme/IDR_BALLOON_WRENCH); |
| 375 background-position: center center; | 397 background-position: center center; |
| 376 background-repeat: no-repeat; | 398 background-repeat: no-repeat; |
| 377 background-size: 100%; | 399 background-size: 100%; |
| 378 border-style: solid; | |
| 379 border-width: 0 5px 0 6px; | |
| 380 z-index: 2; | |
| 381 } | 400 } |
| 382 | 401 |
| 383 .section.hidden > h2 > .settings { | 402 .section.hidden > h2 .settings-wrapper { |
| 384 display: none; | 403 display: none; |
| 385 } | 404 } |
| 386 | 405 |
| 387 .section > .maxiview { | 406 .section > .maxiview { |
| 388 position: absolute; | 407 position: absolute; |
| 389 } | 408 } |
| 390 | 409 |
| 391 .section > .miniview { | 410 .section > .miniview { |
| 392 display: none; | 411 display: none; |
| 393 position: fixed; | 412 position: fixed; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 448 } | 467 } |
| 449 } | 468 } |
| 450 | 469 |
| 451 /* Ensure we have at least 10px horizontal marging. */ | 470 /* Ensure we have at least 10px horizontal marging. */ |
| 452 @media (max-width: 712px) { | 471 @media (max-width: 712px) { |
| 453 #main { | 472 #main { |
| 454 margin-left: 10px; | 473 margin-left: 10px; |
| 455 margin-right: 10px; | 474 margin-right: 10px; |
| 456 } | 475 } |
| 457 } | 476 } |
| OLD | NEW |