From: Tom Hughes Date: Wed, 21 Jul 2021 17:37:17 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/3233' X-Git-Tag: live~2540 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/0bbdadd727a37ee71d4a8c89b50ce2060d6a6240?hp=8e951a8340aeab4ecc039fd4d87280bf1a817961 Merge remote-tracking branch 'upstream/pull/3233' --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 3bec5fe36..0023286bf 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1035,20 +1035,11 @@ tr.turn:hover { /* Overrides for pages that use new layout conventions */ -.users-new, -.users-create, -.users-terms, -.users-confirm { - .content-heading .content-inner { - height: 200px; - } -} - .header-illustration { background-position: 0 0; background-repeat: no-repeat; - position: absolute; - height: 200px; + position: relative; + min-height: 200px; width: 100%; left: 0; bottom: 0; @@ -1068,9 +1059,10 @@ tr.turn:hover { &.new-user-arm { height: 110px; width: 130px; - left: 260px; - top: 160px; + left: 280px; + top: 180px; background-image: image-url("sign-up-illustration-arm.png"); + position: absolute; z-index: 100; } } diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6fc31953d..2a1c3d675 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -17,7 +17,6 @@ class ApplicationController < ActionController::Base helper_method :current_user helper_method :oauth_token - helper_method :preferred_languages private diff --git a/app/views/confirmations/confirm.html.erb b/app/views/confirmations/confirm.html.erb index fde545546..7350f8628 100644 --- a/app/views/confirmations/confirm.html.erb +++ b/app/views/confirmations/confirm.html.erb @@ -1,6 +1,8 @@ +<% content_for :heading_class, "pb-0" %> <% content_for :heading do %> -

<%= t ".heading" %>

-
+
+

<%= t ".heading" %>

+
<% end %> <% if params[:confirm_string] %> diff --git a/app/views/users/blocked.html.erb b/app/views/users/blocked.html.erb index ed00a8fcc..5753ebd9a 100644 --- a/app/views/users/blocked.html.erb +++ b/app/views/users/blocked.html.erb @@ -1,6 +1,8 @@ +<% content_for :heading_class, "pb-0" %> <% content_for :heading do %> -

<%= t "users.new.title" %>

-
+
+

<%= t "users.new.title" %>

+
<% end %> diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 264fc8e02..a94d4a812 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -2,9 +2,11 @@ <%= javascript_include_tag "user" %> <% end %> +<% content_for :heading_class, "pb-0" %> <% content_for :heading do %> -

<%= t ".title" %>

-
+
+

<%= t ".title" %>

+
<% end %> diff --git a/app/views/users/terms.html.erb b/app/views/users/terms.html.erb index 99af8b841..05cf62e3e 100644 --- a/app/views/users/terms.html.erb +++ b/app/views/users/terms.html.erb @@ -2,9 +2,11 @@ <%= javascript_include_tag "user" %> <% end %> +<% content_for :heading_class, "pb-0" %> <% content_for :heading do %> -

<%= t ".heading" %>

-
+
+

<%= t ".heading" %>

+
<% end %> <%= form_tag({ :action => "save" }) do %>