From d059e3d5ff8731315df6974db1609787ce6a545d Mon Sep 17 00:00:00 2001 From: Julie Salha Date: Thu, 26 Jan 2023 15:16:29 +0100 Subject: [PATCH 1/2] sign in remove tags used only for presentation --- app/assets/stylesheets/auth.scss | 1 - app/assets/stylesheets/procedure_context.scss | 11 ++++++++++- .../layouts/commencer/_no_procedure.html.haml | 17 ++++++----------- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/app/assets/stylesheets/auth.scss b/app/assets/stylesheets/auth.scss index 57a11d5f2..a7f8f4e4b 100644 --- a/app/assets/stylesheets/auth.scss +++ b/app/assets/stylesheets/auth.scss @@ -11,7 +11,6 @@ // The procedure description can still be read from the /commencer // pages. @media (max-width: $two-columns-breakpoint) { - .procedure-preview, .agent-intro { display: none; } diff --git a/app/assets/stylesheets/procedure_context.scss b/app/assets/stylesheets/procedure_context.scss index e734c5a31..0b986b7cb 100644 --- a/app/assets/stylesheets/procedure_context.scss +++ b/app/assets/stylesheets/procedure_context.scss @@ -17,7 +17,8 @@ $procedure-description-line-height: 22px; } .simple { - font-size: 24px; + margin-bottom: 0.2rem; + font-size: 1.5rem; color: $blue-france-500; font-weight: bold; } @@ -143,6 +144,14 @@ $procedure-description-line-height: 22px; } } +.no-procedure-presentation { + margin-bottom:1.6rem; + + p { + margin: 0; + } +} + .procedure-context-content { @media (max-width: $procedure-context-breakpoint) { input[type=submit] { diff --git a/app/views/layouts/commencer/_no_procedure.html.haml b/app/views/layouts/commencer/_no_procedure.html.haml index 2580c0243..c1573b002 100644 --- a/app/views/layouts/commencer/_no_procedure.html.haml +++ b/app/views/layouts/commencer/_no_procedure.html.haml @@ -1,15 +1,10 @@ .no-procedure = image_tag "landing/hero/dematerialiser.svg", class: "paperless-logo", alt: "" .baseline.center - %p - %span.simple= t('.line1') - %br - = t('.line2') - %br - = t('.line3') + .no-procedure-presentation + %p.simple= t('.line1') + %p= t('.line2') + %p= t('.line3') %hr - %p - %span.small-simple= t('.are_you_new', app_name: APPLICATION_NAME.gsub("-","‑")).html_safe - %br - %br - = link_to t('views.users.sessions.new.find_procedure'), t("links.common.faq.comment_trouver_ma_demarche_url"), title: new_tab_suffix(t('views.users.sessions.new.find_procedure')), class: "fr-btn fr-btn--secondary", **external_link_attributes + %p.small-simple= t('.are_you_new', app_name: APPLICATION_NAME.gsub("-","‑")).html_safe + = link_to t('views.users.sessions.new.find_procedure'), t("links.common.faq.comment_trouver_ma_demarche_url"), title: new_tab_suffix(t('views.users.sessions.new.find_procedure')), class: "fr-btn fr-btn--secondary", **external_link_attributes From 61042cd51ef5c1c333c6b8aff6ab6b06e6c9ce5c Mon Sep 17 00:00:00 2001 From: Julie Salha Date: Thu, 26 Jan 2023 15:26:22 +0100 Subject: [PATCH 2/2] fix PR --- app/assets/stylesheets/procedure_context.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/procedure_context.scss b/app/assets/stylesheets/procedure_context.scss index 0b986b7cb..ee5a96010 100644 --- a/app/assets/stylesheets/procedure_context.scss +++ b/app/assets/stylesheets/procedure_context.scss @@ -145,7 +145,7 @@ $procedure-description-line-height: 22px; } .no-procedure-presentation { - margin-bottom:1.6rem; + margin-bottom: 1.6rem; p { margin: 0;