Make WordPress Core

Changeset 22325


Ignore:
Timestamp:
10/29/2012 06:16:12 PM (12 years ago)
Author:
koopersmith
Message:

Improve attachment detailed preview styling. see #21390.

File:
1 edited

Legend:

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

    r22324 r22325  
    567567}
    568568
    569 .attachment-details-preview,
    570 .attachment-details-preview .thumbnail {
     569.attachment-details-preview {
    571570    width: auto;
    572571    height: auto;
    573     float: left;
    574572    position: relative;
    575573}
    576574
     575.attachment-details-preview .thumbnail {
     576    width: 100%;
     577    height: auto;
     578}
     579
     580.attachment-details-preview .thumbnail:after {
     581    content: '';
     582    display: block;
     583    position: absolute;
     584    top: 0;
     585    left: 0;
     586    right: 0;
     587    bottom: 0;
     588    box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );
     589    overflow: hidden;
     590}
     591
    577592.attachment-details-preview .thumbnail img {
    578     max-width: 120px;
    579     max-height: 120px;
    580     display: block;
     593    display: block;
     594    max-width: 100%;
     595    max-height: 132px;
    581596    margin: 0 auto;
    582597}
Note: See TracChangeset for help on using the changeset viewer.