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

Props bahia0019.
Fixes #49237.
Built from https://develop.svn.wordpress.org/trunk@47257


git-svn-id: http://core.svn.wordpress.org/trunk@47057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-02-11 01:47:06 +00:00
parent 5d00e8f78b
commit 9614434049
5 changed files with 9 additions and 3 deletions

View File

@ -134,6 +134,9 @@
.media-widget-control .media-widget-preview img { .media-widget-control .media-widget-preview img {
max-width: 100%; max-width: 100%;
vertical-align: middle; 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: 100% 0, 10px 10px;
background-size: 20px 20px;
} }
.media-widget-control .media-widget-preview .wp-video-shortcode { .media-widget-control .media-widget-preview .wp-video-shortcode {
background: #000; background: #000;

File diff suppressed because one or more lines are too long

View File

@ -133,6 +133,9 @@
.media-widget-control .media-widget-preview img { .media-widget-control .media-widget-preview img {
max-width: 100%; max-width: 100%;
vertical-align: middle; 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 { .media-widget-control .media-widget-preview .wp-video-shortcode {
background: #000; background: #000;

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.4-alpha-47256'; $wp_version = '5.4-alpha-47257';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.