Ticket #22610: 22610.4.diff
| File 22610.4.diff, 4.9 KB (added by helenyhou, 6 months ago) |
|---|
-
wp-includes/media.php
1507 1507 <script type="text/html" id="tmpl-media-modal"> 1508 1508 <div class="media-modal"> 1509 1509 <h3 class="media-modal-title">{{ data.title }}</h3> 1510 <a class="media-modal-close " href="" title="<?php esc_attr_e('Close'); ?>">×</a>1510 <a class="media-modal-close media-modal-icon" href="#" title="<?php esc_attr_e('Close'); ?>"></a> 1511 1511 </div> 1512 1512 <div class="media-modal-backdrop"> 1513 1513 <div></div> … … 1620 1620 <# } #> 1621 1621 1622 1622 <# if ( data.buttons.close ) { #> 1623 <a class="close button" href="#">×</a>1623 <a class="close media-modal-icon" href="#" title="<?php _e('Remove'); ?>"></a> 1624 1624 <# } #> 1625 1625 1626 1626 <# if ( data.buttons.check ) { #> 1627 <a class="check" href="#" ><span>✓</span><span class="dash">–</span></a>1627 <a class="check" href="#" title="<?php _e('Deselect'); ?>"><div class="media-modal-icon"></div></a> 1628 1628 <# } #> 1629 1629 </div> 1630 1630 <# if ( data.describe ) { #> -
wp-includes/css/media-views-rtl.css
4 4 .media-modal-title { 5 5 left: auto; 6 6 right: 0; 7 float: right;8 7 } 9 8 10 9 .media-modal-close { 11 10 right: auto; 12 11 left: 0; 13 float: left;14 12 } 15 13 16 14 /** -
wp-includes/css/media-views.css
106 106 .media-modal-title, 107 107 .media-modal-close { 108 108 position: absolute; 109 top: -40px;110 109 height: 40px; 111 112 line-height: 40px;113 color: #fff;114 font-weight: 200;115 text-shadow: 0 0 16px rgba( 0, 0, 0, 0.6 );116 110 } 117 111 118 a.media-modal-close {119 color: #fff;120 }121 122 112 .media-modal-title { 113 top: -40px; 123 114 left: 0; 124 float: left;125 115 padding: 0; 126 116 margin: 0; 117 118 line-height: 40px; 119 color: #fff; 127 120 font-size: 16px; 121 font-weight: 200; 122 text-shadow: 0 0 16px rgba( 0, 0, 0, 0.6 ); 128 123 } 129 124 130 125 .media-modal-close { 126 top: -27px; 131 127 right: 0; 132 float: right; 133 text-decoration: none; 134 font-size: 1.8em; 128 width: 15px; 129 background-position: -80px 0; 135 130 } 136 131 137 .media-modal-close:hover,138 .media-modal-close:focus {139 color: #fff;140 text-shadow: 0 0 16px rgba( 255, 255, 255, 0.8 );141 }142 143 132 .media-modal-close:active { 144 133 outline: 0; 145 134 } … … 154 143 background: #fff; 155 144 } 156 145 146 .media-modal-icon { 147 background-image: url(../images/uploader-icons.png); 148 background-repeat: no-repeat; 149 } 150 157 151 /** 158 152 * Toolbar 159 153 */ … … 607 601 } 608 602 609 603 .attachment .close { 604 display: none; 610 605 position: absolute; 611 606 top: 5px; 612 607 right: 5px; … … 618 613 text-align: center; 619 614 text-decoration: none; 620 615 color: #464646; 621 background: #fff; 616 background-color: #fff; 617 background-position: -96px 4px; 622 618 border-width: 0; 619 border-radius: 3px; 623 620 box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.3 ); 624 621 } 625 622 626 .attachment . button:hover {623 .attachment .close:hover { 627 624 box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.6 ); 628 625 } 629 626 630 .attachment .close {631 display: none;632 }633 634 627 .attachment:hover .close { 635 628 display: block; 636 629 } … … 642 635 position: absolute; 643 636 top: -7px; 644 637 right: -7px; 645 line-height: 24px;646 font-size: 16px;647 text-align: center;648 text-decoration: none;649 638 outline: none; 650 639 651 color: #333;652 640 border: 1px solid #fff; 653 641 border-radius: 3px; 654 text-shadow: 0 1px 0 #fff;655 642 box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.4 ); 656 643 657 644 background: #f1f1f1; … … 662 649 background-image: linear-gradient(to bottom, #f1f1f1, #e1e1e1); 663 650 } 664 651 665 .attachment .check .dash { 666 font-weight: bold; 667 font-size: 18px; 668 line-height: 22px; 652 .attachment .check div { 653 background-position: -1px 0; 654 height: 15px; 655 width: 15px; 656 margin: 5px; 669 657 } 670 658 671 .attachment .check .dash, 672 .attachment .check:hover span { 673 display: none; 659 .attachment .check:hover div { 660 background-position: -40px 0; 674 661 } 675 662 676 .attachment.selected .check, 677 .attachment .check:hover .dash { 663 .attachment.selected .check { 678 664 display: block; 679 665 } 680 666 681 667 .attachment.details .check { 682 color: #fff;683 text-shadow: 0 1px 0 rgba( 0, 0, 0, 0.5 );684 668 box-shadow: 0 0 0 1px #1e8cbe; 685 669 686 670 background: #1e8cbe; … … 691 675 background-image: linear-gradient(to bottom, #1e8cbe, #0074a2); 692 676 } 693 677 678 .attachment.details .check div { 679 background-position: -21px 0; 680 } 681 682 .attachment.details .check:hover div { 683 background-position: -60px 0; 684 } 685 694 686 .media-frame .describe { 695 687 position: relative; 696 688 display: block; … … 703 695 } 704 696 705 697 /** 698 * HiDPI Displays 699 */ 700 @media print, 701 (-o-min-device-pixel-ratio: 5/4), 702 (-webkit-min-device-pixel-ratio: 1.25), 703 (min-resolution: 120dpi) { 704 .media-modal-icon { 705 background-image: url(../images/uploader-icons-2x.png); 706 background-size: 134px 15px; 707 } 708 } 709 710 /** 706 711 * Attachments Browser 707 712 */ 708 713 .media-frame .attachments-browser {
