Skip to content

Commit f76c6d8

Browse files
author
Wenming Tang
committed
change style
1 parent 5a2cfe3 commit f76c6d8

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

src/Ghost/PostBundle/Resources/views/Topic/topic_list.html.twig

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
<div class="avatar">
33
<a href="{{ path('user_show', {'username': item.user.username}) }}"><img width="48" height="48" src="{{ gravatar(item.user.email) }}"/></a>
44
</div>
5+
6+
{% if item.repliesCount %}
7+
<div class="replies">
8+
<a href="{{ path('topic_show', { 'id': item.id }) }}#reply{{ item.repliesCount }}">{{ item.repliesCount }}</a>
9+
</div>
10+
{% endif %}
511
<div class="right">
612
{% if item.repliesCount %}
7-
<div class="replies">
8-
<a href="{{ path('topic_show', { 'id': item.id }) }}#reply{{ item.repliesCount }}">{{ item.repliesCount }}</a>
9-
</div>
10-
<h3><a href="{{ path('topic_show', { 'id': item.id }) }}#reply{{ item.repliesCount }}">{{ item.title }}</a>
11-
</h3>
13+
<h3><a href="{{ path('topic_show', { 'id': item.id }) }}#reply{{ item.repliesCount }}">{{ item.title }}</a></h3>
1214
{% else %}
1315
<h3><a href="{{ path('topic_show', { 'id': item.id }) }}">{{ item.title }}</a></h3>
1416
{% endif %}
15-
1617
<div class="meta">
1718
{% if category is not defined %}
1819
<a href="{{ path('topic_by_category', {'categoryAlias': item.category.alias}) }}" class="category">{{ item.category.name }}</a> •
1920
{% endif %}
2021
<a href="{{ path('user_show', {'username': item.user.username}) }}">{{ item.user.username }}</a> • posted {{ item.created|time_ago }}
2122
{% if item.lastPoster %}
22-
• last reply by
23-
<a href="{{ path('user_show', {'username': item.lastPoster}) }}">{{ item.lastPoster }}</a>
23+
• last reply by <a href="{{ path('user_show', {'username': item.lastPoster}) }}">{{ item.lastPoster }}</a>
2424
{% endif %}
2525
</div>
2626
</div>

web/css/style.css

+16-15
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,21 @@ pre {
148148

149149
.topics .topic .right, .replies .reply .right {
150150
padding-left: 58px;
151+
padding-right: 30px;
151152
}
152153

153-
.topics .right .replies a {
154+
.topics .topic h3 {
155+
font-size: 14px;
156+
font-weight: normal;
157+
margin-top: 5px;
158+
margin-bottom: 8px;
159+
}
160+
161+
.topics .topic .replies {
162+
float: right;
163+
}
164+
165+
.topics .topic .replies a {
154166
display: inline-block;
155167
padding: 2px 9px;
156168
font-size: 10px;
@@ -164,29 +176,18 @@ pre {
164176
text-decoration: none;
165177
}
166178

167-
.topics .right .replies a:hover {
179+
.topics .topic .replies a:hover {
168180
background-color: #1DC115;
169181
}
170182

171-
.topics .right .replies a:visited {
183+
.topics .topic .replies a:visited {
172184
background-color: #E5E5E5;
173185
}
174186

175-
.topics .right .replies a:visited:hover {
187+
.topics .topic .replies a:visited:hover {
176188
background-color: #aaa;
177189
}
178190

179-
.topics .topic .replies {
180-
float: right;
181-
}
182-
183-
.topics .topic h3 {
184-
font-size: 14px;
185-
font-weight: normal;
186-
margin-top: 5px;
187-
margin-bottom: 8px;
188-
}
189-
190191
.topics .topic .meta, .topic .meta, .replies .reply .meta {
191192
color: #999;
192193
}

0 commit comments

Comments
 (0)