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
This commit is contained in:
azaozz 2008-11-20 22:57:51 +00:00
parent 0f81c61c65
commit bf6504f5a6
7 changed files with 25 additions and 23 deletions

View File

@ -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);
}

View File

@ -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;
}

View File

@ -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);
}

View File

@ -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;
}

View File

@ -65,7 +65,7 @@ $update_count = 0;
if ( !empty($update_plugins->response) )
$update_count = count( $update_plugins->response );
$menu[35] = array( sprintf( __('Plugins %s'), "<span id='update-plugins' class='count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'activate_plugins', 'plugins.php', '', 'menu-top', 'menu-plugins', 'div' );
$menu[35] = array( sprintf( __('Plugins %s'), "<span class='update-plugins count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), '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' );

View File

@ -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 {

View File

@ -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;