Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 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 /* Set the global 'box-sizing' state to 'border-box'. | 5 /* Set the global 'box-sizing' state to 'border-box'. |
| 6 * *::after and *::before used to select psuedo-elements not selectable by *. */ | 6 * *::after and *::before used to select psuedo-elements not selectable by *. */ |
| 7 | 7 |
| 8 *, | 8 *, |
| 9 *::after, | 9 *::after, |
| 10 *::before { | 10 *::before { |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 250 | 250 |
| 251 pre { | 251 pre { |
| 252 line-height: 1.296rem; | 252 line-height: 1.296rem; |
| 253 overflow-x: scroll; | 253 overflow-x: scroll; |
| 254 padding: .5em; | 254 padding: .5em; |
| 255 } | 255 } |
| 256 | 256 |
| 257 .hidden { | 257 .hidden { |
| 258 display: none; | 258 display: none; |
| 259 } | 259 } |
| 260 | |
| 261 /* Loading Indicator. */ | |
| 262 #loader { | |
| 263 height: 22px; | |
| 264 margin-left: auto; | |
| 265 margin-right: auto; | |
| 266 position: relative; | |
| 267 width: 22px; | |
| 268 } | |
| 269 | |
| 270 #loader * { | |
| 271 display: block; | |
| 272 position: absolute; | |
| 273 } | |
| 274 | |
| 275 #loader .circle { | |
| 276 -moz-border-radius: 50%; | |
| 277 -webkit-border-radius: 50%; | |
| 278 border-radius: 50%; | |
| 279 height: 100%; | |
| 280 opacity: 0; | |
| 281 overflow: hidden; | |
| 282 width: 100%; | |
| 283 } | |
| 284 | |
| 285 #loader .mask { | |
| 286 height: 100%; | |
| 287 opacity: 0; | |
| 288 overflow: hidden; | |
| 289 width: 100%; | |
| 290 } | |
| 291 | |
| 292 #loader .mask.first { | |
| 293 -moz-transition-delay: 0.22s; | |
|
robliao
2014/08/07 17:58:07
Do we still need the -moz declarations since this
sunangel
2014/08/07 20:57:57
oh yeah oops! I think in that case we also don't n
| |
| 294 -webkit-transition-delay: 0.22s; | |
| 295 transition-delay: 0.22s; | |
| 296 -moz-transition-duration: 0s; | |
| 297 -webkit-transition-duration: 0s; | |
| 298 transition-duration: 0s; | |
| 299 -moz-transition-property: border-color; | |
| 300 -webkit-transition-property: border-color; | |
| 301 transition-property: border-color; | |
| 302 } | |
| 303 | |
| 304 #loader .circle.initial .mask { | |
| 305 height: 50%; | |
| 306 top: 0; | |
| 307 } | |
| 308 | |
| 309 #loader .circle.red .mask.first { | |
| 310 border-bottom: 1px solid #555; | |
| 311 height: 50%; | |
| 312 top: 0; | |
| 313 } | |
| 314 | |
| 315 #loader .circle.red .mask.second { | |
| 316 bottom: 0; | |
| 317 height: 50%; | |
| 318 } | |
| 319 | |
| 320 #loader .circle.yellow .mask.first { | |
| 321 border-left: 1px solid #888; | |
| 322 right: 0; | |
| 323 width: 50%; | |
| 324 } | |
| 325 | |
| 326 #loader .circle.yellow .mask.second { | |
| 327 left: 0; | |
| 328 width: 50%; | |
| 329 } | |
| 330 | |
| 331 #loader .circle.green .mask.first { | |
| 332 border-top: 1px solid #555; | |
| 333 bottom: 0; | |
| 334 height: 50%; | |
| 335 } | |
| 336 | |
| 337 #loader .circle.green .mask.second { | |
| 338 height: 50%; | |
| 339 top: 0; | |
| 340 } | |
| 341 | |
| 342 #loader .circle.blue .mask.first { | |
| 343 border-right: 1px solid #888; | |
| 344 left: 0; | |
| 345 width: 50%; | |
| 346 } | |
| 347 | |
| 348 #loader .circle.blue .mask.second { | |
| 349 right: 0; | |
| 350 width: 50%; | |
| 351 } | |
| 352 | |
| 353 #loader .circle .mask .base { | |
| 354 -moz-border-radius: 50%; | |
| 355 -webkit-border-radius: 50%; | |
| 356 border-radius: 50%; | |
| 357 height: 100%; | |
| 358 opacity: 0; | |
| 359 -moz-transition-property: opacity; | |
| 360 -webkit-transition-property: opacity; | |
| 361 transition-property: opacity; | |
| 362 -moz-transition-timing-function: linear; | |
| 363 -webkit-transition-timing-function: linear; | |
| 364 transition-timing-function: linear; | |
| 365 -moz-transition-duration: 0s; | |
| 366 -webkit-transition-duration: 0s; | |
| 367 transition-duration: 0s; | |
| 368 -moz-transition-delay: 0s; | |
| 369 -webkit-transition-delay: 0s; | |
| 370 transition-delay: 0s; | |
| 371 width: 100%; | |
| 372 } | |
| 373 | |
| 374 #loader .circle .mask .mover { | |
| 375 -moz-border-radius: 50%; | |
| 376 -webkit-border-radius: 50%; | |
| 377 border-radius: 50%; | |
| 378 height: 100%; | |
| 379 -moz-transition-delay: 0s; | |
| 380 -webkit-transition-delay: 0s; | |
| 381 transition-delay: 0s; | |
| 382 -moz-transition-duration: 0.22s; | |
| 383 -webkit-transition-duration: 0.22s; | |
| 384 transition-duration: 0.22s; | |
| 385 -moz-transition-property: background-color, left, top, right, bottom, width, | |
| 386 height; | |
| 387 -webkit-transition-property: background-color, left, top, right, bottom, | |
| 388 width, height; | |
| 389 transition-property: background-color, left, top, right, bottom, width, | |
| 390 height; | |
| 391 -moz-transition-timing-function: ease-in; | |
| 392 -webkit-transition-timing-function: ease-in; | |
| 393 transition-timing-function: ease-in; | |
| 394 width: 100%; | |
| 395 } | |
| 396 | |
| 397 #loader .circle .mask.second .mover, | |
| 398 #loader .circle.initial .mask .mover { | |
| 399 -moz-transition-delay: 0.22s; | |
| 400 -webkit-transition-delay: 0.22s; | |
| 401 transition-delay: 0.22s; | |
| 402 -moz-transition-timing-function: ease-out; | |
| 403 -webkit-transition-timing-function: ease-out; | |
| 404 transition-timing-function: ease-out; | |
| 405 } | |
| 406 | |
| 407 #loader .circle.red .mask.first .base { | |
| 408 height: 200%; | |
| 409 top: 0; | |
| 410 } | |
| 411 #loader .circle.red .mask.second .base { | |
| 412 bottom: 0; | |
| 413 height: 200%; | |
| 414 } | |
| 415 | |
| 416 #loader .circle.yellow .mask.first .base { | |
| 417 right: 0; | |
| 418 width: 200%; | |
| 419 } | |
| 420 | |
| 421 #loader .circle.yellow .mask.second .base { | |
| 422 left: 0; | |
| 423 width: 200%; | |
| 424 } | |
| 425 | |
| 426 #loader .circle.green .mask.first .base { | |
| 427 bottom: 0; | |
| 428 height: 200%; | |
| 429 } | |
| 430 | |
| 431 #loader .circle.green .mask.second .base { | |
| 432 height: 200%; | |
| 433 top: 0; | |
| 434 } | |
| 435 | |
| 436 #loader .circle.blue .mask.first .base { | |
| 437 left: 0; | |
| 438 width: 200%; | |
| 439 } | |
| 440 | |
| 441 #loader .circle.blue .mask.second .base { | |
| 442 right: 0; | |
| 443 width: 200%; | |
| 444 } | |
| 445 | |
| 446 #loader .circle.initial .mask .mover { | |
| 447 height: 0; | |
| 448 top: 100%; | |
| 449 } | |
| 450 | |
| 451 #loader .circle.red .mask.first .mover { | |
| 452 height: 200%; | |
| 453 top: 0; | |
| 454 } | |
| 455 | |
| 456 #loader .circle.red .mask.second .mover { | |
| 457 bottom: 100%; | |
| 458 height: 0; | |
| 459 } | |
| 460 | |
| 461 #loader .circle.yellow .mask.first .mover { | |
| 462 right: 0; | |
| 463 width: 200%; | |
| 464 } | |
| 465 | |
| 466 #loader .circle.yellow .mask.second .mover { | |
| 467 left: 100%; | |
| 468 width: 0; | |
| 469 } | |
| 470 | |
| 471 #loader .circle.green .mask.first .mover { | |
| 472 bottom: 0; | |
| 473 height: 200%; | |
| 474 } | |
| 475 | |
| 476 #loader .circle.green .mask.second .mover { | |
| 477 height: 0; | |
| 478 top: 100%; | |
| 479 } | |
| 480 | |
| 481 #loader .circle.blue .mask.first .mover { | |
| 482 left: 0; | |
| 483 width: 200%; | |
| 484 } | |
| 485 | |
| 486 #loader .circle.blue .mask.second .mover { | |
| 487 right: 100%; | |
| 488 width: 0; | |
| 489 } | |
| 490 | |
| 491 /* Initial State. */ | |
| 492 #loader.initial .circle.initial, | |
| 493 #loader.initial .circle.initial .mask { | |
| 494 opacity: 1; | |
| 495 } | |
| 496 #loader.initial .circle.initial .mask .mover { | |
| 497 height: 200%; | |
| 498 top: 0; | |
| 499 } | |
| 500 | |
| 501 /* Moving from Red to Yellow. */ | |
| 502 #loader.yellow .circle.yellow, | |
| 503 #loader.yellow .circle.yellow .mask, | |
| 504 #loader.yellow .circle.yellow .mask .base { | |
| 505 opacity: 1; | |
| 506 } | |
| 507 #loader.yellow .circle.yellow .mask.first .mover { | |
| 508 right: 100%; | |
| 509 width: 0; | |
| 510 } | |
| 511 #loader.yellow .circle.yellow .mask.second .mover { | |
| 512 left: 0; | |
| 513 width: 200%; | |
| 514 } | |
| 515 | |
| 516 /* Moving from Yellow to Green. */ | |
| 517 #loader.green .circle.green, | |
| 518 #loader.green .circle.green .mask, | |
| 519 #loader.green .circle.green .mask .base { | |
| 520 opacity: 1; | |
| 521 } | |
| 522 #loader.green .circle.green .mask.first .mover { | |
| 523 bottom: 100%; | |
| 524 height: 0; | |
| 525 } | |
| 526 #loader.green .circle.green .mask.second .mover { | |
| 527 height: 200%; | |
| 528 top: 0; | |
| 529 } | |
| 530 | |
| 531 | |
| 532 /* Moving from Green to Blue. */ | |
| 533 #loader.blue .circle.blue, | |
| 534 #loader.blue .circle.blue .mask, | |
| 535 #loader.blue .circle.blue .mask .base { | |
| 536 opacity: 1; | |
| 537 } | |
| 538 #loader.blue .circle.blue .mask.first .mover { | |
| 539 left: 100%; | |
| 540 width: 0; | |
| 541 } | |
| 542 #loader.blue .circle.blue .mask.second .mover { | |
| 543 right: 0; | |
| 544 width: 200%; | |
| 545 } | |
| 546 | |
| 547 /* Moving from Blue to Red. */ | |
| 548 #loader.red .circle.red, | |
| 549 #loader.red .circle.red .mask, | |
| 550 #loader.red .circle.red .mask .base { | |
| 551 opacity: 1; | |
| 552 } | |
| 553 #loader.red.firstTime .circle.red .mask.second .base { | |
| 554 opacity: 0; | |
| 555 } | |
| 556 #loader.red .circle.red .mask.first .mover { | |
| 557 height: 0; | |
| 558 top: 100%; | |
| 559 } | |
| 560 #loader.red .circle.red .mask.second .mover { | |
| 561 bottom: 0; | |
| 562 height: 200%; | |
| 563 } | |
| 564 | |
| 565 #loader .circle.red .mask.first { | |
| 566 border-bottom-color: rgb(60,120,248); | |
| 567 } | |
| 568 | |
| 569 #loader .circle.yellow .mask.first { | |
| 570 border-left-color: rgb(250,36,36); | |
| 571 } | |
| 572 | |
| 573 #loader .circle.green .mask.first { | |
| 574 border-top-color: rgb(255,211,75); | |
| 575 } | |
| 576 | |
| 577 #loader .circle.blue .mask.first { | |
| 578 border-right-color: rgb(0,177,95); | |
| 579 } | |
| 580 | |
| 581 #loader .circle.red .mask.first .base { | |
| 582 background-color: rgb(250,36,36); | |
| 583 } | |
| 584 | |
| 585 #loader .circle.red .mask.second .base { | |
| 586 background-color: rgb(60,120,248); | |
| 587 } | |
| 588 | |
| 589 #loader .circle.yellow .mask.first .base { | |
| 590 background-color: rgb(255,211,75); | |
| 591 } | |
| 592 | |
| 593 #loader .circle.yellow .mask.second .base { | |
| 594 background-color: rgb(250,36,36); | |
| 595 } | |
| 596 | |
| 597 #loader .circle.green .mask.first .base { | |
| 598 background-color: rgb(0,177,95); | |
| 599 } | |
| 600 | |
| 601 #loader .circle.green .mask.second .base { | |
| 602 background-color: rgb(255,211,75); | |
| 603 } | |
| 604 | |
| 605 #loader .circle.blue .mask.first .base { | |
| 606 background-color: rgb(60,120,248); | |
| 607 } | |
| 608 | |
| 609 #loader .circle.blue .mask.second .base { | |
| 610 background-color: rgb(0,177,95); | |
| 611 } | |
| 612 | |
| 613 #loader .circle.initial .mask .mover { | |
| 614 background-color: rgb(33,89,189); | |
| 615 } | |
| 616 | |
| 617 #loader .circle.red .mask.first .mover { | |
| 618 background-color: rgb(60,120,248); | |
| 619 } | |
| 620 | |
| 621 #loader .circle.red .mask.second .mover { | |
| 622 background-color: rgb(158,18,18); | |
| 623 } | |
| 624 | |
| 625 #loader .circle.yellow .mask.first .mover { | |
| 626 background-color: rgb(250,36,36); | |
| 627 } | |
| 628 | |
| 629 #loader .circle.yellow .mask.second .mover { | |
| 630 background-color: rgb(222,161,26); | |
| 631 } | |
| 632 | |
| 633 #loader .circle.green .mask.first .mover { | |
| 634 background-color: rgb(255,211,75); | |
| 635 } | |
| 636 | |
| 637 #loader .circle.green .mask.second .mover { | |
| 638 background-color: rgb(0,137,72); | |
| 639 } | |
| 640 | |
| 641 #loader .circle.blue .mask.first .mover { | |
| 642 background-color: rgb(0,177,95); | |
| 643 } | |
| 644 | |
| 645 #loader .circle.blue .mask.second .mover { | |
| 646 background-color: rgb(33,89,189); | |
| 647 } | |
| 648 | |
| 649 #loader.initial .circle.initial .mask .mover { | |
| 650 background-color: rgb(60,120,248); | |
| 651 } | |
| 652 | |
| 653 #loader.yellow .circle.yellow .mask.first { | |
| 654 border-color: rgb(255,211,75); | |
| 655 } | |
| 656 | |
| 657 #loader.yellow .circle.yellow .mask.first .mover { | |
| 658 background-color: rgb(158,18,18); | |
| 659 } | |
| 660 | |
| 661 #loader.yellow .circle.yellow .mask.second .mover { | |
| 662 background-color: rgb(255,211,75); | |
| 663 } | |
| 664 | |
| 665 #loader.green .circle.green .mask.first { | |
| 666 border-color: rgb(0,177,95); | |
| 667 } | |
| 668 | |
| 669 #loader.green .circle.green .mask.first .mover { | |
| 670 background-color: rgb(222,161,26); | |
| 671 } | |
| 672 | |
| 673 #loader.green .circle.green .mask.second .mover { | |
| 674 background-color: rgb(0,177,95); | |
| 675 } | |
| 676 | |
| 677 #loader.blue .circle.blue .mask.first { | |
| 678 border-color: rgb(60,120,248); | |
| 679 } | |
| 680 | |
| 681 #loader.blue .circle.blue .mask.first .mover { | |
| 682 background-color: rgb(0,137,72); | |
| 683 } | |
| 684 | |
| 685 #loader.blue .circle.blue .mask.second .mover { | |
| 686 background-color: rgb(60,120,248); | |
| 687 } | |
| 688 | |
| 689 #loader.red .circle.red .mask.first { | |
| 690 border-color: rgb(250,36,36); | |
| 691 } | |
| 692 | |
| 693 #loader.red .circle.red .mask.first .mover { | |
| 694 background-color: rgb(33,89,189); | |
| 695 } | |
| 696 | |
| 697 #loader.red .circle.red .mask.second .mover { | |
| 698 background-color: rgb(250,36,36); | |
| 699 } | |
| OLD | NEW |