Ticket #30658: 30658.3.diff
| File 30658.3.diff, 5.6 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/css/common.css
954 954 margin-right: 20px; 955 955 } 956 956 957 .filter-items { 958 float: left; 959 } 960 957 961 .filter-links { 958 962 display: inline-block; 959 963 margin: 0; … … 988 992 } 989 993 990 994 .wp-filter .search-form { 991 margin: 10px; 992 position: absolute; 993 right: 0; 994 top: 0; 995 float: right; 996 margin: 10px 0; 995 997 } 996 998 997 999 .wp-filter .search-form input[type="search"] { 998 1000 margin: 0; 999 1001 padding: 3px 5px; 1000 max-width: 280px;1001 width: 100%;1002 width: 280px; 1003 max-width: 100%; 1002 1004 font-size: 16px; 1003 1005 font-weight: 300; 1004 1006 line-height: 1.5; … … 1005 1007 } 1006 1008 1007 1009 .wp-filter .search-form select { 1010 margin: 0; 1008 1011 height: 33px; 1009 1012 vertical-align: top; 1010 1013 } … … 1205 1208 } 1206 1209 } 1207 1210 1208 @media only screen and (max-width: 910px) { 1211 @media only screen and (max-width: 1000px) { 1212 .filter-items { 1213 float: none; 1214 } 1215 1216 .wp-filter .media-toolbar-primary, 1217 .wp-filter .media-toolbar-secondary, 1209 1218 .wp-filter .search-form { 1210 1219 float: none; /* Remove float from media-views.css */ 1211 1220 position: relative; 1212 ma rgin: 20px 0;1221 max-width: 100%; 1213 1222 } 1214 1223 } 1215 1224 -
src/wp-admin/css/list-tables.css
630 630 .wp-filter .view-switch { 631 631 display: inline-block; 632 632 vertical-align: middle; 633 padding: 1 4px 0;633 padding: 15px 0; 634 634 margin: 0 20px 0 0; 635 635 } 636 636 -
src/wp-admin/css/media.css
1126 1126 */ 1127 1127 1128 1128 @media only screen and (max-width: 1120px) { 1129 .media-frame.mode-grid .attachments-browser .media-toolbar-secondary {1130 float: none;1131 }1132 1133 1129 /* override for media-views.css */ 1134 1130 #wp-media-grid .wp-filter .attachment-filters { 1135 1131 max-width: 100%; -
src/wp-admin/includes/class-wp-media-list-table.php
165 165 $views = $this->get_views(); 166 166 ?> 167 167 <div class="wp-filter"> 168 <?php $this->view_switcher( $mode ); ?> 168 <div class="filter-items"> 169 <?php $this->view_switcher( $mode ); ?> 169 170 170 <select class="attachment-filters" name="attachment-filter"> 171 <?php 172 if ( ! empty( $views ) ) { 173 foreach ( $views as $class => $view ) { 174 echo "\t$view\n"; 171 <select class="attachment-filters" name="attachment-filter"> 172 <?php 173 if ( ! empty( $views ) ) { 174 foreach ( $views as $class => $view ) { 175 echo "\t$view\n"; 176 } 175 177 } 176 } 177 ?> 178 </select> 178 ?> 179 </select> 179 180 180 181 <?php 181 $this->extra_tablenav( 'bar' );182 $this->extra_tablenav( 'bar' ); 182 183 183 /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */184 $views = apply_filters( "views_{$this->screen->id}", array() );184 /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ 185 $views = apply_filters( "views_{$this->screen->id}", array() ); 185 186 186 // Back compat for pre-4.0 view links. 187 if ( ! empty( $views ) ) { 188 echo '<ul class="filter-links">'; 189 foreach ( $views as $class => $view ) { 190 echo "<li class='$class'>$view</li>"; 187 // Back compat for pre-4.0 view links. 188 if ( ! empty( $views ) ) { 189 echo '<ul class="filter-links">'; 190 foreach ( $views as $class => $view ) { 191 echo "<li class='$class'>$view</li>"; 192 } 193 echo '</ul>'; 191 194 } 192 echo '</ul>';193 }194 195 ?> 196 </div> 195 197 196 198 <div class="search-form"> 197 199 <label for="media-search-input" class="screen-reader-text"><?php esc_html_e( 'Search Media' ); ?></label> -
src/wp-includes/css/media-views.css
231 231 .media-toolbar-primary { 232 232 float: right; 233 233 height: 100%; 234 max-width: 33%; 234 235 } 235 236 236 237 .media-toolbar-secondary { 237 238 float: left; 238 239 height: 100%; 240 max-width: 66%; 239 241 } 240 242 241 243 .media-toolbar-primary > .media-button, … … 731 733 */ 732 734 .media-frame select.attachment-filters { 733 735 margin-top: 11px; 734 margin-right: 10px; 736 margin-right: 2%; 737 max-width: 47%; 735 738 } 736 739 737 740 /** … … 746 749 -webkit-appearance: none; 747 750 } 748 751 749 .media-toolbar- secondary .search {750 ma rgin-right: 16px;752 .media-toolbar-primary .search { 753 max-width: 100%; 751 754 } 752 755 753 756 /** … … 2147 2150 font-family: Arial, sans-serif; 2148 2151 } 2149 2152 2150 @media only screen and (max-width: 940px) {2151 .media-frame-content .media-toolbar-secondary .attachment-filters {2152 max-width: 134px;2153 }2154 }2155 2156 2153 /** 2157 2154 * Responsive layout 2158 2155 */ … … 2346 2343 display: none; 2347 2344 } 2348 2345 2349 .media-modal .attachments-browser .media-toolbar-primary,2350 .media-modal .attachments-browser .media-toolbar-secondary {2351 width: 50%;2352 }2353 2354 2346 .media-modal .attachments-browser .media-toolbar .search { 2355 2347 max-width: 100%; 2356 2348 height: auto; … … 2358 2350 } 2359 2351 2360 2352 .media-modal .attachments-browser .media-toolbar .attachment-filters { 2361 margin: 11px 0 0;2362 2353 height: auto; 2363 max-width: 65%;2364 max-width: -webkit-calc(100% - 38px);2365 max-width: calc(100% - 38px);2366 2354 } 2367 2355 2368 2356 .media-modal .attachments-browser .media-toolbar .spinner { … … 2466 2454 } 2467 2455 2468 2456 @media only screen and (max-width: 480px) { 2469 .media-frame-content .media-toolbar .attachment-filters {2470 max-width: 90px;2471 }2472 2473 2457 .media-modal-close { 2474 2458 top: 5px; 2475 2459 right: 5px;