diff --git a/wp-admin/css/colors-classic.css b/wp-admin/css/colors-classic.css index 331c5454b1..28571f8497 100644 --- a/wp-admin/css/colors-classic.css +++ b/wp-admin/css/colors-classic.css @@ -55,7 +55,7 @@ li.widget-list-control-item h4.widget-title a, li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, ul.view-switch li.current, .form-table tr, #poststuff h3, #replyhandle, -.login form, h3.info-box-title, #post-status-info { +.login form, h3.info-box-title, #post-status-info, #edit-settings-wrap { background-color: #cfebf7; } @@ -763,3 +763,19 @@ table.diff .diff-addedline ins { .submitbox .submitdelete { color: #fff; } + +#edit-settings-wrap, +#show-settings { + background-color: #14568A; + border-color: #14568A; + color: #CFEBF6; +} + +#show-settings a, +#show-settings a:visited { + color: #CFEBF6; +} + +#show-settings.show-settings-opened { + border-bottom-color: #14568A; +} diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index cab74ed070..9f51dbd4a6 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -55,7 +55,7 @@ li.widget-list-control-item h4.widget-title a, li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, ul.view-switch li.current, .form-table tr, #poststuff h3, #replyhandle, -.login form, h3.info-box-title, #post-status-info { +.login form, h3.info-box-title, #post-status-info, #edit-settings-wrap { background-color: #eaf3fa; } @@ -742,42 +742,6 @@ table.diff .diff-addedline ins { background-color: #E4F2FD; } - -/* fixed tool bar */ -#fixedbar { - background-color:#464646; - color: #ccc; -} - -#html-upload-help { - color: #328AB2; -} - -#fixedbar #last-edit { - -} - -#fixedbar a, -#fixedbar #curtime { - color: #ccc; -} - -#fixedbar a:hover { - color: #fff; -} - -#fixedbar a.button { - color: #246; -} - -#fixedbar a.button:hover { - color: #d54e21; -} - -#timestampdiv { - color: #ccc; -} - /* media popup 0819 */ #sidemenu a { background-color: #e4f2fd; @@ -788,3 +752,13 @@ table.diff .diff-addedline ins { .submitbox .submitdelete { color: #fff; } + +#edit-settings-wrap, +#show-settings { + background-color: #E4F2FD; + border-color: #c6d9e9; +} + +#show-settings.show-settings-opened { + border-bottom-color: #E4F2FD; +} diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index fdff920b1b..59b1c6903f 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -400,13 +400,6 @@ endif; - - -
-
- -
- +
+
+ +
+
+
+
+ +
+
+
+
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 6a639d6308..85e06b311e 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1367,7 +1367,6 @@ function meta_box_prefs($page) { $hidden = (array) get_user_option( "meta-box-hidden_$page" ); - echo ''; } ?> diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index d0393b1681..7a08060c89 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -60,7 +60,7 @@ function tag_press_key( e ) { } } -jQuery(document).ready( function() { +jQuery(document).ready( function($) { // close postboxes that should be closed jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); @@ -186,12 +186,23 @@ jQuery(document).ready( function() { }); // Edit Settings - jQuery('.edit-settings-link').click(function () { - if (jQuery('#edit-settings').is(":hidden")) { - jQuery('#edit-settings').slideDown("normal"); - } else { - jQuery('#edit-settings').slideUp("normal"); - } + $('#show-settings-link').click(function () { + $('#edit-settings').slideDown('normal', function(){ + $('#show-settings-link').hide(); + $('#hide-settings-link').show(); + + }); + $('#show-settings').addClass('show-settings-opened'); + return false; + }); + + $('#hide-settings-link').click(function () { + $('#edit-settings').slideUp('normal', function(){ + $('#hide-settings-link').hide(); + $('#show-settings-link').show(); + $('#show-settings').removeClass('show-settings-opened'); + }); + return false; }); diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 1d6d8e4fe5..772fc57ebb 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -619,7 +619,7 @@ a.view-comment-post-link { border-style: solid; } -#wphead a, #dashmenu a, #adminmenu a, #sidemenu a, #taglist a, #catlist a { +#wphead a, #dashmenu a, #adminmenu a, #sidemenu a, #taglist a, #catlist a, #show-settings a { text-decoration: none; } @@ -1381,6 +1381,7 @@ table.form-table td .updated { #side-info-column #side-sortables { height: 100%; + padding-top: 39px; } .submitbox .submitdelete { @@ -2002,3 +2003,78 @@ p#post-search-prep { #replyerror .error { margin: 15px 0 0; } + +/* show/hide settings */ +#show-settings { + float: right; + margin: 0 0 -30px; + position: relative; + z-index: 1; + width: 218px; + height: 28px; + border-width: 1px; + border-style: solid; + -moz-border-radius: 4px; + -khtml-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; +} + +#show-settings-link, +#hide-settings-link { + background-position: 8px center; + background-repeat: no-repeat; + line-height: 28px; + padding: 0 0 0 26px; +} + +#show-settings-link { + background-image: url(images/menu-closed.png); +} + +#hide-settings-link { + background-image: url(images/menu-open.png); +} + +#edit-settings { + padding: 28px 0 0; + margin: 0 0 20px; +} + +#edit-settings-wrap h5 { + padding: 10px 0 5px 20px; + margin: 0; + font-size: 13px; +} + +#edit-settings-wrap { + -moz-border-radius: 4px 0 4px 4px; + -khtml-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px 0 4px 4px; + border-width: 1px; + border-style: solid; +} + +.show-settings-opened { + -moz-border-radius: 4px 4px 0 0; + -khtml-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px 4px 0 0; +} + +.metabox-prefs { + padding: 8px 15px 15px; +} + +.metabox-prefs label { + display: block; + float: left; + padding: 5px 3px; + white-space: nowrap; + width: 15em; +} + +.metabox-prefs label input { + margin: 0 5px 0 2px; +}