| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 -webkit-transition: top .15s; | 328 -webkit-transition: top .15s; |
| 329 } | 329 } |
| 330 | 330 |
| 331 #login-container { | 331 #login-container { |
| 332 display: none; | 332 display: none; |
| 333 margin-top: 5px; | 333 margin-top: 5px; |
| 334 position: fixed; | 334 position: fixed; |
| 335 text-align: end; | 335 text-align: end; |
| 336 } | 336 } |
| 337 | 337 |
| 338 .section.disabled, | 338 /* A section in menu mode doesn't display its contents at all. Instead it is |
| 339 #closed-sections-bar .disabled { | 339 rendered as a menu along the bottom of the screen. We have a separate class for |
| 340 this so that when a hidden section is unhidden it can go back to its previous |
| 341 collapsed state. */ |
| 342 .section.menu { |
| 340 display: none !important; | 343 display: none !important; |
| 341 } | 344 } |
| 342 | 345 |
| 346 /* A disabled section is not rendered in the UI in any way. Examples of this |
| 347 state include the 'recently closed' section when we have no data for it, or this |
| 348 'sync status' section, when there is no status to display. We have a separate |
| 349 class for this so that when a section is enabled, it can go back to its previous |
| 350 menu and collapsed state. */ |
| 351 .section.disabled { |
| 352 display: none !important; |
| 353 } |
| 354 |
| 343 .section > h2 { | 355 .section > h2 { |
| 344 font-family: Helvetica, Arial, sans-serif; | 356 font-family: Helvetica, Arial, sans-serif; |
| 345 font-size: 133%; | 357 font-size: 133%; |
| 346 font-weight: normal; | 358 font-weight: normal; |
| 347 margin: 0; | 359 margin: 0; |
| 348 position: relative; | 360 position: relative; |
| 349 } | 361 } |
| 350 | 362 |
| 351 .section:not([noexpand]) > h2 { | 363 .section:not([noexpand]) > h2 { |
| 352 cursor: pointer; | 364 cursor: pointer; |
| 353 } | 365 } |
| 354 | 366 |
| 355 .section > h2 > .disclosure { | 367 .section > h2 > .disclosure { |
| 356 position: absolute; | 368 position: absolute; |
| 357 left: -15px; | 369 left: -15px; |
| 358 margin-top: 50%; | 370 margin-top: 50%; |
| 359 top: -5px; | 371 top: -5px; |
| 360 } | 372 } |
| 361 | 373 |
| 362 html[dir=rtl] .section > h2 > .disclosure { | 374 html[dir=rtl] .section > h2 > .disclosure { |
| 363 left: auto; | 375 left: auto; |
| 364 right: -15px; | 376 right: -15px; |
| 365 -webkit-transform: rotate(180deg); | 377 -webkit-transform: rotate(180deg); |
| 366 } | 378 } |
| 367 | 379 |
| 368 html[anim=true] .section > h2 > .disclosure { | 380 html[anim=true] .section > h2 > .disclosure { |
| 369 -webkit-transition: -webkit-transform .15s; | 381 -webkit-transition: -webkit-transform .15s; |
| 370 } | 382 } |
| 371 | 383 |
| 372 .section:not(.hidden) > h2 > .disclosure { | 384 .section:not(.collapsed) > h2 > .disclosure { |
| 373 -webkit-transform: rotate(90deg); | 385 -webkit-transform: rotate(90deg); |
| 374 } | 386 } |
| 375 | 387 |
| 376 .section > h2 .back { | 388 .section > h2 .back { |
| 377 position: absolute; | 389 position: absolute; |
| 378 left: 0; | 390 left: 0; |
| 379 top: 0.56em; | 391 top: 0.56em; |
| 380 width: 100%; | 392 width: 100%; |
| 381 height: 1.5em; | 393 height: 1.5em; |
| 382 z-index: 1; | 394 z-index: 1; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 438 |
| 427 #closed-sections-bar:not([chromeos]) { | 439 #closed-sections-bar:not([chromeos]) { |
| 428 bottom: 5px; | 440 bottom: 5px; |
| 429 } | 441 } |
| 430 | 442 |
| 431 #closed-sections-bar[chromeos] { | 443 #closed-sections-bar[chromeos] { |
| 432 padding-top: 0.56em; | 444 padding-top: 0.56em; |
| 433 } | 445 } |
| 434 | 446 |
| 435 #closed-sections-bar > button { | 447 #closed-sections-bar > button { |
| 448 /* We hide all these buttons by default and turn them on when needed. */ |
| 449 display: none; |
| 450 |
| 436 -webkit-appearance: none; | 451 -webkit-appearance: none; |
| 437 background: none; | 452 background: none; |
| 438 border: 0; | 453 border: 0; |
| 439 cursor: pointer; | 454 cursor: pointer; |
| 440 font: inherit; | 455 font: inherit; |
| 441 margin: 0; | 456 margin: 0; |
| 442 margin-right: 1.5em; | 457 margin-right: 1.5em; |
| 443 padding: 2px 0 0 0; | 458 padding: 2px 0 0 0; |
| 444 | 459 |
| 445 /* Note: The font here should end up the same as .section > h2. A different | 460 /* Note: The font here should end up the same as .section > h2. A different |
| (...skipping 14 matching lines...) Expand all Loading... |
| 460 padding: 5px 0 30px; | 475 padding: 5px 0 30px; |
| 461 position: absolute; | 476 position: absolute; |
| 462 -webkit-mask-attachment: fixed; | 477 -webkit-mask-attachment: fixed; |
| 463 opacity: 0; | 478 opacity: 0; |
| 464 } | 479 } |
| 465 | 480 |
| 466 .maxiview.opaque { | 481 .maxiview.opaque { |
| 467 opacity: 1; | 482 opacity: 1; |
| 468 } | 483 } |
| 469 | 484 |
| 470 .maxiview.hiding { | 485 .maxiview.collapsing { |
| 471 opacity: 0; | 486 opacity: 0; |
| 472 } | 487 } |
| 473 | 488 |
| 474 .maxiview.hidden { | 489 .maxiview.collapsed { |
| 475 display: none; | 490 display: none; |
| 476 opacity: 0; | 491 opacity: 0; |
| 477 } | 492 } |
| 478 | 493 |
| 479 html[anim=true][enable-section-animations=true] .maxiview { | 494 html[anim=true][enable-section-animations=true] .maxiview { |
| 480 -webkit-transition: opacity .10s, top .15s; | 495 -webkit-transition: opacity .10s, top .15s; |
| 481 } | 496 } |
| 482 | 497 |
| 483 html[anim=true][enable-section-animations=true] .miniview { | 498 html[anim=true][enable-section-animations=true] .miniview { |
| 484 -webkit-transition: opacity .15s; | 499 -webkit-transition: opacity .15s; |
| 485 } | 500 } |
| 486 | 501 |
| 487 .section > .miniview { | 502 .section > .miniview { |
| 488 display: none; | 503 display: none; |
| 489 margin: 10px 0 30px; | 504 margin: 10px 0 30px; |
| 490 white-space: nowrap; | 505 white-space: nowrap; |
| 491 overflow-x: hidden; | 506 overflow-x: hidden; |
| 492 } | 507 } |
| 493 | 508 |
| 494 .section.hidden > * { | 509 .section.collapsed > * { |
| 495 display: none; | 510 display: none; |
| 496 } | 511 } |
| 497 | 512 |
| 498 .section.hidden > h2 { | 513 .section.collapsed > h2 { |
| 499 display: block; | 514 display: block; |
| 500 } | 515 } |
| 501 | 516 |
| 502 .section.hidden > .miniview { | 517 .section.collapsed > .miniview { |
| 503 display: block; | 518 display: block; |
| 504 opacity: 0; | 519 opacity: 0; |
| 505 } | 520 } |
| 506 | 521 |
| 507 .section.hidden > .miniview.opaque { | 522 .section.collapsed > .miniview.opaque { |
| 508 opacity: 1; | 523 opacity: 1; |
| 509 } | 524 } |
| 510 | 525 |
| 511 .section.hidden > h2 { | 526 .section.collapsed > h2 { |
| 512 margin-right: 0; | 527 margin-right: 0; |
| 513 } | 528 } |
| 514 | 529 |
| 515 .miniview > span { | 530 .miniview > span { |
| 516 display: inline-block; | 531 display: inline-block; |
| 517 max-width: 114px; /* Selected so that we can fit 5 items in EN-US */ | 532 max-width: 114px; /* Selected so that we can fit 5 items in EN-US */ |
| 518 white-space: nowrap; | 533 white-space: nowrap; |
| 519 overflow: hidden; | 534 overflow: hidden; |
| 520 text-overflow: ellipsis; | 535 text-overflow: ellipsis; |
| 521 font-size: 100%; | 536 font-size: 100%; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 551 } | 566 } |
| 552 } | 567 } |
| 553 | 568 |
| 554 /* Ensure we have at least 10px horizontal marging. */ | 569 /* Ensure we have at least 10px horizontal marging. */ |
| 555 @media (max-width: 712px) { | 570 @media (max-width: 712px) { |
| 556 #main { | 571 #main { |
| 557 margin-left: 10px; | 572 margin-left: 10px; |
| 558 margin-right: 10px; | 573 margin-right: 10px; |
| 559 } | 574 } |
| 560 } | 575 } |
| OLD | NEW |