Revisions: CSS cleanup, see #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2013-07-05 22:15:37 +00:00
parent 71af3a2004
commit b95c432870
5 changed files with 7 additions and 228 deletions

View File

@ -1485,8 +1485,7 @@ table.diff .diff-addedline ins {
border: 1px solid #d1e5ee; border: 1px solid #d1e5ee;
} }
#diff-slider .ui-slider-tooltip, .diff-slider .ui-slider-tooltip {
#diff-slider-ticks .ui-slider-tooltip {
border-color: #d1e5ee; border-color: #d1e5ee;
background-color: #fff; background-color: #fff;
} }
@ -1495,45 +1494,6 @@ table.diff .diff-addedline ins {
color: #08a; color: #08a;
} }
.revision-tick.completed-false {
background-color: #99c;
background: url(../images/wpspin_light.gif) no-repeat;
background-position: middle;
background-size: 1px 10px;
}
.revision-tick.completed-false {
background-image: none;
}
.revision-tick.scope-of-changes-none {
background-color: #d1e5ee;
}
.revision-tick.scope-of-changes-vsmall {
background-color: #b4d5e3;
}
.revision-tick.scope-of-changes-small {
background-color: #98c5d9;
}
.revision-tick.scope-of-changes-med {
background-color: #7bb4ce;
}
.revision-tick.scope-of-changes-large {
background-color: #5ea4c4;
}
.revision-tick.scope-of-changes-vlarge {
background-color: #4493b7;
}
.diff-label {
color: #666;
}
/* jQuery UI Slider */ /* jQuery UI Slider */
.wp-slider.ui-slider { .wp-slider.ui-slider {
border-color: #d1e5ee; border-color: #d1e5ee;

View File

@ -1379,7 +1379,6 @@ table.diff .diff-addedline ins {
border: 1px solid #dfdfdf; border: 1px solid #dfdfdf;
} }
.ui-slider-tooltip,
.ui-slider-tooltip { .ui-slider-tooltip {
border-color: #d7d7d7; border-color: #d7d7d7;
background-color: #fff; background-color: #fff;
@ -1389,45 +1388,6 @@ table.diff .diff-addedline ins {
color: #08a; color: #08a;
} }
.revision-tick.completed-false {
background-color: #99c;
background-image: url(../images/wpspin_light.gif) no-repeat;
background-position: middle;
background-size: 1px 10px;
}
.revision-tick.completed-false {
background-image: none;
}
.revision-tick.scope-of-changes-none {
background-color: #d7d7d7;
}
.revision-tick.scope-of-changes-vsmall {
background-color: #c3c3c3;
}
.revision-tick.scope-of-changes-small {
background-color: #b0b0b0;
}
.revision-tick.scope-of-changes-med {
background-color: #9c9c9c;
}
.revision-tick.scope-of-changes-large {
background-color: #898989;
}
.revision-tick.scope-of-changes-vlarge {
background-color: #757575;
}
.diff-label {
color: #666;
}
/* jQuery UI Slider */ /* jQuery UI Slider */
.wp-slider.ui-slider { .wp-slider.ui-slider {
border-color: #d7d7d7; border-color: #d7d7d7;

View File

@ -954,22 +954,17 @@ th.sorted a span {
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
11.2 - Post Revisions 11.2 - Post Revisions
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
#diff-slider .ui-slider-tooltip,
#diff-slider-ticks .ui-slider-tooltip {
margin-left: 0;
margin-right: -78px;
}
.wp-slider .ui-slider-handle.left-handle:before, .wp-slider .ui-slider-handle.left-handle:before,
.wp-slider .ui-slider-handle.right-handle:before { .wp-slider .ui-slider-handle.right-handle:before {
height: 8px; height: 8px;
width: 7px; width: 7px;
} }
.wp-slider .ui-slider-handle.left-handle:before { .wp-slider .ui-slider-handle.left-handle:before {
background-position: -5px -10px; background-position: -5px -10px;
left: 6px; left: 6px;
} }
.wp-slider .ui-slider-handle.right-handle:before { .wp-slider .ui-slider-handle.right-handle:before {
background-position: -4px -29px; background-position: -4px -29px;
left: 6px; left: 6px;
@ -1030,12 +1025,6 @@ th.sorted a span {
margin-left: 5px; margin-left: 5px;
} }
#diff-slider .ui-slider-tooltip,
#diff-slider-ticks .ui-slider-tooltip {
margin-left: 0;
margin-right: -78px;
}
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
11.3 - Featured Images 11.3 - Featured Images
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/

View File

@ -3481,39 +3481,26 @@ td.plugin-title p {
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
11.2 - Post Revisions 11.2 - Post Revisions
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
.revisions .spinner {
float: none;
margin: 100px auto;
}
.revisions.loading .spinner {
display: block;
}
.revisions-control-frame, .revisions-control-frame,
.revisions-diff-frame { .revisions-diff-frame {
position: relative; position: relative;
} }
.revisions-controls { .revisions-controls {
height: 60px;
padding: 40px 0 20px; padding: 40px 0 20px;
border-bottom: none;
margin-bottom: 10px; margin-bottom: 10px;
} }
.comparing-two-revisions .revisions-controls {
height: 90px;
}
.revisions-meta { .revisions-meta {
margin-top: 15px; margin-top: 15px;
} }
.revision-toggle-compare-mode { .revision-toggle-compare-mode {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
} }
.comparing-two-revisions .revisions-previous, .comparing-two-revisions .revisions-previous,
.comparing-two-revisions .revisions-next { .comparing-two-revisions .revisions-next {
display: none; display: none;
@ -3574,34 +3561,9 @@ table.diff .diff-addedline ins {
text-decoration: none; text-decoration: none;
} }
#revisions-diff {
position: relative;
}
#loading-status {
display: none;
position: absolute;
top: 8px;
z-index: 1000;
}
#loading-status .spinner {
display: inline-block;
float: none;
margin: -4px 0;
}
#revision-interact {
padding: 20px 0;
}
.comparetwo #diff-slider {
width: 95%;
}
.revisions .ui-slider-tooltip { .revisions .ui-slider-tooltip {
position: absolute; position: absolute;
bottom: 86px; bottom: 105px;
margin-left: -70px; margin-left: -70px;
line-height: 28px; line-height: 28px;
} }
@ -3610,16 +3572,6 @@ table.diff .diff-addedline ins {
display: inline; display: inline;
} }
.comparing-two-revisions #diff-title-to strong {
display: inline;
}
.diff-label {
margin: 20px 0 5px;
padding-left: 3px;
font-size: 13px;
}
#diff-header { #diff-header {
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
@ -3653,94 +3605,15 @@ table.diff .diff-addedline ins {
margin-left: 10px; margin-left: 10px;
} }
#diff-table {
margin-top: 20px;
}
#diff-previous-revision,
#diff-next-revision,
#diff-header-from { #diff-header-from {
display: none; display: none;
} }
.comparing-two-revisions #diff-title-from, .comparing-two-revisions #diff-title-from,
.left-model-loading #loading-status,
.right-model-loading #loading-status,
.comparing-two-revisions #diff-header-from { .comparing-two-revisions #diff-header-from {
display: block; display: block;
} }
.comparing-two-revisions .revisions-tooltip div {
margin-bottom: 30px;
}
.diff-slider-ticks-wrapper {
margin: 0 auto;
text-align: left;
}
#diff-slider-ticks {
position: absolute;
z-index: 2;
margin-top: 20px;
}
.revision-tick {
width: 1px;
float: left;
margin: 1px 0 0 0;
height: .8em;
padding: 0;
margin-left: 0px;
cursor: pointer;
}
#diff-slider-ticks .revision-tick:first-child {
border-bottom-left-radius: 3px;
border-top-left-radius: 3px;
}
#diff-slider-ticks .revision-tick:last-child {
border-bottom-right-radius: 3px;
border-top-right-radius: 3px;
}
.revision-tick.scope-of-changes-none {
width: 1px;
}
.revision-tick.scope-of-changes-vsmall {
width: 2px;
}
.revision-tick.scope-of-changes-small {
width: 3px;
}
.revision-tick.scope-of-changes-med {
width: 4px;
}
.revision-tick.scope-of-changes-large {
width: 5px;
}
.revision-tick.scope-of-changes-vlarge {
width: 6px;
}
.diff-loading {
margin-top: 50px;
width: 100%;
height: 200px;
}
.diff-loading .spinner {
clear: both;
margin: 0 auto;
display: block;
float: none;
}
.ui-tooltip-content img, .ui-tooltip-content img,
.ui-slider-tooltip img { .ui-slider-tooltip img {
float: left; float: left;
@ -3785,7 +3658,7 @@ body .ui-slider-tooltip {
position: absolute; position: absolute;
left: 0; left: 0;
margin-left: -35px; margin-left: -35px;
bottom: 71px; bottom: 90px;
z-index: 10000; z-index: 10000;
} }

View File

@ -11,9 +11,6 @@ require_once('./admin.php');
require ABSPATH . 'wp-admin/includes/revision.php'; require ABSPATH . 'wp-admin/includes/revision.php';
// wp_get_revision_ui_diff( $post, $compare_from, $compare_to )
// wp_prepare_revisions_for_js( $post )
wp_reset_vars( array( 'revision', 'action' ) ); wp_reset_vars( array( 'revision', 'action' ) );
$revision_id = absint( $revision ); $revision_id = absint( $revision );