Skip to content

Commit 32f8053

Browse files
committed
Merge pull request ruby-china#416 from Martin91/add-dividing-line-between-best-articles
Add dividing line between best articles
2 parents aa4a42c + 1860cf4 commit 32f8053

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/assets/stylesheets/application.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ a.followed {
506506
a.active { color: #333; border-bottom: 1px dotted #ccc; text-decoration: none; }
507507
a.popular.active { color: $red; border-bottom-color: $red;}
508508
}
509+
.topics-group:first-child {
510+
@media (max-width: 991px) {
511+
.topic:last-child { border-bottom: 1px solid #F0F0F0; }
512+
}
513+
}
509514
.topic {
510515
min-height: 68px;
511516
border-bottom: 1px solid #F0F0F0;

app/views/home/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949
<%
5050
odd_topics, even_topics = @excellent_topics.partition.each_with_index { |t, i| i.odd? }
5151
%>
52-
<div class="col-md-6">
52+
<div class="col-md-6 topics-group">
5353
<% cache([odd_topics, "odd"]) do %>
5454
<%= render partial: "topics/topic", collection: odd_topics, locals: { suggest: false } %>
5555
<% end %>
5656
</div>
5757

58-
<div class="col-md-6">
58+
<div class="col-md-6 topics-group">
5959
<% cache([even_topics, "even"]) do %>
6060
<%= render partial: "topics/topic", collection: even_topics, locals: { suggest: false } %>
6161
<% end %>

0 commit comments

Comments
 (0)