Skip to content
Browse files

fixed the layout of nodes in topics/index_secitons.html.erb

  • Loading branch information...
1 parent bf952d5 commit 359ff94393ebf3b6771592fcdd2c5d405375e4c5 @Fleurer Fleurer committed Mar 21, 2012
Showing with 16 additions and 8 deletions.
  1. +10 −4 app/assets/stylesheets/front.scss
  2. +6 −4 app/cells/topics/index_sections.html.erb
View
14 app/assets/stylesheets/front.scss
@@ -213,16 +213,22 @@
font-size: 14px;
padding: 8px 0;
border-top: 1px solid #DDD;
+ position: relative;
+ overflow: auto;
label {
font-size: 12px;
color: #999;
display: inline-block;
width: 120px;
margin-right: 8px;
+ float: left;
text-align: right; }
-
- }
- a { margin-right: 10px; }
+ span.nodes {
+ float: left;
+ width: 550px;
+ }
+ a { margin-right: 10px; }
+ }
}
@@ -246,4 +252,4 @@
text-shadow: 0 1px 0 #fff;
}
}
-}
+}
View
10 app/cells/topics/index_sections.html.erb
@@ -4,10 +4,12 @@
<% @sections.each do |section| %>
<li>
<label><%= section.name %></label>
- <% section.nodes.each do |node| %>
- <%= link_to(node.name, node_topics_path(node), :title => node.name )%>
- <% end %>
+ <span class="nodes">
+ <% section.nodes.each do |node| %>
+ <%= link_to(node.name, node_topics_path(node), :title => node.name )%>
+ <% end %>
+ </span>
</li>
<% end %>
</ul>
-</div>
+</div>

0 comments on commit 359ff94

Please sign in to comment.
Something went wrong with that request. Please try again.