From 39b55e11df7edc2befb8e03f41d4e0e72c6e1403 Mon Sep 17 00:00:00 2001 From: decabeza Date: Mon, 15 Jan 2018 21:21:24 +0100 Subject: [PATCH] changes text and makes bigger link to delete a marker on a map --- app/assets/stylesheets/layout.scss | 19 +++++++++++++++++++ app/helpers/map_locations_helper.rb | 2 +- config/locales/es/budgets.yml | 2 +- config/locales/es/general.yml | 2 +- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index e47ba0343..b5a3b794d 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -22,6 +22,7 @@ // 20. Documents // 21. Related content // 22. Images +// 23. Maps // // 01. Global styles @@ -2511,3 +2512,21 @@ table { .images .button { margin-top: $line-height / 2; } + +// 23. Maps +// ----------------- + +.location-map-remove-marker { + border-bottom: 1px dotted #cf2a0e; + color: $delete; + display: inline-block; + margin-top: $line-height / 2; + + &:hover, + &:active, + &:focus { + border-bottom: 1px solid #cf2a0e; + color: #cf2a0e; + text-decoration: none; + } +} diff --git a/app/helpers/map_locations_helper.rb b/app/helpers/map_locations_helper.rb index ae45e7c1d..e20d5e21a 100644 --- a/app/helpers/map_locations_helper.rb +++ b/app/helpers/map_locations_helper.rb @@ -34,7 +34,7 @@ module MapLocationsHelper end def map_location_remove_marker(map_location, text) - content_tag :div, class: "text-right" do + content_tag :div, class: "margin-bottom" do content_tag :a, id: map_location_remove_marker_link_id(map_location), href: "#", diff --git a/config/locales/es/budgets.yml b/config/locales/es/budgets.yml index 258f394d6..5bc0c0e63 100644 --- a/config/locales/es/budgets.yml +++ b/config/locales/es/budgets.yml @@ -59,7 +59,7 @@ es: tags_placeholder: "Escribe las etiquetas que desees separadas por una coma (',')" map_location: "Ubicación en el mapa" map_location_instructions: "Navega por el mapa hasta la ubicación y coloca el marcador." - map_remove_marker: "Eliminar el marcador" + map_remove_marker: "Eliminar marcador en el mapa" location: "Información adicional de la ubicación" index: title: Presupuestos participativos diff --git a/config/locales/es/general.yml b/config/locales/es/general.yml index cf497ae9d..41d148541 100644 --- a/config/locales/es/general.yml +++ b/config/locales/es/general.yml @@ -338,7 +338,7 @@ es: tags_placeholder: "Escribe las etiquetas que desees separadas por una coma (',')" map_location: "Ubicación en el mapa" map_location_instructions: "Navega por el mapa hasta la ubicación y coloca el marcador." - map_remove_marker: "Eliminar el marcador" + map_remove_marker: "Eliminar marcador en el mapa" map_skip_checkbox: "Esta propuesta no tiene una ubicación concreta o no la conozco." index: featured_proposals: Destacadas