Make WordPress Core

Changeset 29517


Ignore:
Timestamp:
08/17/2014 02:02:16 PM (12 years ago)
Author:
ocean90
Message:

Media Grid: Improve position of fixed toolbar at small-screen sizes.

see #28842.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/media-views.css

    r29504 r29517  
    26012601.media-frame.mode-select .attachments-browser.fixed .media-toolbar {
    26022602        position: fixed;
    2603         top: 12px;
     2603        top: 32px;
    26042604        left: auto;
    26052605        right: 20px;
    2606 }
     2606        margin-top: 0;
     2607}
     2608
     2609@media only screen and ( max-width: 782px ) {
     2610        .media-frame.mode-select .attachments-browser.fixed .media-toolbar {
     2611                top: 46px;
     2612                right: 10px;
     2613        }
     2614}
     2615
     2616@media only screen and (max-width: 600px) {
     2617        .media-frame.mode-select .attachments-browser.fixed .media-toolbar {
     2618                top: 0;
     2619        }
     2620}
     2621
    26072622
    26082623.media-frame.mode-grid input[type="search"] {
  • trunk/src/wp-includes/js/media-grid.js

    r29494 r29517  
    6868                        this.$window = $( window );
    6969                        this.$adminBar = $( '#wpadminbar' );
    70                         this.$window.on( 'scroll', _.debounce( _.bind( this.fixPosition, this ), 15 ) );
     70                        this.$window.on( 'scroll resize', _.debounce( _.bind( this.fixPosition, this ), 15 ) );
    7171                        $( document ).on( 'click', '.add-new-h2', _.bind( this.addNewClickHandler, this ) );
    7272
Note: See TracChangeset for help on using the changeset viewer.