Write page styling

git-svn-id: http://svn.automattic.com/wordpress/trunk@9384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-10-28 10:59:26 +00:00
parent eb035e3188
commit da113155e8
17 changed files with 260 additions and 146 deletions

View File

@ -1,4 +1,8 @@
textarea, input, select {
border-color: #dfdfdf;
}
#sidemenu-bg, #sidemenu-bg,
.find-box-search { .find-box-search {
background-color: #e4f2fd; background-color: #e4f2fd;
@ -10,9 +14,10 @@ a.page-numbers:hover {
} }
body, body,
#wpbody,
.form-table .pre, .form-table .pre,
.find-box-inside { .find-box-inside {
background-color: #fff; background-color: #f9f9f9;
color: #333; color: #333;
} }
@ -64,13 +69,24 @@ li.widget-list-control-item h4.widget-title a,
color: #fff; color: #fff;
} }
li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, li.widget-list-control-item,
#poststuff h3, .metabox-holder h3, #replyhandle, div.nav,
.login form, h3.info-box-title, #post-status-info, #screen-options-wrap, .tablenav,
#wpbody-content .describe tr, #edithead, #replyhead { #dashboard-widgets p.dashboard-widget-links,
#replyhandle,
.login form, h3.info-box-title,
#screen-options-wrap,
#wpbody-content .describe tr,
#edithead,
#replyhead {
background-color: #eaf3fa; background-color: #eaf3fa;
} }
#poststuff h3,
.metabox-holder h3 {
background-color: #dfdfdf;
}
.form-table tr, .form-table tr,
.form-wrap .form-field { .form-wrap .form-field {
background-color: #f1f1f1; background-color: #f1f1f1;
@ -86,7 +102,7 @@ strong .post-com-count span {
} }
#post-body ul#category-tabs li.ui-tabs-selected, #post-body ul#category-tabs li.ui-tabs-selected,
#quicktags, #login form .submit input, .search-box .button, #login form .submit input, .search-box .button,
#ed_reply_toolbar { #ed_reply_toolbar {
background-color: #cee1ef !important; background-color: #cee1ef !important;
} }
@ -364,7 +380,7 @@ h3.dashboard-widget-title small a:hover {
color: #246; color: #246;
} }
#adminmenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, .ui-sortable .postbox h3:hover span, a { #adminmenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, a {
color: #2583ad; color: #2583ad;
} }
@ -481,25 +497,27 @@ input.readonly {
background-color: #fff; background-color: #fff;
} }
#poststuff #editor-toolbar { .metabox-holder .postbox,
background-color: #cee1ef; #poststuff .postbox,
#titlediv,
#poststuff .postarea,
#poststuff .stuffbox {
border-color: #dfdfdf;
} }
#poststuff #editor-toolbar .active { .metabox-holder .postbox,
background-color: #EAF3FA; #poststuff .postbox {
color: #333;
}
.metabox-holder .postbox, #poststuff .postbox, #titlediv, #poststuff .postarea, #poststuff .stuffbox {
border-color: #ebebeb;
border-right-color: #ccc;
border-bottom-color: #ccc;
}
.metabox-holder .postbox, #poststuff .postbox {
background-color: #FFF; background-color: #FFF;
} }
.ui-sortable .postbox h3 {
color: #555;
}
.ui-sortable .postbox h3:hover {
color: #000;
}
.curtime #timestamp { .curtime #timestamp {
background-image: url(../images/date-button.gif); background-image: url(../images/date-button.gif);
} }
@ -605,7 +623,34 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover
color: #888; color: #888;
} }
/* editors */
#quicktags {
border-color: #dfdfdf;
background-color: #dfdfdf;
}
#poststuff .wp_themeSkin .mceStatusbar {
border-color: #EDEDED;
}
#poststuff #edButtonPreview,
#poststuff #edButtonHTML {
background-color: #f1f1f1;
border-color: #dfdfdf;
color: #999;
}
#poststuff #editor-toolbar .active {
border-bottom-color: #e9e9e9;
background-color: #e9e9e9;
color: #333;
}
/* TinyMCE */ /* TinyMCE */
#post-status-info {
background-color: #EDEDED;
}
.wp_themeSkin *, .wp_themeSkin *,
.wp_themeSkin a:hover, .wp_themeSkin a:hover,
.wp_themeSkin a:link, .wp_themeSkin a:link,
@ -616,7 +661,9 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover
/* Containers */ /* Containers */
.wp_themeSkin table, #wp_editbtns { .wp_themeSkin table, #wp_editbtns {
/*
background: #cee1ef; background: #cee1ef;
*/
} }
.wp_themeSkin iframe { .wp_themeSkin iframe {
@ -625,79 +672,79 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover
/* Layout */ /* Layout */
.wp_themeSkin .mceStatusbar { .wp_themeSkin .mceStatusbar {
color:#000; color: #000;
background-color: #eaf3fa; background-color: #f5f5f5;
} }
/* Button */ /* Button */
.wp_themeSkin .mceButton { .wp_themeSkin .mceButton {
background-color: #e9e8e8; background-color: #e9e8e8;
border-color: #abc0fb; border-color: #B2B2B2;
} }
.wp_themeSkin a.mceButtonEnabled:hover, .wp_themeSkin a.mceButtonEnabled:hover,
.wp_themeSkin a.mceButtonActive, .wp_themeSkin a.mceButtonActive,
.wp_themeSkin a.mceButtonSelected { .wp_themeSkin a.mceButtonSelected {
background-color: #d6d8da; background-color: #d5d5d5;
border-color: #7789ba !important; border-color: #777 !important;
} }
.wp_themeSkin .mceButtonDisabled { .wp_themeSkin .mceButtonDisabled {
border-color: #bdd !important; border-color: #ccc !important;
} }
/* ListBox */ /* ListBox */
.wp_themeSkin .mceListBox .mceText, .wp_themeSkin .mceListBox .mceText,
.wp_themeSkin .mceListBox .mceOpen { .wp_themeSkin .mceListBox .mceOpen {
border-color: #abc0fb; border-color: #B2B2B2;
background-color: #e9e8e8; background-color: #d5d5d5;
} }
.wp_themeSkin table.mceListBoxEnabled:hover .mceOpen, .wp_themeSkin table.mceListBoxEnabled:hover .mceOpen,
.wp_themeSkin .mceListBoxHover .mceOpen, .wp_themeSkin .mceListBoxHover .mceOpen,
.wp_themeSkin .mceListBoxSelected .mceOpen, .wp_themeSkin .mceListBoxSelected .mceOpen,
.wp_themeSkin .mceListBoxSelected .mceText { .wp_themeSkin .mceListBoxSelected .mceText {
border-color: #7789ba !important; border-color: #777 !important;
background-color: #d6d8da; background-color: #d5d5d5;
} }
.wp_themeSkin table.mceListBoxEnabled:hover .mceText, .wp_themeSkin table.mceListBoxEnabled:hover .mceText,
.wp_themeSkin .mceListBoxHover .mceText { .wp_themeSkin .mceListBoxHover .mceText {
border-color: #7789ba !important; border-color: #777 !important;
} }
.wp_themeSkin select.mceListBox { .wp_themeSkin select.mceListBox {
border-color: #b3c7e1; border-color: #B2B2B2;
background-color: #fff; background-color: #fff;
} }
/* SplitButton */ /* SplitButton */
.wp_themeSkin .mceSplitButton a.mceAction, .wp_themeSkin .mceSplitButton a.mceAction,
.wp_themeSkin .mceSplitButton a.mceOpen { .wp_themeSkin .mceSplitButton a.mceOpen {
background-color: #e9e8e8; background-color: #e8e8e8;
border-color: #abc0fb; border-color: #B2B2B2;
} }
.wp_themeSkin .mceSplitButton a.mceOpen:hover, .wp_themeSkin .mceSplitButton a.mceOpen:hover,
.wp_themeSkin .mceSplitButtonSelected a.mceOpen, .wp_themeSkin .mceSplitButtonSelected a.mceOpen,
.wp_themeSkin table.mceSplitButtonEnabled:hover a.mceAction, .wp_themeSkin table.mceSplitButtonEnabled:hover a.mceAction,
.wp_themeSkin .mceSplitButton a.mceAction:hover { .wp_themeSkin .mceSplitButton a.mceAction:hover {
background-color: #d6d8da; background-color: #d5d5d5;
border-color: #7789ba !important; border-color: #777 !important;
} }
.wp_themeSkin .mceSplitButtonActive { .wp_themeSkin .mceSplitButtonActive {
background-color: #d6d8da; background-color: #B2B2B2;
} }
/* ColorSplitButton */ /* ColorSplitButton */
.wp_themeSkin div.mceColorSplitMenu table { .wp_themeSkin div.mceColorSplitMenu table {
background-color: #ebeaeb; background-color: #ebebeb;
border-color: #808080; border-color: #B2B2B2;
} }
.wp_themeSkin .mceColorSplitMenu a { .wp_themeSkin .mceColorSplitMenu a {
border-color: #808080; border-color: #B2B2B2;
} }
.wp_themeSkin .mceColorSplitMenu a.mceMoreColors { .wp_themeSkin .mceColorSplitMenu a.mceMoreColors {
@ -728,7 +775,7 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover
.wp_themeSkin .mceMenu .mceMenuItemEnabled a:hover, .wp_themeSkin .mceMenu .mceMenuItemEnabled a:hover,
.wp_themeSkin .mceMenu .mceMenuItemActive { .wp_themeSkin .mceMenu .mceMenuItemActive {
background-color: #CEE1EF; background-color: #f5f5f5;
} }
.wp_themeSkin td.mceMenuItemSeparator { .wp_themeSkin td.mceMenuItemSeparator {
background-color: #aaa; background-color: #aaa;
@ -744,9 +791,14 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover
color: #888; color: #888;
} }
.wp_themeSkin tr.mceFirst {
background-color: #dfdfdf;
border-color: #dfdfdf;
}
/* pop-up */ /* pop-up */
.clearlooks2 .mceTop .mceLeft, .clearlooks2 .mceTop .mceRight { .clearlooks2 .mceTop .mceLeft, .clearlooks2 .mceTop .mceRight {
background-color: #cee1ef; background-color: #f5f5f5;
border-color: #c6d9e9; border-color: #c6d9e9;
} }
@ -756,12 +808,14 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover
} }
/* end TinyMCE */ /* end TinyMCE */
#editorcontainer, #post-status-info { #editorcontainer,
border-color: #ccc; #post-status-info,
#poststuff #titlewrap {
border-color: #dfdfdf;
} }
#poststuff #titlewrap { #poststuff #titlewrap {
border-color: #ccc; background-color: #fff;
} }
#tTips p#tTips_inside { #tTips p#tTips_inside {

View File

@ -97,6 +97,8 @@ textarea, input, select {
font: 13px Verdana, Arial, Helvetica, sans-serif; font: 13px Verdana, Arial, Helvetica, sans-serif;
margin: 1px; margin: 1px;
padding: 3px; padding: 3px;
border-width: 1px;
border-style: solid;
} }
.alignleft { .alignleft {

View File

@ -158,10 +158,8 @@ p.search-box {
padding: 0; padding: 0;
} }
* html #editorcontainer #content { #editorcontainer #content {
position: relative;
overflow: auto; overflow: auto;
padding: 6px;
margin: auto; margin: auto;
width: 98%; width: 98%;
} }

View File

@ -508,7 +508,6 @@ else
<div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>"> <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>">
<div id="post-body-content" class="has-sidebar-content"> <div id="post-body-content" class="has-sidebar-content">
<div id="titlediv"> <div id="titlediv">
<h3><label for="title"><?php _e('Title') ?></label></h3>
<div id="titlewrap"> <div id="titlewrap">
<input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" autocomplete="off" /> <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" autocomplete="off" />
</div> </div>
@ -526,9 +525,7 @@ endif; ?>
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
<div id="add-media-button"><a id="add-media-link" href="<?php echo clean_url( admin_url( 'media-upload.php?post_id=' . ( $post_ID ? $post_ID : $temp_ID ) . '&amp;type=image&amp;TB_iframe=true' ) ); ?>" class="thickbox button"><?php _e( 'Insert Media' ); ?></a></div> <!--<div id="add-media-button"><a id="add-media-link" href="<?php echo clean_url( admin_url( 'media-upload.php?post_id=' . ( $post_ID ? $post_ID : $temp_ID ) . '&amp;type=image&amp;TB_iframe=true' ) ); ?>" class="thickbox button"><?php _e( 'Insert Media' ); ?></a></div>-->
<h3><?php _e('Post') ?></h3>
<?php the_editor($post->post_content); ?> <?php the_editor($post->post_content); ?>

View File

@ -18,6 +18,7 @@ $form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . $comment-
<form name="post" action="comment.php" method="post" id="post"> <form name="post" action="comment.php" method="post" id="post">
<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?> <?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
<div class="wrap"> <div class="wrap">
<h2><?php _e('Edit Comment'); ?></h2>
<div id="poststuff" class="metabox-holder"> <div id="poststuff" class="metabox-holder">
<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" /> <input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />

View File

@ -394,7 +394,6 @@ $side_meta_boxes = do_meta_boxes('page', 'side', $post);
<div id="post-body-content" class="has-sidebar-content"> <div id="post-body-content" class="has-sidebar-content">
<div id="titlediv"> <div id="titlediv">
<h3><label for="title"><?php _e('Title') ?></label></h3>
<div id="titlewrap"> <div id="titlewrap">
<input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" /> <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" />
</div> </div>
@ -410,9 +409,6 @@ endif; ?>
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
<div id="add-media-button"><a id="add-media-link" href="<?php echo clean_url( admin_url( 'media-upload.php?post_id=' . ( $post_ID ? $post_ID : $temp_ID ) . '&amp;type=image&amp;TB_iframe=true' ) ); ?>" class="thickbox button"><?php _e( 'Insert Media' ); ?></a></div>
<h3><?php _e('Page') ?></h3>
<?php the_editor($post->post_content); ?> <?php the_editor($post->post_content); ?>
<div id="post-status-info"> <div id="post-status-info">
<span id="wp-word-count" class="alignleft"></span> <span id="wp-word-count" class="alignleft"></span>
@ -433,7 +429,6 @@ endif; ?>
<br class="clear" /> <br class="clear" />
</div> </div>
<?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?> <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
<?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?> <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?>

BIN
wp-admin/images/ed-bg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

BIN
wp-admin/images/resize.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

View File

@ -320,15 +320,15 @@ if ( is_string($content_func) )
function media_buttons() { function media_buttons() {
global $post_ID, $temp_ID; global $post_ID, $temp_ID;
$uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID); $uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID);
$context = apply_filters('media_buttons_context', __('Add media: %s')); $context = apply_filters('media_buttons_context', __('Upload %s'));
$media_upload_iframe_src = "media-upload.php?post_id=$uploading_iframe_ID"; $media_upload_iframe_src = "media-upload.php?post_id=$uploading_iframe_ID";
$media_title = __('Add Media'); $media_title = __('Upload Media');
$image_upload_iframe_src = apply_filters('image_upload_iframe_src', "$media_upload_iframe_src&amp;type=image"); $image_upload_iframe_src = apply_filters('image_upload_iframe_src', "$media_upload_iframe_src&amp;type=image");
$image_title = __('Add an Image'); $image_title = __('Upload an Image');
$video_upload_iframe_src = apply_filters('video_upload_iframe_src', "$media_upload_iframe_src&amp;type=video"); $video_upload_iframe_src = apply_filters('video_upload_iframe_src', "$media_upload_iframe_src&amp;type=video");
$video_title = __('Add Video'); $video_title = __('Upload Video');
$audio_upload_iframe_src = apply_filters('audio_upload_iframe_src', "$media_upload_iframe_src&amp;type=audio"); $audio_upload_iframe_src = apply_filters('audio_upload_iframe_src', "$media_upload_iframe_src&amp;type=audio");
$audio_title = __('Add Audio'); $audio_title = __('Upload Audio');
$out = <<<EOF $out = <<<EOF
<a href="{$image_upload_iframe_src}&amp;TB_iframe=true" id="add_image" class="thickbox" title='$image_title'><img src='images/media-button-image.gif' alt='$image_title' /></a> <a href="{$image_upload_iframe_src}&amp;TB_iframe=true" id="add_image" class="thickbox" title='$image_title'><img src='images/media-button-image.gif' alt='$image_title' /></a>

View File

@ -1141,8 +1141,8 @@ function wp_tiny_mce( $teeny = false ) {
'paste_remove_styles' => true, 'paste_remove_styles' => true,
'gecko_spellcheck' => true, 'gecko_spellcheck' => true,
'entities' => '38,amp,60,lt,62,gt', 'entities' => '38,amp,60,lt,62,gt',
'accessibility_focus' => false, 'accessibility_focus' => true,
'tab_focus' => ':next', 'tab_focus' => ':prev,:next',
'content_css' => "$mce_css", 'content_css' => "$mce_css",
'save_callback' => 'switchEditors.saveCallback', 'save_callback' => 'switchEditors.saveCallback',
'wpeditimage_disable_captions' => $no_captions, 'wpeditimage_disable_captions' => $no_captions,

View File

@ -16,7 +16,6 @@ switchEditors = {
try { this.I('content').style.height = h.ch - 30 + 'px'; } catch(e){}; try { this.I('content').style.height = h.ch - 30 + 'px'; } catch(e){};
} else { } else {
try { try {
this.I('editorcontainer').style.padding = '0px';
this.I("quicktags").style.display = "none"; this.I("quicktags").style.display = "none";
} catch(e){}; } catch(e){};
tinyMCE.execCommand("mceAddControl", false, "content"); tinyMCE.execCommand("mceAddControl", false, "content");
@ -100,7 +99,6 @@ switchEditors = {
var H = this.I('edButtonHTML'); var H = this.I('edButtonHTML');
var P = this.I('edButtonPreview'); var P = this.I('edButtonPreview');
var ta = this.I(id); var ta = this.I(id);
var ec = (ta.parentNode && ta.parentNode.nodeName == 'DIV') ? ta.parentNode : '';
if ( 'tinymce' == mode ) { if ( 'tinymce' == mode ) {
@ -115,9 +113,6 @@ switchEditors = {
edCloseAllTags(); // :-( edCloseAllTags(); // :-(
qt.style.display = 'none'; qt.style.display = 'none';
ta.style.padding = '0px';
if ( ec )
ec.style.padding = '0px';
ta.value = this.wpautop(ta.value); ta.value = this.wpautop(ta.value);
@ -138,17 +133,6 @@ switchEditors = {
ed.hide(); ed.hide();
qt.style.display = 'block'; qt.style.display = 'block';
if ( tinymce.isIE6 ) {
ta.style.width = '98%';
if ( ec )
ec.style.padding = '0px';
ta.style.padding = '6px';
} else {
ta.style.width = '100%';
if ( ec )
ec.style.padding = '6px';
}
ta.style.color = ''; ta.style.color = '';
setUserSetting( 'editor', 'html' ); setUserSetting( 'editor', 'html' );
} }

View File

@ -298,6 +298,7 @@ table#availablethemes td.bottom {
-khtml-border-radius: 11px; -khtml-border-radius: 11px;
-webkit-border-radius: 11px; -webkit-border-radius: 11px;
border-radius: 11px; border-radius: 11px;
-moz-box-sizing: content-box;
} }
a.button { a.button {
@ -377,6 +378,10 @@ textarea.all-options, input.all-options {
width: 94%; width: 94%;
} }
#wpbody-content .metabox-holder {
padding-top: 10px;
}
#postdivrich { #postdivrich {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -388,26 +393,40 @@ textarea.all-options, input.all-options {
} }
#editorcontainer #content { #editorcontainer #content {
padding: 0; padding: 6px;
line-height: 150%; line-height: 150%;
border: 0 none; border: 0 none;
outline: none; outline: none;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
} }
#editorcontainer { #editorcontainer,
padding: 6px; #quicktags {
border-style: none solid solid; border-style: solid;
border-width: 1px; border-width: 1px;
border-collapse: separate; border-collapse: separate;
-moz-border-radius: 6px 6px 0 0;
-webkit-border-top-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-khtml-border-top-right-radius: 6px;
-khtml-border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-top-left-radius: 6px;
} }
#quicktags { #quicktags {
padding: 0; padding: 0;
border: 0 none; margin-bottom: -3px;
border-bottom-width: 3px;
background-image: url("images/ed-bg.gif");
background-position: left top;
background-repeat: repeat-x;
} }
#quicktags #ed_toolbar { #quicktags #ed_toolbar {
padding: 2px 4px; padding: 2px 4px 0;
} }
#ed_toolbar input { #ed_toolbar input {
@ -1323,15 +1342,36 @@ table.form-table td .updated {
#post-status-info { #post-status-info {
font-size: 12px; font-size: 12px;
line-height: 2; line-height: 2;
padding: 0 7px; padding: 0 15px 0 7px;
border: 1px solid; border-width: 0 1px 1px;
border-top: none; border-style: none solid solid;
-moz-border-radius: 0 0 6px 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
-khtml-border-bottom-left-radius: 6px;
-khtml-border-bottom-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
} }
#editorcontent #post-status-info { #editorcontent #post-status-info {
border: none; border: none;
} }
#post-body-content .wp_themeSkin .mceStatusbar a.mceResize {
display: block;
float: right;
background: transparent url(images/resize.gif) no-repeat scroll right bottom;
width: 12px;
height: 12px;
cursor: se-resize;
margin: 0 2px;
position: relative;
right: 0;
top: 31px;
}
#pagesubmitdiv div.inside, #pagesubmitdiv div.inside,
#linksubmitdiv div.inside, #linksubmitdiv div.inside,
div.inside { div.inside {
@ -1423,18 +1463,32 @@ table.form-table td .updated {
clear: left; clear: left;
} }
#poststuff h3, .metabox-holder h3 { #poststuff h3,
font-size: 14px; .metabox-holder h3 {
font-size: 12px;
font-weight: bold; font-weight: bold;
padding: 7px; padding: 6px 7px;
margin: 0 0 10px; margin: 0 0 10px;
} }
.metabox-holder .postbox, #poststuff .postbox, #poststuff .stuffbox { .metabox-holder .postbox,
padding: 2px; #poststuff .postbox,
#poststuff .stuffbox {
margin-bottom: 20px; margin-bottom: 20px;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
-moz-border-radius: 6px;
-khtml-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}
.metabox-holder .postbox h3,
#poststuff .postbox h3,
#poststuff .stuffbox h3 {
background-image: url("images/postbox-bg.gif");
background-position: left top;
background-repeat: repeat-x;
} }
#poststuff .inside { #poststuff .inside {
@ -1464,9 +1518,13 @@ table.form-table td .updated {
} }
#poststuff #titlewrap { #poststuff #titlewrap {
padding: 2px 3px; padding: 3px 4px;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
-moz-border-radius: 6px;
-khtml-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
} }
#poststuff .inside-submitbox, #poststuff .inside-submitbox,
@ -1491,11 +1549,16 @@ table.form-table td .updated {
#edit-slug-box { #edit-slug-box {
margin-top: 8px; margin-top: 8px;
padding: 0 7px;
} }
#editable-post-name-full { display: none; } #editable-post-name-full {
display: none;
}
#editable-post-name input { width: 16em; } #editable-post-name input {
width: 16em;
}
#edit-slug-buttons a.save { #edit-slug-buttons a.save {
padding: 6px 4px; padding: 6px 4px;
@ -1522,47 +1585,53 @@ table.form-table td .updated {
} }
#poststuff #editor-toolbar { #poststuff #editor-toolbar {
clear: both; height: 30px;
position: relative;
margin-top: -10px;
}
#poststuff #editor-toolbar #edButtonHTML, #poststuff #editor-toolbar #edButtonPreview {
position: relative;
top: -5px;
} }
#poststuff #edButtonPreview, #poststuff #edButtonHTML { .wp_themeSkin tr.mceFirst {
background-image: url("images/ed-bg.gif");
background-position: left top;
background-repeat: repeat-x;
border-width: 0 0 1px;
border-style: none none solid;
}
#poststuff #edButtonPreview,
#poststuff #edButtonHTML {
display: block; display: block;
height: 20px; height: 18px;
padding: 5px 5px 1px; margin: 5px 5px 0 0;
margin: 5px 8px 0 0; padding: 4px 5px 2px;
float: right; float: right;
cursor: pointer; cursor: pointer;
border-width: 1px;
border-style: solid;
-moz-border-radius: 3px 3px 0 0;
-webkit-border-top-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-khtml-border-top-right-radius: 3px;
-khtml-border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-top-left-radius: 3px;
}
#poststuff #edButtonHTML {
margin-right: 15px;
} }
#poststuff #editor-toolbar .active { #poststuff #editor-toolbar .active {
font-weight: bold; /*font-weight: bold;*/
-moz-border-radius: 0 0 3px 3px;
-webkit-border-bottom-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-khtml-border-bottom-right-radius: 3px;
-khtml-border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
} }
#poststuff #media-buttons { #poststuff #media-buttons {
float: right;
margin-right: 20px;
margin-top: 8px;
cursor: default; cursor: default;
line-height: 1; padding: 8px 8px 0;
height: 1.1em;
} }
#poststuff #media-buttons a { #poststuff #media-buttons a {
cursor: pointer; cursor: pointer;
padding: 0 5px 2px 2px; padding: 0 0 5px 10px;
vertical-align: middle;
} }
#poststuff #media-buttons img { #poststuff #media-buttons img {

View File

@ -1494,11 +1494,11 @@ function the_editor($content, $id = 'content', $prev_id = 'title', $media_button
<?php } <?php }
} }
/* if ( $media_buttons ) { ?> if ( $media_buttons ) { ?>
<div id="media-buttons" class="hide-if-no-js"> <div id="media-buttons" class="hide-if-no-js">
<?php do_action( 'media_buttons' ); ?> <?php do_action( 'media_buttons' ); ?>
</div> </div>
<?php } */ ?> <?php } ?>
</div> </div>
<div id="quicktags"> <div id="quicktags">
@ -1519,19 +1519,17 @@ function the_editor($content, $id = 'content', $prev_id = 'title', $media_button
// If tinyMCE is defined. // If tinyMCE is defined.
if ( typeof tinyMCE != 'undefined' ) { if ( typeof tinyMCE != 'undefined' ) {
// This code is meant to allow tabbing from Title to Post (TinyMCE). // This code is meant to allow tabbing from Title to Post (TinyMCE).
document.getElementById('<?php echo $prev_id; ?>').onkeydown = function (e) { jQuery('#<?php echo $prev_id; ?>').keydown(function (e) {
e = e || window.event; if (e.which == 9 && !e.shiftKey && !e.controlKey && !e.altKey) {
if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) {
if ( tinyMCE.activeEditor ) {
if ( (jQuery("#post_ID").val() < 1) && (jQuery("#title").val().length > 0) ) { autosave(); } if ( (jQuery("#post_ID").val() < 1) && (jQuery("#title").val().length > 0) ) { autosave(); }
e = null; if ( tinyMCE.activeEditor && ! tinyMCE.activeEditor.isHidden() ) {
if ( tinyMCE.activeEditor.isHidden() ) return true;
tinyMCE.activeEditor.focus(); tinyMCE.activeEditor.focus();
e.preventDefault();
return false; return false;
} }
return true; return;
}
} }
});
} }
<?php } ?> <?php } ?>
// ]]> // ]]>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 B

After

Width:  |  Height:  |  Size: 212 B

View File

@ -19,9 +19,25 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
.wp_themeSkin table.mceToolbar, .wp_themeSkin tr.mceFirst .mceToolbar tr td, .wp_themeSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} .wp_themeSkin table.mceToolbar, .wp_themeSkin tr.mceFirst .mceToolbar tr td, .wp_themeSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0}
.wp_themeSkin table.mceLayout {border:0;} .wp_themeSkin table.mceLayout {border:0;}
.wp_themeSkin .mceIframeContainer {} .wp_themeSkin .mceIframeContainer {}
.wp_themeSkin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible;height:20px;} .wp_themeSkin .mceStatusbar {
display: block;
font-family: 'MS Sans Serif',sans-serif,Verdana,Arial;
font-size: 9pt;
line-height: 16px;
overflow: visible;
height: 20px;
border-top-width: 1px;
border-top-style: solid;
}
.wp_themeSkin .mceStatusbar div {float:left; padding:2px;} .wp_themeSkin .mceStatusbar div {float:left; padding:2px;}
.wp_themeSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize} .wp_themeSkin .mceStatusbar a.mceResize {
display: block;
float: right;
background: url(../../img/icons.gif) -800px 0;
width: 20px;
height: 20px;
cursor: se-resize
}
.wp_themeSkin .mceStatusbar a:hover {text-decoration:underline} .wp_themeSkin .mceStatusbar a:hover {text-decoration:underline}
.wp_themeSkin table.mceToolbar {margin: 0 2px 2px;} .wp_themeSkin table.mceToolbar {margin: 0 2px 2px;}
.wp_themeSkin #content_toolbar1 {margin-top: 2px;} .wp_themeSkin #content_toolbar1 {margin-top: 2px;}
@ -38,8 +54,8 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
padding: 1px 2px; padding: 1px 2px;
margin: 1px; margin: 1px;
background-image: url(img/butt2.png); background-image: url(img/butt2.png);
background-position: 2px 1px; background-position: left top;
background-repeat: no-repeat; background-repeat: repeat-x;
-moz-border-radius: 3px; -moz-border-radius: 3px;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
-khtml-border-radius: 3px; -khtml-border-radius: 3px;
@ -48,10 +64,10 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
.wp_themeSkin a.mceButton span, .wp_themeSkin a.mceButton img {} .wp_themeSkin a.mceButton span, .wp_themeSkin a.mceButton img {}
.wp_themeSkin .mceOldBoxModel a.mceButton span, .wp_themeSkin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} .wp_themeSkin .mceOldBoxModel a.mceButton span, .wp_themeSkin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px}
.wp_themeSkin a.mceButtonEnabled:hover { .wp_themeSkin a.mceButtonEnabled:hover {
background-position:0 -20px; background-position:0 -10px;
} }
.wp_themeSkin a.mceButtonActive, .wp_themeSkin a.mceButtonSelected { .wp_themeSkin a.mceButtonActive, .wp_themeSkin a.mceButtonSelected {
background-position:0 -20px; background-image: inherit;
} }
.wp_themeSkin .mceButtonDisabled .mceIcon {opacity:0.3; filter:alpha(opacity=30);} .wp_themeSkin .mceButtonDisabled .mceIcon {opacity:0.3; filter:alpha(opacity=30);}
.wp_themeSkin .mceButtonDisabled {} .wp_themeSkin .mceButtonDisabled {}
@ -74,7 +90,7 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
text-decoration: none !important; text-decoration: none !important;
width:70px; width:70px;
background-image: url(img/butt2.png); background-image: url(img/butt2.png);
background-position: 1px 1px; background-position: left top;
background-repeat: repeat-x; background-repeat: repeat-x;
font-family: Tahoma,Verdana,Arial,Helvetica; font-family: Tahoma,Verdana,Arial,Helvetica;
font-size: 11px; font-size: 11px;
@ -91,7 +107,7 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
height: 20px; height: 20px;
border-collapse: separate; border-collapse: separate;
background-image: url(img/butt2.png); background-image: url(img/butt2.png);
background-position: 1px 1px; background-position: left top;
background-repeat: repeat-x; background-repeat: repeat-x;
padding: 1px; padding: 1px;
border-left: 0 none !important; border-left: 0 none !important;
@ -131,7 +147,7 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
height:20px; height:20px;
width:20px; width:20px;
background-image: url(img/butt2.png); background-image: url(img/butt2.png);
background-position: 1px 1px; background-position: left top;
background-repeat: repeat-x; background-repeat: repeat-x;
padding: 1px 2px; padding: 1px 2px;
} }
@ -144,7 +160,7 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
height:20px; height:20px;
border-collapse:separate; border-collapse:separate;
background-image: url(img/butt2.png); background-image: url(img/butt2.png);
background-position: 1px 1px; background-position: left top;
background-repeat: repeat-x; background-repeat: repeat-x;
padding: 1px; padding: 1px;
border-left: 0 none !important; border-left: 0 none !important;

View File

@ -61,7 +61,7 @@ function wp_default_scripts( &$scripts ) {
// Modify this version when tinyMCE plugins are changed. // Modify this version when tinyMCE plugins are changed.
function mce_version() { function mce_version() {
return '20080930'; return '20081028';
} }
add_filter( 'tiny_mce_version', 'mce_version' ); add_filter( 'tiny_mce_version', 'mce_version' );
@ -277,7 +277,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox', 'settings-box' ), '20081016' ); $scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox', 'settings-box' ), '20081016' );
$scripts->add( 'hoverIntent', '/wp-includes/js/hoverIntent.js', array('jquery'), '20070327' ); $scripts->add( 'hoverIntent', '/wp-includes/js/hoverIntent.js', array('jquery'), '20070327' );
$scripts->add( 'menu', '/wp-admin/js/menu.js', array( 'jquery', 'hoverIntent' ), '20081023' ); $scripts->add( 'menu', '/wp-admin/js/menu.js', array( 'jquery', 'hoverIntent' ), '20081028' );
} }
} }