Changeset 27806
- Timestamp:
- 03/28/2014 04:39:04 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/wp-fullscreen.js
r27391 r27806 93 93 * Toggle the CSS class to show/hide the toolbar, borders and statusbar. 94 94 */ 95 toggleUI = api.toggleUI = function( hide) {95 toggleUI = api.toggleUI = function( show ) { 96 96 clearTimeout( uiTimer ); 97 97 98 if ( ! $body.hasClass('wp-dfw-show-ui') ) {98 if ( ! $body.hasClass('wp-dfw-show-ui') || show === 'show' ) { 99 99 $body.addClass('wp-dfw-show-ui'); 100 } 101 102 if ( hide === 'hide' ) { 100 } else if ( show !== 'autohide' ) { 101 $body.removeClass('wp-dfw-show-ui'); 102 } 103 104 if ( show === 'autohide' ) { 103 105 uiTimer = setTimeout( _hideUI, 2000 ); 104 106 } … … 306 308 var width; 307 309 310 if ( pixels && pixels.toString().indexOf('%') !== -1 ) { 311 s.$editorContainer.css( 'width', pixels ); 312 313 if ( s.$dfwTitle ) { 314 s.$dfwTitle.css( 'width', pixels ); 315 } 316 return; 317 } 318 308 319 if ( ! pixels ) { 309 // reset to theme width320 // Reset to theme width 310 321 width = $('#wp-fullscreen-body').data('theme-width') || 800; 311 322 s.$editorContainer.width( width ); … … 366 377 367 378 // Show the UI for 2 sec. when opening 368 toggleUI(' hide');379 toggleUI('autohide'); 369 380 370 381 api.bind_resize(); … … 374 385 } 375 386 376 api.dfwWidth( $( '#wp-fullscreen-body' ).data('dfw-width') || 800, true ); 387 if ( 'ontouchstart' in window ) { 388 api.dfwWidth( '90%' ); 389 } else { 390 api.dfwWidth( $( '#wp-fullscreen-body' ).data('dfw-width') || 800, true ); 391 } 377 392 378 393 // scroll to top so the user is not disoriented … … 499 514 }); 500 515 516 if ( 'ontouchstart' in window ) { 517 $body.addClass('wp-dfw-touch'); 518 } 519 501 520 toolbar.on( 'mouseenter', function() { 502 521 toggleUI('show'); 503 522 }).on( 'mouseleave', function() { 504 toggleUI(' hide');523 toggleUI('autohide'); 505 524 }); 506 525 -
trunk/src/wp-includes/css/editor.css
r27791 r27806 1233 1233 top: 235px; 1234 1234 } 1235 1235 1236 1236 #link-selector { 1237 1237 padding: 0 16px 60px; 1238 1238 } 1239 1239 1240 1240 #wp-link-wrap.search-panel-visible #link-selector { 1241 1241 bottom: 52px; … … 1724 1724 } 1725 1725 1726 /* DFW on touch screen devices */ 1727 .wp-dfw-touch #fullscreen-topbar { 1728 position: absolute; 1729 opacity: 1; 1730 } 1731 1732 .wp-dfw-touch .wp-fullscreen-wrap .wp-editor-container, 1733 .wp-dfw-touch .wp-fullscreen-title { 1734 max-width: 700px; 1735 } 1736 1737 .wp-fullscreen-active.wp-dfw-touch .wp-fullscreen-title, 1738 .wp-fullscreen-active.wp-dfw-touch .wp-editor-container { 1739 border-color: #ccc; 1740 } 1741 1742 .wp-dfw-touch #wp-fullscreen-status { 1743 opacity: 1; 1744 } 1745 1746 @media screen and ( max-width: 782px ) { 1747 #wp-fullscreen-close, 1748 #wp-fullscreen-central-toolbar, 1749 #wp-fullscreen-mode-bar, 1750 #wp-fullscreen-button-bar, 1751 #wp-fullscreen-save { 1752 float: none; 1753 display: inline-block; 1754 } 1755 1756 #fullscreen-topbar { 1757 height: 85px; 1758 } 1759 1760 #wp-fullscreen-central-toolbar { 1761 width: auto !important; 1762 } 1763 1764 #wp-fullscreen-close { 1765 line-height: 30px; 1766 vertical-align: top; 1767 padding: 0 12px; 1768 } 1769 1770 #wp-fullscreen-button-bar { 1771 position: absolute; 1772 top: 45px; 1773 left: 0; 1774 } 1775 1776 .wp-fullscreen-wrap { 1777 top: 95px; 1778 } 1779 1780 .wp-fullscreen-wrap .wp-editor-container, 1781 .wp-fullscreen-title { 1782 max-width: 700px; 1783 } 1784 1785 .wp-fullscreen-saved-message { 1786 display: none !important; 1787 } 1788 } 1789 1726 1790 /* =Localization 1727 1791 -------------------------------------------------------------- */ -
trunk/src/wp-includes/version.php
r27758 r27806 5 5 * @global string $wp_version 6 6 */ 7 $wp_version = '3.9-beta2-27 714-src';7 $wp_version = '3.9-beta2-27806-src'; 8 8 9 9 /**
Note: See TracChangeset
for help on using the changeset viewer.