1
0
mirror of https://github.com/typecho/typecho.git synced 2025-03-24 11:59:46 +01:00

添加评论编辑框

This commit is contained in:
fen 2013-10-16 12:29:09 +08:00
parent 85b6b48db4
commit 0387c9585b
2 changed files with 60 additions and 27 deletions

@ -181,8 +181,20 @@ button {
height: 28px;
}
button.primary {
border-color: #8ABAD7;
border-bottom-color: #64a4ca;
color: #467b96;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e8f2f8), color-stop(100%, #d9eaf2));
background-image: -webkit-linear-gradient(#e8f2f8, #d9eaf2);
background-image: -moz-linear-gradient(#e8f2f8, #d9eaf2);
background-image: -o-linear-gradient(#e8f2f8, #d9eaf2);
background-image: linear-gradient(#e8f2f8, #d9eaf2);
}
button, .dropdown-menu {
border: 1px solid #bbbbbb;
border: 1px solid #BBB;
border-bottom-color: #AAA;
-webkit-box-shadow: rgba(0, 0, 0, 0.12) 0 1px 2px, inset white 0 1px 0;
-moz-box-shadow: rgba(0, 0, 0, 0.12) 0 1px 2px, inset white 0 1px 0;
@ -191,8 +203,13 @@ button, .dropdown-menu {
border-radius: 2px;
}
button:hover {
background: #F6F6F6;
color: #777;
}
button:disabled, button:active, button.active {
background: #EEE;
background: #DDD;
-webkit-box-shadow: inset rgba(0, 0, 0, 0.12) 0 0 4px;
-moz-box-shadow: inset rgba(0, 0, 0, 0.12) 0 0 4px;
box-shadow: inset rgba(0, 0, 0, 0.12) 0 0 4px; }
@ -207,22 +224,6 @@ button:disabled {
box-shadow: none;
}
button:hover {
background: #F6F6F6;
color: #777;
}
button.primary {
border-color: #8ABAD7;
border-bottom-color: #64a4ca;
color: #467b96;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e8f2f8), color-stop(100%, #d9eaf2));
background-image: -webkit-linear-gradient(#e8f2f8, #d9eaf2);
background-image: -moz-linear-gradient(#e8f2f8, #d9eaf2);
background-image: -o-linear-gradient(#e8f2f8, #d9eaf2);
background-image: linear-gradient(#e8f2f8, #d9eaf2);
}
button.primary:hover {
background: #e0eef6;
color: #5591b0;
@ -1093,6 +1094,7 @@ a.operate-reply {
.typecho-list-table td {
padding: 10px;
border-top: 1px solid #F0F0EC;
word-break: break-all;
}
.typecho-list-table td .thumb-box {
@ -1169,6 +1171,10 @@ a.operate-reply {
.comment-action a, .comment-action span { margin-right: 4px; }
.comment-edit label {
display: block;
}
/* 下拉操作按钮 */
/*.typecho-list-table tr:hover .drop-action { display: block; }
@ -1359,10 +1365,10 @@ ul.typecho-list-notable li .loading {
/*ul.typecho-list-notable li #typecho-respond {
display: inline;
}*/
}
#typecho-respond textarea {
}
}*/
/**
* 模板列表
@ -1376,12 +1382,6 @@ ul.typecho-list-notable li .loading {
.typecho-theme-list td {
}
.typecho-theme-list td.border-right {
}
.typecho-theme-list td.border-bottom {
}
.typecho-theme-list img {
margin: 1em 0;
max-width: 100%;

@ -93,6 +93,39 @@ $comments = Typecho_Widget::widget('Widget_Comments_Admin');
</tr>
</thead>
<tbody>
<!-- 编辑评论 -->
<tr class="comment-edit">
<td></td>
<td colspan="2" valign="top">
<p>
<label for="">用户名</label>
<input class="text-s w-100" type="text">
</p>
<p>
<label for="">Email</label>
<input class="text-s w-100" type="email">
</p>
<p>
<label for="">IP 地址</label>
<input class="text-s w-100" type="text">
</p>
</td>
<td valign="top">
<p>
<label for="">发布时间</label>
<input class="text-s w-40" type="text">
</p>
<p>
<label for="">内容</label>
<textarea name="" id="" rows="4" class="w-90"></textarea>
</p>
<p>
<button type="submit" class="btn-s primary">提交</button>
<button type="button" class="btn-s">取消</button>
</p>
</td>
</tr><!-- end .comment-edit -->
<?php if($comments->have()): ?>
<?php while($comments->next()): ?>
<tr id="<?php $comments->theId(); ?>">
@ -123,7 +156,7 @@ $comments = Typecho_Widget::widget('Widget_Comments_Admin');
</div>
<form action="post" class="comment-reply">
<p><textarea name="" id="" class="w-90" rows="3"></textarea></p>
<p><button type="submit" class="btn-s">提交回复</button></p>
<p><button type="submit" class="btn-s">回复</button></p>
</form>
<div class="comment-action hidden-by-mouse">
<?php if('approved' == $comments->status): ?>