Ticket #30725: 30725.6.diff
File 30725.6.diff, 9.9 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/common.css
931 931 -moz-box-sizing: border-box; 932 932 box-sizing: border-box; 933 933 margin: 12px 0 25px; 934 padding: 0 20px;934 padding: 0 15px; 935 935 width: 100%; 936 936 -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); 937 937 box-shadow: 0 1px 1px rgba(0,0,0,0.04); … … 1023 1023 font-size: 16px; 1024 1024 font-weight: 300; 1025 1025 line-height: 1.5; 1026 text-align: left; 1026 1027 } 1027 1028 1028 1029 .wp-filter .search-form select { … … 1235 1236 .filter-items { 1236 1237 float: none; 1237 1238 } 1238 1239 .wp-filter .media-toolbar-primary,1240 .wp-filter .media-toolbar-secondary,1241 .wp-filter .search-form {1242 float: none; /* Remove float from media-views.css */1243 position: relative;1244 max-width: 100%;1245 }1246 1239 } 1247 1240 1248 1241 @media only screen and (max-width: 782px) { … … 1250 1243 padding: 0; 1251 1244 width: 50%; 1252 1245 } 1246 1247 .wp-filter .search-form input[type="search"] { 1248 width: 100%; 1249 } 1253 1250 } 1254 1251 1255 1252 @media only screen and (max-width: 320px) { -
src/wp-admin/css/media.css
562 562 } 563 563 564 564 .media-frame.mode-grid .media-toolbar select { 565 margin: 0 10px 0 0;566 565 font-size: 14px; 567 566 } 568 567 … … 580 579 margin-top: 0; 581 580 } 582 581 583 .media-frame.mode-grid .spinner {584 margin-top: 15px;585 }586 587 582 .attachments-browser .media-toolbar-secondary > .media-button { 588 583 margin-right: 10px; 589 584 } … … 1124 1119 @media only screen and (max-width: 1120px) { 1125 1120 /* override for media-views.css */ 1126 1121 #wp-media-grid .wp-filter .attachment-filters { 1127 max-width: 100%;1122 max-width: 35%; 1128 1123 } 1129 1124 } 1130 1125 1126 @media only screen and (max-width: 1000px) { 1127 #wp-media-grid .wp-filter .attachment-filters { 1128 max-width: 20%; 1129 } 1130 } 1131 1131 1132 @media only screen and ( max-width: 782px ) { 1132 1133 .media-frame.mode-select .attachments-browser.fixed .media-toolbar { 1133 1134 top: 46px; … … 1184 1185 height: auto; 1185 1186 width: 100%; 1186 1187 } 1188 1189 #wp-media-grid .wp-filter .attachment-filters { 1190 max-width: 35%; 1191 } 1187 1192 } 1188 1193 1189 1194 @media only screen and (max-width: 640px), screen and (max-height: 400px) { -
src/wp-includes/css/media-views.css
231 231 232 232 .media-toolbar-primary { 233 233 float: right; 234 height: 100%;234 width: 100%; 235 235 max-width: 33%; 236 text-align: right; 236 237 } 237 238 238 239 .media-toolbar-secondary { 239 240 float: left; 240 height: 100%;241 width: 100%; 241 242 max-width: 66%; 242 243 } 243 244 245 .ie8 .media-toolbar-primary { 246 width: 33%; 247 max-width: none; 248 } 249 250 .ie8 .media-toolbar-secondary { 251 width: 66%; 252 max-width: none; 253 } 254 255 .ie8 .wp-filter .search-form input[type="search"], 256 .ie8 .media-toolbar-primary #media-search-input { 257 float: right; 258 } 259 260 .ie8 .media-frame-toolbar .media-toolbar-primary .media-button { 261 float: right; 262 } 263 264 265 .media-modal .media-toolbar-primary, 266 .media-modal .media-toolbar-secondary { 267 padding-top: 10px; 268 } 269 244 270 .media-toolbar-primary > .media-button, 245 271 .media-toolbar-primary > .media-button-group { 246 272 margin-left: 10px; 247 float: left; 248 margin-top: 15px; 273 margin-top: 5px; 249 274 } 250 275 251 276 .media-toolbar-secondary > .media-button, … … 738 763 * Attachment Browser Filters 739 764 */ 740 765 .media-frame select.attachment-filters { 741 margin-top: 11px; 742 margin-right: 2%; 743 max-width: 47%; 766 margin: 0 2% 0 0; 767 /* need to reserve space for the spinner, hacky because 46% + 2% * 2 = 96% doesn't guarantee we have 20px left */ 768 /* need for calc()? e.g. calc( 48% - 10px ) would always work assuming there are 2 selects */ 769 max-width: 46%; 744 770 } 745 771 772 .ie8 .media-frame select.attachment-filters { 773 max-width: 40%; 774 } 775 746 776 /** 747 777 * Search 748 778 */ 749 779 .media-frame .search { 750 margin-top: 11px;751 780 padding: 4px; 752 781 font-size: 13px; 753 782 color: #464646; … … 757 786 758 787 .media-toolbar-primary .search { 759 788 max-width: 100%; 789 margin-top: 0; 760 790 } 761 791 762 792 /** … … 1504 1534 1505 1535 /** 1506 1536 * Spinner 1537 * need to replicate what's already in common.css because media can be enqueued in the front-end 1507 1538 */ 1508 1539 .media-frame .spinner { 1509 1540 background: url(../images/spinner.gif) no-repeat; 1510 1541 -webkit-background-size: 20px 20px; 1511 1542 background-size: 20px 20px; 1512 display: none; 1543 display: inline-block; 1544 visibility: hidden; 1545 float: right; 1546 vertical-align: middle; 1513 1547 opacity: 0.7; 1514 1548 filter: alpha(opacity=70); 1515 1549 width: 20px; … … 1517 1551 margin: 0; 1518 1552 } 1519 1553 1520 .media- toolbar.spinner {1521 margin-top: 14px;1554 .media-frame .media-toolbar-secondary .spinner { 1555 float: none; 1522 1556 } 1523 1557 1558 .media-frame .spinner.is-active { 1559 visibility: visible; 1560 } 1561 1562 .wp-core-ui .media-toolbar-secondary .button { 1563 vertical-align: middle; 1564 } 1565 1524 1566 /** 1525 1567 * Attachment Details 1526 1568 */ … … 1535 1577 z-index: 10; 1536 1578 } 1537 1579 1538 .attachment-details .settings-save-status .spinner {1539 margin: 0 5px 0;1540 }1541 1542 1580 .attachment-details .settings-save-status .saved { 1543 1581 float: right; 1544 1582 display: none; 1583 margin-right: -15px; 1545 1584 } 1546 1585 1547 .attachment-details.save-waiting .settings-save-status .spinner, 1586 .attachment-details.save-waiting .settings-save-status .spinner { 1587 visibility: visible; 1588 } 1589 1548 1590 .attachment-details.save-complete .settings-save-status .saved { 1549 1591 display: block; 1550 1592 } … … 2199 2241 font-family: Arial, sans-serif; 2200 2242 } 2201 2243 2244 2245 @media only screen and (max-width: 1120px) { 2246 .media-frame select.attachment-filters { 2247 max-width: 43%; 2248 } 2249 } 2250 2202 2251 /** 2203 2252 * Responsive layout 2204 2253 */ … … 2402 2451 height: auto; 2403 2452 } 2404 2453 2405 .media-modal .attachments-browser .media-toolbar .spinner {2406 margin: 14px 8px 0;2407 }2408 2409 2454 /* Text inputs need to be 16px, or they force zooming on iOS */ 2410 2455 .media-frame input[type="text"], 2411 2456 .media-frame input[type="password"], … … 2419 2464 } 2420 2465 } 2421 2466 2467 @media only screen and (max-width: 782px) { 2468 .media-toolbar-primary, 2469 .media-toolbar-secondary { 2470 max-width: none; 2471 } 2472 2473 .media-modal .media-toolbar-primary { 2474 max-width: 33%; 2475 } 2476 2477 .media-modal .media-toolbar-secondary { 2478 max-width: 66%; 2479 } 2480 } 2481 2422 2482 /* Responsive on portrait and landscape */ 2423 2483 @media only screen and (max-width: 640px), screen and (max-height: 400px) { 2424 2484 /* Full-bleed modal */ … … 2534 2594 .media-frame.hide-router .media-frame-content { 2535 2595 top: 40px; 2536 2596 } 2597 2598 .media-frame select.attachment-filters { 2599 max-width: 42%; 2600 } 2537 2601 } 2538 2602 2539 2603 /** -
src/wp-includes/js/media/views/attachments.js
284 284 285 285 // Show the spinner only if we are close to the bottom. 286 286 if ( el.scrollHeight - ( scrollTop + el.clientHeight ) < el.clientHeight / 3 ) { 287 toolbar.get('spinner'). show();287 toolbar.get('spinner').$el.addClass( 'is-active' ); 288 288 } 289 289 290 290 if ( el.scrollHeight < scrollTop + ( el.clientHeight * this.options.refreshThreshold ) ) { 291 291 this.collection.more().done(function() { 292 292 view.scroll(); 293 toolbar.get('spinner'). hide();293 toolbar.get('spinner').$el.removeClass( 'is-active' ); 294 294 }); 295 295 } 296 296 } -
src/wp-includes/js/media/views/attachments/browser.js
306 306 } 307 307 308 308 if ( ! this.collection.length ) { 309 this.toolbar.get( 'spinner' ). show();309 this.toolbar.get( 'spinner' ).$el.addClass( 'is-active' ); 310 310 this.dfd = this.collection.more().done( function() { 311 311 if ( ! view.collection.length ) { 312 312 noItemsView.$el.removeClass( 'hidden' ); … … 313 313 } else { 314 314 noItemsView.$el.addClass( 'hidden' ); 315 315 } 316 view.toolbar.get( 'spinner' ). hide();316 view.toolbar.get( 'spinner' ).$el.removeClass( 'is-active' ); 317 317 } ); 318 318 } else { 319 319 noItemsView.$el.addClass( 'hidden' ); 320 view.toolbar.get( 'spinner' ). hide();320 view.toolbar.get( 'spinner' ).$el.removeClass( 'is-active' ); 321 321 } 322 322 }, 323 323 -
src/wp-includes/js/media/views/button/select-mode-toggle.js
55 55 this.controller.content.get().$el.removeClass( 'fixed' ); 56 56 toolbar.$el.css( 'width', '' ); 57 57 toolbar.$( '.delete-selected-button' ).addClass( 'hidden' ); 58 children.not( '. spinner, .media-button' ).show();58 children.not( '.media-button' ).show(); 59 59 this.controller.state().get( 'selection' ).reset(); 60 60 } 61 61 } -
src/wp-includes/js/media/views/embed/link.js
34 34 return; 35 35 } 36 36 37 this.spinner. show();37 this.spinner.addClass( 'is-active' ); 38 38 39 39 this.fetch(); 40 40 }, 600 ), … … 95 95 this.model.unset( 'width', opts ); 96 96 } 97 97 98 this.spinner. hide();98 this.spinner.removeClass( 'is-active' ); 99 99 100 100 this.$('.embed-container').show().find('.embed-preview').html( html ); 101 101 } -
src/wp-includes/js/media/views/spinner.js
17 17 show: function() { 18 18 if ( ! this.spinnerTimeout ) { 19 19 this.spinnerTimeout = _.delay(function( $el ) { 20 $el. show();20 $el.addClass( 'is-active' ); 21 21 }, this.delay, this.$el ); 22 22 } 23 23 … … 25 25 }, 26 26 27 27 hide: function() { 28 this.$el. hide();28 this.$el.removeClass( 'is-active' ); 29 29 this.spinnerTimeout = clearTimeout( this.spinnerTimeout ); 30 30 31 31 return this;