From f702d5c426fd993fe21c2572ba668368afc0ee72 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 27 Jul 2022 11:59:47 +0100 Subject: [PATCH 1/7] Remove unnecessary br tags The margin on the table takes care of the spacing. --- app/views/traces/show.html.erb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/views/traces/show.html.erb b/app/views/traces/show.html.erb index e72c423d7..a8f9c5967 100644 --- a/app/views/traces/show.html.erb +++ b/app/views/traces/show.html.erb @@ -58,8 +58,6 @@ -

- <% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?) %>
<% if current_user == @trace.user %> From c8ddd63280c7d5b4b59659ab650ed0c81866556a Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 27 Jul 2022 13:08:06 +0100 Subject: [PATCH 2/7] Fix the font weight on the about page title, and use lead styling for the lede --- app/views/site/about.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/site/about.html.erb b/app/views/site/about.html.erb index 3753dcc8d..b4b21a567 100644 --- a/app/views/site/about.html.erb +++ b/app/views/site/about.html.erb @@ -8,14 +8,14 @@
-

<%= t ".used_by_html", :name => tag.span("OpenStreetMap", :class => "user-name"), :locale => @locale %>

+

<%= t ".used_by_html", :name => tag.span("OpenStreetMap", :class => "user-name"), :locale => @locale %>

-

<%= t ".lede_text", :locale => @locale %>

+

<%= t ".lede_text", :locale => @locale %>

<%= t ".local_knowledge_title", :locale => @locale %>

<%= t ".local_knowledge_html", :locale => @locale %>

From 0bc9ede6ffd81d4aa2237d066d64cdb5e901fec4 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 27 Jul 2022 13:09:37 +0100 Subject: [PATCH 3/7] Use th tags on trace show table This brings consistency with other similar tables --- app/views/traces/show.html.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/traces/show.html.erb b/app/views/traces/show.html.erb index a8f9c5967..69f58b5b8 100644 --- a/app/views/traces/show.html.erb +++ b/app/views/traces/show.html.erb @@ -12,19 +12,19 @@ - + - + <% if @trace.inserted? %> - + - + <% end %> - + - + - + - +
<%= t ".filename" %><%= t ".filename" %> <%= @trace.name %> (<%= link_to t(".download"), trace_data_path(@trace) %>)
<%= t ".uploaded" %><%= t ".uploaded" %> <%= l @trace.timestamp, :format => :friendly %>
<%= t ".points" %><%= t ".points" %> <%= number_with_delimiter(@trace.size) %>
<%= t ".start_coordinates" %><%= t ".start_coordinates" %>
<%= t ".coordinates_html", @@ -35,15 +35,15 @@
<%= t ".owner" %><%= t ".owner" %> <%= link_to @trace.user.display_name, user_path(@trace.user) %>
<%= t ".description" %><%= t ".description" %> <%= @trace.description %>
<%= t ".tags" %><%= t ".tags" %> <% unless @trace.tags.empty? %> <%= safe_join(@trace.tags.collect { |tag| link_to tag.tag, :controller => "traces", :action => "index", :tag => tag.tag, :id => nil }, ", ") %> @@ -53,7 +53,7 @@
<%= t ".visibility" %><%= t ".visibility" %> <%= t "traces.visibility.#{@trace.visibility}" %>
From f1d60e05c474b5f6990add512562f6f6c6e1ea3f Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 27 Jul 2022 13:23:03 +0100 Subject: [PATCH 4/7] Remove font size overrides from sidebar headings These were interfering with the response font sizing via RFS --- app/assets/stylesheets/common.scss | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 8ab10773b..aa9406449 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -359,14 +359,6 @@ body.compact-nav { width: 100%; } - h2 { - font-size: 1.5rem; - } - - h3, h4 { - font-size: 1.25rem; - } - .close-wrap { cursor: pointer; position: absolute; From 64b470aa3ce7a25f375e03e1ea1965c807e90e06 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 27 Jul 2022 13:24:07 +0100 Subject: [PATCH 5/7] Remove font size overrides for code and pre blocks These are taken care of, where necessary, by bootstrap --- app/assets/stylesheets/common.scss | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index aa9406449..aaad72342 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1451,13 +1451,11 @@ dl.dl-inline { .richtext, .prose { code { - font-size: 13px; background: $lightgrey; padding: 2px 3px; } pre { - font-size: 13px; background: $lightgrey; padding: 2px 3px; white-space: pre-wrap; From 1bf671f6847c0c5c6561520ef4970689a0977e55 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 27 Jul 2022 13:54:07 +0100 Subject: [PATCH 6/7] Rework welcome and fixthemap pages * Use lead class for lede paragraphs * Change headings to start from h2 * Remove custom css and use bootstrap utilities where required --- app/assets/stylesheets/common.scss | 18 -------------- app/views/site/fixthemap.html.erb | 12 ++++----- app/views/site/welcome.html.erb | 40 +++++++++++++++--------------- 3 files changed, 26 insertions(+), 44 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index aaad72342..8d3da8f7e 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1498,19 +1498,10 @@ dl.dl-inline { /* Rules for the "Welcome" page */ .site-welcome, .site-fixthemap { - .center { - text-align: center; - .sprite { - float: none; - margin: auto; - } - } - .sprite { background-image: image-url("welcome-sprite.png"); background-size: 500px 250px; display: block; - float: left; } .icon-list { @@ -1560,15 +1551,6 @@ dl.dl-inline { /* no-r2 */ background-position: -350px 0; } - .start-mapping { - margin: auto; - cursor: pointer; - border: none; - padding: 20px 40px; - font-size: 30px; - text-decoration: none; - } - .icon.note { background-color: #333; border-radius: 4px; diff --git a/app/views/site/fixthemap.html.erb b/app/views/site/fixthemap.html.erb index f5adb83ac..28e0fe237 100644 --- a/app/views/site/fixthemap.html.erb +++ b/app/views/site/fixthemap.html.erb @@ -6,10 +6,10 @@

<%= t ".title" %>

<% end %> -

<%= t "layouts.intro_header" %>

-

<%= t "layouts.intro_text" %>

+

<%= t "layouts.intro_header" %>

+

<%= t "layouts.intro_text" %>

-

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

+

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

@@ -28,9 +28,9 @@
-

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

+

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

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

-

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

- +

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

+

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

diff --git a/app/views/site/welcome.html.erb b/app/views/site/welcome.html.erb index 4617935e7..7c1ee38ab 100644 --- a/app/views/site/welcome.html.erb +++ b/app/views/site/welcome.html.erb @@ -6,66 +6,66 @@

<%= t ".title" %>

<% end %> -

<%= t ".introduction_html" %>

+

<%= t ".introduction_html" %>

-

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

+

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

-
- +
+

<%= t ".whats_on_the_map.on_html" %>

- +

<%= t ".whats_on_the_map.off_html" %>

-

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

+

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

<%= t ".basic_terms.paragraph_1_html" %>

-
+
- +

<%= t ".basic_terms.editor_html" %>

- +

<%= t ".basic_terms.node_html" %>

- +

<%= t ".basic_terms.way_html" %>

- +

<%= t ".basic_terms.tag_html" %>

-
-

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

- +
+

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

+

<%= t ".rules.paragraph_1_html" %>

-
-

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

- +
+

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

+

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

-
-

<%= t ".start_mapping" %>

+
-

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

+

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

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

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

From 09631b53e9cf79752922039b36bc343d3d48da5c Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 27 Jul 2022 14:26:54 +0100 Subject: [PATCH 7/7] Remove extra container div from fixthemap page This created extra margins and padding either side of the blocks of text, which was unnecessary --- app/views/site/fixthemap.html.erb | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/app/views/site/fixthemap.html.erb b/app/views/site/fixthemap.html.erb index 28e0fe237..70118b980 100644 --- a/app/views/site/fixthemap.html.erb +++ b/app/views/site/fixthemap.html.erb @@ -11,20 +11,18 @@

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

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

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

-

- <%= t("layouts.start_mapping") %> -

-
-
-
<%= 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 ".how_to_help.join_the_community.title" %>
+

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

+

+ <%= t("layouts.start_mapping") %> +

+
+
+
<%= 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 %>