Skip to content

Commit 36dbedc

Browse files
committed
Merge pull request cnodejs#71 from jiyinyiyong/master
修改"???回复于"的显示顺序, 添加样式
2 parents 69f0d83 + 07b051e commit 36dbedc

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

public/stylesheets/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/* base */
2+
* {
3+
-webkit-transition-duration: 0.2s;
4+
}
25
body,p {
36
font-size: 12px;
47
line-height: 16px;
@@ -124,10 +127,14 @@ a.light:hover {
124127
padding: 12px 10px 12px 10px;
125128
border-bottom: 1px solid hsl(120,10%,90%);
126129
overflow: hidden;
130+
white-space: nowrap;
127131
}
128132
.cell:last-child {
129133
border-bottom: none;
130134
}
135+
.cell:hover {
136+
background: hsl(0,0%,96%);
137+
}
131138
.board .floor {
132139
line-height: 30px;
133140
}
@@ -420,6 +427,9 @@ a.count:hover {
420427
-moz-border-radius: 3px;
421428
border-radius: 3px;
422429
}
430+
.mark_read_btn > img {
431+
float: right;
432+
}
423433
/* markdown editor */
424434
.wmd-button-bar {
425435
margin-left: 0px;

views/topic/abstract.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
<div class='click_part'>
2222
点击数 <%= topic.visit_count %>
2323
</div>
24-
<a class='dark' href='/user/<%= topic.author.name %>'><%= topic.author.name %> </a>
2524
<% if(topic.reply){ %>
2625
<div class='reply_part'>
26+
<a class='dark' href='/user/<%= topic.reply.author.name %>'><%= topic.reply.author.name %> </a>
2727
回复于
2828
<%= topic.reply.friendly_create_at %>
29-
<a class='dark' href='/user/<%= topic.reply.author.name %>'><%= topic.reply.author.name %> </a>
3029
</div>
3130
<% }else{ %>
31+
<a class='dark' href='/user/<%= topic.author.name %>'><%= topic.author.name %> </a>
3232
<div class='reply_part'>
3333
创建于 <%= topic.friendly_create_at %>
3434
</div>

0 commit comments

Comments
 (0)