Skip to content

Commit

Permalink
add section.no-padding style
Browse files Browse the repository at this point in the history
  • Loading branch information
chloerei committed Mar 8, 2012
1 parent df18db2 commit 19c0043
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions app/assets/stylesheets/code_campo.scss
Expand Up @@ -203,11 +203,14 @@ section {
overflow: hidden;
padding: 14px;

&#notifications,
&#topics,
&#replies {
&.no-padding {
padding: 0;

header {
margin-bottom: 0;
padding: 10px;
}

footer {
margin-top: 0;
padding: 10px;
Expand Down
2 changes: 1 addition & 1 deletion app/views/homepage/index.haml
Expand Up @@ -4,7 +4,7 @@
.container
.row
#mainbar.span9
%section#topics.box
%section#topics.box.no-padding
%table.item-list
%tbody
= render :partial => 'topics/topic', :collection => @topics
Expand Down
2 changes: 1 addition & 1 deletion app/views/notifications/index.haml
Expand Up @@ -3,7 +3,7 @@
.row
#mainbar.span9
- if @notifications.any?
%section.box#notifications
%section.box#notifications.no-padding
%table.item-list
%tbody
- @notifications.each do |notification|
Expand Down
2 changes: 1 addition & 1 deletion app/views/topics/index.haml
Expand Up @@ -24,7 +24,7 @@
.row
#mainbar.span9
- if @topics.any?
%section#topics.box
%section#topics.box.no-padding
%table.item-list
%tbody
= render :partial => 'topic', :collection => @topics
Expand Down
2 changes: 1 addition & 1 deletion app/views/topics/show.haml
Expand Up @@ -44,7 +44,7 @@
~ format_text @topic.content, :mention_names => @topic.mentioned_user_names
%footer
= render :partial => 'marks_count', :locals => {:topic => @topic}
%section#replies.box
%section#replies.box.no-padding
%table.item-list
%tbody
= render :partial => 'replies/reply', :collection => @replies
Expand Down

0 comments on commit 19c0043

Please sign in to comment.