Some Comments UI work

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4046029
This commit is contained in:
skewed
2010-01-27 23:10:27 +00:00
parent 9ac369032d
commit 0c71dc6611
3 changed files with 20 additions and 26 deletions

View File

@@ -49,13 +49,12 @@ h1, h2, h3, h4, h5, h6
.home h1
{
font-size: 2em;
padding-bottom: 0;
margin-bottom: 0;
}
h1
{
padding: 0 0 10px 0;
font-size: 2em;
}
h3
{
@@ -70,13 +69,6 @@ h5, h6
font-size: 1em;
}
/* this rule styles <h2> tags that are the
first child of the left and right table columns */
.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
{
margin-top: 0;
}
/* PRIMARY LAYOUT ELEMENTS
----------------------------------------------------------*/
@@ -111,7 +103,7 @@ page width. Or, you can specify an exact pixel width. */
#main
{
padding: 30px 30px 15px 30px;
padding: 15px 30px 30px;
background-color: #fff;
margin-bottom: 30px;
overflow:auto;
@@ -341,10 +333,7 @@ div#title
}
.metadata {
color:#999;
margin-top:-2em;
}
.blog.metadata {
margin-top:-1.5em;
margin-top:-1em;
}
.metadata, p.tags {
font-size:95%;
@@ -457,9 +446,14 @@ form.comment fieldset.who, form.comment fieldset.what {
float:left;
margin-right:15px;
}
form.comment p.who {
font-weight:bold;
margin:0;
}
form.comment label {
font-weight:bold;
margin-top:15px;
line-height:1.6em;
}
form.comment .button {
margin-top:15px;
@@ -480,18 +474,19 @@ ul.tagCloud li {
----------------------------------------------------------*/
.contentItems {
background:#FFF;
margin:1.4em 0;
padding:2px;
margin:0;
padding:0;
}
.contentItems li {
background:#FFF;
border-bottom:1px solid #E0E8EF;
margin:0;
overflow:hidden;
padding:.7em 0;
padding:0 0 .7em;
}
.contentItems li.last {
border-bottom:0;
padding-bottom:0;
}
.contentItems li h3 {
border-bottom:0;

View File

@@ -3,5 +3,5 @@
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
<%@ Import Namespace="Orchard.Blogs.Models"%>
<h2><%=Html.Link(Html.Encode(Model.Item.Name), Url.Blog(Model.Item.Slug)) %></h2>
<div class="blog metadata"><a href="<%=Url.Blog(Model.Item.Slug) %>"><%Html.Zone("meta");%><%--<%=_Encoded("{0} post{1}", Model.Item.PostCount, Model.Item.PostCount == 1 ? "" : "s")%>--%></a></div>
<p><%=Html.Encode(Model.Item.Description) %></p>
<% if (!string.IsNullOrEmpty(Model.Item.Description)) { %><p><%=Html.Encode(Model.Item.Description) %></p><% } %>
<div class="blog metadata"><%=_Encoded("{0} post{1}", Model.Item.PostCount, Model.Item.PostCount == 1 ? "" : "s")%> | <%Html.Zone("meta");%></div>

View File

@@ -7,10 +7,9 @@ if (Model.CommentsActive == false) { %>
} else { %>
<% using(Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, FormMethod.Post, new { @class = "comment" })) { %>
<%=Html.ValidationSummary() %>
<fieldset class="who"><%
if (Request.IsAuthenticated) { %>
<p><%=Html.Encode(Page.User.Identity.Name)%></p><%
} else { %>
<%
if (!Request.IsAuthenticated) { %>
<fieldset class="who">
<div>
<label for="Name"><%=_Encoded("Name") %></label>
<input id="Name" class="text" name="Name" type="text" />
@@ -22,12 +21,12 @@ if (Model.CommentsActive == false) { %>
<div>
<label for="SiteName"><%=_Encoded("Url") %></label>
<input id="SiteName" class="text" name="SiteName" type="text" />
</div><%
</div>
</fieldset><%
} %>
</fieldset>
<fieldset class="what">
<div>
<label for="CommentText"><%=_Encoded("Leave a comment") %></label>
<label for="CommentText"><% if (Request.IsAuthenticated) { %><%=T("Hi, {0}!", Html.Encode(Page.User.Identity.Name)) %><br /><% } %><%=_Encoded("Leave a comment") %></label>
<textarea id="CommentText" rows="10" cols="30" name="CommentText"></textarea>
</div>
<div>