Adds welcome link and styles for proposals show
This commit is contained in:
@@ -487,13 +487,16 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
aside {
|
||||||
border-top: 2px solid $brand;
|
|
||||||
display: inline-block;
|
h3 {
|
||||||
font-size: rem-calc(16);
|
border-top: 2px solid $brand;
|
||||||
margin: -1px 0 rem-calc(12);
|
display: inline-block;
|
||||||
padding-top: rem-calc(6);
|
font-size: rem-calc(16);
|
||||||
text-transform: uppercase;
|
margin: -1px 0 rem-calc(12);
|
||||||
|
padding-top: rem-calc(6);
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.votes {
|
.votes {
|
||||||
|
|||||||
@@ -302,13 +302,21 @@ header {
|
|||||||
font-size: rem-calc(16);
|
font-size: rem-calc(16);
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|
||||||
&.see-more {
|
&.see-more-debates {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
@media (min-width: $small-breakpoint) {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.see-more-proposals {
|
||||||
|
@extend .see-more-debates;
|
||||||
|
|
||||||
|
@media (min-width: $small-breakpoint) {
|
||||||
|
margin-left: rem-calc(12);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-page {
|
.home-page {
|
||||||
@@ -329,7 +337,7 @@ header {
|
|||||||
@media (min-width: $small-breakpoint) {
|
@media (min-width: $small-breakpoint) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-left: rem-calc(24);
|
margin-left: rem-calc(12);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -656,7 +664,7 @@ header {
|
|||||||
@media (min-width: $small-breakpoint) {
|
@media (min-width: $small-breakpoint) {
|
||||||
line-height: $line-height*3;
|
line-height: $line-height*3;
|
||||||
margin-left: rem-calc(12);
|
margin-left: rem-calc(12);
|
||||||
margin-right: rem-calc(72);
|
margin-right: rem-calc(36);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
@@ -772,7 +780,7 @@ footer {
|
|||||||
@extend .tags;
|
@extend .tags;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
border-top: 1px solid $votes-border;
|
border-top: 2px solid $brand;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-family: $font-family-sans-serif;
|
font-family: $font-family-sans-serif;
|
||||||
font-size: rem-calc(16);
|
font-size: rem-calc(16);
|
||||||
|
|||||||
@@ -75,6 +75,7 @@
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
.total-supports {
|
.total-supports {
|
||||||
|
color: $proposals;
|
||||||
float: right;
|
float: right;
|
||||||
font-size: rem-calc(14);
|
font-size: rem-calc(14);
|
||||||
|
|
||||||
@@ -342,7 +343,6 @@
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
.total-supports {
|
.total-supports {
|
||||||
color: $proposals;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: $line-height;
|
line-height: $line-height;
|
||||||
margin-left: rem-calc(24);
|
margin-left: rem-calc(24);
|
||||||
@@ -456,13 +456,16 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
aside {
|
||||||
border-top: 2px solid $brand;
|
|
||||||
display: inline-block;
|
h3 {
|
||||||
font-size: rem-calc(16);
|
border-top: 2px solid $brand;
|
||||||
margin: -1px 0 rem-calc(12);
|
display: inline-block;
|
||||||
padding-top: rem-calc(6);
|
font-size: rem-calc(16);
|
||||||
text-transform: uppercase;
|
margin: -1px 0 rem-calc(12);
|
||||||
|
padding-top: rem-calc(6);
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.supports {
|
.supports {
|
||||||
@@ -539,8 +542,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.icon-proposals {
|
.icon-proposals {
|
||||||
color: $debates;
|
color: $proposals;
|
||||||
font-size: rem-calc(60);
|
font-size: rem-calc(50);
|
||||||
line-height: $line-height;
|
line-height: $line-height;
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
}
|
}
|
||||||
@@ -563,7 +566,7 @@
|
|||||||
margin: rem-calc(12) 0;
|
margin: rem-calc(12) 0;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
color: $debates;
|
color: $proposals;
|
||||||
content: "l ";
|
content: "l ";
|
||||||
font-family: "icons" !important;
|
font-family: "icons" !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if @tag_filter || @search_terms %>
|
<% if @tag_filter || @search_terms %>
|
||||||
<div class="small-12 inline-block medium-5 margin-top inline-block debates-order">
|
<div class="small-12 medium-5 margin-top inline-block debates-order">
|
||||||
<h6 class="inline-block">
|
<h6 class="inline-block">
|
||||||
<%= t("debates.index.select_order") %>
|
<%= t("debates.index.select_order") %>
|
||||||
</h6>
|
</h6>
|
||||||
|
|||||||
@@ -31,9 +31,10 @@
|
|||||||
|
|
||||||
<div class="row-full subnavigation-container">
|
<div class="row-full subnavigation-container">
|
||||||
<section class="subnavigation row">
|
<section class="subnavigation row">
|
||||||
<%#= link_to t("layouts.header.welcome"), root_path %>
|
|
||||||
<%#= link_to t("layouts.header.initiatives"), "#" %>
|
|
||||||
<div class="small-12 medium-8 column">
|
<div class="small-12 medium-8 column">
|
||||||
|
<% if user_signed_in? %>
|
||||||
|
<%= link_to t("layouts.header.welcome"), root_path, class: ("active" if current_page? root_path) %>
|
||||||
|
<% end %>
|
||||||
<%= link_to t("layouts.header.debates"), debates_path, class: ("active" if current_page?(controller: "/debates")) %>
|
<%= link_to t("layouts.header.debates"), debates_path, class: ("active" if current_page?(controller: "/debates")) %>
|
||||||
<%= link_to t("layouts.header.proposals"), proposals_path, class: ("active" if current_page?(controller: "/proposals")) %>
|
<%= link_to t("layouts.header.proposals"), proposals_path, class: ("active" if current_page?(controller: "/proposals")) %>
|
||||||
<%= link_to t("layouts.header.more_information"), "/more_information", class: ("active" if current_page?("/more_information")) %>
|
<%= link_to t("layouts.header.more_information"), "/more_information", class: ("active" if current_page?("/more_information")) %>
|
||||||
@@ -53,8 +54,8 @@
|
|||||||
<div class="small-12 medium-7 column">
|
<div class="small-12 medium-7 column">
|
||||||
<h1><%= t("layouts.header.open_city_title") %></h1>
|
<h1><%= t("layouts.header.open_city_title") %></h1>
|
||||||
<p><%= t("layouts.header.open_city_slogan") %></p>
|
<p><%= t("layouts.header.open_city_slogan") %></p>
|
||||||
<%= link_to t("layouts.header.see_all_debates"), debates_path, class: "button radius see-more" %>
|
<%= link_to t("layouts.header.see_all_debates"), debates_path, class: "button radius see-more-debates" %>
|
||||||
<%= link_to t("layouts.header.see_all_proposals"), proposals_path, class: "button radius see-more" %>
|
<%= link_to t("layouts.header.see_all_proposals"), proposals_path, class: "button radius see-more-proposals" %>
|
||||||
<%= link_to t("layouts.header.more_information"), "/more_information", class: "more-info" %>
|
<%= link_to t("layouts.header.more_information"), "/more_information", class: "more-info" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<% voted_classes = css_classes_for_proposal_vote(@proposal_votes, proposal) %>
|
<% voted_classes = css_classes_for_proposal_vote(@proposal_votes, proposal) %>
|
||||||
<div class="supports">
|
<div class="supports">
|
||||||
|
|
||||||
<div class="progress small-12 radius">
|
<div class="progress small-12 round">
|
||||||
<span class="meter" style="width: <%= progress_bar_percentage(proposal) %>%;"></span>
|
<span class="meter" style="width: <%= progress_bar_percentage(proposal) %>%;"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<%= link_to vote_proposal_path(proposal, value: 'yes'), class: "button button-support tiny radius expand #{voted_classes[:in_favor]}",
|
<%= link_to vote_proposal_path(proposal, value: 'yes'), class: "button button-support tiny radius expand #{voted_classes[:in_favor]}",
|
||||||
title: t('proposals.proposal.support'), method: "post", remote: true do %>
|
title: t('proposals.proposal.support_title'), method: "post", remote: true do %>
|
||||||
<%= t("proposals.proposal.support") %>
|
<%= t("proposals.proposal.support") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<div id="proposals" class="proposals-list small-12 medium-9 column">
|
<div id="proposals" class="proposals-list small-12 medium-9 column">
|
||||||
|
|
||||||
<div class="filters">
|
<div class="filters">
|
||||||
<div class="small-12 medium-7 column">
|
<div class="small-12 medium-7 left">
|
||||||
<% if @search_terms %>
|
<% if @search_terms %>
|
||||||
<h2 class="margin-top">
|
<h2 class="margin-top">
|
||||||
<%= page_entries_info @proposals %>
|
<%= page_entries_info @proposals %>
|
||||||
@@ -24,14 +24,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if @tag_filter || @search_terms %>
|
<% if @tag_filter || @search_terms %>
|
||||||
<div class="small-12 medium-5 margin-top inline-block proposals-order">
|
<div class="small-12 medium-5 margin-top margin-top inline-block proposals-order">
|
||||||
<h6 class="inline-block">
|
<h6 class="inline-block">
|
||||||
<%= t("proposals.index.select_order") %>
|
<%= t("proposals.index.select_order") %>
|
||||||
</h6>
|
</h6>
|
||||||
<%= render 'shared/order_selector', i18n_namespace: "proposals.index" %>
|
<%= render 'shared/order_selector', i18n_namespace: "proposals.index" %>
|
||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="small-12 column margin-top inline-block">
|
<div class="small-12 inline-block">
|
||||||
<h2 class="inline-block">
|
<h2 class="inline-block">
|
||||||
<%= t("proposals.index.select_order_long") %>
|
<%= t("proposals.index.select_order_long") %>
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ en:
|
|||||||
locale: "Language:"
|
locale: "Language:"
|
||||||
administration: Administration
|
administration: Administration
|
||||||
moderation: Moderation
|
moderation: Moderation
|
||||||
# welcome: Welcome
|
welcome: "Welcome"
|
||||||
more_information: "More information"
|
more_information: "More information"
|
||||||
debates: Debates
|
debates: Debates
|
||||||
proposals: Proposals
|
proposals: Proposals
|
||||||
@@ -159,6 +159,7 @@ en:
|
|||||||
proposal:
|
proposal:
|
||||||
proposal: Proposal
|
proposal: Proposal
|
||||||
support: "Support"
|
support: "Support"
|
||||||
|
support_title: "Support this proposal"
|
||||||
comments:
|
comments:
|
||||||
zero: No comments
|
zero: No comments
|
||||||
one: 1 Comment
|
one: 1 Comment
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ es:
|
|||||||
locale: "Idioma:"
|
locale: "Idioma:"
|
||||||
administration: Administrar
|
administration: Administrar
|
||||||
moderation: Moderar
|
moderation: Moderar
|
||||||
# welcome: Portada
|
welcome: "Portada"
|
||||||
more_information: "Más información"
|
more_information: "Más información"
|
||||||
debates: Debates
|
debates: Debates
|
||||||
proposals: Propuestas ciudadanas
|
proposals: Propuestas ciudadanas
|
||||||
@@ -159,6 +159,7 @@ es:
|
|||||||
proposal:
|
proposal:
|
||||||
proposal: Propuesta
|
proposal: Propuesta
|
||||||
support: "Apoyar"
|
support: "Apoyar"
|
||||||
|
support_title: "Apoyar esta propuesta"
|
||||||
comments:
|
comments:
|
||||||
zero: Sin comentarios
|
zero: Sin comentarios
|
||||||
one: 1 Comentario
|
one: 1 Comentario
|
||||||
|
|||||||
Reference in New Issue
Block a user