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

Props powerzilly, stevepuddick.
Fixes #41948.
Built from https://develop.svn.wordpress.org/trunk@41569


git-svn-id: http://core.svn.wordpress.org/trunk@41402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-09-22 19:57:47 +00:00
parent 7c4cdbff27
commit b07cffe99a
5 changed files with 9 additions and 3 deletions

View File

@ -746,6 +746,9 @@ border color while dragging a file over the uploader drop area */
max-width: 100%;
max-height: 90%;
max-height: calc( 100% - 42px ); /* leave space for actions underneath */
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: 100% 0, 10px 10px;
background-size: 20px 20px;
}
.edit-attachment-frame .attachment-media-view .attachment-actions {

File diff suppressed because one or more lines are too long

View File

@ -746,6 +746,9 @@ border color while dragging a file over the uploader drop area */
max-width: 100%;
max-height: 90%;
max-height: calc( 100% - 42px ); /* leave space for actions underneath */
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;
}
.edit-attachment-frame .attachment-media-view .attachment-actions {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41568';
$wp_version = '4.9-alpha-41569';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.