Media: Improve the preview of transparent images in Edit Image modal by using CSS3 to show a checkered background.

Props powerzilly, stevepuddick.
Fixes #41966. See #41948.

git-svn-id: https://develop.svn.wordpress.org/trunk@41742 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-10-04 18:34:44 +00:00
parent bd6ee706d0
commit 5c928c9c0e

View File

@ -992,6 +992,12 @@ border color while dragging a file over the uploader drop area */
position: relative; position: relative;
} }
.imgedit-crop-wrap img {
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;
}
.imgedit-crop { .imgedit-crop {
margin: 0 8px 0 0; margin: 0 8px 0 0;
} }