mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Improve attachment detailed preview styling. see #21390.
git-svn-id: http://core.svn.wordpress.org/trunk@22325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c0bc7a7903
commit
01f3ca5a6c
@ -566,18 +566,33 @@
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-details-preview,
|
.attachment-details-preview {
|
||||||
.attachment-details-preview .thumbnail {
|
|
||||||
width: auto;
|
width: auto;
|
||||||
height: auto;
|
height: auto;
|
||||||
float: left;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-details-preview .thumbnail img {
|
.attachment-details-preview .thumbnail {
|
||||||
max-width: 120px;
|
width: 100%;
|
||||||
max-height: 120px;
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attachment-details-preview .thumbnail:after {
|
||||||
|
content: '';
|
||||||
display: block;
|
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;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user