From: Andy Allan Date: Wed, 8 Jan 2020 15:27:39 +0000 (+0100) Subject: Refactor the fixthemap page to use the bootstrap responsive grid X-Git-Tag: live~2318^2~5 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/0b1aafb7015c7ab1986407870d048b3a3dcefda6 Refactor the fixthemap page to use the bootstrap responsive grid This ensures that on small screens, the 'how to help' sections are one above the other, and on larger screens they are side-by-side --- diff --git a/app/assets/stylesheets/_bootstrap-custom.scss b/app/assets/stylesheets/_bootstrap-custom.scss index 96d37415f..689d7ee98 100644 --- a/app/assets/stylesheets/_bootstrap-custom.scss +++ b/app/assets/stylesheets/_bootstrap-custom.scss @@ -13,7 +13,7 @@ @import "bootstrap/type"; // @import "bootstrap/images"; // @import "bootstrap/code"; -// @import "bootstrap/grid"; +@import "bootstrap/grid"; // @import "bootstrap/tables"; // @import "bootstrap/forms"; // @import "bootstrap/buttons"; diff --git a/app/views/site/fixthemap.html.erb b/app/views/site/fixthemap.html.erb index 4bb478c7e..7077d74cb 100644 --- a/app/views/site/fixthemap.html.erb +++ b/app/views/site/fixthemap.html.erb @@ -7,31 +7,30 @@ <% end %>

<%= t "layouts.intro_header" %>

-

<%= t "layouts.intro_text" %>

<%= t ".how_to_help.title" %>

-
-
-

<%= t ".how_to_help.join_the_community.title" %>

- <%= t ".how_to_help.join_the_community.explanation_html" %> -
- +
+
+
+
<%= t ".how_to_help.join_the_community.title" %>
+

<%= t ".how_to_help.join_the_community.explanation_html" %>

+

+ +

+
+
+
<%= t "site.welcome.add_a_note.title" %>
+

<%= t "site.welcome.add_a_note.paragraph_1_html" %>

+

<%= t ".how_to_help.add_a_note.instructions_html", :map_url => root_path %>

-
-
-

<%= t "site.welcome.add_a_note.title" %>

-

<%= t "site.welcome.add_a_note.paragraph_1_html" %>

-

<%= t ".how_to_help.add_a_note.instructions_html", :map_url => root_path %>

<%= t ".other_concerns.title" %>

<%= t ".other_concerns.explanation_html" %>

-
-

<%= t "site.welcome.questions.title" %>

- -

<%= t "site.welcome.questions.paragraph_1_html", :help_url => help_path %>

-
+

<%= t "site.welcome.questions.title" %>

+ +

<%= t "site.welcome.questions.paragraph_1_html", :help_url => help_path %>