Ticket #23396: version-7.diff
File version-7.diff, 20.8 KB (added by , 12 years ago) |
---|
-
wp-includes/post-template.php
1301 1301 return false; 1302 1302 1303 1303 /* translators: revision date format, see http://php.net/date */ 1304 $datef = _x( ' j F, Y @ G:i', 'revision date format');1304 $datef = _x( 'D, M jS @ G:i a', 'revision date format' ); 1305 1305 /* translators: 1: date */ 1306 1306 $autosavef = __( '%1$s [Autosave]' ); 1307 1307 /* translators: 1: date */ 1308 1308 $currentf = __( '%1$s [Current Revision]' ); 1309 1309 1310 $author = get_the_author_meta( 'display_name', $revision->post_author ); 1311 1310 1312 $date = date_i18n( $datef, strtotime( $revision->post_modified ) ); 1311 1313 if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) ) 1312 $date = "<a href='$link'>$ date</a>";1314 $date = "<a href='$link'>$author : $date</a>"; 1313 1315 1314 1316 if ( !wp_is_post_revision( $revision ) ) 1315 1317 $date = sprintf( $currentf, $date ); … … 1386 1388 continue; 1387 1389 1388 1390 $date = wp_post_revision_title( $revision ); 1389 $name = get_the_author_meta( 'display_name', $revision->post_author ); 1391 $datelinktodiff = sprintf( '<a href="revision.php?action=diff&post_type=post&left=%d&right=%d">%s</a>', 1392 $revision->ID, $post->ID, wp_post_revision_title( $revision, false ) ); 1390 1393 1394 $name = ''; 1395 $avatar = get_avatar( $revision->post_author, 22 ); 1391 1396 if ( 'form-table' == $format ) { 1392 if ( $left )1393 $left_checked = $left == $revision->ID ? ' checked="checked"' : '';1394 else1395 $left_checked = $right_checked ? ' checked="checked"' : ''; // [sic] (the next one)1396 $right_checked = $right == $revision->ID ? ' checked="checked"' : '';1397 1397 1398 1398 $class = $class ? '' : " class='alternate'"; 1399 1399 1400 1400 if ( $post->ID != $revision->ID && $can_edit_post ) 1401 $actions = ' <a href="' . wp_nonce_url( add_query_arg( array( 'revision' => $revision->ID, 'action' => 'restore' ) ), "restore-post_$post->ID|$revision->ID" ) . '">' . __( 'Restore' ) . '</a>';1401 $actions = '';// '<a href="' . wp_nonce_url( add_query_arg( array( 'revision' => $revision->ID, 'action' => 'restore' ) ), "restore-post_$post->ID|$revision->ID" ) . '">' . __( 'Restore' ) . '</a>'; 1402 1402 else 1403 1403 $actions = ''; 1404 1404 1405 1405 $rows .= "<tr$class>\n"; 1406 $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='left' value='$revision->ID'$left_checked /></th>\n"; 1407 $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='right' value='$revision->ID'$right_checked /></th>\n"; 1408 $rows .= "\t<td>$date</td>\n"; 1409 $rows .= "\t<td>$name</td>\n"; 1410 $rows .= "\t<td class='action-links'>$actions</td>\n"; 1406 $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='checkbox' name='revisionstocompare[]' value='$revision->ID' /></th>\n"; 1407 $rows .= "\t<td>$avatar $date</td>\n"; 1411 1408 $rows .= "</tr>\n"; 1412 1409 } else { 1413 $title = sprintf( $titlef, $date , $name );1410 $title = sprintf( $titlef, $datelinktodiff, $name ); 1414 1411 $rows .= "\t<li>$title</li>\n"; 1415 1412 } 1416 1413 } 1417 1414 1418 1415 if ( 'form-table' == $format ) : ?> 1419 1420 <form action="revision.php" method="get"> 1421 1416 <form action="revision.php" method="get" id='revision-list-form'> 1422 1417 <div class="tablenav"> 1423 <div class="alignleft"> 1424 <input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Compare Revisions' ); ?>" /> 1418 <div class='revision-post-list-title'><?php _e( 'Pick two revisions to compare' ) ?></div> 1419 <div class="alignright"> 1420 <input type="submit" class="button-secondary compare-revisions no-js" value="<?php esc_attr_e( 'Compare Revisions' ); ?>" /> 1425 1421 <input type="hidden" name="action" value="diff" /> 1426 1422 <input type="hidden" name="post_type" value="<?php echo esc_attr($post->post_type); ?>" /> 1427 1423 </div> 1428 1424 </div> 1429 1425 1430 <br class="clear" />1431 1432 1426 <table class="widefat post-revisions" cellspacing="0" id="post-revisions"> 1433 1427 <col /> 1434 <col /> 1435 <col style="width: 33%" /> 1436 <col style="width: 33%" /> 1437 <col style="width: 33%" /> 1438 <thead> 1439 <tr> 1440 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'Old', 'revisions column name' ); ?></th> 1441 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'New', 'revisions column name' ); ?></th> 1442 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'Date Created', 'revisions column name' ); ?></th> 1443 <th scope="col"><?php _e( 'Author' ); ?></th> 1444 <th scope="col" class="action-links"><?php _e( 'Actions' ); ?></th> 1445 </tr> 1446 </thead> 1428 <col style="width: 95%" /> 1447 1429 <tbody> 1448 1430 1449 1431 <?php echo $rows; ?> -
wp-includes/js/wp-list-revisions.js
6 6 var i, checkCount = 0, side; 7 7 for ( i = 0; i < inputs.length; i++ ) { 8 8 checkCount += inputs[i].checked ? 1 : 0; 9 side = inputs[i].getAttribute('name');10 if ( ! inputs[i].checked &&11 ( 'left' == side && 1 > checkCount || 'right' == side && 1 < checkCount && ( ! inputs[i-1] || ! inputs[i-1].checked ) ) &&12 ! ( inputs[i+1] && inputs[i+1].checked && 'right' == inputs[i+1].getAttribute('name') ) )13 inputs[i].style.visibility = 'hidden';14 else if ( 'left' == side || 'right' == side )15 inputs[i].style.visibility = 'visible';16 9 } 10 11 if ( 2 == checkCount ) { 12 document.getElementById('revision-list-form').submit(); 13 } 14 17 15 } 18 16 pr.onclick(); 19 17 } -
wp-includes/wp-diff.php
98 98 * @return string 99 99 */ 100 100 function addedLine( $line ) { 101 return "<td> +</td><td class='diff-addedline'>{$line}</td>";101 return "<td><div class='diff-addedline'>{$line}</div></td><td class='ltype'><div class='diff-addedline'>" . __("Added") . "</div></td>"; 102 102 } 103 103 104 104 /** … … 108 108 * @return string 109 109 */ 110 110 function deletedLine( $line ) { 111 return "<td> -</td><td class='diff-deletedline'>{$line}</td>";111 return "<td><div class='diff-deletedline'>{$line}</div></td><td class='ltype'><div class='diff-deletedline'>" . __( "Removed" ) . "</div></td>"; 112 112 } 113 113 114 114 /** … … 118 118 * @return string 119 119 */ 120 120 function contextLine( $line ) { 121 return "<td> </td><td class='diff-context'>{$line}</td>";121 return "<td><div class='diff-context'>{$line}</div></td>"; 122 122 } 123 123 124 124 /** … … 127 127 * @return string 128 128 */ 129 129 function emptyLine() { 130 return '<td c olspan="2"> </td>';130 return '<td class="ltype"> </td>'; 131 131 } 132 132 133 133 /** … … 142 142 $r = ''; 143 143 foreach ($lines as $line) { 144 144 if ( $encode ) 145 $line = htmlspecialchars( $line );146 $r .= '<tr>' . $this-> emptyLine() . $this->addedLine( $line ) . "</tr>\n";145 $line = wp_kses_post( $line ); 146 $r .= '<tr>' . $this->addedLine( $line ) . "</tr>\n"; 147 147 } 148 148 return $r; 149 149 } … … 160 160 $r = ''; 161 161 foreach ($lines as $line) { 162 162 if ( $encode ) 163 $line = htmlspecialchars( $line );164 $r .= '<tr>' . $this->deletedLine( $line ) . $this->emptyLine() ."</tr>\n";163 $line = wp_kses_post( $line ); 164 $r .= '<tr>' . $this->deletedLine( $line ) . "</tr>\n"; 165 165 } 166 166 return $r; 167 167 } … … 178 178 $r = ''; 179 179 foreach ($lines as $line) { 180 180 if ( $encode ) 181 $line = htmlspecialchars( $line );181 $line = wp_kses_post( $line ); 182 182 $r .= '<tr>' . 183 $this->contextLine( $line ) . $this-> contextLine( $line) . "</tr>\n";183 $this->contextLine( $line ) . $this->emptyLine() . "</tr>\n"; 184 184 } 185 185 return $r; 186 186 } … … 248 248 if ( isset( $orig_diffs[$orig_rows[$row]] ) ) 249 249 $orig_line = $orig_diffs[$orig_rows[$row]]; 250 250 elseif ( isset( $orig[$orig_rows[$row]] ) ) 251 $orig_line = htmlspecialchars($orig[$orig_rows[$row]]);251 $orig_line = wp_kses_post($orig[$orig_rows[$row]]); 252 252 else 253 253 $orig_line = ''; 254 254 255 255 if ( isset( $final_diffs[$final_rows[$row]] ) ) 256 256 $final_line = $final_diffs[$final_rows[$row]]; 257 257 elseif ( isset( $final[$final_rows[$row]] ) ) 258 $final_line = htmlspecialchars($final[$final_rows[$row]]);258 $final_line = wp_kses_post($final[$final_rows[$row]]); 259 259 else 260 260 $final_line = ''; 261 261 … … 264 264 } elseif ( $final_rows[$row] < 0 ) { // Final is blank. This is really a deleted row. 265 265 $r .= $this->_deleted( array($orig_line), false ); 266 266 } else { // A true changed row. 267 $r .= '<tr>' . $this->deletedLine( $orig_line ) . $this->addedLine( $final_line ) . "</tr>\n";267 $r .= '<tr>' . $this->deletedLine( $orig_line ) . '</tr><tr>' . $this->addedLine( $final_line ) . "</tr>\n"; 268 268 } 269 269 } 270 270 -
wp-includes/Text/Diff/Renderer/inline.php
200 200 201 201 function _encode(&$string) 202 202 { 203 $string = htmlspecialchars($string);203 $string = wp_kses_post($string); 204 204 } 205 205 206 206 } -
wp-includes/pluggable.php
1722 1722 return ''; 1723 1723 1724 1724 $r = "<table class='diff'>\n"; 1725 $r .= "<col class=' ltype' /><col class='content' /><col class='ltype' /><col class='content' />";1725 $r .= "<col class='content' /><col class='ltype' />"; 1726 1726 1727 1727 if ( $args['title'] || $args['title_left'] || $args['title_right'] ) 1728 1728 $r .= "<thead>"; 1729 1729 if ( $args['title'] ) 1730 $r .= "<tr class='diff-title'><th colspan=' 4'>$args[title]</th></tr>\n";1730 $r .= "<tr class='diff-title'><th colspan='3'>$args[title]</th></tr>\n"; 1731 1731 if ( $args['title_left'] || $args['title_right'] ) { 1732 1732 $r .= "<tr class='diff-sub-title'>\n"; 1733 $r .= "\t<t d></td><th>$args[title_left]</th>\n";1734 $r .= "\t<t d></td><th>$args[title_right]</th>\n";1733 $r .= "\t<th>$args[title_left]</th>\n"; 1734 $r .= "\t<th>$args[title_right]</th>\n"; 1735 1735 $r .= "</tr>\n"; 1736 1736 } 1737 1737 if ( $args['title'] || $args['title_left'] || $args['title_right'] ) … … 1743 1743 return $r; 1744 1744 } 1745 1745 endif; 1746 function wp_text_diff_with_count( $left_string, $right_string, $args = null ) { 1747 $defaults = array( 'title' => '', 'title_left' => '', 'title_right' => '' ); 1748 $args = wp_parse_args( $args, $defaults ); 1749 1750 if ( !class_exists( 'WP_Text_Diff_Renderer_Table' ) ) 1751 require( ABSPATH . WPINC . '/wp-diff.php' ); 1752 1753 $left_string = normalize_whitespace( $left_string ); 1754 $right_string = normalize_whitespace( $right_string ); 1755 1756 $left_lines = explode( "\n", $left_string ); 1757 $right_lines = explode( "\n", $right_string) ; 1758 1759 $text_diff = new Text_Diff($left_lines, $right_lines ); 1760 $linesadded = $text_diff->countAddedLines(); 1761 $linesdeleted = $text_diff->countDeletedLines(); 1762 1763 $renderer = new WP_Text_Diff_Renderer_Table(); 1764 $diff = $renderer->render( $text_diff ); 1765 1766 if ( !$diff ) 1767 return ''; 1768 1769 $r = "<table class='diff'>\n"; 1770 $r .= "<col class='content' /><col class='ltype' />"; 1771 1772 if ( $args['title'] || $args['title_left'] || $args['title_right'] ) 1773 $r .= "<thead>"; 1774 if ( $args['title'] ) 1775 $r .= "<tr class='diff-title'><th colspan='4'>$args[title]</th></tr>\n"; 1776 if ( $args['title_left'] || $args['title_right'] ) { 1777 $r .= "<tr class='diff-sub-title'>\n"; 1778 $r .= "\t<th>$args[title_left]</th>\n"; 1779 $r .= "\t<th>$args[title_right]</th>\n"; 1780 $r .= "</tr>\n"; 1781 } 1782 if ( $args['title'] || $args['title_left'] || $args['title_right'] ) 1783 $r .= "</thead>\n"; 1784 1785 $r .= "<tbody>\n$diff\n</tbody>\n"; 1786 $r .= "</table>"; 1787 1788 return array( 'html' => $r, 'linesadded' => $linesadded, 'linesdeleted' => $linesdeleted ); 1789 } 1790 No newline at end of file -
wp-admin/revision.php
11 11 12 12 wp_enqueue_script('list-revisions'); 13 13 14 wp_reset_vars( array('revision', 'left', 'right', 'action'));14 wp_reset_vars( array( 'revision', 'left', 'right', 'action' ) ); 15 15 16 16 $revision_id = absint($revision); 17 17 $left = absint($left); … … 19 19 20 20 $redirect = 'edit.php'; 21 21 22 if ( isset( $_GET['revisionstocompare'] ) ) { 23 $revisionstocompare = $_GET['revisionstocompare']; 24 $left = absint( $revisionstocompare[1] ); 25 $right = absint( $revisionstocompare[0] ); 26 } 27 28 22 29 switch ( $action ) : 23 30 case 'restore' : 24 31 if ( !$revision = wp_get_post_revision( $revision_id ) ) … … 93 100 break; 94 101 95 102 $post_title = '<a href="' . get_edit_post_link() . '">' . get_the_title() . '</a>'; 96 $h2 = sprintf( __( 'Compar e Revisions of “%1$s”' ), $post_title );103 $h2 = sprintf( __( 'Comparing revisions of %1$s' ), $post_title ); 97 104 $title = __( 'Revisions' ); 98 105 99 106 $left = $left_revision->ID; … … 135 142 $redirect = 'edit.php'; 136 143 137 144 if ( !empty($redirect) ) { 145 $redirect = remove_query_arg( 'revisionstocompare', $redirect ); 138 146 wp_redirect( $redirect ); 139 147 exit; 140 148 } … … 153 161 154 162 <h2 class="long-header"><?php echo $h2; ?></h2> 155 163 156 <table class="form-table ie-fixed"> 157 <col class="th" /> 164 <table class="form-table ie-fixed revision-compare"> 158 165 <?php if ( 'diff' == $action ) : ?> 159 166 <tr id="revision"> 160 <th scope="row"></th>161 167 <th scope="col" class="th-full"> 162 <span class="alignleft"><?php printf( __('Older: %s'), wp_post_revision_title( $left_revision ) ); ?></span> 163 <span class="alignright"><?php printf( __('Newer: %s'), wp_post_revision_title( $right_revision ) ); ?></span> 168 <table width="100%" cellspacing="0" cellpadding="0"> 169 <tr> 170 <td width="50%"> 171 <?php printf('<div class="revision-type-left">%s</div><div class="revision-avatar-left">%s</div><div class="revision-title-left">%s</div>', 172 __('Older'), 173 get_avatar( $left_revision->post_author, 22 ), 174 wp_post_revision_title( $left_revision ) 175 ); ?> 176 </td> 177 <td width="50%"> 178 <?php printf('<div class="revision-type-right">%s</div><div class="revision-title-right">%s</div><div class="revision-avatar-right">%s</div>', 179 __('Newer'), 180 wp_post_revision_title( $right_revision ), 181 get_avatar( $right_revision->post_author, 22 ) 182 ); ?> 183 </td> 184 </tr> 185 </table> 164 186 </th> 165 187 </tr> 166 188 <?php endif; 167 189 168 190 // use get_post_to_edit filters? 169 191 $identical = true; 192 $linesadded=0; 193 $linesdeleted=0; 194 170 195 foreach ( _wp_post_revision_fields() as $field => $field_title ) : 171 196 if ( 'diff' == $action ) { 172 197 $left_content = apply_filters( "_wp_post_revision_field_$field", $left_revision->$field, $field, $left_revision, 'left' ); 173 198 $right_content = apply_filters( "_wp_post_revision_field_$field", $right_revision->$field, $field, $right_revision, 'right' ); 174 if ( !$content = wp_text_diff ( $left_content, $right_content ) )199 if ( !$content = wp_text_diff_with_count( $left_content, $right_content ) ) 175 200 continue; // There is no difference between left and right 201 $htmlcontent = $content[ 'html' ]; 202 $linesadded += $content[ 'linesadded' ]; 203 $linesdeleted += $content[ 'linesdeleted' ]; 176 204 $identical = false; 177 205 } else { 178 206 add_filter( "_wp_post_revision_field_$field", 'htmlspecialchars' ); 179 207 $content = apply_filters( "_wp_post_revision_field_$field", $revision->$field, $field, $revision, '' ); 208 add_filter( "_wp_post_revision_field_$field", 'wp_kses_post' ); 209 $htmlcontent = apply_filters( "_wp_post_revision_field_$field", $revision->$field, $field ); 180 210 } 181 211 ?> 182 212 183 213 <tr id="revision-field-<?php echo $field; ?>"> 184 <th scope="row"><?php echo esc_html( $field_title ); ?></th> 185 <td><div class="pre"><?php echo $content; ?></div></td> 214 <td><div class="pre"><?php echo $htmlcontent; ?></div></td> 186 215 </tr> 187 216 188 217 <?php 189 218 190 219 endforeach; 191 220 ?> 221 <div class="revision-summary-area"> 222 <div class="revisions-header-deleted"><?php echo (0 != $linesdeleted ? '-' : '' ) . $linesdeleted; ?></div> 223 <div class="revisions-header-added"><?php echo (0 != $linesadded ? '+' : '' ) . $linesadded; ?></div> 224 </div> 225 <?php 192 226 if ( 'diff' == $action && $identical ) : 193 227 194 228 ?> … … 202 236 ?> 203 237 204 238 </table> 205 206 <br class="clear" /> 207 208 <h3><?php echo $title; ?></h3> 209 239 <div id="revisions-detail-list"> 210 240 <?php 211 241 212 242 $args = array( 'format' => 'form-table', 'parent' => true, 'right' => $right, 'left' => $left ); … … 218 248 ?> 219 249 220 250 </div> 221 251 </div> 222 252 <?php 223 253 require_once( './admin-footer.php' ); -
wp-admin/css/colors-fresh.css
1298 1298 1299 1299 /* Diff */ 1300 1300 table.diff .diff-deletedline { 1301 background-color: # fdd;1301 background-color: #EC9898; 1302 1302 } 1303 1303 1304 .ltype .diff-deletedline, .ltype .diff-addedline { 1305 text-align: center; 1306 } 1307 1308 table.diff .diff-deletedline-indicator, .revisions-header-deleted { 1309 color: #D4362F; /* dark red for - (deleted) symbol and header diffs*/ 1310 } 1311 .revision-summary-area { /*move the diff summary to the upper right*/ 1312 position: absolute; 1313 top: 20px; 1314 right: 20px; 1315 } 1316 .revisions-header-deleted, .revisions-header-added { 1317 float: right; 1318 font-size: 1.6em; 1319 font-weight: bold; 1320 padding: 3px; 1321 } 1322 1323 .revision-post-list-title { 1324 float: left; 1325 font-weight: bold; 1326 font-size: 16px; 1327 line-height: 24px; 1328 color: #676767; 1329 } 1330 1304 1331 table.diff .diff-deletedline del { 1305 1332 background-color: #f99; 1306 1333 } 1307 1334 1308 1335 table.diff .diff-addedline { 1309 background-color: # dfd;1336 background-color: #B5D8A6; 1310 1337 } 1311 1338 1339 table.diff .diff-addedline-indicator, .revisions-header-added { 1340 color: #00A100; /* dark green for + (added) symbol and header diffs */ 1341 } 1342 1343 table.diff li { 1344 margin-left: 12px; /*add some left margin to li's in the diff or they hand outside the box*/ 1345 } 1346 1312 1347 table.diff .diff-addedline ins { 1313 1348 background-color: #9f9; 1314 1349 } -
wp-admin/css/wp-admin.css
3427 3427 } 3428 3428 3429 3429 table.diff col.content { 3430 width: 50%;3430 width: auto; 3431 3431 } 3432 3432 3433 3433 table.diff tr { … … 4387 4387 .form-table td { 4388 4388 margin-bottom: 9px; 4389 4389 padding: 8px 10px; 4390 line-height: 2 0px;4390 line-height: 24px; 4391 4391 font-size: 12px; 4392 4392 } 4393 4393 … … 8324 8324 #col-right { 8325 8325 width: 65%; 8326 8326 } 8327 8328 table.diff col.content { 8329 width: auto; 8330 } 8331 8332 .wrap .revision-compare { 8333 float: right; 8334 width: 68%; 8335 } 8336 8337 #revisions-detail-list { 8338 float: left; 8339 width: 28%; 8340 margin-right: 2%; 8341 } 8342 8343 .tablenav { 8344 padding-top: 20px; 8345 } 8346 8347 .diff .ltype { 8348 width: 100px; 8349 } 8327 8350 } 8328 8351 8329 8352 @media only screen and (max-width: 768px) { … … 8515 8538 .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap { 8516 8539 margin-left: 8em; 8517 8540 } 8541 .revision-title-left { 8542 float: left; 8543 font-size: 1.1em; 8544 } 8545 8546 .revision-title-right { 8547 float: right; 8548 font-size: 1.1em; 8549 padding-right: 5px; 8550 } 8551 8552 .revision-type-left { 8553 float: left; 8554 font-size: 1.4em; 8555 color: #999; 8556 } 8557 8558 .revision-type-right { 8559 float: right; 8560 font-size: 1.4em; 8561 color: #999; 8562 } 8563 8564 .revision-avatar-left { 8565 float: left; 8566 margin-left: 5px; 8567 margin-right: 5px; 8568 } 8569 8570 .revision-avatar-right { 8571 float: right; 8572 margin-right: 5px; 8573 margin-left: 5px; 8574 } 8575 8576 .form-table tr#revision th { 8577 vertical-align: top; 8578 text-align: left; 8579 padding-top: 10px; 8580 padding-bottom: 10px; 8581 padding-right: 10px; 8582 padding-left: 0; 8583 width: 200px; 8584 } 8585 8586 .form-table tr#revision td { 8587 font-size: 12px; 8588 line-height: 24px; 8589 margin-bottom: 9px; 8590 padding-top: 8px; 8591 padding-bottom: 8px; 8592 padding-right: 10px; 8593 padding-left: 0; 8594 } 8595 8596 .form-table tr#revision-field-post_content .pre { 8597 margin: 0; 8598 padding: 0; 8599 } 8600 8601 .form-table tr#revision-field-post_content td { 8602 font-size: 12px; 8603 line-height: 24px; 8604 margin-bottom: 9px; 8605 padding: 8px 10px; 8606 } 8607 8608 8609 .form-table tr#revision-field-post_content td.diff-addedline-indicator { 8610 padding-left: 30px; 8611 } 8612 table.post-revisions a { 8613 line-height: 24px; 8614 } 8615 table.post-revisions img { 8616 float: left; 8617 margin-right: 5px; 8618 } 8619 ul.post-revisions img { 8620 float: left; 8621 margin: 2px; 8622 } 8623 ul.post-revisions li { 8624 border-bottom: 1px solid #FFF; 8625 } 8626 ul.post-revisions li a { 8627 line-height: 24px; 8628 } 8629 table#post-revisions tr td.revision-details, span.revision-details { 8630 line-height: 16px; 8631 padding: 0; 8632 height: 30px; 8633 vertical-align: middle;; 8634 } 8635 .form-table #revision th{ 8636 padding-left: 28px; 8637 } 8638 table#post-revisions tr td img { 8639 float: left; 8640 margin: 4px; 8641 } 8642 span.revision-details img { 8643 margin: 1px; 8644 vertical-align: middle; 8645 } 8646 .diff .ltype { 8647 width: 100px; 8648 } 8649 tr#revision-field-post_title td div { 8650 font-size: 150%; 8651 font-weight: bold; 8652 } 8653 .revsion-comment-imput { 8654 min-width: 300px; 8655 height: 24px; 8656 } 8657 tr.post-revisions td, table#post-revisions tbody tr td 8658 { 8659 padding: 5px; 8660 } 8661 table#post-revisions tbody tr td table tr td { 8662 padding: 0; 8663 } 8664 tr.post-revisions { 8665 font-weight: bold; 8666 } 8667 @media screen and (min-width: 1200px) { 8668 .revision-compare { 8669 float: right; 8670 width: 70%; 8671 } 8672 #revisions-detail-list { 8673 float: left; 8674 width: 30%; 8675 } 8676 } 8677 No newline at end of file