diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss
index cc0d294e8..62226e967 100644
--- a/app/assets/stylesheets/layout.scss
+++ b/app/assets/stylesheets/layout.scss
@@ -232,14 +232,13 @@ header {
}
.selected {
- border-bottom: 2px solid white;
- padding-bottom: $line-height/12;
+ border-bottom: 1px solid white;
position: relative;
}
.locale {
float: none;
- font-family: $font-sans;
+ height: $line-height*1.5;
@media (min-width: $small-breakpoint) {
float: left;
@@ -264,7 +263,20 @@ header {
}
.postfix {
+ background: $border;
+ border: 1px solid #ccc;
+ border-left: 0;
+ color: $text;
height: rem-calc(37);
+
+ &:hover {
+ background: $brand;
+ color: white;
+ }
+ }
+
+ input {
+ border-right: 0;
}
input, .button {
@@ -499,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;
@@ -582,18 +593,17 @@ footer {
.tags, .tag-cloud {
a {
- background: $border;
+ background: #ececec;
border-radius: rem-calc(6);
- color: #4d4d4d;
+ color: $text;
display: inline-block;
font-size: $small-font-size;
margin-bottom: $line-height/3;
- padding: 0 $line-height/3;
+ padding: $line-height/4 $line-height/3;
+ text-decoration: none;
&:hover {
- color: $link;
- cursor: pointer;
- background: #E5F1F8;
+ background: #e0e0e0;
}
}
}
@@ -609,27 +619,6 @@ footer {
padding-top: $line-height/4;
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
@@ -1224,34 +1213,14 @@ table {
}
.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 {
- font-size: rem-calc(24);
- line-height: $line-height;
+ font-size: $h3-font-size;
margin: 0 $line-height/2;
text-decoration: none;
- vertical-align: middle;
&:hover {
- opacity: .5;
- text-decoration: none;
- }
-
- @media (min-width: $small-breakpoint) {
- font-size: rem-calc(18);
- }
-
- &:last-child {
- margin-right: 0;
+ color: $brand;
}
}
}
diff --git a/app/assets/stylesheets/mixins.scss b/app/assets/stylesheets/mixins.scss
index f913ed464..3b2bde372 100644
--- a/app/assets/stylesheets/mixins.scss
+++ b/app/assets/stylesheets/mixins.scss
@@ -18,8 +18,9 @@
font-weight: lighter;
@media (min-width: $small-breakpoint) {
- font-size: rem-calc(24);
- line-height: rem-calc(48);
+ font-size: $h3-font-size;
+ line-height: $line-height*2;
+ margin-top: 0;
}
img {
@@ -28,7 +29,7 @@
@media (min-width: $small-breakpoint) {
height: 80px;
- margin-right: rem-calc(12);
+ margin-right: $line-height/2;
margin-top: 0;
width: 80px;
}
diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss
index 57110299c..c7d296744 100644
--- a/app/assets/stylesheets/participation.scss
+++ b/app/assets/stylesheets/participation.scss
@@ -824,7 +824,7 @@
}
.featured-debates-container, .featured-proposals-container {
- margin: 0 !important;
+ margin: $line-height 0 !important;
h2 {
font-size: rem-calc(24);
diff --git a/app/assets/stylesheets/variables.scss b/app/assets/stylesheets/variables.scss
index 72fb27788..d9da9c580 100644
--- a/app/assets/stylesheets/variables.scss
+++ b/app/assets/stylesheets/variables.scss
@@ -44,11 +44,11 @@ $line-height: rem-calc(24);
// 02. Colors
// - - - - - - - - - - - - - - - - - - - - - - - - -
+$brand: #004A83;
$body: #E9E9E9;
$background: #EDEFF0;
-$dark: #0B0C0C;
$border: #DEE0E3;
-$brand: #004A83;
+$dark: darken($brand, 10%);
$text: #222222;
$text-medium: #999999;
diff --git a/app/views/debates/index.html.erb b/app/views/debates/index.html.erb
index 16197f221..3312fa0e7 100644
--- a/app/views/debates/index.html.erb
+++ b/app/views/debates/index.html.erb
@@ -24,16 +24,16 @@
<% end %>
+ <% unless @tag_filter || @search_terms %>
+ <%= render "featured_debates_static" %>
+ <% end %>
+
<%= render 'shared/order_links', i18n_namespace: "debates.index" %>
<%= link_to t("debates.index.start_debate"), new_debate_path, class: 'button radius expand' %>
- <% unless @tag_filter || @search_terms %>
- <%= render "featured_debates_static" %>
- <% end %>
-
<%= render @debates %>
<%= paginate @debates %>
diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb
index 63294b480..78899aba5 100644
--- a/app/views/layouts/_header.html.erb
+++ b/app/views/layouts/_header.html.erb
@@ -5,25 +5,7 @@
<%= 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_opendata"), "/opendata", class: ("selected" if current_page?("/opendata")) %> |
-
- <%= link_to "https://twitter.com/abriendomadrid", target: "_blank", title: t("social.twitter") do %>
- <%= t("social.twitter") %>
-
- <% end %>
- <%= link_to "https://www.facebook.com/Abriendo-Madrid-1475577616080350/", target: "_blank", title: t("social.facebook") do %>
- <%= t("social.facebook") %>
-
- <% end %>
- <%= link_to "/blog", target: "_blank", title: t("social.blog") do %>
- <%= t("social.blog") %>
-
- <% end %>
- <%= link_to "https://www.youtube.com/channel/UCFmaChI9quIY7lwHplnacfg", target: "_blank", title: t("social.youtube") do %>
- <%= t("social.youtube") %>
-
- <% end %>
-
+ <%= link_to t("layouts.header.external_link_opendata"), "/opendata", class: ("selected" if current_page?("/opendata")) %>
@@ -51,7 +33,7 @@
-
+
<%= 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.more_information"), page_path('more_information'), class: ("active" if current_page?("/more_information")) %>
@@ -60,7 +42,7 @@
<% end %>
-
+
<%= yield :header_addon %>
diff --git a/app/views/proposals/index.html.erb b/app/views/proposals/index.html.erb
index 6db5e3fc1..d7fdadee9 100644
--- a/app/views/proposals/index.html.erb
+++ b/app/views/proposals/index.html.erb
@@ -24,12 +24,6 @@
<% end %>
- <%= render 'shared/order_links', i18n_namespace: "proposals.index" %>
-
-
- <%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button radius expand' %>
-
-
<% if @featured_proposals.present? %>
@@ -48,6 +42,12 @@
<% end %>
+ <%= render 'shared/order_links', i18n_namespace: "proposals.index" %>
+
+
+ <%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button radius expand' %>
+
+
<%= render partial: 'proposals/proposal', collection: @proposals %>
<%= paginate @proposals %>
diff --git a/app/views/shared/_tag_cloud.html.erb b/app/views/shared/_tag_cloud.html.erb
index cc377f34d..fe46b6263 100644
--- a/app/views/shared/_tag_cloud.html.erb
+++ b/app/views/shared/_tag_cloud.html.erb
@@ -5,7 +5,7 @@
<% tag_cloud @tag_cloud, %w[s m l] do |tag, css_class| %>
<%= link_to taggable_path(taggable, tag.name), class: css_class do %>
<%= tag.name %>
-
<%= tag.send(taggable_counter_field(taggable)) %>
+ (<%= tag.send(taggable_counter_field(taggable)) %>)
<% end %>
<% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index aa98ad002..f8edcd12a 100755
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -170,7 +170,7 @@ en:
search_form:
title: "Search"
button: "Search"
- placeholder: "Search citizen proposals..."
+ placeholder: "Search proposals..."
search_results:
one: " containing the term '%{search_term}'"
other: " containing the term '%{search_term}'"
diff --git a/config/locales/es.yml b/config/locales/es.yml
index 3badabc04..8d2a2c2f7 100644
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -170,7 +170,7 @@ es:
search_form:
title: "Buscar"
button: "Buscar"
- placeholder: "Buscar propuestas ciudadanas..."
+ placeholder: "Buscar propuestas..."
search_results:
one: " que contiene '%{search_term}'"
other: " que contienen '%{search_term}'"
diff --git a/spec/features/tags_spec.rb b/spec/features/tags_spec.rb
index 2bd729448..3f57c6b91 100644
--- a/spec/features/tags_spec.rb
+++ b/spec/features/tags_spec.rb
@@ -63,10 +63,10 @@ feature 'Tags' do
visit debates_path
within(:css, "#tag-cloud") do
- 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(3)")).to have_content("Educación 5")
- expect(page.find("a:eq(4)")).to have_content("Medio Ambiente 1")
+ 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(3)")).to have_content("Educación (5)")
+ expect(page.find("a:eq(4)")).to have_content("Medio Ambiente (1)")
end
end