WordPress.org

Make WordPress Core

Ticket #27279: 27279.9.patch

File 27279.9.patch, 1.8 KB (added by iseulde, 8 years ago)
  • src/wp-includes/class-wp-editor.php

     
    152152                        $buttons .= '<a id="' . $editor_id . '-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</a>\n";
    153153                }
    154154
    155                 echo '<div id="wp-' . $editor_id . '-wrap" class="wp-core-ui wp-editor-wrap ' . $switch_class . '">';
     155                echo '<div id="wp-' . $editor_id . '-wrap" class="wp-core-ui wp-editor-wrap ' . $switch_class . ( $set['dfw'] ? ' has-dfw' : '' ) . '">';
    156156
    157157                if ( self::$editor_buttons_css ) {
    158158                        wp_print_styles('editor-buttons');
  • src/wp-includes/css/editor.css

     
    144144div.mce-toolbar-grp {
    145145        border-bottom: 1px solid #dedede;
    146146        background: #f5f5f5;
    147         padding: 3px 35px 3px 3px;
     147        padding: 3px;
    148148        position: relative;
    149149}
    150150
     151.has-dfw div.mce-toolbar-grp {
     152        padding-right: 35px;
     153}
     154
    151155.mce-toolbar .mce-btn-group {
    152156        margin: 0;
    153157}
     
    199203.mce-toolbar .mce-btn-group .mce-btn.mce-active,
    200204#wp-fullscreen-buttons .mce-btn.mce-active,
    201205.mce-toolbar .mce-btn-group .mce-btn:active,
    202 #wp-fullscreen-buttons .mce-btn:active {
     206#wp-fullscreen-buttons .mce-btn:active,
     207.qt-fullscreen:active {
    203208        background: #eee;
    204209        border-color: #999;
    205210        color: #333;
     
    846851.quicktags-toolbar {
    847852        border-bottom-style: solid;
    848853        border-bottom-width: 1px;
    849         padding: 3px 35px 3px 3px;
     854        padding: 3px;
    850855        position: relative;
    851856}
    852857
     858.has-dfw .quicktags-toolbar {
     859        padding-right: 35px;
     860}
     861
    853862.wp-core-ui .quicktags-toolbar input.button.button-small {
    854863        margin: 2px;
    855864}