From 5928a16b37b1f78154898ce49b72dfe5837bd22a Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 3 Dec 2019 11:27:39 +0000 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20de=20la=20mise=20en=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stylesheets/new_design/user_signup.scss | 18 ++++++++++++++++-- app/views/users/registrations/new.html.haml | 8 ++++---- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/new_design/user_signup.scss b/app/assets/stylesheets/new_design/user_signup.scss index 4592e34b0..fe0b174db 100644 --- a/app/assets/stylesheets/new_design/user_signup.scss +++ b/app/assets/stylesheets/new_design/user_signup.scss @@ -3,8 +3,22 @@ .suspect-email { background-color: $orange-bg; - font-weight: bold; text-align: center; - padding: $default-padding; + margin-top: -$default-padding * 2; + margin-bottom: $default-padding * 2; + padding: ($default-padding - 2) $default-padding $default-padding $default-padding; + border-radius: 0 0 5px 5px; } +.email-suggestion-address { + font-weight: bold; +} + +.email-suggestion-title { + margin-bottom: $default-spacer; +} + +.email-suggestion-answer button { + margin: 0 $default-spacer / 2; + min-width: 66px; +} diff --git a/app/views/users/registrations/new.html.haml b/app/views/users/registrations/new.html.haml index 76d8ddf95..37bcc2387 100644 --- a/app/views/users/registrations/new.html.haml +++ b/app/views/users/registrations/new.html.haml @@ -8,15 +8,15 @@ = f.label :email, "Email" = f.text_field :email, autofocus: true, placeholder: "Votre adresse email" - .suspect-email.hidden + .suspect-email .email-suggestion-title - Vouliez-vous dire + Voulez-vous dire %span.email-suggestion-address blabla@gmail.com  ? .email-suggestion-answer - = button_tag type: 'button', class: 'button', onclick: "DS.acceptEmailSuggestion()" do + = button_tag type: 'button', class: 'button small', onclick: "DS.acceptEmailSuggestion()" do Oui - = button_tag type: 'button', class: 'button', onclick: "DS.discardEmailSuggestionBox()" do + = button_tag type: 'button', class: 'button small', onclick: "DS.discardEmailSuggestionBox()" do Non = f.label :password, "Mot de passe"