mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Media: set the image editor spinner on the smallest possible area.
When using spinners as background images, the re-painted area should be the smallest possible one. See similar performance issue in #31196, #33311, #33322, and #34951. Fixes #35296. Built from https://develop.svn.wordpress.org/trunk@36162 git-svn-id: http://core.svn.wordpress.org/trunk@36128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5a0f8ca847
commit
1b3ee7098a
@ -875,16 +875,30 @@ border color while dragging a file over the uploader drop area */
|
|||||||
.imgedit-wait {
|
.imgedit-wait {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
background: #fff url(../images/spinner.gif) no-repeat center;
|
bottom: 0;
|
||||||
-webkit-background-size: 20px 20px;
|
width: 100%;
|
||||||
background-size: 20px 20px;
|
background: #fff;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
filter: alpha(opacity=70);
|
filter: alpha(opacity=70);
|
||||||
width: 100%;
|
|
||||||
height: 500px;
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.imgedit-wait:before {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
position: absolute;
|
||||||
|
right: 50%;
|
||||||
|
top: 50%;
|
||||||
|
margin: -10px -10px 0 0;
|
||||||
|
background: transparent url(../images/spinner.gif) no-repeat center;
|
||||||
|
-webkit-background-size: 20px 20px;
|
||||||
|
background-size: 20px 20px;
|
||||||
|
-webkit-transform: translateZ(0);
|
||||||
|
transform: translateZ(0);
|
||||||
|
}
|
||||||
|
|
||||||
.no-float {
|
.no-float {
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
@ -1093,7 +1107,7 @@ audio, video {
|
|||||||
@media print,
|
@media print,
|
||||||
(-webkit-min-device-pixel-ratio: 1.25),
|
(-webkit-min-device-pixel-ratio: 1.25),
|
||||||
(min-resolution: 120dpi) {
|
(min-resolution: 120dpi) {
|
||||||
.imgedit-wait {
|
.imgedit-wait:before {
|
||||||
background-image: url(../images/spinner-2x.gif);
|
background-image: url(../images/spinner-2x.gif);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -875,16 +875,30 @@ border color while dragging a file over the uploader drop area */
|
|||||||
.imgedit-wait {
|
.imgedit-wait {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
background: #fff url(../images/spinner.gif) no-repeat center;
|
bottom: 0;
|
||||||
-webkit-background-size: 20px 20px;
|
width: 100%;
|
||||||
background-size: 20px 20px;
|
background: #fff;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
filter: alpha(opacity=70);
|
filter: alpha(opacity=70);
|
||||||
width: 100%;
|
|
||||||
height: 500px;
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.imgedit-wait:before {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
margin: -10px 0 0 -10px;
|
||||||
|
background: transparent url(../images/spinner.gif) no-repeat center;
|
||||||
|
-webkit-background-size: 20px 20px;
|
||||||
|
background-size: 20px 20px;
|
||||||
|
-webkit-transform: translateZ(0);
|
||||||
|
transform: translateZ(0);
|
||||||
|
}
|
||||||
|
|
||||||
.no-float {
|
.no-float {
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
@ -1093,7 +1107,7 @@ audio, video {
|
|||||||
@media print,
|
@media print,
|
||||||
(-webkit-min-device-pixel-ratio: 1.25),
|
(-webkit-min-device-pixel-ratio: 1.25),
|
||||||
(min-resolution: 120dpi) {
|
(min-resolution: 120dpi) {
|
||||||
.imgedit-wait {
|
.imgedit-wait:before {
|
||||||
background-image: url(../images/spinner-2x.gif);
|
background-image: url(../images/spinner-2x.gif);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
wp-admin/css/wp-admin-rtl.min.css
vendored
2
wp-admin/css/wp-admin-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/css/wp-admin.min.css
vendored
2
wp-admin/css/wp-admin.min.css
vendored
File diff suppressed because one or more lines are too long
@ -56,7 +56,7 @@ var imageEdit = window.imageEdit = {
|
|||||||
var wait = $('#imgedit-wait-' + postid);
|
var wait = $('#imgedit-wait-' + postid);
|
||||||
|
|
||||||
if ( toggle ) {
|
if ( toggle ) {
|
||||||
wait.height( $('#imgedit-panel-' + postid).height() ).fadeIn('fast');
|
wait.fadeIn( 'fast' );
|
||||||
} else {
|
} else {
|
||||||
wait.fadeOut('fast');
|
wait.fadeOut('fast');
|
||||||
}
|
}
|
||||||
|
2
wp-admin/js/image-edit.min.js
vendored
2
wp-admin/js/image-edit.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1721,13 +1721,6 @@
|
|||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal .imgedit-wait {
|
|
||||||
height: auto !important;
|
|
||||||
left: 0;
|
|
||||||
bottom: 0;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal .imgedit-wrap .imgedit-panel-content {
|
.media-modal .imgedit-wrap .imgedit-panel-content {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
2
wp-includes/css/media-views-rtl.min.css
vendored
2
wp-includes/css/media-views-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1721,13 +1721,6 @@
|
|||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal .imgedit-wait {
|
|
||||||
height: auto !important;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal .imgedit-wrap .imgedit-panel-content {
|
.media-modal .imgedit-wrap .imgedit-panel-content {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
2
wp-includes/css/media-views.min.css
vendored
2
wp-includes/css/media-views.min.css
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-36160';
|
$wp_version = '4.5-alpha-36162';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
Loading…
Reference in New Issue
Block a user