Make WordPress Core

Ticket #24736: 24736.4.patch

File 24736.4.patch, 2.8 KB (added by adamsilverstein, 12 years ago)

switch to right borders for tickmarks, leave off last div, fixes some overflow issues for ie7; also removed >div:first-child selector, no longer needed, not supported in ie 7

  • wp-admin/js/revisions.js

     
    452452                render: function() {
    453453                        wp.Backbone.View.prototype.render.apply( this, arguments );
    454454
     455                        $('html').css( 'overflow-y', 'scroll' );
    455456                        $('#wpbody-content .wrap').append( this.el );
    456457                        this.updateCompareTwoMode();
    457458                        this.renderDiff( this.model.diff() );
     
    532533                        tickCount = this.model.revisions.length - 1;
    533534                        tickWidth = 1 / tickCount;
    534535
    535                         _(tickCount).times( function(){ this.$el.append( '<div></div>' ); }, this );
     536                        _(tickCount - 1).times( function(){ this.$el.append( '<div></div>' ); }, this );
     537
    536538                        this.$('div').css( 'width', ( 100 * tickWidth ) + '%' );
    537539                }
    538540        });
  • wp-admin/css/wp-admin.css

     
    35003500/*------------------------------------------------------------------------------
    35013501  11.2 - Post Revisions
    35023502------------------------------------------------------------------------------*/
    3503 body.revision-php {
    3504         overflow-y: scroll; /* Force a scrollbar, so centering doesn't jump */
    3505 }
    3506 
    35073503.revisions-control-frame,
    35083504.revisions-diff-frame {
    35093505        position: relative;
     
    35223518
    35233519.revisions-tickmarks {
    35243520        position: relative;
    3525         margin: 0 auto 0;
     3521        margin: 0 auto;
    35263522        height: 0.8em;
    35273523        z-index: 2;
    35283524        top: 7px;
    35293525        width: 70%;
    35303526        -moz-box-sizing: border-box;
    35313527        -webkit-box-sizing: border-box;
    3532         -ms-box-sizing: border-box; /* ie8 only */
    35333528        box-sizing: border-box;
    35343529}
    35353530
     
    35393534        float: left;
    35403535        z-index: 10002;
    35413536        border-style: solid;
    3542         border-width: 0 0 0 1px;
     3537        border-width: 0 1px 0 0;
    35433538        -moz-box-sizing: border-box;
    35443539        -webkit-box-sizing: border-box;
    3545         -ms-box-sizing: border-box; /* ie8 only */
    35463540        box-sizing: border-box;
    35473541}
    35483542
    3549 .revisions-tickmarks > div:first-of-type {
     3543.revisions-tickmarks > div:first-child {
    35503544        border-left-width: 0;
    35513545}
    35523546
     
    35593553        text-align: center;
    35603554        vertical-align: middle;
    35613555        opacity: 0;
     3556        filter: alpha(opacity=0);
    35623557        margin: 0 auto;
    35633558        width: 100%;
    35643559        height: 32px;
     
    35693564        -ms-transition:     opacity 0.5s;
    35703565        -o-transition:      opacity 0.5s;
    35713566        transition:         opacity 0.5s;
     3567        filter: alpha(opacity=0); /* ie8 and earlier */
    35723568}
    35733569
    35743570.revisions.loading .loading-indicator {
    35753571        opacity: 1;
     3572        filter: alpha(opacity=100); /* ie8 and earlier */
    35763573}
    35773574
    35783575.revisions .diff {
     
    35853582
    35863583.revisions.loading .diff {
    35873584        opacity: 0.5;
     3585        filter: alpha(opacity=50); /* ie8 and earlier */
    35883586}
    35893587
    35903588.revisions-meta {
     
    36123610
    36133611.wp-slider {
    36143612        width: 70%;
    3615         margin: 0 auto 0;
     3613        margin: 0 auto;
    36163614        top: -3px;
    36173615}
    36183616