From bf6504f5a6060ff285f8b3dd53e3fa66ae17f995 Mon Sep 17 00:00:00 2001 From: azaozz Date: Thu, 20 Nov 2008 22:57:51 +0000 Subject: [PATCH] Use css class instead of id to prevent validation errors with multiple instances, fixes #8192 git-svn-id: http://svn.automattic.com/wordpress/trunk@9823 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/colors-classic-rtl.css | 2 +- wp-admin/css/colors-classic.css | 10 +++++----- wp-admin/css/colors-fresh-rtl.css | 2 +- wp-admin/css/colors-fresh.css | 10 +++++----- wp-admin/menu.php | 2 +- wp-admin/rtl.css | 8 +++++--- wp-admin/wp-admin.css | 14 +++++++------- 7 files changed, 25 insertions(+), 23 deletions(-) diff --git a/wp-admin/css/colors-classic-rtl.css b/wp-admin/css/colors-classic-rtl.css index c034f152b8..ae43cd45f8 100644 --- a/wp-admin/css/colors-classic-rtl.css +++ b/wp-admin/css/colors-classic-rtl.css @@ -12,7 +12,7 @@ background-image: url(../images/bubble_bg-rtl.gif); } -#adminmenu li a #awaiting-mod, #adminmenu li a #update-plugins { +#adminmenu li a #awaiting-mod, #adminmenu li a span.update-plugins { background-image: url(../images/comment-stalk-rtl.gif); } diff --git a/wp-admin/css/colors-classic.css b/wp-admin/css/colors-classic.css index 7a3fe180e5..dd3b02eb28 100644 --- a/wp-admin/css/colors-classic.css +++ b/wp-admin/css/colors-classic.css @@ -491,13 +491,13 @@ body.press-this .ui-tabs-selected a:hover { color: #d54e21; } -#adminmenu li a #awaiting-mod, #adminmenu li a #update-plugins { +#adminmenu li a #awaiting-mod, #adminmenu li a span.update-plugins { background-image: url(../images/comment-stalk-fresh.gif); } #adminmenu li a #awaiting-mod span, -#adminmenu li a #update-plugins span, -#sidemenu li a #update-plugins span, +#adminmenu li a span.update-plugins span, +#sidemenu li a span.update-plugins span, #rightnow .reallynow, #plugin-information .action-button { background-color: #d54e21; @@ -505,8 +505,8 @@ body.press-this .ui-tabs-selected a:hover { } #adminmenu li a:hover #awaiting-mod span, -#adminmenu li a:hover #update-plugins span, -#sidemenu li a:hover #update-plugins span { +#adminmenu li a:hover span.update-plugins span, +#sidemenu li a:hover span.update-plugins span { background-color: #264761; } diff --git a/wp-admin/css/colors-fresh-rtl.css b/wp-admin/css/colors-fresh-rtl.css index a02be32c92..21598c5204 100644 --- a/wp-admin/css/colors-fresh-rtl.css +++ b/wp-admin/css/colors-fresh-rtl.css @@ -12,7 +12,7 @@ background-image: url(../images/bubble_bg-rtl.gif); } -#adminmenu li a #awaiting-mod, #adminmenu li a #update-plugins { +#adminmenu li a #awaiting-mod, #adminmenu li a span.update-plugins { background-image: url(../images/comment-stalk-rtl.gif); } diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index 7a3fe180e5..dd3b02eb28 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -491,13 +491,13 @@ body.press-this .ui-tabs-selected a:hover { color: #d54e21; } -#adminmenu li a #awaiting-mod, #adminmenu li a #update-plugins { +#adminmenu li a #awaiting-mod, #adminmenu li a span.update-plugins { background-image: url(../images/comment-stalk-fresh.gif); } #adminmenu li a #awaiting-mod span, -#adminmenu li a #update-plugins span, -#sidemenu li a #update-plugins span, +#adminmenu li a span.update-plugins span, +#sidemenu li a span.update-plugins span, #rightnow .reallynow, #plugin-information .action-button { background-color: #d54e21; @@ -505,8 +505,8 @@ body.press-this .ui-tabs-selected a:hover { } #adminmenu li a:hover #awaiting-mod span, -#adminmenu li a:hover #update-plugins span, -#sidemenu li a:hover #update-plugins span { +#adminmenu li a:hover span.update-plugins span, +#sidemenu li a:hover span.update-plugins span { background-color: #264761; } diff --git a/wp-admin/menu.php b/wp-admin/menu.php index a7a7c9ea11..16208217a3 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -65,7 +65,7 @@ $update_count = 0; if ( !empty($update_plugins->response) ) $update_count = count( $update_plugins->response ); -$menu[35] = array( sprintf( __('Plugins %s'), "" . number_format_i18n($update_count) . "" ), 'activate_plugins', 'plugins.php', '', 'menu-top', 'menu-plugins', 'div' ); +$menu[35] = array( sprintf( __('Plugins %s'), "" . number_format_i18n($update_count) . "" ), 'activate_plugins', 'plugins.php', '', 'menu-top', 'menu-plugins', 'div' ); $submenu['plugins.php'][5] = array( __('Installed'), 'activate_plugins', 'plugins.php' ); $submenu['plugins.php'][10] = array(_c('Add New|plugin'), 'install_plugins', 'plugin-install.php'); $submenu['plugins.php'][15] = array( __('Editor'), 'edit_plugins', 'plugin-editor.php' ); diff --git a/wp-admin/rtl.css b/wp-admin/rtl.css index 44c9e31f48..017818d619 100644 --- a/wp-admin/rtl.css +++ b/wp-admin/rtl.css @@ -178,11 +178,13 @@ td.available-theme { /* 1000 - 1300 =================================== */ #adminmenu a #awaiting-mod, -#adminmenu a #update-plugins, -#sidemenu li a #update-plugins { +#adminmenu a span.update-plugins, +#sidemenu li a span.update-plugins { background-position: -240px top; } -#adminmenu li a:hover #awaiting-mod, #adminmenu li a:hover #update-plugins, #sidemenu li a:hover #update-plugins { +#adminmenu li a:hover #awaiting-mod, +#adminmenu li a:hover span.update-plugins, +#sidemenu li a:hover span.update-plugins { background-position: -160px top; } #adminmenu li a #awaiting-mod span, #adminmenu li a #update-plugins span, #sidemenu li a #update-plugins span { diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 5adaf3bf78..738bd87e7b 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -1125,8 +1125,8 @@ a#view-site-link { /* 2.6 */ #adminmenu a #awaiting-mod, -#adminmenu a #update-plugins, -#sidemenu li a #update-plugins { +#adminmenu a span.update-plugins, +#sidemenu li a span.update-plugins { position: absolute; margin-top: 0.2em; font-size: 0.7em; @@ -1136,7 +1136,7 @@ a#view-site-link { width: 1em; } -#adminmenu li a .count-0, +#adminmenu li span.count-0, #sidemenu li a .count-0 { display: none; } @@ -1177,14 +1177,14 @@ strong .post-com-count { } #adminmenu li a:hover #awaiting-mod, -#adminmenu li a:hover #update-plugins, -#sidemenu li a:hover #update-plugins { +#adminmenu li a:hover span.update-plugins, +#sidemenu li a:hover span.update-plugins { background-position: -80px bottom; } #adminmenu li a #awaiting-mod span, -#adminmenu li a #update-plugins span, -#sidemenu li a #update-plugins span { +#adminmenu li a span.update-plugins span, +#sidemenu li a span.update-plugins span { top: -0.8em; right: 0; position: absolute;