From 1e61bbb8f1684c9c79bb711712d36220050ea77b Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 18 Aug 2014 18:22:54 +0000 Subject: [PATCH] DFW: revert applying the Visual editor body color and background-color for now. Set the color to #333 and the background to transparent. Fixes #28330. git-svn-id: https://develop.svn.wordpress.org/trunk@29533 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/wp-fullscreen.js | 5 ----- src/wp-includes/css/editor.css | 4 ++-- src/wp-includes/js/tinymce/skins/wordpress/wp-content.css | 4 +++- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/js/wp-fullscreen.js b/src/wp-admin/js/wp-fullscreen.js index 70f2900a9f..de73060ae5 100644 --- a/src/wp-admin/js/wp-fullscreen.js +++ b/src/wp-admin/js/wp-fullscreen.js @@ -198,9 +198,6 @@ s.$dfwTitle = null; } - $( '#fullscreen-overlay' ).css( 'background-color', s.editor.dom.getStyle( s.editor.getBody(), 'background-color', true ) ); - s.$dfwTitle.add( s.$editorContainer ).css( 'color', s.editor.dom.getStyle( s.editor.getBody(), 'color', true ) ); - api.ui.fade( 'show', 'showing', 'shown' ); }; @@ -416,8 +413,6 @@ }); ps.subscribe( 'hiding', function() { // This event occurs while the overlay blocks the DFW UI. - s.$dfwTitle.add( s.$editorContainer ).css( 'color', '' ); - $body.removeClass( 'wp-fullscreen-active' ); if ( s.$dfwTitle ) { diff --git a/src/wp-includes/css/editor.css b/src/wp-includes/css/editor.css index 72477cc7f0..897bfa9f31 100644 --- a/src/wp-includes/css/editor.css +++ b/src/wp-includes/css/editor.css @@ -1806,7 +1806,7 @@ i.mce-i-hr:before { .wp-fullscreen-active.wp-dfw-show-ui .wp-editor-container { -webkit-transition-duration: 0.4s; transition-duration: 0.4s; - border-color: currentColor; + border-color: #ccc; } .fade-1000, @@ -1855,7 +1855,7 @@ i.mce-i-hr:before { .wp-fullscreen-active.wp-dfw-touch .wp-fullscreen-title, .wp-fullscreen-active.wp-dfw-touch .wp-editor-container { - border-color: currentColor; + border-color: #ccc; } .wp-dfw-touch #wp-fullscreen-statusbar { diff --git a/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css b/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css index 4a9a1499a5..963e864095 100644 --- a/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css +++ b/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css @@ -36,11 +36,13 @@ body.webkit b { /* DFW mode */ html.wp-fullscreen, -html.wp-fullscreen body { +html.wp-fullscreen body#tinymce { width: auto; max-width: none; min-height: 0; overflow: hidden; + color: #333; + background: transparent; } .aligncenter,