Normalize star ratings markup. Props helenyhou. fixes #20655

git-svn-id: http://core.svn.wordpress.org/trunk@20765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2012-05-10 19:59:48 +00:00
parent 65a3d05fdf
commit 260b3b07fb
3 changed files with 7 additions and 21 deletions

View File

@ -2274,7 +2274,7 @@ body.login {
float: right;
}
/* plugin-install */
/* Star ratings */
div.star-holder {
background: url('../images/stars-rtl.png?ver=20120506.png') repeat-x bottom right;
}
@ -2282,6 +2282,7 @@ div.star-holder .star-rating {
background: url('../images/stars-rtl.png?ver=20120506.png') repeat-x top right;
float: right;
}
#plugin-information ul#sidemenu {
left: auto;
right: 0;
@ -2426,14 +2427,8 @@ h3.tb {
float: right;
}
.theme-details .theme-rating {
.theme-details .star-holder {
float: left;
background: url('../images/stars-rtl.png?ver=20120307') repeat-x bottom right;
}
.theme-details .theme-rating div {
background: url('../images/stars-rtl.png?ver=20120307') repeat-x top right;
float: right;
}
.feature-filter .feature-group {

View File

@ -5509,18 +5509,9 @@ body.full-overlay-active {
float: left;
}
.theme-details .theme-rating {
.theme-details .star-holder {
margin: 14px 0;
width: 100px;
height: 17px;
float: right;
background: url('../images/stars.png?ver=20120307') repeat-x bottom left;
}
.theme-details .theme-rating div {
background: url('../images/stars.png?ver=20120307') repeat-x top left;
height: 17px;
float: left;
}
.theme-details .theme-description {
@ -7129,7 +7120,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
display: block;
}
/* plugin-install */
/* Star ratings */
div.star-holder {
position: relative;
height: 17px;

View File

@ -338,8 +338,8 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
<img class="theme-screenshot" src="<?php echo esc_url( $theme->screenshot_url ); ?>" />
<?php endif; ?>
<div class="theme-details">
<div class="theme-rating" title="<?php echo esc_attr( $num_ratings ); ?>">
<div style="width:<?php echo esc_attr( intval( $theme->rating ) . 'px' ); ?>;"></div>
<div class="star-holder" title="<?php echo esc_attr( $num_ratings ); ?>">
<div class="star-rating" style="width:<?php echo esc_attr( intval( $theme->rating ) . 'px' ); ?>;"></div>
</div>
<div class="theme-version">
<strong><?php _e('Version:') ?> </strong>