Ticket #27553: 27553.3.buttons.patch
File 27553.3.buttons.patch, 3.0 KB (added by , 11 years ago) |
---|
-
src/wp-admin/css/edit.css
1431 1431 padding: 10px 20px; 1432 1432 } 1433 1433 1434 a.wp-switch-editor {1434 button.wp-switch-editor { 1435 1435 font-size: 16px; 1436 1436 line-height: 1em; 1437 1437 margin: 3px 0 0 7px; … … 1438 1438 padding: 12px 15px; 1439 1439 } 1440 1440 1441 .tmce-active button.switch-tmce, 1442 .html-active button.switch-html { 1443 padding: 12px 15px; 1444 } 1445 1441 1446 #wp-content-media-buttons a { 1442 1447 font-size: 16px; 1443 1448 line-height: 37px; -
src/wp-includes/class-wp-editor.php
177 177 $switch_class = 'tmce-active'; 178 178 } 179 179 180 $buttons .= '< a id="' . $editor_id . '-html" class="wp-switch-editor switch-html" onclick="switchEditors.switchto(this);">' . _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ) . "</a>\n";181 $buttons .= '< a id="' . $editor_id . '-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</a>\n";180 $buttons .= '<button type="button" id="' . $editor_id . '-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</button>\n"; 181 $buttons .= '<button type="button" id="' . $editor_id . '-html" class="wp-switch-editor switch-html" onclick="switchEditors.switchto(this);">' . _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ) . "</button>\n"; 182 182 } 183 183 184 184 $wrap_class = 'wp-core-ui wp-editor-wrap ' . $switch_class; -
src/wp-includes/css/buttons.css
149 149 150 150 .wp-core-ui .button.focus, 151 151 .wp-core-ui .button:focus, 152 .wp-core-ui .button-secondary:focus { 152 .wp-core-ui .button-secondary:focus, 153 .wp-core-ui .wp-editor-tabs button:focus { 153 154 -webkit-box-shadow: 154 155 0 0 0 1px #5b9dd9, 155 156 0 0 2px 1px rgba(30, 140, 190, .8); -
src/wp-includes/css/editor.css
819 819 } 820 820 821 821 .wp-switch-editor { 822 background: #ebebeb; 822 float: left; 823 box-sizing: content-box; 824 height: 19px; 823 825 border: 1px solid #dedede; 824 color: #777;825 cursor: pointer;826 float: right;827 font: 13px/19px "Open Sans", sans-serif;828 height: 19px;829 826 margin: 5px 0 0 5px; 830 827 padding: 3px 8px 4px; 831 828 position: relative; 832 829 top: 1px; 830 background: #ebebeb; 831 color: #777; 832 cursor: pointer; 833 font: 13px/19px "Open Sans", sans-serif; 833 834 } 834 835 835 836 .wp-switch-editor:active { … … 854 855 background: #f5f5f5; 855 856 color: #555; 856 857 height: 20px; 858 padding: 2px 8px 5px; 857 859 border-bottom: none; 858 860 } 859 861