diff --git a/wp-admin/css/colors-classic.css b/wp-admin/css/colors-classic.css index 39f784ac89..67eae6a2f0 100644 --- a/wp-admin/css/colors-classic.css +++ b/wp-admin/css/colors-classic.css @@ -78,10 +78,14 @@ strong .post-com-count span { #post-body ul#category-tabs li.ui-tabs-selected, .button-secondary, #quicktags, #login form .submit input, .search-box .button, -#ed_reply_toolbar { +#ed_reply_toolbar, .favorite-action, #favorite-first { background-color: #8ebddc !important; } +#favorite-actions .favorite-action { + border-top-color: #8ebddc; +} + ul#widget-list li.widget-list-item h4.widget-title { background-color: #f0f0f0; color: #000; @@ -209,7 +213,14 @@ ul#widget-list li.widget-list-item h4.widget-title { color: #666; } -.submit input, .button, .button-secondary, #login form .submit input, div.dashboard-widget-submit input, #edit-slug-buttons a.save { +.submit input, +.button, +.button-secondary, +#login form .submit input, +div.dashboard-widget-submit input, +#edit-slug-buttons a.save, +.favorite-action, +#favorite-first { background-color: #e5e5e5; color: #07273e; border-color: #a3a3a3; diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index e2cf34cd63..5b8e9294d8 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -78,10 +78,14 @@ strong .post-com-count span { #post-body ul#category-tabs li.ui-tabs-selected, .button-secondary, #quicktags, #login form .submit input, .search-box .button, -#ed_reply_toolbar { +#ed_reply_toolbar, .favorite-action, #favorite-first { background-color: #cee1ef !important; } +#favorite-actions .favorite-action { + border-top-color: #cee1ef; +} + ul#widget-list li.widget-list-item h4.widget-title { background-color: #f0f0f0; color: #000; @@ -209,7 +213,14 @@ ul#widget-list li.widget-list-item h4.widget-title { color: #666; } -.submit input, .button, .button-secondary, #login form .submit input, div.dashboard-widget-submit input, #edit-slug-buttons a.save { +.submit input, +.button, +.button-secondary, +#login form .submit input, +div.dashboard-widget-submit input, +#edit-slug-buttons a.save, +.favorite-action, +#favorite-first { background-color: #e5e5e5; color: #246; border-color: #80b5d0; diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 4977b31f69..9d275f136e 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2479,23 +2479,20 @@ function the_post_password() { function favorite_actions() { $actions = array( - 'post-new.php' => __('Add New Post'), 'page-new.php' => __('Add New Page'), + 'edit-comments.php' => __('Manage Comments') ); $actions = apply_filters('favorite_actions', $actions); - echo '
'; - echo '

'; - echo ''; - echo ''; - echo '

'; - echo '
'; + echo "\n"; } ?> diff --git a/wp-admin/js/common.js b/wp-admin/js/common.js index 5be9584941..b085ebbb90 100644 --- a/wp-admin/js/common.js +++ b/wp-admin/js/common.js @@ -76,6 +76,8 @@ jQuery( function($) { $('#adminmenu li.wp-has-submenu > a').click( function() { return menuToggle( $(this).siblings('ul') ); } ); $('#dashmenu li.wp-has-submenu').bind( 'mouseenter mouseleave', function() { return menuToggle( $(this).children('ul'), 'toggle' ); } ); + + $('#favorite-actions').bind( 'mouseenter mouseleave', function(){$('#favorite-action').slideToggle('fast')} ); } ); diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index a442a1daef..9b735c162d 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -1579,13 +1579,6 @@ p.search-box .button, #widget-search .button { border-style: solid; } -p.favorite-actions { - position: absolute; - right: 15px; - top: 52px; - margin: 0; -} - #posts-filter fieldset { float: left; margin: 0 1.5ex 1em 0; @@ -2497,3 +2490,47 @@ abbr.required { .find-box-search label { padding-right: 6px; } + +/* favorite-actions */ +#favorite-actions { + position: absolute; + right: 15px; + top: 55px; + width: 130px; + z-index: 10; +} + +#favorite-first { + -moz-border-radius: 4px; + -khtml-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + border-width: 1px; + border-style: solid; + padding: 4px 8px; +} + +.favorite-action { + margin: -3px 0 0; + padding: 4px 8px; + border-width: 1px; + border-top-width: 3px; + border-style: solid; + -moz-border-radius: 0 0 4px 4px; + -webkit-border-bottom-right-radius: 4px; + -webkit-border-bottom-left-radius: 4px; + -khtml-border-bottom-right-radius: 4px; + -khtml-border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; +} + +#favorite-action { + padding: 0; + margin: 0; + display: none; +} +#favorite-actions a { + padding: 4px 0; + text-decoration: none; +}