WordPress.org

Make WordPress Core

Ticket #23560: 23560-always-show-edit-selection-checkmarks.diff

File 23560-always-show-edit-selection-checkmarks.diff, 857 bytes (added by adamsilverstein, 5 years ago)

edit-selection mode: make the close icons have a focus styling and always be visible

  • src/wp-includes/css/media-views.css

     
    963963}
    964964
    965965.attachment .close {
    966         display: none;
     966        display: block;
    967967        position: absolute;
    968968        top: 5px;
    969969        right: 5px;
     
    982982        border-radius: 3px;
    983983        -webkit-box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.3 );
    984984        box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.3 );
     985        transition-duration: none;
     986        transition-property: none;
    985987}
    986988
    987 .attachment .close:hover {
     989.attachment a.close:hover,
     990.attachment a.close:focus {
    988991        -webkit-box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.6 );
    989992        box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.6 );
    990 }
     993        background-position: -36px 4px;
    991994
    992 .attachment:hover .close {
    993         display: block;
    994995}
    995996
    996997.attachment .check {