Make WordPress Core


Ignore:
Timestamp:
06/26/2013 09:06:50 PM (13 years ago)
Author:
markjaquith
Message:

Cleanup of the revisions screen, both on the PHP API side, and the JS.

  • Much simpler PHP API
  • Cleaner and more Backbone-y JS API
  • Consequently, does batch queries; this now scales up to hundreds of revisions

Currently missing, but much easier considering the cleaned up base:

  • Compare two mode
  • RTL

props koopersmith, nacin, adamsilverstein, ocean90. see #24425

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.css

    r24429 r24520  
    34823482  11.2 - Post Revisions
    34833483------------------------------------------------------------------------------*/
     3484.revisions .spinner {
     3485    float: none;
     3486    margin: 100px auto;
     3487}
     3488
     3489.revisions.loading .spinner {
     3490    display: block;
     3491}
     3492
     3493.revisions-control-frame,
     3494.revisions-diff-frame {
     3495    position: relative;
     3496}
     3497
     3498.revisions-controls {
     3499    height: 60px;
     3500    padding: 40px 0 20px;
     3501    border-bottom: 1px solid #dfdfdf;
     3502    margin-bottom: 10px;
     3503}
     3504
     3505.revisions-meta {
     3506    margin-top: 15px;
     3507}
     3508.revision-toggle-compare-mode {
     3509    position: absolute;
     3510    top: 0;
     3511    right: 0;
     3512}
     3513
     3514.revisions-previous {
     3515    float: left;
     3516}
     3517
     3518.revisions-next {
     3519    float: right;
     3520}
     3521
     3522.wp-slider {
     3523    width: 70%;
     3524    margin: 6px auto 0;
     3525}
    34843526
    34853527/* Revision meta box */
     
    35263568#revisions-diff {
    35273569    position: relative;
    3528 }
    3529 
    3530 #toggle-revision-compare-mode {
    3531     position: absolute;
    3532     top: 0;
    3533     right: 0;
    3534     padding: 9px 9px 0 0;
    35353570}
    35363571
     
    35503585#revision-interact {
    35513586    padding: 20px 0;
    3552 }
    3553 
    3554 #diff-next-revision,
    3555 #diff-previous-revision {
    3556     margin-top: -.4em; /* Same line as the slider (height: .8em) */
    3557 }
    3558 
    3559 #diff-next-revision {
    3560     float: right;
    3561 }
    3562 
    3563 #diff-previous-revision {
    3564     float: left;
    3565 }
    3566 
    3567 #diff-slider {
    3568     width: 70%;
    3569     margin: 0 auto;
    35703587}
    35713588
     
    35893606
    35903607#diff-title-to strong {
    3591     display: none;
     3608    display: inline;
    35923609}
    35933610
     
    36063623    border-radius: 3px;
    36073624    padding: 5px 200px 5px 5px;
     3625    clear: both;
    36083626}
    36093627
Note: See TracChangeset for help on using the changeset viewer.