Media: Improve the preview of transparent images in Image widget by using CSS3 to show a checkered background.
Props bahia0019. Fixes #49237. git-svn-id: https://develop.svn.wordpress.org/trunk@47257 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d9c6c5eed9
commit
b364e2a072
|
@ -133,6 +133,9 @@
|
|||
.media-widget-control .media-widget-preview img {
|
||||
max-width: 100%;
|
||||
vertical-align: middle;
|
||||
background-image: linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4), linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4);
|
||||
background-position: 0 0, 10px 10px;
|
||||
background-size: 20px 20px;
|
||||
}
|
||||
.media-widget-control .media-widget-preview .wp-video-shortcode {
|
||||
background: #000;
|
||||
|
|
Loading…
Reference in New Issue