Ticket #28330: 28330.2.patch
File 28330.2.patch, 2.5 KB (added by , 11 years ago) |
---|
-
src/wp-admin/js/wp-fullscreen.js
6 6 * Access the API globally using the window.wp.editor.fullscreen variable. 7 7 */ 8 8 ( function( $, window ) { 9 var api, ps, s, toggleUI, uiTimer, PubSub, 9 var api, ps, s, toggleUI, uiTimer, PubSub, editorBackgroundColor, editorColor, 10 10 uiScrollTop = 0, 11 11 transitionend = 'transitionend webkitTransitionEnd', 12 12 $body = $( document.body ), … … 136 136 * @param string mode Optional. Switch to the given mode before opening. 137 137 */ 138 138 api.on = function() { 139 var id, $dfwWrap, titleId ;139 var id, $dfwWrap, titleId, fullscreenStyle; 140 140 141 141 if ( s.visible ) { 142 142 return; … … 198 198 s.$dfwTitle = null; 199 199 } 200 200 201 editorBackgroundColor = s.editor.dom.getStyle( s.editor.getBody(), 'background-color', true ); 202 editorColor = s.editor.dom.getStyle( s.editor.getBody(), 'color', true ); 203 204 $( '#fullscreen-overlay' ).css( 'background-color', editorBackgroundColor ); 205 s.$dfwTitle.css( 'color', editorColor ); 206 207 fullscreenStyle = 208 '<style id="wp-fullscreen-style" type="text/css">' + 209 '.wp-fullscreen-active.wp-dfw-show-ui .wp-fullscreen-title,' + 210 '.wp-fullscreen-active.wp-dfw-show-ui .wp-editor-container {' + 211 'border-color: ' + 212 editorColor.replace( /rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi, function( match, r, g, b ) { 213 return 'rgba( ' + r + ', ' + g + ', ' + b + ', 0.5 )'; 214 } ) + 215 '!important;' + 216 '}' + 217 '</style>'; 218 219 if ( ! $( '#wp-fullscreen-style' ).replaceWith( fullscreenStyle ).length ) { 220 $( 'head' ).append( fullscreenStyle ); 221 } 222 201 223 api.ui.fade( 'show', 'showing', 'shown' ); 202 224 }; 203 225 … … 413 435 }); 414 436 415 437 ps.subscribe( 'hiding', function() { // This event occurs while the overlay blocks the DFW UI. 438 s.$dfwTitle.css( 'color', '' ); 439 416 440 $body.removeClass( 'wp-fullscreen-active' ); 417 441 418 442 if ( s.$dfwTitle ) { -
src/wp-includes/js/tinymce/skins/wordpress/wp-content.css
27 27 /* DFW mode */ 28 28 html.wp-fullscreen, 29 29 html.wp-fullscreen body { 30 background: transparent;31 30 width: auto; 32 31 max-width: none; 33 32 min-height: 0;