Ticket #24804: 24804.3.diff
File 24804.3.diff, 7.3 KB (added by , 11 years ago) |
---|
-
wp-admin/css/colors-classic.css
1485 1485 border: 1px solid #d1e5ee; 1486 1486 } 1487 1487 1488 .revisions-controls { 1489 background: #fff; 1490 background: -webkit-gradient(linear, left bottom, left top, color-stop(0%,rgba(255,255,255,1)), color-stop(30px,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,1))); 1491 background: -webkit-linear-gradient(bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30px, rgba(255,255,255,1) 100%); 1492 background: -moz-linear-gradient(bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 30px, rgba(255,255,255,1) 100%); 1493 background: -o-linear-gradient(bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30px, rgba(255,255,255,1) 100%); 1494 background: linear-gradient(to top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30px, rgba(255,255,255,1) 100%); 1495 } 1496 1488 1497 .revisions-tooltip, 1489 1498 .revisions-tooltip-arrow span { 1490 1499 border-color: #d1e5ee; 1491 1500 background-color: #fff; 1492 1501 } 1493 1502 1503 .revisions-tickmarks > div { 1504 border-color: #d1e5ee; 1505 } 1506 1494 1507 #diff-title-to strong { 1495 1508 color: #08a; 1496 1509 } … … 1498 1511 /* jQuery UI Slider */ 1499 1512 .wp-slider.ui-slider { 1500 1513 border-color: #d1e5ee; 1501 background: #eff8ff;1502 1514 } 1503 1515 1504 1516 .wp-slider .ui-slider-handle { … … 1507 1519 } 1508 1520 1509 1521 .wp-slider .ui-slider-handle { 1510 border-color: #ccc;1511 1522 border-color: #d0dfe9; 1512 1523 background: #eff8ff; 1513 1524 background-image: -webkit-gradient(linear, left bottom, left top, from(#eff8ff), to(#fff)); -
wp-admin/css/colors-fresh.css
1379 1379 border: 1px solid #dfdfdf; 1380 1380 } 1381 1381 1382 .revisions-controls { 1383 background: #fff; 1384 background: -webkit-gradient(linear, left bottom, left top, color-stop(0%,rgba(255,255,255,1)), color-stop(30px,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,1))); 1385 background: -webkit-linear-gradient(bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30px, rgba(255,255,255,1) 100%); 1386 background: -moz-linear-gradient(bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 30px, rgba(255,255,255,1) 100%); 1387 background: -o-linear-gradient(bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30px, rgba(255,255,255,1) 100%); 1388 background: linear-gradient(to top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30px, rgba(255,255,255,1) 100%); 1389 } 1390 1382 1391 .revisions-tooltip, 1383 1392 .revisions-tooltip-arrow span { 1384 1393 border-color: #d7d7d7; … … 1396 1405 /* jQuery UI Slider */ 1397 1406 .wp-slider.ui-slider { 1398 1407 border-color: #d7d7d7; 1399 background: transparent;1400 1408 } 1401 1409 1402 1410 .wp-slider .ui-slider-handle { -
wp-admin/css/wp-admin-rtl.css
976 976 padding: 9px 0 0 9px; 977 977 } 978 978 979 .revisions .loading-indicator { 980 margin-right: -90px; 981 } 982 983 body.folded .revisions .loading-indicator { 984 margin-right: -32px; 985 } 986 979 987 .revisions-next { 980 988 float: left; 981 989 } … … 984 992 float: right; 985 993 } 986 994 987 #diff-header {988 padding: 5px 5px 5px 200px;989 }990 991 995 .diff-title { 992 996 float: right; 993 997 } -
wp-admin/css/wp-admin.css
3511 3511 /*------------------------------------------------------------------------------ 3512 3512 11.2 - Post Revisions 3513 3513 ------------------------------------------------------------------------------*/ 3514 .revisions { 3515 position: relative; 3516 } 3517 3514 3518 .revisions-control-frame, 3515 3519 .revisions-diff-frame { 3516 3520 position: relative; … … 3519 3523 .revisions-controls { 3520 3524 padding-top: 40px; 3521 3525 height: 100px; 3526 z-index: 1; 3522 3527 } 3523 3528 3524 3529 .revisions-controls input[type="checkbox"] { … … 3527 3532 vertical-align: text-bottom; 3528 3533 } 3529 3534 3535 .revisions.pinned .revisions-controls { 3536 position: fixed; 3537 top: 0; 3538 padding-bottom: 10px; 3539 } 3540 3530 3541 .revisions-tickmarks { 3531 3542 position: relative; 3532 3543 margin: 0 auto; … … 3571 3582 } 3572 3583 3573 3584 .revisions .loading-indicator { 3574 position: absolute;3585 position: fixed; 3575 3586 vertical-align: middle; 3576 3587 opacity: 0; 3577 3588 width: 100%; 3578 top: 3em; 3589 top: 50%; 3590 margin-left: -90px; 3579 3591 -webkit-transition: opacity 0.5s; 3580 3592 -moz-transition: opacity 0.5s; 3581 3593 -ms-transition: opacity 0.5s; … … 3584 3596 filter: alpha(opacity=0); /* ie8 and earlier */ 3585 3597 } 3586 3598 3599 body.folded .revisions .loading-indicator { 3600 margin-left: -32px; 3601 } 3602 3587 3603 .revisions .loading-indicator span.spinner { 3588 3604 display: block; 3589 3605 margin: 0 auto; … … 3689 3705 text-decoration: none; 3690 3706 } 3691 3707 3692 #diff-title-to strong {3693 display: inline;3694 }3695 3696 3708 #diff-header { 3697 3709 -webkit-border-radius: 3px; 3698 3710 border-radius: 3px; … … 3730 3742 display: none; 3731 3743 } 3732 3744 3733 .comparing-two-revisions #diff-title-from,3734 3745 .comparing-two-revisions #diff-header-from { 3735 3746 display: block; 3736 3747 } … … 3754 3765 transition: left 15ms; 3755 3766 } 3756 3767 3768 .revisions.pinned .revisions-tooltip { 3769 display: none !important; 3770 } 3771 3757 3772 .comparing-two-revisions .revisions-tooltip { 3758 3773 bottom: 145px; 3759 3774 } … … 3793 3808 .ie8 .revisions-tooltip-arrow > span { 3794 3809 left: 14px; 3795 3810 top: -25px; 3796 -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"; /* IE8 */3811 -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"; 3797 3812 } 3798 3813 3799 3814 .revisions-tooltip, -
wp-admin/js/revisions.js
531 531 className: 'revisions-controls', 532 532 533 533 initialize: function() { 534 _.bindAll( this, 'setWidth' ); 535 534 536 // Add the button view 535 537 this.views.add( new revisions.view.Buttons({ 536 538 model: this.model … … 573 575 this.views.add( new revisions.view.Meta({ 574 576 model: this.model 575 577 }) ); 578 }, 576 579 580 ready: function() { 581 this.top = this.$el.offset().top; 582 this.window = $(window); 583 this.window.on( 'scroll.wp.revisions', {controls: this}, function(e) { 584 var controls = e.data.controls; 585 var container = controls.$el.parent(); 586 var scrolled = controls.window.scrollTop(); 587 var frame = controls.views.parent; 588 589 if ( scrolled >= controls.top ) { 590 if ( ! frame.$el.hasClass('pinned') ) { 591 controls.setWidth(); 592 container.css('height', container.height() + 'px' ); 593 controls.window.on('resize.wp.revisions.pinning click.wp.revisions.pinning', {controls: controls}, function(e) { 594 e.data.controls.setWidth(); 595 }); 596 } 597 frame.$el.addClass('pinned'); 598 } else if ( frame.$el.hasClass('pinned') ) { 599 controls.window.off('.wp.revisions.pinning'); 600 controls.$el.css('width', 'auto'); 601 frame.$el.removeClass('pinned'); 602 container.css('height', 'auto'); 603 controls.top = controls.$el.offset().top; 604 } else { 605 controls.top = controls.$el.offset().top; 606 } 607 }); 608 }, 609 610 setWidth: function() { 611 this.$el.css('width', this.$el.parent().width() + 'px'); 577 612 } 578 613 }); 579 614