From 0b1aafb7015c7ab1986407870d048b3a3dcefda6 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 8 Jan 2020 16:27:39 +0100 Subject: [PATCH] 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 --- app/assets/stylesheets/_bootstrap-custom.scss | 2 +- app/views/site/fixthemap.html.erb | 33 +++++++++---------- 2 files changed, 17 insertions(+), 18 deletions(-) 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 %>

-- 2.43.2