Revisions UI update:

* Style status loading as a regular update message like on the other screens
 * Move compare two checkbox to diff header to avoid an overlap on long post titles
 * Restore color shades for the scope of changes visualisation 
 * Show tooltips while moving the slider handle
 * Diff header styling
 * Move color declarations to classic/fresh stylesheets
 * Sync admin color stylesheets

props jrbeilke for initial patch. see #23935.

git-svn-id: http://core.svn.wordpress.org/trunk@24119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2013-04-28 10:56:57 +00:00
parent d1966150dc
commit 45ccae1092
5 changed files with 145 additions and 87 deletions

View File

@ -164,6 +164,7 @@ textarea.disabled {
color: #fff; color: #fff;
} }
#diff-header,
.post-format-options, .post-format-options,
.widget .widget-top, .widget .widget-top,
.postbox h3, .postbox h3,
@ -1477,12 +1478,17 @@ table.diff .diff-addedline ins {
background-color: #afa; background-color: #afa;
} }
.diff-header { #diff-header {
background-color: #f7f7f7; border: 1px solid #d1e5ee;
}
#diff-slider .ui-slider-tooltip {
border-color: #d1e5ee;
background-color: #fff;
} }
#diff-title-to strong { #diff-title-to strong {
color: #0080aa; color: #08a;
} }
.revision-tick.completed-false { .revision-tick.completed-false {
@ -1492,10 +1498,30 @@ table.diff .diff-addedline ins {
background-size: 1px 10px; background-size: 1px 10px;
} }
.revision-tick.completed-true { .revision-tick.completed-false {
background-image: none;
}
.revision-tick.scope-of-changes-vsmall {
background-color: #d1e5ee; background-color: #d1e5ee;
} }
.revision-tick.scope-of-changes-small {
background-color: #b4d5e3;
}
.revision-tick.scope-of-changes-med {
background-color: #98c5d9;
}
.revision-tick.scope-of-changes-large {
background-color: #7bb4ce;
}
.revision-tick.scope-of-changes-vlarge {
background-color: #5ea4c4;
}
.diff-label { .diff-label {
color: #666; color: #666;
} }
@ -1507,28 +1533,30 @@ table.diff .diff-addedline ins {
} }
.wp-slider .ui-slider-handle { .wp-slider .ui-slider-handle {
border-color: #acd; color: #333;
background: #f4f9fc; border-color: none;
background-image: -webkit-gradient(linear, left bottom, left top, from(#f4f9fc), to(#fff)); }
background-image: -webkit-linear-gradient(bottom, #f4f9fc, #fff);
background-image: -moz-linear-gradient(bottom, #f4f9fc, #fff); .wp-slider .ui-slider-handle.left-handle {
background-image: -o-linear-gradient(bottom, #f4f9fc, #fff); background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAA3NCSVQICAjb4U/gAAABAlBMVEXR2uHM1dzCzNW4ydOzxtSxw9Gqwc+bs7+Ss8SVscaZrLqQq7yNrMCKqr+EqsGDqb6GpruCpbl8pL15o7t1n7hwnLVika1djq5giqJXiqlYiqNJgp9ieYlDfqA/epw3dpk7dpg2dpo3dZo6dZc4dJY4dJg3cZY2bpE1bosxaIYxZIMrYX0tXnwtXHYsWHEnVW0mTmglT2cjTGIhRVsfQlYaN0kYM0QULDgTKTYRJzQTJzINISoLHCYNGyYKGCEIFxwJEhcJEhsHEhQDDAkHCg8EBwwCBwoEBAQBAwIBAQEBAQMAAgEBAAAAAAQAAQMBAAIAAAICAAEBAQAAAQAAAAD///+62qV+AAAAVnRSTlP/////////////////////////////////////////////////////////////////////////////////////////////////////////////////AEpNbNkAAAAJcEhZcwAACusAAArrAYKLDVoAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy85LzEzrdD8jAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAACbSURBVBiVVcvVDoNQEEXRqbu781B3d/dQQknh/P+vtBQKt/tpsnKGEOW4klkQFFvIsqwYzUJUvCts1wJl9gIruxT5hpLEyMBLKG+Z0ToJgrPLTDqOjyCxNN7mcahiaz50uDWsX0Fk+tKahKGJpX55qp1qpAsCY0lt5MdPUD2KoniowBRXn+f5Xp4RZDfCKg1W0D637P/iznn06w0M+083NZW9ZwAAAABJRU5ErkJggg==);
background-image: linear-gradient(to top, #f4f9fc, #fff); }
.wp-slider .ui-slider-handle.ui-state-active.left-handle {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAA3NCSVQICAjb4U/gAAAAzFBMVEXZ5ejU4eXM3ODG2NzE1tvB1Nq90deux86sxs2qxcynwsqlwcmjwMihvseevMWdvMSbusOXuMGTtb6IrbiHrLeCqbSBqLN/p7J3oa11oKxzn6tvnKhrmaZqmKVpmKVol6RllaJhk6Bej51djptaiZZZiJVYhpNWg5BUf4xSfYlRfIhPeYRMdYBKcXxFaXNDZnA+X2g9XmY8XGU4VV43VFw2U1s0UFgyTVQxS1IwSVAuR00sREosQ0orQkgqQEYpPkQoPkMoPUMoPUL///8pY4MvAAAARHRSTlP/////////////////////////////////////////////////////////////////////////////////////////AHHSjxIAAAAJcEhZcwAACusAAArrAYKLDVoAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy85LzEzrdD8jAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAACUSURBVBiVVctXEoJQEETRMaIo5qwF5hwxYOY9ev97EiQ43q+pUz2EYk9n5UElU0rpRO016toO79WhxlVysWqkroRgsswSjAsbnasgpGdsMk25gooZvR3K8CQxCuU9jH8FhZ3022rwJTZ4CK9nnwJBbiO8yVpFKDButm1bOn6iLFyZt5igeZLHOrhgfJ8k/yXTVoLrAxo1P5iCdUg7AAAAAElFTkSuQmCC);
}
.wp-slider .ui-slider-handle {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAA3NCSVQICAjb4U/gAAAA8FBMVEU2dZipwNBJl8VGmcX///+EpLlBgqpymrNFjru3ydNWiKs6eZzY4uuRrL08faPL3OZBjLSBqsCTssRHlMJEf59cj657o7xKl8OEqsE9gag2dJtEkb+ct8iZs8BHmMePq8BejKZAiK5llK5FjrlJl8c6dZdGl8avxdBJlcZ4nbc6ep6XrbpKgZ+Lqr5KmcdIkbqsws1Gk8E+f6c4dptaiadFirRKl8V8pblImcNIl8eGpruVscZCh7BMlsdIlcFImchEkbs9eJpCjbdGjbk8fJ84dp02dpo8gatMlsM2dps8faVAg61Ej71Ek75IksFIlcOaLCw7AAAAUHRSTlP/////AP///////////////////////////////////////////////////////////////////////////////////////////////////xB6m5UAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy85LzEzrdD8jAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAACaSURBVBiVVcxZD8FAGIXhjxzUVktQgqKmo7ZYhkgsiS1tQuj//zeomo736uS5OFSo2W6UXc/R5hxXW5foxDlXqUKZx0GFZpXynuM4kXhjgjgyJkGzQIjpvi9Fx1uQ0iQUh4GkR/Ini0CQ2IfQ24YC4X8T+Mn0zj8lO1IgnqZpzlxE0m4YhrFsKYJVn126UGV+W1wHf4LdpByuF0goFKI7tv/dAAAAAElFTkSuQmCC);
} }
.wp-slider .ui-slider-handle.ui-state-hover, .wp-slider .ui-slider-handle.ui-state-hover,
.wp-slider .ui-slider-handle.ui-state-focus { .wp-slider .ui-slider-handle.ui-state-focus {
border-color: #79afca; border-color: none;
outline: none;
} }
.wp-slider .ui-slider-handle.ui-state-active { .wp-slider .ui-slider-handle.ui-state-active {
border-color: #79afca; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAA3NCSVQICAjb4U/gAAAA51BMVEUgZpDkzc0yd6f///8mcqFJm8cjbZZzr80mg78lh8BDk8UngLl+s9AmfKk4hrGeweBaoMhNlMORwt4nd6Zdm8BAjMEnf7RYmsMkb50mhsFWlsYhZ5ImhbwocZg0f61Lk8E9i7twqNBgo8VSmMUofLBcm8o3faUpfK8mh8Aia5MgZpFMmcgpeapDmcJjo8sliMEmh70nhLkkcKAqgLF2sc8sc5ojbZsngrMkh8EnfKw1eaUjbpkkapImeKQgaJAohb0mh8MmhcMng7kkcKEpf68iZ48haJMmhb8kicEmc6MibJkia5UnhLsw1mWvAAAATXRSTlP/AP8A/////////////////////////////////////////////////////////////////////////////////////////////////9/iR18AAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy85LzEzrdD8jAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAACaSURBVBiVVc15D8FAEIfh+Ymj6761LIrSiCNVVyjbRGgifP/PQ6q22/evyZPJDNXzD6G0qNDq5PtO3DJDFyfRpk+po2Eo0h5Qx9U0LRa3SejdlR2rDMLI41yKh6/AtOSzUiuU4kvemSMUDBsRXGuRIHj/CvCXyTNcSXelQBQYY1uBWMY651xfK4KzbdgzqJI73LK7hGC6r0bTB5apIhqIH/YIAAAAAElFTkSuQmCC);
background: #eff8ff;
background-image: -webkit-gradient(linear, left bottom, left top, from(#fff), to(#f4f9fc));
background-image: -webkit-linear-gradient(bottom, #fff, #f4f9fc);
background-image: -moz-linear-gradient(bottom, #fff, #f4f9fc);
background-image: -o-linear-gradient(bottom, #fff, #f4f9fc);
background-image: linear-gradient(to top, #fff, #f4f9fc);
} }
/* edit image */ /* edit image */

View File

@ -164,6 +164,7 @@ textarea.disabled {
color: #fff; color: #fff;
} }
#diff-header,
.post-format-options, .post-format-options,
.widget .widget-top, .widget .widget-top,
.postbox h3, .postbox h3,
@ -1371,8 +1372,17 @@ table.diff .diff-addedline ins {
background-color: #afa; background-color: #afa;
} }
#diff-header {
border: 1px solid #dfdfdf;
}
#diff-slider .ui-slider-tooltip {
border-color: #d7d7d7;
background-color: #fff;
}
#diff-title-to strong { #diff-title-to strong {
color: #0080aa; color: #08a;
} }
.diff-header { .diff-header {
@ -1381,15 +1391,35 @@ table.diff .diff-addedline ins {
.revision-tick.completed-false { .revision-tick.completed-false {
background-color: #99c; background-color: #99c;
background: url(../images/wpspin_light.gif) no-repeat; background-image: url(../images/wpspin_light.gif) no-repeat;
background-position: middle; background-position: middle;
background-size: 1px 10px; background-size: 1px 10px;
} }
.revision-tick.completed-true { .revision-tick.completed-false {
background-image: none;
}
.revision-tick.scope-of-changes-vsmall {
background-color: #d7d7d7; background-color: #d7d7d7;
} }
.revision-tick.scope-of-changes-small {
background-color: #c3c3c3;
}
.revision-tick.scope-of-changes-med {
background-color: #b0b0b0;
}
.revision-tick.scope-of-changes-large {
background-color: #9c9c9c;
}
.revision-tick.scope-of-changes-vlarge {
background-color: #898989;
}
.diff-label { .diff-label {
color: #666; color: #666;
} }
@ -1407,19 +1437,19 @@ body .ui-tooltip {
.wp-slider .ui-slider-handle { .wp-slider .ui-slider-handle {
border-color: none; border-color: none;
color: #333;
} }
.wp-slider .ui-slider-handle.left-handle { .wp-slider .ui-slider-handle.left-handle {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAA3NCSVQICAjb4U/gAAABAlBMVEXR2uHM1dzCzNW4ydOzxtSxw9Gqwc+bs7+Ss8SVscaZrLqQq7yNrMCKqr+EqsGDqb6GpruCpbl8pL15o7t1n7hwnLVika1djq5giqJXiqlYiqNJgp9ieYlDfqA/epw3dpk7dpg2dpo3dZo6dZc4dJY4dJg3cZY2bpE1bosxaIYxZIMrYX0tXnwtXHYsWHEnVW0mTmglT2cjTGIhRVsfQlYaN0kYM0QULDgTKTYRJzQTJzINISoLHCYNGyYKGCEIFxwJEhcJEhsHEhQDDAkHCg8EBwwCBwoEBAQBAwIBAQEBAQMAAgEBAAAAAAQAAQMBAAIAAAICAAEBAQAAAQAAAAD///+62qV+AAAAVnRSTlP/////////////////////////////////////////////////////////////////////////////////////////////////////////////////AEpNbNkAAAAJcEhZcwAACusAAArrAYKLDVoAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy85LzEzrdD8jAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAACbSURBVBiVVcvVDoNQEEXRqbu781B3d/dQQknh/P+vtBQKt/tpsnKGEOW4klkQFFvIsqwYzUJUvCts1wJl9gIruxT5hpLEyMBLKG+Z0ToJgrPLTDqOjyCxNN7mcahiaz50uDWsX0Fk+tKahKGJpX55qp1qpAsCY0lt5MdPUD2KoniowBRXn+f5Xp4RZDfCKg1W0D637P/iznn06w0M+083NZW9ZwAAAABJRU5ErkJggg==); background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAA3NCSVQICAjb4U/gAAABAlBMVEXR2uHM1dzCzNW4ydOzxtSxw9Gqwc+bs7+Ss8SVscaZrLqQq7yNrMCKqr+EqsGDqb6GpruCpbl8pL15o7t1n7hwnLVika1djq5giqJXiqlYiqNJgp9ieYlDfqA/epw3dpk7dpg2dpo3dZo6dZc4dJY4dJg3cZY2bpE1bosxaIYxZIMrYX0tXnwtXHYsWHEnVW0mTmglT2cjTGIhRVsfQlYaN0kYM0QULDgTKTYRJzQTJzINISoLHCYNGyYKGCEIFxwJEhcJEhsHEhQDDAkHCg8EBwwCBwoEBAQBAwIBAQEBAQMAAgEBAAAAAAQAAQMBAAIAAAICAAEBAQAAAQAAAAD///+62qV+AAAAVnRSTlP/////////////////////////////////////////////////////////////////////////////////////////////////////////////////AEpNbNkAAAAJcEhZcwAACusAAArrAYKLDVoAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy85LzEzrdD8jAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAACbSURBVBiVVcvVDoNQEEXRqbu781B3d/dQQknh/P+vtBQKt/tpsnKGEOW4klkQFFvIsqwYzUJUvCts1wJl9gIruxT5hpLEyMBLKG+Z0ToJgrPLTDqOjyCxNN7mcahiaz50uDWsX0Fk+tKahKGJpX55qp1qpAsCY0lt5MdPUD2KoniowBRXn+f5Xp4RZDfCKg1W0D637P/iznn06w0M+083NZW9ZwAAAABJRU5ErkJggg==);
} }
.wp-slider .ui-slider-handle.ui-state-active.left-handle { .wp-slider .ui-slider-handle.ui-state-active.left-handle {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAA3NCSVQICAjb4U/gAAAAzFBMVEXZ5ejU4eXM3ODG2NzE1tvB1Nq90deux86sxs2qxcynwsqlwcmjwMihvseevMWdvMSbusOXuMGTtb6IrbiHrLeCqbSBqLN/p7J3oa11oKxzn6tvnKhrmaZqmKVpmKVol6RllaJhk6Bej51djptaiZZZiJVYhpNWg5BUf4xSfYlRfIhPeYRMdYBKcXxFaXNDZnA+X2g9XmY8XGU4VV43VFw2U1s0UFgyTVQxS1IwSVAuR00sREosQ0orQkgqQEYpPkQoPkMoPUMoPUL///8pY4MvAAAARHRSTlP/////////////////////////////////////////////////////////////////////////////////////////AHHSjxIAAAAJcEhZcwAACusAAArrAYKLDVoAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy85LzEzrdD8jAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAACUSURBVBiVVctXEoJQEETRMaIo5qwF5hwxYOY9ev97EiQ43q+pUz2EYk9n5UElU0rpRO016toO79WhxlVysWqkroRgsswSjAsbnasgpGdsMk25gooZvR3K8CQxCuU9jH8FhZ3022rwJTZ4CK9nnwJBbiO8yVpFKDButm1bOn6iLFyZt5igeZLHOrhgfJ8k/yXTVoLrAxo1P5iCdUg7AAAAAElFTkSuQmCC); background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAA3NCSVQICAjb4U/gAAAAzFBMVEXZ5ejU4eXM3ODG2NzE1tvB1Nq90deux86sxs2qxcynwsqlwcmjwMihvseevMWdvMSbusOXuMGTtb6IrbiHrLeCqbSBqLN/p7J3oa11oKxzn6tvnKhrmaZqmKVpmKVol6RllaJhk6Bej51djptaiZZZiJVYhpNWg5BUf4xSfYlRfIhPeYRMdYBKcXxFaXNDZnA+X2g9XmY8XGU4VV43VFw2U1s0UFgyTVQxS1IwSVAuR00sREosQ0orQkgqQEYpPkQoPkMoPUMoPUL///8pY4MvAAAARHRSTlP/////////////////////////////////////////////////////////////////////////////////////////AHHSjxIAAAAJcEhZcwAACusAAArrAYKLDVoAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy85LzEzrdD8jAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAACUSURBVBiVVctXEoJQEETRMaIo5qwF5hwxYOY9ev97EiQ43q+pUz2EYk9n5UElU0rpRO016toO79WhxlVysWqkroRgsswSjAsbnasgpGdsMk25gooZvR3K8CQxCuU9jH8FhZ3022rwJTZ4CK9nnwJBbiO8yVpFKDButm1bOn6iLFyZt5igeZLHOrhgfJ8k/yXTVoLrAxo1P5iCdUg7AAAAAElFTkSuQmCC);
} }
.wp-slider .ui-slider-handle { .wp-slider .ui-slider-handle {
/* Slider drag Triangle CSS */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAA3NCSVQICAjb4U/gAAAA8FBMVEU2dZipwNBJl8VGmcX///+EpLlBgqpymrNFjru3ydNWiKs6eZzY4uuRrL08faPL3OZBjLSBqsCTssRHlMJEf59cj657o7xKl8OEqsE9gag2dJtEkb+ct8iZs8BHmMePq8BejKZAiK5llK5FjrlJl8c6dZdGl8avxdBJlcZ4nbc6ep6XrbpKgZ+Lqr5KmcdIkbqsws1Gk8E+f6c4dptaiadFirRKl8V8pblImcNIl8eGpruVscZCh7BMlsdIlcFImchEkbs9eJpCjbdGjbk8fJ84dp02dpo8gatMlsM2dps8faVAg61Ej71Ek75IksFIlcOaLCw7AAAAUHRSTlP/////AP///////////////////////////////////////////////////////////////////////////////////////////////////xB6m5UAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy85LzEzrdD8jAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAACaSURBVBiVVcxZD8FAGIXhjxzUVktQgqKmo7ZYhkgsiS1tQuj//zeomo736uS5OFSo2W6UXc/R5hxXW5foxDlXqUKZx0GFZpXynuM4kXhjgjgyJkGzQIjpvi9Fx1uQ0iQUh4GkR/Ini0CQ2IfQ24YC4X8T+Mn0zj8lO1IgnqZpzlxE0m4YhrFsKYJVn126UGV+W1wHf4LdpByuF0goFKI7tv/dAAAAAElFTkSuQmCC);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAA3NCSVQICAjb4U/gAAAA8FBMVEU2dZipwNBJl8VGmcX///+EpLlBgqpymrNFjru3ydNWiKs6eZzY4uuRrL08faPL3OZBjLSBqsCTssRHlMJEf59cj657o7xKl8OEqsE9gag2dJtEkb+ct8iZs8BHmMePq8BejKZAiK5llK5FjrlJl8c6dZdGl8avxdBJlcZ4nbc6ep6XrbpKgZ+Lqr5KmcdIkbqsws1Gk8E+f6c4dptaiadFirRKl8V8pblImcNIl8eGpruVscZCh7BMlsdIlcFImchEkbs9eJpCjbdGjbk8fJ84dp02dpo8gatMlsM2dps8faVAg61Ej71Ek75IksFIlcOaLCw7AAAAUHRSTlP/////AP///////////////////////////////////////////////////////////////////////////////////////////////////xB6m5UAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy85LzEzrdD8jAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAACaSURBVBiVVcxZD8FAGIXhjxzUVktQgqKmo7ZYhkgsiS1tQuj//zeomo736uS5OFSo2W6UXc/R5hxXW5foxDlXqUKZx0GFZpXynuM4kXhjgjgyJkGzQIjpvi9Fx1uQ0iQUh4GkR/Ini0CQ2IfQ24YC4X8T+Mn0zj8lO1IgnqZpzlxE0m4YhrFsKYJVn126UGV+W1wHf4LdpByuF0goFKI7tv/dAAAAAElFTkSuQmCC);
} }
.wp-slider .ui-slider-handle.ui-state-hover, .wp-slider .ui-slider-handle.ui-state-hover,

View File

@ -3548,7 +3548,7 @@ table.diff col.content.diffsplit {
} }
table.diff col.diffsplit.middle { table.diff col.diffsplit.middle {
width: 4%; width: auto;
} }
table.diff col.ltype { table.diff col.ltype {
@ -3571,7 +3571,7 @@ table.diff .diff-addedline ins {
text-decoration: none; text-decoration: none;
} }
#revision-diff-container { #revisions-diff {
position: relative; position: relative;
} }
@ -3579,24 +3579,20 @@ table.diff .diff-addedline ins {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
padding-top: 15px; padding: 9px 9px 0 0;
} }
#loading-status { #loading-status {
position: absolute;
top: 0;
right: 170px;
line-height: 30px;
display: none; display: none;
margin: 9px 0 0;
} }
#loading-status .spinner { #loading-status .spinner {
float: left; display: inline-block;
float: none;
margin: -4px 0;
} }
#revision-interact { #revision-interact {
border-bottom: 1px solid #dfdfdf;
padding: 20px 0; padding: 20px 0;
} }
@ -3613,7 +3609,7 @@ table.diff .diff-addedline ins {
float: left; float: left;
} }
#diff-slider{ #diff-slider {
width: 70%; width: 70%;
margin: 0 auto; margin: 0 auto;
} }
@ -3622,6 +3618,19 @@ table.diff .diff-addedline ins {
width: 95%; width: 95%;
} }
#diff-slider .ui-slider-tooltip {
display: none;
position: absolute;
bottom: 20px;
margin-left: -4em;
}
#diff-slider .ui-state-active .ui-slider-tooltip,
#diff-slider .ui-state-focus .ui-slider-tooltip,
#diff-slider .ui-state-hover .ui-slider-tooltip {
display: block;
}
#diff-title-to strong { #diff-title-to strong {
display: none; display: none;
} }
@ -3647,6 +3656,11 @@ table.diff .diff-addedline ins {
font-size: 13px; font-size: 13px;
} }
#diff-header {
-webkit-border-radius: 3px;
border-radius: 3px;
}
.diff-header { .diff-header {
height: 35px; height: 35px;
line-height: 35px; line-height: 35px;
@ -3688,8 +3702,6 @@ table.diff .diff-addedline ins {
.comparing-two-revisions #diff-title-from, .comparing-two-revisions #diff-title-from,
.left-model-loading #loading-status, .left-model-loading #loading-status,
.right-model-loading #loading-status, .right-model-loading #loading-status,
.left-model-loading #loading-status .spinner,
.right-model-loading #loading-status .spinner,
.comparing-two-revisions #diff-header-from { .comparing-two-revisions #diff-header-from {
display: block; display: block;
} }
@ -3705,31 +3717,26 @@ table.diff .diff-addedline ins {
.revision-tick.scope-of-changes-vsmall { .revision-tick.scope-of-changes-vsmall {
width: 1px; width: 1px;
background-color: #aaa;
} }
.revision-tick.scope-of-changes-small { .revision-tick.scope-of-changes-small {
width: 2px; width: 2px;
background-color: #aaa;
margin-left: -1px; margin-left: -1px;
} }
.revision-tick.scope-of-changes-med { .revision-tick.scope-of-changes-med {
width: 3px; width: 3px;
margin-left: -2px; margin-left: -2px;
background-color: #666;
} }
.revision-tick.scope-of-changes-large { .revision-tick.scope-of-changes-large {
width: 4px; width: 4px;
margin-left: -3px; margin-left: -3px;
background-color: #333;
} }
.revision-tick.scope-of-changes-vlarge { .revision-tick.scope-of-changes-vlarge {
margin-left: -3px; margin-left: -3px;
width: 4px; width: 4px;
background-color: #111;
left: 1; left: 1;
} }
@ -3747,7 +3754,8 @@ table.diff .diff-addedline ins {
float: none; float: none;
} }
.ui-tooltip-content img { .ui-tooltip-content img,
.ui-slider-tooltip img {
float: left; float: left;
margin-right: 5px; margin-right: 5px;
} }
@ -3755,7 +3763,8 @@ table.diff .diff-addedline ins {
/* jQuery UI Tooltip 1.10.1 */ /* jQuery UI Tooltip 1.10.1 */
.ui-tooltip { .ui-tooltip,
.ui-slider-tooltip {
padding: 8px; padding: 8px;
position: absolute; position: absolute;
z-index: 9999; z-index: 9999;
@ -3763,15 +3772,19 @@ table.diff .diff-addedline ins {
min-width: 130px; min-width: 130px;
} }
body .ui-tooltip { body .ui-tooltip,
body .ui-slider-tooltip {
border-width: 1px; border-width: 1px;
} }
.ui-tooltip, .arrow:after { .ui-tooltip,
.ui-slider-tooltip,
.arrow:after {
border: 1px solid #d7d7d7; border: 1px solid #d7d7d7;
} }
.ui-tooltip { .ui-tooltip,
.ui-slider-tooltip {
padding: 5px 10px; padding: 5px 10px;
} }

View File

@ -397,28 +397,7 @@ window.wp = window.wp || {};
}, },
addTooltip: function( handle, message ) { addTooltip: function( handle, message ) {
handle.attr( 'title', '' ).tooltip({ handle.find( '.ui-slider-tooltip' ).html( message );
track: false,
position: {
my: "left-30 top-66",
at: "top left",
using: function( position, feedback ) {
$( this ).css( position );
$( "<div>" )
.addClass( "arrow" )
.addClass( feedback.vertical )
.addClass( feedback.horizontal )
.appendTo( $( this ) );
}
},
show: false,
hide: false,
content: function() {
return message;
}
} );
}, },
width: function() { width: function() {
@ -426,12 +405,16 @@ window.wp = window.wp || {};
}, },
setWidth: function( width ) { setWidth: function( width ) {
return $( '#diff-slider' ).width( width ); $( '#diff-slider' ).width( width );
}, },
refresh: function( options, slide ) { refresh: function( options, slide ) {
$( '#diff-slider' ).slider( 'option', options ); $( '#diff-slider' ).slider( 'option', options );
// reset all of the slider tooltips during a refresh, but not on prev/next button actions
if ( ! slide )
$( 'a.ui-slider-handle' ).html( '<span class="ui-slider-tooltip ui-widget-content ui-corner-all"></span>' );
// Triggers the slide event // Triggers the slide event
if ( slide ) if ( slide )
$( '#diff-slider' ).trigger( 'slide' ); $( '#diff-slider' ).trigger( 'slide' );

View File

@ -99,12 +99,12 @@ require_once( './admin-header.php' );
<div class="wrap"> <div class="wrap">
<?php screen_icon(); ?> <?php screen_icon(); ?>
<div id="revision-diff-container" class="current-version right-model-loading"> <div id="revision-diff-container" class="current-version right-model-loading">
<div id="loading-status" class="updated message">
<span class="spinner" ></span> <?php _e( 'Calculating revision diffs' ); ?>
</div>
<h2 class="long-header"><?php echo $h2; ?></h2> <h2 class="long-header"><?php echo $h2; ?></h2>
<div id="loading-status" class="updated message">
<p><span class="spinner" ></span> <?php _e( 'Calculating revision diffs' ); ?></p>
</div>
<div class="diff-slider-ticks-wrapper"> <div class="diff-slider-ticks-wrapper">
<div id="diff-slider-ticks"></div> <div id="diff-slider-ticks"></div>
</div> </div>
@ -123,22 +123,26 @@ require_once( './admin-header.php' );
</label> </label>
</div> </div>
<div id="diff-header-from" class="diff-header"> <div id="diff-header">
<div id="diff-title-from-current-version" class="diff-title"> <div id="diff-header-from" class="diff-header">
<?php printf( '<strong>%1$s</strong> %2$s.' , __( 'From:' ), __( 'the current version' ) ); ?> <div id="diff-title-from-current-version" class="diff-title">
<?php printf( '<strong>%1$s</strong> %2$s.' , __( 'From:' ), __( 'the current version' ) ); ?>
</div>
<div id="diff-title-from" class="diff-title">
<strong><?php _e( 'From:' ); ?></strong> {{{ data.titleFrom }}}
</div>
</div> </div>
<div id="diff-title-from" class="diff-title"> <div id="diff-header-to" class="diff-header">
<strong><?php _e( 'From:' ); ?></strong> {{{ data.titleFrom }}} <div id="diff-title-to" class="diff-title">
<strong><?php _e( 'To:' ); ?></strong> {{{ data.titleTo }}}
</div>
<input type="button" id="restore-revision" class="button button-primary" data-restore-link="{{{ data.restoreLink }}}" value="<?php esc_attr_e( 'Restore This Revision' )?>" />
</div> </div>
</div> </div>
<div id="diff-header-to" class="diff-header">
<div id="diff-title-to" class="diff-title">
<strong><?php _e( 'To:' ); ?></strong> {{{ data.titleTo }}}
</div>
<input type="button" id="restore-revision" class="button button-primary" data-restore-link="{{{ data.restoreLink }}}" value="<?php esc_attr_e( 'Restore This Revision' )?>" />
</div> </div>
<div id="diff-table">{{{ data.diff }}}</div> <div id="diff-table">{{{ data.diff }}}</div>