From d2f1b079224152e165a8089d1731beabd123034d Mon Sep 17 00:00:00 2001 From: Saku Laesvuori Date: Wed, 4 Oct 2023 22:42:58 +0300 Subject: [PATCH] Improve CSS --- frontend/src/Datarekisteri/Frontend/Types.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/Datarekisteri/Frontend/Types.hs b/frontend/src/Datarekisteri/Frontend/Types.hs index 5d1ae6f..079e124 100644 --- a/frontend/src/Datarekisteri/Frontend/Types.hs +++ b/frontend/src/Datarekisteri/Frontend/Types.hs @@ -204,6 +204,9 @@ instance Yesod DataIdClient where --bg-colour: #ffffff; --fg-colour: #181c22; } + * { + box-sizing: border-box; + } html { font-family: "Fira Sans", sans-serif; height: 100%; @@ -239,7 +242,7 @@ instance Yesod DataIdClient where margin-bottom: 0.3em; } form { - max-width: 20em; + max-width: min(30em,100%); } summary > h2 { display: inline-block; @@ -330,6 +333,7 @@ instance Yesod DataIdClient where $doctype 5 + #{pageTitle p} ^{pageHead p} <body>