From 7ba62b0e7dcdb28ef8ac1ced776bd5b47136b1c4 Mon Sep 17 00:00:00 2001 From: tarasvarshava Date: Thu, 15 Feb 2024 11:32:40 +0100 Subject: [PATCH] ARC-1296: Align GesundheitsID Provider form --- .../main/resources/www/common.css.mustache | 17 +++++-- .../resources/www/select-idp.html.mustache | 28 +++++++---- .../resources/fixtures/pages_golden_error.bin | 17 +++++-- .../fixtures/pages_golden_idp-select-form.bin | 47 +++++++++++++------ 4 files changed, 79 insertions(+), 30 deletions(-) diff --git a/ehealthid-rp/src/main/resources/www/common.css.mustache b/ehealthid-rp/src/main/resources/www/common.css.mustache index 0146208..0ec7996 100644 --- a/ehealthid-rp/src/main/resources/www/common.css.mustache +++ b/ehealthid-rp/src/main/resources/www/common.css.mustache @@ -1,7 +1,8 @@ html body { position: relative; + width: 100%; - height: 100%; + height: 100vh; font-family: Inter, sans-serif; font-style: normal; @@ -14,13 +15,22 @@ html body { padding: 0; } +body { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + * { box-sizing: border-box; } .container { + display: flex; + flex-direction: column; + max-width: 400px; - margin: 1em auto 2em; padding: 20px; border-radius: 12px; @@ -38,11 +48,12 @@ a { @media (max-width: 500px) { .container { - margin: 0 auto; + height: 100%; border: none; } html body { + height: 100svh; background: #FFF; } } diff --git a/ehealthid-rp/src/main/resources/www/select-idp.html.mustache b/ehealthid-rp/src/main/resources/www/select-idp.html.mustache index 68adabf..21305c5 100644 --- a/ehealthid-rp/src/main/resources/www/select-idp.html.mustache +++ b/ehealthid-rp/src/main/resources/www/select-idp.html.mustache @@ -2,10 +2,14 @@ {{$head}}