mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 05:12:09 +08:00
Updated green theme CSS and added comment bubbles.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045499
This commit is contained in:
@@ -110,7 +110,6 @@ input[type="submit"], input[type="button"], .button {
|
|||||||
float:left;
|
float:left;
|
||||||
font-size:220%;
|
font-size:220%;
|
||||||
color:#000;
|
color:#000;
|
||||||
/*padding:16px 0 0 0;*/
|
|
||||||
padding:42px 0 0 0;
|
padding:42px 0 0 0;
|
||||||
border-bottom:none;
|
border-bottom:none;
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
src/Orchard.Web/Themes/Green/Content/Images/commentpointer.gif
Normal file
BIN
src/Orchard.Web/Themes/Green/Content/Images/commentpointer.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 97 B |
@@ -1,7 +1,7 @@
|
|||||||
/*Blog specific styles
|
/*Blog specific styles
|
||||||
----------------------------------------------------------*/
|
----------------------------------------------------------*/
|
||||||
|
|
||||||
.posted, div.comment {
|
.posted {
|
||||||
margin: 0 0 8px 0;
|
margin: 0 0 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,12 +23,32 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.comments li {
|
.comments li {
|
||||||
margin:20px 20px 20px 10px;
|
margin:0 10px 0 0;
|
||||||
padding:8px;
|
padding:8px;
|
||||||
border-bottom:1px solid #eef2ed;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.comment {
|
||||||
|
padding:8px 8px 8px 16px;
|
||||||
|
color: #000;
|
||||||
|
min-width:200px;
|
||||||
|
background:#fff;
|
||||||
|
border:1px solid #CACEC6;
|
||||||
|
-moz-border-radius:6px;
|
||||||
|
-webkit-border-radius:6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.commentauthor {
|
||||||
|
background-position: 20px 0px;
|
||||||
|
padding: 16px 0 0 8px;
|
||||||
|
margin: 0 0 10px 0;
|
||||||
|
background: url(../Content/Images/commentpointer.gif) no-repeat;
|
||||||
|
position:relative;
|
||||||
|
top:-1px;
|
||||||
|
left:10px;
|
||||||
|
}
|
||||||
|
|
||||||
span.who {
|
span.who {
|
||||||
font-weight:700;
|
font-weight:700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ h6 {font-size: 123.1%;} /*16px*/
|
|||||||
|
|
||||||
/* Paragraphs and lists */
|
/* Paragraphs and lists */
|
||||||
|
|
||||||
p {line-height:20px; padding:12px 0px;}
|
p {line-height:24px; padding:12px;}
|
||||||
.small {font-size: 96%;}
|
.small {font-size: 96%;}
|
||||||
|
|
||||||
strong {font-weight:700;}
|
strong {font-weight:700;}
|
||||||
@@ -67,7 +67,7 @@ input[type="text"], textarea, #password {
|
|||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
margin: 20px 20px 20px 10px;
|
margin: 20px 20px 20px 10px;
|
||||||
border:1px solid #eef2ed;
|
border:1px solid #CACEC6;
|
||||||
-moz-border-radius:6px;
|
-moz-border-radius:6px;
|
||||||
-webkit-border-radius:6px;
|
-webkit-border-radius:6px;
|
||||||
}
|
}
|
||||||
@@ -224,7 +224,7 @@ colgroup
|
|||||||
}
|
}
|
||||||
|
|
||||||
#subcolumn ul {
|
#subcolumn ul {
|
||||||
border:1px solid #eef2ed;
|
border:1px solid #CACEC6;
|
||||||
-webkit-border-radius: 6px;
|
-webkit-border-radius: 6px;
|
||||||
-moz-border-radius: 6px;
|
-moz-border-radius: 6px;
|
||||||
padding:8px;
|
padding:8px;
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<% Html.Zone("primary");
|
<% Html.Zone("primary");
|
||||||
Html.ZonesAny(); %>
|
Html.ZonesAny(); %>
|
||||||
|
|
||||||
|
|||||||
17
src/Orchard.Web/Themes/Green/Views/ListOfComments.ascx
Normal file
17
src/Orchard.Web/Themes/Green/Views/ListOfComments.ascx
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<IEnumerable<Comment>>" %>
|
||||||
|
<%@ Import Namespace="Orchard.Comments.Models"%>
|
||||||
|
<ul class="comments"><%
|
||||||
|
foreach (var comment in Model) { %>
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<div class="comment">
|
||||||
|
<p><%=Html.Encode(comment.CommentText) %></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="commentauthor">
|
||||||
|
<span class="who"><%=Html.LinkOrDefault(Html.Encode(comment.UserName), Html.Encode(comment.SiteName), new { rel = "nofollow" })%></span> <span>said <%=Html.Link(Html.DateTimeRelative(comment.CommentDate), "#")%></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li><%
|
||||||
|
} %>
|
||||||
|
</ul>
|
||||||
Reference in New Issue
Block a user