Adds new styles for proposals
This commit is contained in:
@@ -29,12 +29,21 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
background-color: white;
|
background-color: rgba(255,255,255,.8);
|
||||||
height: rem-calc(18);
|
height: rem-calc(12);
|
||||||
margin-bottom: rem-calc(6);
|
margin-bottom: rem-calc(6);
|
||||||
|
margin-top: rem-calc(4);
|
||||||
|
|
||||||
.meter {
|
.meter {
|
||||||
background: $proposals;
|
background: $votes-like;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
abbr {
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
&[title] {
|
||||||
|
border-bottom: 1px dotted white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,11 +67,13 @@
|
|||||||
|
|
||||||
.total-supports {
|
.total-supports {
|
||||||
color: white;
|
color: white;
|
||||||
float: right;
|
text-align: center;
|
||||||
font-size: rem-calc(14);
|
font-size: rem-calc(14);
|
||||||
|
|
||||||
span {
|
span {
|
||||||
|
display: block;
|
||||||
font-size: rem-calc(11);
|
font-size: rem-calc(11);
|
||||||
|
opacity: .75;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,7 +104,7 @@
|
|||||||
background: $warning-bg;
|
background: $warning-bg;
|
||||||
color: $warning-color;
|
color: $warning-color;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
left: -3px;
|
left: 0;
|
||||||
line-height: $line-height;
|
line-height: $line-height;
|
||||||
padding-top: rem-calc(12);
|
padding-top: rem-calc(12);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -116,6 +127,7 @@
|
|||||||
|
|
||||||
.supported {
|
.supported {
|
||||||
color: white;
|
color: white;
|
||||||
|
margin-top: rem-calc(12);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -330,7 +342,6 @@
|
|||||||
.total-supports {
|
.total-supports {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: $line-height;
|
line-height: $line-height;
|
||||||
margin-left: rem-calc(24);
|
|
||||||
padding-top: rem-calc(12);
|
padding-top: rem-calc(12);
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
|
||||||
@@ -342,16 +353,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
|
||||||
.like {
|
|
||||||
|
|
||||||
span {
|
|
||||||
display: block;
|
|
||||||
line-height: $line-height/2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.not-logged {
|
.not-logged {
|
||||||
line-height: $line-height;
|
line-height: $line-height;
|
||||||
padding-top: rem-calc(24);
|
padding-top: rem-calc(24);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
<div class="small-12 column">
|
<div class="small-12 column">
|
||||||
<%= f.label :question, t("proposals.form.proposal_question") %>
|
<%= f.label :question, t("proposals.form.proposal_question") %>
|
||||||
|
<span class="note"><strong>Debe ser resumida en una pregunta cuya respuesta sea Sí o No.</strong> <em>Ej. "¿Está usted de acuerdo en peatonalizar la calle ?"</span>
|
||||||
<%= f.text_field :question, maxlength: Proposal.question_max_length, placeholder: t("proposals.form.proposal_question"), label: false %>
|
<%= f.text_field :question, maxlength: Proposal.question_max_length, placeholder: t("proposals.form.proposal_question"), label: false %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="total-supports">
|
<span class="total-supports">
|
||||||
<%= t("proposals.proposal.supports", count: proposal.total_votes) %> <span><%= t("proposals.proposal.supports_necessary") %></span>
|
<%= t("proposals.proposal.supports", count: proposal.total_votes) %>
|
||||||
|
<!-- percentage of supports -->
|
||||||
|
(0.1%)
|
||||||
|
<!-- /. percentage of supports -->
|
||||||
|
<span>
|
||||||
|
<abbr title="<%= t("proposals.proposal.census_percent") %>">
|
||||||
|
<%= t("proposals.proposal.supports_necessary") %>
|
||||||
|
</abbr>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="in-favor">
|
<div class="in-favor">
|
||||||
@@ -15,7 +23,7 @@
|
|||||||
<%= t("proposals.proposal.support") %>
|
<%= t("proposals.proposal.support") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!-- if user supported dissapear the button and appear this :) -->
|
<!-- if user supported dissapear the button and appear this :) -->
|
||||||
<div class="supported">
|
<div class="supported" style="display: none;">
|
||||||
<%= t("proposals.proposal.already_supported") %>
|
<%= t("proposals.proposal.already_supported") %>
|
||||||
</div>
|
</div>
|
||||||
<!-- /. if user supported dissapear the button and appear this :) -->
|
<!-- /. if user supported dissapear the button and appear this :) -->
|
||||||
|
|||||||
@@ -169,7 +169,8 @@ en:
|
|||||||
zero: No supports
|
zero: No supports
|
||||||
one: 1 support
|
one: 1 support
|
||||||
other: "%{count} supports"
|
other: "%{count} supports"
|
||||||
supports_necessary: "/ 53.726"
|
supports_necessary: "53.726 necessary supports"
|
||||||
|
census_percent: "2% of census"
|
||||||
already_supported: "¡You already supported this proposal!"
|
already_supported: "¡You already supported this proposal!"
|
||||||
form:
|
form:
|
||||||
proposal_title: Proposal title
|
proposal_title: Proposal title
|
||||||
|
|||||||
@@ -169,7 +169,8 @@ es:
|
|||||||
zero: Sin apoyos
|
zero: Sin apoyos
|
||||||
one: 1 apoyo
|
one: 1 apoyo
|
||||||
other: "%{count} apoyos"
|
other: "%{count} apoyos"
|
||||||
supports_necessary: "/ 53.726"
|
supports_necessary: "53.726 apoyos necesarios"
|
||||||
|
census_percent: "2% del Censo"
|
||||||
already_supported: "¡Ya has apoyado esta propuesta!"
|
already_supported: "¡Ya has apoyado esta propuesta!"
|
||||||
form:
|
form:
|
||||||
proposal_title: Título de la propuesta
|
proposal_title: Título de la propuesta
|
||||||
@@ -201,7 +202,7 @@ es:
|
|||||||
submit_button: "Guardar cambios"
|
submit_button: "Guardar cambios"
|
||||||
new:
|
new:
|
||||||
start_new: Empezar una propuesta
|
start_new: Empezar una propuesta
|
||||||
info: "Si quieres que tu propuesta consiga apoyos has de explicarla claramente y de forma que se entienda. Si consigue el número adecuado de apoyos y es llevada a consulta debe ser resumida en una pregunta cuya respuesta sea Sí o No. Si tu propuesta no es suficientemente clara o solo quieres opinar sobre un tema es preferible que inicies un debate."
|
info: "Si quieres que tu propuesta consiga apoyos has de explicarla claramente y de forma que se entienda. Si consigue el número adecuado de apoyos y es llevada a consulta debe ser resumida en una pregunta cuya respuesta sea Sí o No."
|
||||||
more_info: "Más información"
|
more_info: "Más información"
|
||||||
back_link: Volver
|
back_link: Volver
|
||||||
recommendations_title: Recomendaciones para crear una propuesta
|
recommendations_title: Recomendaciones para crear una propuesta
|
||||||
|
|||||||
Reference in New Issue
Block a user