Ticket #29897: 29897.dashboard.list-table.patch
File 29897.dashboard.list-table.patch, 7.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/common.css
114 114 clear: both; 115 115 } 116 116 117 .contain-floats:after { 118 content: ''; 119 display: table; 120 clear: both; 121 } 122 117 123 /* Hide visually but not from screen readers */ 118 124 .screen-reader-text, 119 125 .screen-reader-text span, … … 748 754 } 749 755 750 756 /* @todo can we combine these into a class or use an existing dashicon one? */ 751 #welcome-panel.welcome-panel .welcome-panel-close:before,757 .welcome-panel .welcome-panel-close:before, 752 758 .tagchecklist span a:before, 753 759 #bulk-titles div a:before { 754 760 background: none; … … 755 761 color: #bbb; 756 762 content: '\f153'; 757 763 display: block !important; 758 font: normal 16px/1 'dashicons';764 font: normal 16px/17px 'dashicons'; 759 765 speak: none; 760 766 height: 20px; 761 767 text-align: center; … … 763 769 -webkit-font-smoothing: antialiased !important; 764 770 } 765 771 766 #welcome-panel.welcome-panel .welcome-panel-close:before {772 .welcome-panel .welcome-panel-close:before { 767 773 margin: 0; 768 774 } 769 775 … … 772 778 margin: 2px 0; 773 779 } 774 780 775 #welcome-panel.welcome-panel .welcome-panel-close:hover:before, 781 .welcome-panel .welcome-panel-close:hover:before, 782 .welcome-panel .welcome-panel-close:focus:before, 776 783 .tagchecklist span a:hover:before, 777 784 #bulk-titles div a:hover:before { 778 785 color: #c00; … … 941 948 -moz-box-sizing: border-box; 942 949 box-sizing: border-box; 943 950 margin: 12px 0 25px; 944 padding: 0 20px;951 padding: 0 9px 0 12px; 945 952 width: 100%; 946 953 -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); 947 954 box-shadow: 0 1px 1px rgba(0,0,0,0.04); … … 1585 1592 1586 1593 .widefat th, 1587 1594 .widefat td { 1588 overflow: hidden;1589 1595 color: #555; 1590 1596 } 1591 1597 … … 1971 1977 height: auto; 1972 1978 } 1973 1979 1980 td.image-icon a { 1981 display: inline-block; 1982 } 1983 1974 1984 td.image-icon img { 1985 display: block; 1975 1986 border: 1px solid rgba(0, 0, 0, 0.07); 1976 1987 } 1977 1988 -
src/wp-admin/css/dashboard.css
146 146 147 147 .welcome-panel .welcome-panel-close { 148 148 position: absolute; 149 top: 5px;149 top: 15px; 150 150 right: 10px; 151 padding: 20px 15px 0 3px;151 padding: 10px 15px 10px 21px; 152 152 font-size: 13px; 153 153 text-decoration: none; 154 154 line-height: 1; … … 156 156 157 157 #welcome-panel.welcome-panel .welcome-panel-close:before { 158 158 position: absolute; 159 left: -18px;159 left: 0; 160 160 margin-top: -2px; 161 161 -webkit-transition: all .1s ease-in-out; 162 162 transition: all .1s ease-in-out; … … 177 177 178 178 .welcome-panel .welcome-panel-column-container { 179 179 clear: both; 180 overflow: hidden;181 180 position: relative; 182 181 } 183 182 … … 205 204 } 206 205 207 206 .welcome-panel .welcome-icon { 208 display: block;209 padding: 0 0 8px;210 207 background: transparent !important; 211 208 } 212 209 … … 265 262 .welcome-panel .welcome-panel-column li { 266 263 line-height: 16px; 267 264 list-style-type: none; 265 padding: 0 0 8px; 268 266 } 269 267 270 268 /* Dashboard WordPress news */ … … 328 326 329 327 #dashboard_right_now ul { 330 328 margin: 0; 331 overflow: hidden;332 329 } 333 330 334 331 #dashboard_right_now li { … … 338 335 } 339 336 340 337 #dashboard_right_now .inside { 341 overflow: hidden;342 338 padding: 0; 343 339 } 344 340 345 341 #dashboard_right_now .main { 346 overflow: hidden;347 342 padding: 0 12px 11px; 348 343 } 349 344 … … 450 445 } 451 446 452 447 #dashboard_quick_press form { 453 overflow: hidden;454 448 margin: 12px; 455 449 } 456 450 … … 570 564 word-wrap: break-word; 571 565 } 572 566 573 #dashboard_quick_press .draft-title {574 overflow: hidden;575 }576 577 567 #dashboard_quick_press .draft-title a, 578 568 #dashboard_quick_press .draft-title time { 579 float: left;580 569 margin: 0 5px 0 0; 581 570 } 582 571 … … 658 647 659 648 #future-posts li, 660 649 #published-posts li { 661 overflow: hidden;662 650 margin-bottom: 8px; 663 651 } 664 652 … … 665 653 #future-posts ul span, 666 654 #published-posts ul span { 667 655 color: #777; 668 float: left;669 margin-right: 8px;656 display: inline-block; 657 margin-right: 5px; 670 658 min-width: 150px; 671 659 } 672 660 … … 922 910 } 923 911 924 912 .dashboard-comment-wrap { 925 overflow: hidden;926 913 word-wrap: break-word; 927 914 } 928 915 … … 1100 1087 /* Keep the close icon from overlapping the Welcome text. */ 1101 1088 .welcome-panel .welcome-panel-close { 1102 1089 overflow: hidden; 1103 text-indent: 100%;1090 text-indent: 40px; 1104 1091 white-space: nowrap; 1105 1092 width: 20px; 1106 1093 height: 20px; 1107 right: 0; 1094 top: 5px; 1095 right: 5px; 1108 1096 padding: 5px; 1109 1097 } 1110 1098 … … 1112 1100 #welcome-panel.welcome-panel .welcome-panel-close:before { 1113 1101 font-size: 20px; 1114 1102 margin: 0; 1103 left: -35px; 1115 1104 } 1116 1105 } -
src/wp-admin/css/list-tables.css
624 624 625 625 .tablenav .view-switch { 626 626 float: right; 627 margin: 5px 16px 0 8px; 627 margin: 5px 10px 0 8px; 628 line-height: 20px; 628 629 } 629 630 630 631 .wp-filter .view-switch { 631 632 display: inline-block; 633 line-height: 50px; 632 634 vertical-align: middle; 633 padding: 14px 0; 634 margin: 0 20px 0 0; 635 /* in list mode markup has white space between elements */ 636 margin: 0 8px 0 0; 637 /* also elements inside view-switch have white space between them */ 638 font-size: 0px; 635 639 } 636 640 641 .mode-grid .wp-filter .view-switch { 642 /* in grid mode Underscore templates do not have white space between them */ 643 margin: 0 12px 0 0; 644 } 645 637 646 .view-switch a { 638 647 text-decoration: none; 639 648 } … … 640 649 641 650 .view-switch > a { 642 651 display: inline-block; 643 width: 18px; 644 height: 18px; 652 width: 26px; 653 height: 26px; 654 line-height: 26px; 655 text-align: center; 656 vertical-align: middle; 645 657 } 646 658 659 .view-switch > a + a { 660 margin-left: 5px; 661 } 662 647 663 .view-switch > a:before { 648 664 color: #bbb; 649 665 display: inline-block; 650 float: left; 651 font: normal 20px/1 'dashicons'; 666 font: normal 20px/26px 'dashicons'; 652 667 speak: none; 653 vertical-align: middle;654 margin-left: 0;655 668 -webkit-font-smoothing: antialiased; 656 669 -moz-osx-font-smoothing: grayscale; 657 670 } … … 668 681 color: #0074a2; 669 682 } 670 683 671 .view-switch > a + a {672 margin-left: 5px;673 }674 675 684 .view-switch > .view-excerpt:before { 676 685 content: '\f164'; 677 686 } -
src/wp-admin/includes/class-wp-list-table.php
922 922 if ( 'top' == $which ) 923 923 wp_nonce_field( 'bulk-' . $this->_args['plural'] ); 924 924 ?> 925 <div class="tablenav <?php echo esc_attr( $which ); ?>">925 <div class="tablenav contain-floats <?php echo esc_attr( $which ); ?>"> 926 926 927 927 <div class="alignleft actions bulkactions"> 928 928 <?php $this->bulk_actions( $which ); ?> … … 932 932 $this->pagination( $which ); 933 933 ?> 934 934 935 <br class="clear" />936 935 </div> 937 936 <?php 938 937 } -
src/wp-admin/includes/dashboard.php
212 212 function wp_dashboard_right_now() { 213 213 ?> 214 214 <div class="main"> 215 <ul >215 <ul class="contain-floats"> 216 216 <?php 217 217 // Posts and Pages 218 218 foreach ( array( 'post', 'page' ) as $post_type ) { … … 1278 1278 <div class="welcome-panel-content"> 1279 1279 <h3><?php _e( 'Welcome to WordPress!' ); ?></h3> 1280 1280 <p class="about-description"><?php _e( 'We’ve assembled some links to get you started:' ); ?></p> 1281 <div class="welcome-panel-column-container ">1281 <div class="welcome-panel-column-container contain-floats"> 1282 1282 <div class="welcome-panel-column"> 1283 1283 <?php if ( current_user_can( 'customize' ) ): ?> 1284 1284 <h4><?php _e( 'Get Started' ); ?></h4>