WordPress.org

Make WordPress Core

Ticket #22446: 22446-icon-placement-v7.diff

File 22446-icon-placement-v7.diff, 1.2 KB (added by lessbloat, 20 months ago)
  • wp-includes/css/media-views.css

     
    476476        margin: 0 10px 20px; 
    477477        color: #464646; 
    478478        list-style: none; 
     479        text-align: center; 
    479480 
    480481        -webkit-user-select: none; 
    481482        -moz-user-select:    none; 
     
    507508        cursor: pointer; 
    508509} 
    509510 
    510 .attachment .icon, 
     511.attachment .icon { 
     512        margin: 0 auto; 
     513        overflow: hidden; 
     514        padding-top: 20%; 
     515} 
     516 
    511517.attachment .thumbnail { 
    512518        display: block; 
    513519        position: absolute; 
     
    519525        max-height: 100%; 
    520526} 
    521527 
    522 /* Vertically center the icons. */ 
    523 .attachment .icon { 
    524         top: 50%; 
    525         left: 50%; 
    526 } 
    527  
    528528.attachment-preview .thumbnail:after { 
    529529        content: ''; 
    530530        display: block; 
     
    555555        transform:         translate( 50%, 50% ); 
    556556} 
    557557 
    558 .attachment .icon, 
    559558.attachment .thumbnail .centered img { 
    560559        -webkit-transform: translate( -50%, -50% ); 
    561560        -moz-transform:    translate( -50%, -50% ); 
     
    10301029        vertical-align: top; 
    10311030} 
    10321031 
     1032.media-selection .attachment img { 
     1033        width: 50%; 
     1034} 
     1035 
    10331036.attachment.selection.selected { 
    10341037        box-shadow: none; 
    10351038}