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. Built from https://develop.svn.wordpress.org/trunk@41742 git-svn-id: http://core.svn.wordpress.org/trunk@41576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fbd44ee554
commit
0f0ab0e8ef
|
@ -992,6 +992,12 @@ border color while dragging a file over the uploader drop area */
|
|||
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: 100% 0, 10px 10px;
|
||||
background-size: 20px 20px;
|
||||
}
|
||||
|
||||
.imgedit-crop {
|
||||
margin: 0 0 0 8px;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -992,6 +992,12 @@ border color while dragging a file over the uploader drop area */
|
|||
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 {
|
||||
margin: 0 8px 0 0;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-alpha-41741';
|
||||
$wp_version = '4.9-alpha-41742';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue