mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 19:44:02 +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;
|
float:left;
|
||||||
}
|
}
|
||||||
.contentItems .related {
|
.contentItems .related {
|
||||||
@@ -50,13 +53,14 @@
|
|||||||
.properties li p {
|
.properties li p {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
.rating {width:130px;}
|
||||||
.ratings {
|
.ratings {
|
||||||
float: right;
|
float: right;
|
||||||
background:url(../Content/Images/stars.png) repeat-x;
|
background:url(../Content/Images/stars.png) repeat-x;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
display: block;
|
display: block;
|
||||||
margin:4px 0 0 4px;
|
margin:3px 0 0 0;
|
||||||
}
|
}
|
||||||
.score {
|
.score {
|
||||||
background: url(../Content/Images/stars.png) repeat-x 0 -14px;
|
background: url(../Content/Images/stars.png) repeat-x 0 -14px;
|
||||||
|
|||||||
@@ -86,11 +86,10 @@
|
|||||||
<li> | @T("Website: ")
|
<li> | @T("Website: ")
|
||||||
@if (!string.IsNullOrEmpty(item.ProjectUrl)) { <a href="@item.ProjectUrl">@item.ProjectUrl</a> } else { @T("Unknown").ToString() }
|
@if (!string.IsNullOrEmpty(item.ProjectUrl)) { <a href="@item.ProjectUrl">@item.ProjectUrl</a> } else { @T("Unknown").ToString() }
|
||||||
</li>
|
</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="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 class="score" style="width:@(15 * (item.Rating))px"> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -91,11 +91,10 @@
|
|||||||
<li> | @T("Website: ")
|
<li> | @T("Website: ")
|
||||||
@if (!string.IsNullOrEmpty(item.ProjectUrl)) { <a href="@item.ProjectUrl">@item.ProjectUrl</a> } else { @T("Unknown").ToString() }
|
@if (!string.IsNullOrEmpty(item.ProjectUrl)) { <a href="@item.ProjectUrl">@item.ProjectUrl</a> } else { @T("Unknown").ToString() }
|
||||||
</li>
|
</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="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 class="score" style="width:@(15 * (item.Rating))px"> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user