summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/show_object_rating.inc.php2
-rw-r--r--templates/show_object_rating_static.inc.php10
-rw-r--r--themes/classic/templates/default.css20
3 files changed, 16 insertions, 16 deletions
diff --git a/templates/show_object_rating.inc.php b/templates/show_object_rating.inc.php
index d2908b5f..ad512c0d 100644
--- a/templates/show_object_rating.inc.php
+++ b/templates/show_object_rating.inc.php
@@ -57,6 +57,6 @@ else echo "$rating->rating of 5</li>\n";
<?php
// Add in the 0 / Remove rating level
- echo "<span class=\"zero-stars\">" . Ajax::text($base_url . '&rating=-1','','rating0_' . $rating->id,'','zero-stars') . "</span>\n";
+ echo "<div class=\"zero-stars\">" . Ajax::text($base_url . '&rating=-1','','rating0_' . $rating->id,'','zero-stars') . "</div>\n";
echo "</div>\n";
?>
diff --git a/templates/show_object_rating_static.inc.php b/templates/show_object_rating_static.inc.php
index 763c115a..fc22da8b 100644
--- a/templates/show_object_rating_static.inc.php
+++ b/templates/show_object_rating_static.inc.php
@@ -39,19 +39,19 @@ else echo "$rating->rating of 5</li>\n";
//it did not like my "1-star", "2-star" ... css styles, and I changed it to this after I realized star1... would have worked :\
?>
<li>
- <span class="one-stars" title="1 <?php echo _('out of'); ?> 5">1</span>
+ <div class="one-stars" title="1 <?php echo _('out of'); ?> 5">1</div>
</li>
<li>
- <span class="two-stars" title="2 <?php echo _('out of'); ?> 5">2</span>
+ <div class="two-stars" title="2 <?php echo _('out of'); ?> 5">2</div>
</li>
<li>
- <span class="three-stars" title="3 <?php echo _('out of'); ?> 5">3</span>
+ <div class="three-stars" title="3 <?php echo _('out of'); ?> 5">3</div>
</li>
<li>
- <span class="four-stars" title="4 <?php echo _('out of'); ?> 5">4</span>
+ <div class="four-stars" title="4 <?php echo _('out of'); ?> 5">4</div>
</li>
<li>
- <span class="five-stars" title="5 <?php echo _('out of'); ?> 5">5</span>
+ <div class="five-stars" title="5 <?php echo _('out of'); ?> 5">5</div>
</li>
</ul>
</div>
diff --git a/themes/classic/templates/default.css b/themes/classic/templates/default.css
index c9c5024a..8ebf0a0a 100644
--- a/themes/classic/templates/default.css
+++ b/themes/classic/templates/default.css
@@ -395,7 +395,7 @@ h3#content_title span {
}
.star-rating ul,
-.star-rating span:hover,
+.star-rating div:hover,
.star-rating .current-rating{
background: url(../../../images/ratings/star_rating.gif) left -1000px repeat-x;
}
@@ -412,7 +412,7 @@ h3#content_title span {
.star-rating li{
display: inline;
}
-.star-rating span,
+.star-rating div,
.star-rating .current-rating{
position:absolute;
top:0;
@@ -424,24 +424,24 @@ h3#content_title span {
overflow:hidden;
border: none;
}
-.star-rating span.one-stars { width:20%; z-index:6; }
-.star-rating span.two-stars { width:40%; z-index:5; }
-.star-rating span.three-stars{ width:60%; z-index:4; }
-.star-rating span.four-stars { width:80%; z-index:3; }
-.star-rating span.five-stars { width:100%; z-index:2; }
+.star-rating div.one-stars { width:20%; z-index:6; }
+.star-rating div.two-stars { width:40%; z-index:5; }
+.star-rating div.three-stars{ width:60%; z-index:4; }
+.star-rating div.four-stars { width:80%; z-index:3; }
+.star-rating div.five-stars { width:100%; z-index:2; }
.star-rating .current-rating { z-index:1; background-position: left bottom; }
-.star-rating span.zero-stars {
+.star-rating div.zero-stars {
left:80px;
width:16px;
background-image: url(../../../images/ratings/x_off.gif);
}
/* hovering effect only for dynamic star rating */
-.dynamic-star-rating span:hover{
+.dynamic-star-rating div:hover{
background-position: left center;
}
-.dynamic-star-rating span:hover.zero-stars {
+.dynamic-star-rating div:hover.zero-stars {
background-image: url(../../../images/ratings/x.gif);
}