mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Merge
--HG-- branch : dev
This commit is contained in:
@@ -22,7 +22,7 @@ using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, Fo
|
|||||||
if (!Request.IsAuthenticated) {
|
if (!Request.IsAuthenticated) {
|
||||||
|
|
||||||
<fieldset class="who">
|
<fieldset class="who">
|
||||||
<legend id="addacomment">@T("Add a Comment")</legend>
|
<legend id="add-comment">@T("Add a Comment")</legend>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<label for="Name">@T("Name")</label>
|
<label for="Name">@T("Name")</label>
|
||||||
@@ -41,14 +41,15 @@ using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, Fo
|
|||||||
} else {
|
} else {
|
||||||
@Html.Hidden("Name", WorkContext.CurrentUser.UserName ?? "")
|
@Html.Hidden("Name", WorkContext.CurrentUser.UserName ?? "")
|
||||||
@Html.Hidden("Email", WorkContext.CurrentUser.Email ?? "")
|
@Html.Hidden("Email", WorkContext.CurrentUser.Email ?? "")
|
||||||
|
|
||||||
|
<h2 id="comment-by">@if (Request.IsAuthenticated) { @T("Hi, {0}!", Html.Encode(WorkContext.CurrentUser.UserName))}</h2>
|
||||||
}
|
}
|
||||||
|
|
||||||
<h2 id="commenter">@if (Request.IsAuthenticated) { @T("Hi, {0}!", Html.Encode(WorkContext.CurrentUser.UserName))}</h2>
|
|
||||||
<fieldset class="what">
|
<fieldset class="what">
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<label for="CommentText">@T("Comment")</label>
|
<label for="comment-text">@T("Comment")</label>
|
||||||
<textarea id="CommentText" rows="10" cols="30" name="CommentText"></textarea>
|
<textarea id="comment-text" rows="10" cols="30" name="comment-text"></textarea>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<input type="submit" class="button" value="@T("Submit Comment")" />
|
<input type="submit" class="button" value="@T("Submit Comment")" />
|
||||||
|
@@ -7,6 +7,7 @@ Copyright: 2010, Orchard. All Rights Reserved
|
|||||||
|
|
||||||
/* Color Palette
|
/* Color Palette
|
||||||
**************************************************************
|
**************************************************************
|
||||||
|
|
||||||
Background: #fff
|
Background: #fff
|
||||||
Borders: #dbdbdb
|
Borders: #dbdbdb
|
||||||
Text: #434343
|
Text: #434343
|
||||||
@@ -61,6 +62,7 @@ header, footer, aside, nav, article { display: block; }
|
|||||||
|
|
||||||
/* Clearing Floats
|
/* Clearing Floats
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
.group:after
|
.group:after
|
||||||
{
|
{
|
||||||
content: ".";
|
content: ".";
|
||||||
@@ -83,6 +85,7 @@ header, footer, aside, nav, article { display: block; }
|
|||||||
|
|
||||||
/* General
|
/* General
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
/* Default font settings.
|
/* Default font settings.
|
||||||
The font-size 62.5% sets the base font to 10px */
|
The font-size 62.5% sets the base font to 10px */
|
||||||
body {
|
body {
|
||||||
@@ -154,6 +157,7 @@ pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height:
|
|||||||
|
|
||||||
/* Structure
|
/* Structure
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
#layout-wrapper
|
#layout-wrapper
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -264,6 +268,7 @@ nav ul
|
|||||||
.zone-asidethird { padding: 0 0 6px 0; }
|
.zone-asidethird { padding: 0 0 6px 0; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Main
|
/* Main
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
@@ -313,49 +318,39 @@ nav ul
|
|||||||
/* Secondary
|
/* Secondary
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
|
/* Comments */
|
||||||
|
.comment {}
|
||||||
|
.comment .who {}
|
||||||
|
.comment .what {}
|
||||||
|
.comment #add-comment {}
|
||||||
|
|
||||||
|
.comment #comment-by { font-size: 1.6em; font-weight: normal; margin: 0 0 1.2em 0; border:none; }
|
||||||
|
.comment #comment-text { width: 33.2em; }
|
||||||
|
.comment input[type="text"] { width: 32em; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Forms
|
/* Forms
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
label { font-weight: normal; display:block; }
|
form { margin: 0; padding: 0; }
|
||||||
label.forcheckbox { margin:0 0 0 .4em; display:inline; }
|
legend { font-size: 1.6em; font-weight: normal; margin: 0 0 1.2em 0; border:none; }
|
||||||
fieldset { padding:0em; margin: 0 0 0em 0; border: 0px solid #dbdbdb; }
|
fieldset { padding:0em; margin: 0 0 0em 0; border: 0px solid #dbdbdb; }
|
||||||
legend { font-weight: 600; font-size:1.2em; }
|
label { font-size: 1.3em; font-weight: normal; display:block; padding: 0 0 0.3em 0; }
|
||||||
|
label.forcheckbox { margin:0 0 0 .4em; display:inline; }
|
||||||
|
|
||||||
input[type="text"], #CommentText, #password, #confirmPassword {
|
input[type="text"], input[type="password"] {
|
||||||
border:1px solid #999;
|
|
||||||
display: block;
|
display: block;
|
||||||
padding:6px;
|
padding: 0.3em;
|
||||||
width:50%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
form.search {
|
|
||||||
margin-bottom:2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search input[type=text] {
|
|
||||||
display:inline;
|
|
||||||
width:17em;
|
|
||||||
}
|
|
||||||
|
|
||||||
fieldset ol {list-style-type:none;}
|
|
||||||
|
|
||||||
fieldset ol li {margin:1.6em 0 0 0}
|
|
||||||
|
|
||||||
legend {
|
|
||||||
font-size: 1.4em;
|
|
||||||
border:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
font-size: 1.3em;
|
|
||||||
margin:0 0 .3em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
margin:.2em 0 1.2em 0;
|
margin:.2em 0 1.2em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fieldset ol { list-style-type:none; padding: 0; margin: 0; }
|
||||||
|
fieldset ol li { margin: 0 0 6px 0; }
|
||||||
|
|
||||||
|
/*
|
||||||
input[type="submit"], input[type="button"], button, .button, .button:link, .button:visited {
|
input[type="submit"], input[type="button"], button, .button, .button:link, .button:visited {
|
||||||
color:#333;
|
color:#333;
|
||||||
background:#F5F5F5;
|
background:#F5F5F5;
|
||||||
@@ -379,6 +374,7 @@ button:focus, .button:focus {
|
|||||||
background: -webkit-gradient(linear, left top, left bottom, from(#e1e1e1), to(#ebebeb));
|
background: -webkit-gradient(linear, left top, left bottom, from(#e1e1e1), to(#ebebeb));
|
||||||
background:-moz-linear-gradient(top , #e1e1e1, #ebebeb);
|
background:-moz-linear-gradient(top , #e1e1e1, #ebebeb);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -416,23 +412,8 @@ button:focus, .button:focus {
|
|||||||
/* CSS 3 Enhancements
|
/* CSS 3 Enhancements
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* For testing purposes */
|
/* For testing purposes */
|
||||||
#comments, #commenter {
|
|
||||||
font-size:1.6em;
|
|
||||||
font-weight:600;
|
|
||||||
margin:1.2em 0 1.8em 1.2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#commenter {
|
|
||||||
margin:1.2em 0 0 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul.comments, form.comment {
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
article.comment h4 {
|
article.comment h4 {
|
||||||
font-size:1.4em;
|
font-size:1.4em;
|
||||||
|
Reference in New Issue
Block a user