@@ -232,14 +232,13 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.selected {
|
.selected {
|
||||||
border-bottom: 2px solid white;
|
border-bottom: 1px solid white;
|
||||||
padding-bottom: $line-height/12;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.locale {
|
.locale {
|
||||||
float: none;
|
float: none;
|
||||||
font-family: $font-sans;
|
height: $line-height*1.5;
|
||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
@media (min-width: $small-breakpoint) {
|
||||||
float: left;
|
float: left;
|
||||||
@@ -264,7 +263,20 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.postfix {
|
.postfix {
|
||||||
|
background: $border;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-left: 0;
|
||||||
|
color: $text;
|
||||||
height: rem-calc(37);
|
height: rem-calc(37);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: $brand;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
border-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
input, .button {
|
input, .button {
|
||||||
@@ -499,8 +511,7 @@ header {
|
|||||||
color: $text;
|
color: $text;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-right: $line-height;
|
margin-right: $line-height/2;
|
||||||
margin-right: 12px\9;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
@@ -582,18 +593,17 @@ footer {
|
|||||||
.tags, .tag-cloud {
|
.tags, .tag-cloud {
|
||||||
|
|
||||||
a {
|
a {
|
||||||
background: $border;
|
background: #ececec;
|
||||||
border-radius: rem-calc(6);
|
border-radius: rem-calc(6);
|
||||||
color: #4d4d4d;
|
color: $text;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: $small-font-size;
|
font-size: $small-font-size;
|
||||||
margin-bottom: $line-height/3;
|
margin-bottom: $line-height/3;
|
||||||
padding: 0 $line-height/3;
|
padding: $line-height/4 $line-height/3;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $link;
|
background: #e0e0e0;
|
||||||
cursor: pointer;
|
|
||||||
background: #E5F1F8;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -609,27 +619,6 @@ footer {
|
|||||||
padding-top: $line-height/4;
|
padding-top: $line-height/4;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
|
||||||
background: white;
|
|
||||||
border: 2px solid $border;
|
|
||||||
padding: $line-height/4 $line-height/3;
|
|
||||||
|
|
||||||
.label {
|
|
||||||
color: white;
|
|
||||||
|
|
||||||
&.info {
|
|
||||||
background: rgba(0,0,0,.5);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
|
|
||||||
.label {
|
|
||||||
background: $brand;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 05. Auth pages
|
// 05. Auth pages
|
||||||
@@ -1224,34 +1213,14 @@ table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.social {
|
.social {
|
||||||
margin-top: $line-height;
|
|
||||||
padding-top: $line-height/4;
|
|
||||||
text-align: center;
|
|
||||||
vertical-align: middle;
|
|
||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
|
||||||
margin-top: 0;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
font-size: rem-calc(24);
|
font-size: $h3-font-size;
|
||||||
line-height: $line-height;
|
|
||||||
margin: 0 $line-height/2;
|
margin: 0 $line-height/2;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
vertical-align: middle;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: .5;
|
color: $brand;
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
|
||||||
font-size: rem-calc(18);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:last-child {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,8 +18,9 @@
|
|||||||
font-weight: lighter;
|
font-weight: lighter;
|
||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
@media (min-width: $small-breakpoint) {
|
||||||
font-size: rem-calc(24);
|
font-size: $h3-font-size;
|
||||||
line-height: rem-calc(48);
|
line-height: $line-height*2;
|
||||||
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@@ -28,7 +29,7 @@
|
|||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
@media (min-width: $small-breakpoint) {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
margin-right: rem-calc(12);
|
margin-right: $line-height/2;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -824,7 +824,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.featured-debates-container, .featured-proposals-container {
|
.featured-debates-container, .featured-proposals-container {
|
||||||
margin: 0 !important;
|
margin: $line-height 0 !important;
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: rem-calc(24);
|
font-size: rem-calc(24);
|
||||||
|
|||||||
@@ -44,11 +44,11 @@ $line-height: rem-calc(24);
|
|||||||
// 02. Colors
|
// 02. Colors
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
$brand: #004A83;
|
||||||
$body: #E9E9E9;
|
$body: #E9E9E9;
|
||||||
$background: #EDEFF0;
|
$background: #EDEFF0;
|
||||||
$dark: #0B0C0C;
|
|
||||||
$border: #DEE0E3;
|
$border: #DEE0E3;
|
||||||
$brand: #004A83;
|
$dark: darken($brand, 10%);
|
||||||
|
|
||||||
$text: #222222;
|
$text: #222222;
|
||||||
$text-medium: #999999;
|
$text-medium: #999999;
|
||||||
|
|||||||
@@ -24,16 +24,16 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<% unless @tag_filter || @search_terms %>
|
||||||
|
<%= render "featured_debates_static" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<%= render 'shared/order_links', i18n_namespace: "debates.index" %>
|
<%= render 'shared/order_links', i18n_namespace: "debates.index" %>
|
||||||
|
|
||||||
<div class="show-for-small-only">
|
<div class="show-for-small-only">
|
||||||
<%= link_to t("debates.index.start_debate"), new_debate_path, class: 'button radius expand' %>
|
<%= link_to t("debates.index.start_debate"), new_debate_path, class: 'button radius expand' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% unless @tag_filter || @search_terms %>
|
|
||||||
<%= render "featured_debates_static" %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render @debates %>
|
<%= render @debates %>
|
||||||
<%= paginate @debates %>
|
<%= paginate @debates %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,25 +5,7 @@
|
|||||||
<div class="external-links">
|
<div class="external-links">
|
||||||
<%= link_to t("layouts.header.participation_html"), root_path, class: ("selected" unless current_page?("/opendata")) %> |
|
<%= link_to t("layouts.header.participation_html"), root_path, class: ("selected" unless current_page?("/opendata")) %> |
|
||||||
<%= link_to t("layouts.header.external_link_transparency"), t("layouts.header.external_link_transparency_url") %> |
|
<%= link_to t("layouts.header.external_link_transparency"), t("layouts.header.external_link_transparency_url") %> |
|
||||||
<%= link_to t("layouts.header.external_link_opendata"), "/opendata", class: ("selected" if current_page?("/opendata")) %> |
|
<%= link_to t("layouts.header.external_link_opendata"), "/opendata", class: ("selected" if current_page?("/opendata")) %>
|
||||||
<div class="social inline-block">
|
|
||||||
<%= link_to "https://twitter.com/abriendomadrid", target: "_blank", title: t("social.twitter") do %>
|
|
||||||
<span class="sr-only"><%= t("social.twitter") %></span>
|
|
||||||
<i class="icon-twitter"></i>
|
|
||||||
<% end %>
|
|
||||||
<%= link_to "https://www.facebook.com/Abriendo-Madrid-1475577616080350/", target: "_blank", title: t("social.facebook") do %>
|
|
||||||
<span class="sr-only"><%= t("social.facebook") %></span>
|
|
||||||
<i class="icon-facebook"></i>
|
|
||||||
<% end %>
|
|
||||||
<%= link_to "/blog", target: "_blank", title: t("social.blog") do %>
|
|
||||||
<span class="sr-only"><%= t("social.blog") %></span>
|
|
||||||
<i class="icon-blog"></i>
|
|
||||||
<% end %>
|
|
||||||
<%= link_to "https://www.youtube.com/channel/UCFmaChI9quIY7lwHplnacfg", target: "_blank", title: t("social.youtube") do %>
|
|
||||||
<span class="sr-only"><%= t("social.youtube") %></span>
|
|
||||||
<i class="icon-youtube"></i>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -51,7 +33,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="subnavigation row">
|
<section class="subnavigation row">
|
||||||
<div class="small-12 medium-8 column">
|
<div class="small-12 medium-9 column">
|
||||||
<%= 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"), page_path('more_information'), class: ("active" if current_page?("/more_information")) %>
|
<%= link_to t("layouts.header.more_information"), page_path('more_information'), class: ("active" if current_page?("/more_information")) %>
|
||||||
@@ -60,7 +42,7 @@
|
|||||||
<small><i class="icon-external"></i></small>
|
<small><i class="icon-external"></i></small>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-12 medium-4 column right">
|
<div class="small-12 medium-3 column">
|
||||||
<%= yield :header_addon %>
|
<%= yield :header_addon %>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -24,12 +24,6 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</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? %>
|
<% if @featured_proposals.present? %>
|
||||||
<div id="featured-proposals" class="row featured-proposals-container">
|
<div id="featured-proposals" class="row featured-proposals-container">
|
||||||
<div class="small-12 medium-3 column">
|
<div class="small-12 medium-3 column">
|
||||||
@@ -48,6 +42,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% 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 %>
|
<%= render partial: 'proposals/proposal', collection: @proposals %>
|
||||||
<%= paginate @proposals %>
|
<%= paginate @proposals %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<% tag_cloud @tag_cloud, %w[s m l] do |tag, css_class| %>
|
<% tag_cloud @tag_cloud, %w[s m l] do |tag, css_class| %>
|
||||||
<%= link_to taggable_path(taggable, tag.name), class: css_class do %>
|
<%= link_to taggable_path(taggable, tag.name), class: css_class do %>
|
||||||
<%= tag.name %>
|
<%= tag.name %>
|
||||||
<span class='label round info'><%= tag.send(taggable_counter_field(taggable)) %></span>
|
(<%= tag.send(taggable_counter_field(taggable)) %>)
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ en:
|
|||||||
search_form:
|
search_form:
|
||||||
title: "Search"
|
title: "Search"
|
||||||
button: "Search"
|
button: "Search"
|
||||||
placeholder: "Search citizen proposals..."
|
placeholder: "Search proposals..."
|
||||||
search_results:
|
search_results:
|
||||||
one: " containing the term '%{search_term}'"
|
one: " containing the term '%{search_term}'"
|
||||||
other: " containing the term '%{search_term}'"
|
other: " containing the term '%{search_term}'"
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ es:
|
|||||||
search_form:
|
search_form:
|
||||||
title: "Buscar"
|
title: "Buscar"
|
||||||
button: "Buscar"
|
button: "Buscar"
|
||||||
placeholder: "Buscar propuestas ciudadanas..."
|
placeholder: "Buscar propuestas..."
|
||||||
search_results:
|
search_results:
|
||||||
one: " que contiene '%{search_term}'"
|
one: " que contiene '%{search_term}'"
|
||||||
other: " que contienen '%{search_term}'"
|
other: " que contienen '%{search_term}'"
|
||||||
|
|||||||
@@ -63,10 +63,10 @@ feature 'Tags' do
|
|||||||
visit debates_path
|
visit debates_path
|
||||||
|
|
||||||
within(:css, "#tag-cloud") do
|
within(:css, "#tag-cloud") do
|
||||||
expect(page.find("a:eq(1)")).to have_content("Economía 10")
|
expect(page.find("a:eq(1)")).to have_content("Economía (10)")
|
||||||
expect(page.find("a:eq(2)")).to have_content("Corrupción 5")
|
expect(page.find("a:eq(2)")).to have_content("Corrupción (5)")
|
||||||
expect(page.find("a:eq(3)")).to have_content("Educación 5")
|
expect(page.find("a:eq(3)")).to have_content("Educación (5)")
|
||||||
expect(page.find("a:eq(4)")).to have_content("Medio Ambiente 1")
|
expect(page.find("a:eq(4)")).to have_content("Medio Ambiente (1)")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user