WordPress.org

Make WordPress Core

Changeset 40429


Ignore:
Timestamp:
04/14/2017 09:33:35 AM (15 months ago)
Author:
swissspidy
Message:

Media: Ensure Crop Image is always visible.

Previously, the crop button in the media modal after uploading header images or similar was hidden and the task could not be completed.

Props karinedo, sagarprajapati, Cybr, mayurk.
Fixes #40152.

Merges [40428] to the 4.7 branch.

Location:
branches/4.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-includes/css/buttons.css

    r37431 r40429  
    379379    }
    380380
     381    .media-modal-content .media-toolbar-primary .media-button {
     382        margin-top: 10px;
     383        margin-left: 5px;
     384    }
     385
    381386    /* Reset responsive styles on Log in button on iframed login form */
    382387
  • branches/4.7/src/wp-includes/css/media-views.css

    r40367 r40429  
    243243}
    244244
    245 .media-modal-content .attachments-browser .media-toolbar-secondary {
    246     width: 66%;
    247 }
    248 
    249 .media-modal-content .media-toolbar-primary.search-form {
    250     width: 33%;
    251 }
    252 
    253245.media-modal-content .media-toolbar-primary .media-button {
    254246    float: right;
     
    278270    border: 0 solid #ddd;
    279271    overflow: hidden;
     272}
     273
     274.media-frame-toolbar .media-toolbar {
     275    top: initial;
     276    bottom: -45px;
     277    height: auto;
     278    overflow: initial;
     279    border-top: 1px solid #ddd;
     280}
     281
     282@media screen and (max-width: 782px) {
     283    .media-frame-toolbar .media-toolbar {
     284        bottom: -48px;
     285    }
    280286}
    281287
     
    687693    background: #fff;
    688694    border-top: 1px solid #ddd;
    689     border-bottom: 1px solid #ddd;
    690695}
    691696
     
    697702    height: 60px;
    698703    z-index: 100;
     704    bottom: 60px;
     705    height: auto;
    699706}
    700707
Note: See TracChangeset for help on using the changeset viewer.