Clean css and views of custom content
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
// 08. Legislation changes
|
||||
// 09. Legislation comments
|
||||
// 10. Legislation draft comment
|
||||
// 11. Legislation proposals
|
||||
//
|
||||
|
||||
// 01. Utils
|
||||
@@ -1057,3 +1058,26 @@ $border-dark: darken($border, 10%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 11. Legislation proposals
|
||||
// -------------------------
|
||||
|
||||
.proposal-show {
|
||||
|
||||
&.legislation-proposal-show h1 {
|
||||
font-size: rem-calc(24);
|
||||
|
||||
@include breakpoint(medium) {
|
||||
font-size: rem-calc(36);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.legislation-proposals {
|
||||
margin-top: rem-calc(-6);
|
||||
|
||||
.proposal h3 {
|
||||
font-size: rem-calc(20);
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
<% content_for :meta_description do %><%= @proposal.summary %><% end %>
|
||||
<% provide :social_media_meta_tags do %>
|
||||
<%= render "shared/social_media_meta_tags",
|
||||
social_url: proposal_url(@proposal),
|
||||
social_url: legislation_process_proposal_url(process_id: @process),
|
||||
social_title: @proposal.title,
|
||||
social_description: @proposal.summary %>
|
||||
<% end %>
|
||||
<% content_for :canonical do %>
|
||||
<%= render "shared/canonical", href: proposal_url(@proposal) %>
|
||||
<%= render "shared/canonical", href: legislation_process_proposal_url(process_id: @process) %>
|
||||
<% end %>
|
||||
|
||||
<% cache [locale_and_user_status(@proposal), @proposal, @proposal.author, Flag.flagged?(current_user, @proposal), @legislation_proposal_votes] do %>
|
||||
<div class="proposal-show">
|
||||
<div class="proposal-show legislation-proposal-show">
|
||||
<div id="<%= dom_id(@proposal) %>" class="row">
|
||||
<div class="small-12 medium-9 column">
|
||||
<%= back_link_to legislation_process_proposals_path(process_id: @process) %>
|
||||
@@ -103,7 +103,8 @@
|
||||
<%= render partial: 'shared/social_share', locals: {
|
||||
share_title: t("proposals.show.share"),
|
||||
title: @proposal.title,
|
||||
url: proposal_url(@proposal)
|
||||
url: legislation_process_proposal_url(process_id: @process),
|
||||
description: @proposal.summary
|
||||
} %>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user