Moves featured debates and proposals
This commit is contained in:
@@ -511,8 +511,7 @@ header {
|
||||
color: $text;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
margin-right: $line-height;
|
||||
margin-right: 12px\9;
|
||||
margin-right: $line-height/2;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
|
||||
|
||||
@@ -824,7 +824,7 @@
|
||||
}
|
||||
|
||||
.featured-debates-container, .featured-proposals-container {
|
||||
margin: 0 !important;
|
||||
margin: $line-height 0 !important;
|
||||
|
||||
h2 {
|
||||
font-size: rem-calc(24);
|
||||
|
||||
@@ -24,16 +24,16 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% unless @tag_filter || @search_terms %>
|
||||
<%= render "featured_debates_static" %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'shared/order_links', i18n_namespace: "debates.index" %>
|
||||
|
||||
<div class="show-for-small-only">
|
||||
<%= link_to t("debates.index.start_debate"), new_debate_path, class: 'button radius expand' %>
|
||||
</div>
|
||||
|
||||
<% unless @tag_filter || @search_terms %>
|
||||
<%= render "featured_debates_static" %>
|
||||
<% end %>
|
||||
|
||||
<%= render @debates %>
|
||||
<%= paginate @debates %>
|
||||
</div>
|
||||
|
||||
@@ -24,12 +24,6 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= render 'shared/order_links', i18n_namespace: "proposals.index" %>
|
||||
|
||||
<div class="show-for-small-only">
|
||||
<%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button radius expand' %>
|
||||
</div>
|
||||
|
||||
<% if @featured_proposals.present? %>
|
||||
<div id="featured-proposals" class="row featured-proposals-container">
|
||||
<div class="small-12 medium-3 column">
|
||||
@@ -48,6 +42,12 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= render 'shared/order_links', i18n_namespace: "proposals.index" %>
|
||||
|
||||
<div class="show-for-small-only">
|
||||
<%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button radius expand' %>
|
||||
</div>
|
||||
|
||||
<%= render partial: 'proposals/proposal', collection: @proposals %>
|
||||
<%= paginate @proposals %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user