Improve attachment detailed preview styling. see #21390.

git-svn-id: https://develop.svn.wordpress.org/trunk@22325 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-10-29 18:16:12 +00:00
parent 3ca8808c3b
commit 82270d36ef

View File

@ -566,18 +566,33 @@
cursor: default;
}
.attachment-details-preview,
.attachment-details-preview .thumbnail {
.attachment-details-preview {
width: auto;
height: auto;
float: left;
position: relative;
}
.attachment-details-preview .thumbnail img {
max-width: 120px;
max-height: 120px;
.attachment-details-preview .thumbnail {
width: 100%;
height: auto;
}
.attachment-details-preview .thumbnail:after {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );
overflow: hidden;
}
.attachment-details-preview .thumbnail img {
display: block;
max-width: 100%;
max-height: 132px;
margin: 0 auto;
}