Changeset 30813
- Timestamp:
- 12/11/2014 04:11:28 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/common.css
r30740 r30813 955 955 } 956 956 957 .filter-items { 958 float: left; 959 } 960 957 961 .filter-links { 958 962 display: inline-block; … … 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 … … 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; … … 1006 1008 1007 1009 .wp-filter .search-form select { 1010 margin: 0; 1008 1011 height: 33px; 1009 1012 vertical-align: top; … … 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 } -
trunk/src/wp-admin/css/list-tables.css
r29775 r30813 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 } -
trunk/src/wp-admin/css/media.css
r30740 r30813 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 { -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r30754 r30813 166 166 ?> 167 167 <div class="wp-filter"> 168 <?php $this->view_switcher( $mode ); ?> 169 170 <select class="attachment-filters" name="attachment-filter"> 171 <?php 168 <div class="filter-items"> 169 <?php $this->view_switcher( $mode ); ?> 170 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 } 177 } 178 ?> 179 </select> 180 181 <?php 182 $this->extra_tablenav( 'bar' ); 183 184 /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ 185 $views = apply_filters( "views_{$this->screen->id}", array() ); 186 187 // Back compat for pre-4.0 view links. 172 188 if ( ! empty( $views ) ) { 189 echo '<ul class="filter-links">'; 173 190 foreach ( $views as $class => $view ) { 174 echo "\t$view\n"; 175 } 176 } 177 ?> 178 </select> 179 180 <?php 181 $this->extra_tablenav( 'bar' ); 182 183 /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ 184 $views = apply_filters( "views_{$this->screen->id}", array() ); 185 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>"; 191 } 192 echo '</ul>'; 193 } 194 ?> 191 echo "<li class='$class'>$view</li>"; 192 } 193 echo '</ul>'; 194 } 195 ?> 196 </div> 195 197 196 198 <div class="search-form"> -
trunk/src/wp-includes/css/media-views.css
r30740 r30813 232 232 float: right; 233 233 height: 100%; 234 max-width: 33%; 234 235 } 235 236 … … 237 238 float: left; 238 239 height: 100%; 240 max-width: 66%; 239 241 } 240 242 … … 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 … … 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 … … 2146 2149 :lang(he-il) .rtl .media-frame select { 2147 2150 font-family: Arial, sans-serif; 2148 }2149 2150 @media only screen and (max-width: 940px) {2151 .media-frame-content .media-toolbar-secondary .attachment-filters {2152 max-width: 134px;2153 }2154 2151 } 2155 2152 … … 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%; … … 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 … … 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;
Note: See TracChangeset
for help on using the changeset viewer.