mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 11:44:41 +08:00
Small update to ratings alignment.
--HG-- branch : dev
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
.extensionName {
|
||||
.orchard-packaging #main .contentItems p {
|
||||
margin:0;
|
||||
}
|
||||
.extensionName {
|
||||
float:left;
|
||||
}
|
||||
.contentItems .related {
|
||||
@@ -50,13 +53,14 @@
|
||||
.properties li p {
|
||||
float: left;
|
||||
}
|
||||
.rating {width:130px;}
|
||||
.ratings {
|
||||
float: right;
|
||||
background:url(../Content/Images/stars.png) repeat-x;
|
||||
height: 14px;
|
||||
width: 75px;
|
||||
display: block;
|
||||
margin:4px 0 0 4px;
|
||||
margin:3px 0 0 0;
|
||||
}
|
||||
.score {
|
||||
background: url(../Content/Images/stars.png) repeat-x 0 -14px;
|
||||
|
||||
@@ -86,11 +86,10 @@
|
||||
<li> | @T("Website: ")
|
||||
@if (!string.IsNullOrEmpty(item.ProjectUrl)) { <a href="@item.ProjectUrl">@item.ProjectUrl</a> } else { @T("Unknown").ToString() }
|
||||
</li>
|
||||
<li> | @T("Rating: ")
|
||||
<li class="rating"> | @T("Rating: ")
|
||||
<div class="ratings" style="width:@(15 * 5)px" title="@T("Ratings: {0} ({1})", item.Rating, item.RatingsCount)">
|
||||
<div class="score" style="width:@(15 * (item.Rating))px"> </div>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -91,11 +91,10 @@
|
||||
<li> | @T("Website: ")
|
||||
@if (!string.IsNullOrEmpty(item.ProjectUrl)) { <a href="@item.ProjectUrl">@item.ProjectUrl</a> } else { @T("Unknown").ToString() }
|
||||
</li>
|
||||
<li> | @T("Rating: ")
|
||||
<div class="ratings" style="width:@(15 * 5)px;" title="@T("Ratings: {0} ({1})", item.Rating, item.RatingsCount)">
|
||||
<div class="score" style="width:@(15 * (item.Rating))px;"> </div>
|
||||
<li class="rating"> | @T("Rating: ")
|
||||
<div class="ratings" style="width:@(15 * 5)px" title="@T("Ratings: {0} ({1})", item.Rating, item.RatingsCount)">
|
||||
<div class="score" style="width:@(15 * (item.Rating))px"> </div>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user