Ticket #32253: 32253.3.patch
File 32253.3.patch, 6.9 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/list-tables.css
495 495 } 496 496 497 497 /* Bulk Actions */ 498 .tablenav-pages a { 498 .tablenav-pages a, 499 .tablenav-pages-navspan { 499 500 font-weight: 600; 500 margin-right: 1px;501 501 padding: 0 2px; 502 502 } 503 503 504 .tablenav-pages .current-page { 504 padding-top: 0; 505 margin: 0 2px 0 0; 506 padding-bottom: 5px; 507 font-size: 13px; 505 508 text-align: center; 506 509 } 507 .tablenav-pages .next-page {508 margin-left: 2px;509 }510 510 511 511 .tablenav a.button-secondary { 512 512 display: block; … … 526 526 527 527 .tablenav .tablenav-pages { 528 528 float: right; 529 display: block; 529 height: 28px; 530 margin-top: 3px; 530 531 cursor: default; 531 height: 30px;532 532 color: #555; 533 line-height: 30px;534 font-size: 12px;535 533 } 536 534 537 535 .tablenav .no-pages, … … 545 543 padding: 3px 6px; 546 544 } 547 545 548 .tablenav .tablenav-pages a { 549 padding: 0 10px 3px; 550 background: #eee; 551 background: rgba( 0, 0, 0, 0.05 ); 546 .tablenav .tablenav-pages a, 547 .tablenav-pages-navspan { 548 display: inline-block; 549 width: 7px; 550 border: 1px solid #d2d2d2; 551 padding: 3px 10px 7px; 552 background: #e4e4e4; 552 553 font-size: 16px; 554 line-height: 1; 553 555 font-weight: normal; 556 text-align: center; 554 557 } 555 558 559 .tablenav .paging-input { 560 margin-right: 2px; 561 } 562 563 .tablenav.bottom .paging-input { 564 margin-left: 2px; 565 } 566 567 .tablenav-pages-navspan { 568 height: 16px; 569 border-color: #e8e8e8; 570 background: #ebebeb; 571 color: #b4b4b4; 572 } 573 556 574 .tablenav .tablenav-pages a:hover, 557 575 .tablenav .tablenav-pages a:focus { 576 border-color: #5b9dd9; 558 577 color: #fff; 559 578 background: #00a0d2; 579 -webkit-box-shadow: none; 580 box-shadow: none; 581 outline: none; /* IE8 */ 560 582 } 561 583 562 .tablenav .tablenav-pages a.disabled,563 .tablenav .tablenav-pages a.disabled:hover,564 .tablenav .tablenav-pages a.disabled:focus,565 .tablenav .tablenav-pages a.disabled:active {566 color: #a0a5aa;567 background: #eee;568 background: rgba( 0, 0, 0, 0.05 );569 }570 571 584 .tablenav .displaying-num { 572 585 margin-right: 7px; 573 color: #777;574 font-size: 12px;575 font-style: italic;576 586 } 577 587 578 588 .tablenav .one-page .displaying-num { 579 589 display: inline-block; 580 margin-top: 2px;590 margin-top: 5px; 581 591 margin-right: 0; 582 592 } 583 593 … … 617 627 float: right; 618 628 margin: 0 5px; 619 629 padding-top: 3px; 620 /* line-height in px same as .tablenav height */621 line-height: 30px;622 630 } 623 631 624 632 .wp-filter .view-switch { … … 638 646 height: 28px; 639 647 text-align: center; 640 648 line-height: 24px; 649 text-decoration: none; 641 650 } 642 651 643 652 .view-switch a:before { … … 1571 1580 .tablenav.bottom .displaying-num { 1572 1581 position: absolute; 1573 1582 right: 0; 1574 top: 10px; 1583 top: 11px; 1584 margin: 0; 1575 1585 font-size: 14px; 1576 1586 } 1577 1587 1578 .tablenav -pages {1588 .tablenav .tablenav-pages { 1579 1589 width: 100%; 1590 height: auto; 1580 1591 text-align: center; 1581 1592 margin: 0 0 25px; 1582 1593 } … … 1595 1606 } 1596 1607 1597 1608 .tablenav-pages .pagination-links .paging-input { 1598 font-size: 1 8px;1609 font-size: 16px; 1599 1610 } 1600 1611 1601 .tablenav-pages .pagination-links a { 1602 padding: 8px 20px 11px; 1612 .tablenav-pages .pagination-links a, 1613 .tablenav-pages-navspan { 1614 padding: 9px 16px 12px; 1603 1615 font-size: 18px; 1604 background: rgba(0, 0, 0, 0.05);1605 1616 } 1606 1617 1618 .tablenav-pages-navspan { 1619 height: 18px; 1620 } 1621 1607 1622 .tablenav-pages .pagination-links .current-page { 1608 padding: 10px;1609 font-size: 1 4px;1623 padding: 8px 9px 9px; 1624 font-size: 16px; 1610 1625 } 1611 1626 1612 1627 /* WP List Table Adjustments: General */ -
src/wp-admin/includes/class-wp-list-table.php
696 696 697 697 $page_links = array(); 698 698 699 $disable_first = $disable_last = ''; 699 $disable_first = $disable_last = $disable_prev = $disable_next = false; 700 700 701 if ( $current == 1 ) { 701 $disable_first = ' disabled'; 702 $disable_first = true; 703 $disable_prev = true; 702 704 } 705 if ( $current == 2 ) { 706 $disable_first = true; 707 } 703 708 if ( $current == $total_pages ) { 704 $disable_last = ' disabled'; 709 $disable_last = true; 710 $disable_next = true; 705 711 } 706 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 707 'first-page' . $disable_first, 708 esc_attr__( 'Go to the first page' ), 709 esc_url( remove_query_arg( 'paged', $current_url ) ), 710 '«' 711 ); 712 if ( $current == $total_pages - 1 ) { 713 $disable_last = true; 714 } 712 715 713 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 714 'prev-page' . $disable_first, 715 esc_attr__( 'Go to the previous page' ), 716 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), 717 '‹' 718 ); 716 if ( $disable_first ) { 717 $page_links[] = '<span class="tablenav-pages-navspan" aria-hidden="true">«</span>'; 718 } else { 719 $page_links[] = sprintf( "<a class='first-page' title='%s' href='%s'>%s</a>", 720 esc_attr__( 'Go to the first page' ), 721 esc_url( remove_query_arg( 'paged', $current_url ) ), 722 '«' 723 ); 724 } 719 725 726 if ( $disable_prev ) { 727 $page_links[] = '<span class="tablenav-pages-navspan" aria-hidden="true">‹</span>'; 728 } else { 729 $page_links[] = sprintf( "<a class='prev-page' title='%s' href='%s'>%s</a>", 730 esc_attr__( 'Go to the previous page' ), 731 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), 732 '‹' 733 ); 734 } 735 720 736 if ( 'bottom' == $which ) { 721 737 $html_current_page = $current; 722 738 } else { … … 730 746 $html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) ); 731 747 $page_links[] = '<span class="paging-input">' . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . '</span>'; 732 748 733 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 734 'next-page' . $disable_last, 735 esc_attr__( 'Go to the next page' ), 736 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), 737 '›' 738 ); 749 if ( $disable_next ) { 750 $page_links[] = '<span class="tablenav-pages-navspan" aria-hidden="true">›</span>'; 751 } else { 752 $page_links[] = sprintf( "<a class='next-page' title='%s' href='%s'>%s</a>", 753 esc_attr__( 'Go to the next page' ), 754 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), 755 '›' 756 ); 757 } 739 758 740 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 741 'last-page' . $disable_last, 742 esc_attr__( 'Go to the last page' ), 743 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), 744 '»' 745 ); 759 if ( $disable_last ) { 760 $page_links[] = '<span class="tablenav-pages-navspan" aria-hidden="true">»</span>'; 761 } else { 762 $page_links[] = sprintf( "<a class='last-page' title='%s' href='%s'>%s</a>", 763 esc_attr__( 'Go to the last page' ), 764 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), 765 '»' 766 ); 767 } 746 768 747 769 $pagination_links_class = 'pagination-links'; 748 770 if ( ! empty( $infinite_scroll ) ) {