| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2015 Google Inc. | 3 * Copyright (C) 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 flex-direction: row; | 65 flex-direction: row; |
| 66 align-items: center; | 66 align-items: center; |
| 67 /* We use flex-start here to ensure that the play button is visible even | 67 /* We use flex-start here to ensure that the play button is visible even |
| 68 * if we are too small to show all controls. | 68 * if we are too small to show all controls. |
| 69 */ | 69 */ |
| 70 justify-content: flex-start; | 70 justify-content: flex-start; |
| 71 -webkit-user-select: none; | 71 -webkit-user-select: none; |
| 72 position: relative; | 72 position: relative; |
| 73 width: 100%; | 73 width: 100%; |
| 74 z-index: 0; | 74 z-index: 0; |
| 75 overflow: hidden; | 75 overflow: visible; |
| 76 text-align: right; | 76 text-align: right; |
| 77 bottom: auto; | 77 bottom: auto; |
| 78 height: 32px; | 78 height: 32px; |
| 79 min-width: 48px; | 79 min-width: 48px; |
| 80 line-height: 32px; | 80 line-height: 32px; |
| 81 background-color: #fafafa; | 81 background-color: #fafafa; |
| 82 /* The duration is also specified in MediaControlElements.cpp and LayoutTest
s/media/media-controls.js */ | 82 /* The duration is also specified in MediaControlElements.cpp and LayoutTest
s/media/media-controls.js */ |
| 83 transition: opacity 0.3s; | 83 transition: opacity 0.3s; |
| 84 | 84 |
| 85 font-size: 12px; | 85 font-size: 12px; |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 width: 32px; | 506 width: 32px; |
| 507 height: 32px; | 507 height: 32px; |
| 508 padding: 0px; | 508 padding: 0px; |
| 509 border-width: 0px; | 509 border-width: 0px; |
| 510 margin-left: 0px; | 510 margin-left: 0px; |
| 511 margin-right: 0px; | 511 margin-right: 0px; |
| 512 background-color: initial; | 512 background-color: initial; |
| 513 color: inherit; | 513 color: inherit; |
| 514 } | 514 } |
| 515 | 515 |
| 516 video::-internal-media-controls-download-button-container, audio::-internal-medi
a-controls-download-button-container { |
| 517 display: flex; |
| 518 flex: none; |
| 519 position: relative; |
| 520 box-sizing: border-box; |
| 521 width: 32px; |
| 522 height: 32px; |
| 523 background-color: initial; |
| 524 color: inherit; |
| 525 } |
| 526 |
| 516 video::-internal-media-controls-download-button, audio::-internal-media-controls
-download-button { | 527 video::-internal-media-controls-download-button, audio::-internal-media-controls
-download-button { |
| 517 -webkit-appearance: -internal-media-download-button; | 528 -webkit-appearance: -internal-media-download-button; |
| 518 display: flex; | 529 display: flex; |
| 519 flex: none; | 530 flex: none; |
| 520 box-sizing: border-box; | 531 box-sizing: border-box; |
| 521 width: 32px; | 532 width: inherit; |
| 522 height: 32px; | 533 height: inherit; |
| 523 padding: 0px; | 534 padding: 0px; |
| 524 border-width: 0px; | 535 border-width: 0px; |
| 525 margin-left: 0px; | 536 margin-left: 0px; |
| 526 margin-right: 0px; | 537 margin-right: 0px; |
| 527 background-color: initial; | 538 background-color: initial; |
| 528 color: inherit; | 539 color: inherit; |
| 529 } | 540 } |
| 530 | 541 |
| 531 video::-internal-media-controls-overflow-menu-list-item, audio::-internal-media-
controls-overflow-menu-list-item { | 542 video::-internal-media-controls-overflow-menu-list-item, audio::-internal-media-
controls-overflow-menu-list-item { |
| 532 display: block; | 543 display: block; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 font-weight: bold; | 613 font-weight: bold; |
| 603 } | 614 } |
| 604 | 615 |
| 605 video::cue(u) { | 616 video::cue(u) { |
| 606 text-decoration: underline; | 617 text-decoration: underline; |
| 607 } | 618 } |
| 608 | 619 |
| 609 video::cue(i) { | 620 video::cue(i) { |
| 610 font-style: italic; | 621 font-style: italic; |
| 611 } | 622 } |
| 623 |
| 624 video::-internal-media-controls-promo-container { |
| 625 display: flex; |
| 626 flex: none; |
| 627 position: absolute; |
| 628 left: 0px; |
| 629 top: 0px; |
| 630 box-sizing: border-box; |
| 631 z-index: 42; |
| 632 width: inherit; |
| 633 height: inherit; |
| 634 background-color: initial; |
| 635 color: inherit; |
| 636 pointer-events: none; |
| 637 } |
| 638 |
| 639 @keyframes -internal-media-controls-promo-throbbing { |
| 640 0% {transform: scale(0.5, 0.5);} |
| 641 50% {transform: scale(1.0, 1.0);} |
| 642 100% {transform: scale(0.5, 0.5);} |
| 643 } |
| 644 |
| 645 video::-internal-media-controls-promo-animation { |
| 646 display: flex; |
| 647 flex: none; |
| 648 box-sizing: border-box; |
| 649 width: inherit; |
| 650 height: inherit; |
| 651 border-radius: 50%; |
| 652 background-color: #4285f4; |
| 653 color: blue; |
| 654 opacity: 0.4; |
| 655 animation: -internal-media-controls-promo-throbbing 2s infinite; |
| 656 } |
| 657 |
| 658 video::-internal-media-controls-promo-arrow { |
| 659 display: flex; |
| 660 flex: none; |
| 661 box-sizing: border-box; |
| 662 position: absolute; |
| 663 top: 100%; |
| 664 left: 50%; |
| 665 margin-left: -10px; |
| 666 margin-top: -10px; |
| 667 width: 0px; |
| 668 height: 0px; |
| 669 border-top: 10px solid transparent; |
| 670 border-left: 10px solid transparent; |
| 671 border-right: 10px solid transparent; |
| 672 border-bottom: 10px solid #4285f4; |
| 673 } |
| 674 |
| 675 video::-internal-media-controls-promo-text { |
| 676 display: inline-block; |
| 677 flex: none; |
| 678 position: absolute; |
| 679 background: #5285f4; |
| 680 color: #fff; |
| 681 font-family: sans-serif; |
| 682 padding: 16px; |
| 683 top: 100%; |
| 684 right: 0%; |
| 685 margin-top: 10px; |
| 686 z-index: 42; |
| 687 border-radius: 2px; |
| 688 font-size: 14px; |
| 689 color: white; |
| 690 white-space: nowrap; |
| 691 line-height: 100%; |
| 692 } |
| OLD | NEW |